root address of the desired currency price: price in USD
priceChange
-3.71
price change in the last 24h (percentage)
tvl
12209750.651450054
total value locked (TVL in USD) of the currency
tvlChange
-2.45
TVL change in the last 24h (percentage)
volume24h
555590.207631653593
trading volume (in USD) in the last 24h
volumeChange24h
22.66
trading volume change (percentage) in the last 24h
volume7d
3700214.4401861234
trading volume (in USD) in the last 7 days
Example
DEX currency USD price
POSThttps://api.flatqube.io/v1/currencies
This function is used to get currency prices in USD by token root address/addresses.
It can be used anywhere where a conversion value of a certain currency should be shown in USDT.
Request parameters
Body required. Data used for Postman tests:
Example
DEX all currencies info
POSThttps://api.flatqube.io/v1/currencies
This function gets currency data info.
It retrieves all desired currencies based on their addresses and other requested body parameters.
It can be used to show all currencies and their data in a list format.
Request parameters
Body required. Data used for Postman tests:
Response fields explanation
Field name
Example value
Comment
count
number of currencies per page
currencies
list of all retrieved currencies with the following data:
This function gets currency price data info based on the timespan given.
It can be used for graphic representation of price change over a certain period of time.
Request parameters
Currencies parameter required - represents address of a specific currency.
Value used for testing is Dai Stablecoin address: 0:eb2ccad2020d9af9cec137d3146dde067039965c13a27d97293c931dae22b2b9
Body required. Example data used for Postman tests:
Field name
Example value
Comment
from
1646741858511 or March 8, 2022 12:17:38.511 PM GMT time
Date-time in UNIX format for the start of timeframe
timeframe
“H1”, “D1”
Desired timeframe to retrieve prices data, could be set for hours, days, etc.
to
1647346658513 or March 15, 2022 12:17:38.513 PM
Date-time in UNIX format for the end of timeframe
Response fields explanation
Field name
Example value
Comment
close
0.997085448681
number of currencies per page
closeTimestamp
1646744400000
list of all retrieved currencies with the following data:
high
0.997085448681
root address of the currency
low
0.997085448681
symbol of the currency
openTimestamp
1646740800000
currency fees in the last 24h price: currency price in USD