Skip to main content
POST
/
v1
/
token
/
price
Returns prices for given tokens
curl --request POST \
  --url https://backend.swap.coffee/v1/token/price \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "blockchain": "ton",
  "addresses": [
    "<string>"
  ]
}
'
[
  {
    "address": "<string>",
    "usd_price": 123
  }
]

Authorizations

X-Api-Key
string
header
required

Body

application/json
blockchain
enum<string>
required
Available options:
ton
addresses
string[]
required

Response

prices

address
string
required
usd_price
number<double>
required