GET
/
tokens
/
sui
/
price
/
chart
Get token price chart data
curl --request GET \
  --url https://api.getnimbus.io/tokens/sui/price/chart \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "tokenMeta": {
      "name": "Sui",
      "symbol": "SUI",
      "decimals": 9,
      "logo": "https://token-logo.service.com/sui.png"
    },
    "data": [
      {
        "price": 1.23,
        "updatedAt": "2024-03-20T10:30:00.000Z"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Trial key: trial-0a620a64-975b-4f45-a73f-9d363200c92e

Query Parameters

address
string
required

The token contract address

range
enum<string>

(recommended) The time range to get the price chart data. If not provided, defaults to using the 'from' and 'to' parameters.

Available options:
1h,
1D,
1W,
1M,
YTD,
ALL
from
integer

Start timestamp in seconds. If not provided, defaults to 24 hours ago

to
integer

End timestamp in seconds. If not provided, defaults to current time

Response

Successful response with price chart data

data
object