GET
/
tokens
/
sui
/
price
/
chart
curl --request GET \
  --url https://api.getnimbus.io/tokens/sui/price/chart
{
  "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"
      }
    ]
  }
}

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

200
application/json

Successful response with price chart data

The response is of type object.