Skip to main content

Get Token Rates

Retrieve rate change information for a specific token.

Endpoint

GET /v2/users/tokens/{token_id}/rates

Headers

HeaderValue
Content-Typeapplication/json
AuthorizationBearer {token}

Path Parameters

ParameterTypeRequiredDescription
token_idstringYesThe unique identifier of the token

Response

Returns rate change information for the specified token.

Success Response (200 OK)

{
"daily_rate_change": null,
"weekly_rate_change": null,
"monthly_rate_change": {
"start_date": "2025-08-31T21:35:57.695Z",
"end_date": "2025-09-01T19:26:14.776Z",
"start_value": 1.4,
"end_value": 0.9,
"rate": -35.71,
"change_type": -1
}
}

Response Fields

FieldTypeDescription
daily_rate_changeobject|nullDaily rate change information
weekly_rate_changeobject|nullWeekly rate change information
monthly_rate_changeobject|nullMonthly rate change information

Rate Change Object Structure

FieldTypeDescription
start_datestringStart date of the rate change period (ISO 8601)
end_datestringEnd date of the rate change period (ISO 8601)
start_valuenumberStarting value of the token
end_valuenumberEnding value of the token
ratenumberRate change percentage
change_typeintegerType of change (TokenRateChangeType)

TokenRateChangeType (change_type)

ValueDescription
1TokenRateChangeTypeIncrease - Increase
-1TokenRateChangeTypeDecrease - Decrease

Example

Request

curl -X GET "{{baseUrl}}/v2/users/tokens/68ae06cfcccf4e8fc19362d1/rates" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer \{\{token\}\}"

Response

{
"daily_rate_change": null,
"weekly_rate_change": null,
"monthly_rate_change": {
"start_date": "2025-08-31T21:35:57.695Z",
"end_date": "2025-09-01T19:26:14.776Z",
"start_value": 1.4,
"end_value": 0.9,
"rate": -35.71,
"change_type": -1
}
}

Error Responses

400 Bad Request

{
"error": "Invalid token ID format"
}

401 Unauthorized

{
"error": "Authentication required"
}

403 Forbidden

{
"error": "Access denied"
}

404 Not Found

{
"error": "Token not found"
}

500 Internal Server Error

{
"error": "Internal server error"
}