Currencies API
Currency data
POST
https://api.flatqube.io/v1/currencies/{currencies}
This function is used to get currency data info by token root address. It can be used for representing data specific to each currency in detail.
Request parameters
Currencies parameter required - represents address of a specific currency.
Value used for testing is WEVER address: 0:a49cd4e158a9a15555e624759e2e4e766d22600b7800d891e46f9291f044a93d
Response fields explanation
Field name | Example value | Comment |
---|---|---|
|
| currency symbol |
|
| root address of the desired currency price: price in USD |
|
| price change in the last 24h (percentage) |
|
| total value locked (TVL in USD) of the currency |
|
| TVL change in the last 24h (percentage) |
|
| trading volume (in USD) in the last 24h |
|
| trading volume change (percentage) in the last 24h |
|
| trading volume (in USD) in the last 7 days |
Example
DEX currency USD price
POST
https://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
POST
https://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 |
---|---|---|
| number of currencies per page | |
| list of all retrieved currencies with the following data: | |
|
| root address of the currency |
|
| symbol of the currency |
|
| currency fees in the last 24h price: currency price in USD |
|
| price change in the last 24h (percentage) |
|
| number of the transactions in the last 24h |
|
| TVL (total value locked) amount (in USD) |
|
| TVL change (percentage) in the last 24h |
|
| trading volume amount (in USD) in the last 24h |
|
| trading volume amount (in USD) in the last 7 days |
|
| trading volume change (percentage) in the last 24h |
| offset | |
|
| number of all the currencies retrieved |
Example
DEX currency price info
POST
https://api.flatqube.io/v1/currencies/{currencies}/prices
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 |
---|---|---|
|
| Date-time in UNIX format for the start of timeframe |
|
| Desired timeframe to retrieve prices data, could be set for hours, days, etc. |
|
| Date-time in UNIX format for the end of timeframe |
Response fields explanation
Field name | Example value | Comment |
---|---|---|
|
| number of currencies per page |
|
| list of all retrieved currencies with the following data: |
|
| root address of the currency |
|
| symbol of the currency |
|
| currency fees in the last 24h price: currency price in USD |
|
| price change in the last 24h (percentage) |
|
| number of the transactions in the last 24h |
Example
DEX currency volume
POST
https://api.flatqube.io/v1/currencies/{currencies}/volume
This function gets currency volume data info.
It can be used for graphic representation of trading volume (in USD) that has changed over the required period of time.
Response fields explanation
Field name | Example value | Comment |
---|---|---|
|
| trading volume at the given moment inside of the given time span, based on the timeframe (hourly, daily etc.) |
|
| date-time of the retrieved trading volume data |
Request parameters
Currencies parameter required - represents address of a specific currency.
Value used for testing is Dai Stablecoin address: 0:eb2ccad2020d9af9cec137d3146dde067039965c13a27d97293c931dae22b2b9
Body required. Data example used for Postman tests:
Field name | Example value | Comment |
---|---|---|
|
| Date-time in UNIX format for the start of desired timespan |
|
| Desired timeframe to retrieve trading volume data, could be set for hours, days, etc |
|
| Date-time in UNIX format for the end of timespan |
Example
Currency tvl data
POST
https://api.flatqube.io/v1/currencies/{currencies}/tvl
This function gets currency volume data info.
It can be used for graphic representation of trading volume (in USD) that has changed over the required period of time.
Request parameters
Currencies parameter required - represents address of a specific currency.
Value used for testing is Dai Stablecoin address: 0:eb2ccad2020d9af9cec137d3146dde067039965c13a27d97293c931dae22b2b9
The example data used for Postman tests:
Field name | Example value | Comment |
---|---|---|
|
| Date-time in UNIX format for the start of desired timespan |
|
| Date-time in UNIX format for the end of timespan |
Response fields explanation
Field name | Example volume | Comment |
---|---|---|
|
| TVL for the given moment inside of the given time span, based on the timeframe (hourly, daily, etc.) |
|
| Date time of the retrieved trading volume data |
Example
Last updated