Get Price Change for Token Over Time Duration
POSThttps://api.fuse.io/api/v0/trade/pricechange/:tokenAddress
The duration object to calculate the price change over the timeFrame duration should be passed as an object according to https://day.js.org/docs/en/durations/creating for example duration of {days: 1} means a duration of one day
Request
Path Parameters
tokenAddress stringrequired
Token Contract Address
Example: 0x495d133B938596C9984d462F007B676bDc57eCEC
Query Parameters
apiKey string
(Required) Your Public API key
Example: {{publicKey}}
- application/json
Body
duration object
Responses
- 200
OK
Response Headers
- application/json
- Schema
- Example (from schema)
- Example
Schema
object
{}
{
"data": {
"priceChange": "2.4968423346546302",
"currentPrice": "0.00017949963711457067",
"previousPrice": "0.0001751269922330876"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.fuse.io/api/v0/trade/pricechange/:tokenAddress' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"duration": {
"days": "1"
}
}'
ResponseClear