GetBuyPrice

API

API/token/profile/v1/calculate/buy_price

Title

GetBuyPrice

Description

Get buy price of the Key based on amount

Authorization

Not required

Method

GET

Request Parameters

NameTypeRequiredDescription

creatorId

int

YES

The Farcaster FID of the creator

amount

int

YES

The amount of Key to be purchased

ecosystem

string

YES

Only suppports "farcaster"

Request and Response Example

Request

cURL Code

curl -X 'GET' \
  'https://api.tako.so/token/profile/v1/calculate/buy_price?creatorId=10001&amount=1&ecosystem=farcaster' \
  -H 'accept: application/json'

Request URL

https://api.tako.so/token/profile/v1/calculate/buy_price?creatorId=10001&amount=1&ecosystem=farcaster

Response

{
  "code": 0,
  "ts": "2023-12-22 04:05:33.80184",
  "msg": "OK",
  "data": 127083333333334
}

Last updated