Get Price Change for Token Over Time Duration
POST/api/v0/trade/pricechange/:tokenAddress
Specify a duration object to calculate the price change over the specified timeframe.
Request
Details
Path Parameters
tokenAddress stringrequired
Token Contract Address.
Details
Query Parameters
apiKey stringrequired
Your Public API key.
- application/json
Details
Body
required
Details
duration
object
days integer
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Details
Schema
Details
data
object
priceChange string
currentPrice string
previousPrice string
{
"data": {
"priceChange": "string",
"currentPrice": "string",
"previousPrice": "string"
}
}
Loading...