For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Token Price

You can use this interface to query the price of the corresponding token on Nexus

Get the price information of the token

post
/brc20swap/stat/tick_price
Body
tickstringRequired
coin_typestringRequired
Responses
200Success
application/json
codeintegerRequired
msgstringRequired
post/brc20swap/stat/tick_price
POST /brc20swap/stat/tick_price HTTP/1.1
Host: api-testnet4.dotswap.app
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "tick": "DOG•GO•TO•THE•MOON",
  "coin_type": "runes"
}
{
  "code": 0,
  "msg": "",
  "data": {
    "btc_price": "0.0000000162173564",
    "usd_price": "0.001685483311057812"
  }
}

Last updated