Links

CMC API

get
https://api.flatqube.io/v1/cmc/dex
CMC DEX pools info
The function is used to get all information about DEX pools.
It can be used to tabulate all dex pools with their pairs and desired information about them.

Request parameters

No parameters are required.

Response fields explanation

Field name
Example value
Comment
base_id
0:a519f99bb5d6d51ef958ed24d337ad75a1c770885dcd42d51d6663f9fcdacfb2
Root address of the base token in the certain dex pool
base_name
Tether
Full name of the base token
base_symbol
USDT
Full name of the base token
quote_id
0:c37b3fafca5bf7d3704b081fde7df54f298736ee059bf6d32fac25f5e6085bf6
Root address of the quote token in the pool
quote_name
USD Coin
Full name of the quote token
quote_symbol
USDC
Symbol of the quote token
last_price
1.001259244956
Price of 1 base token in quote tokens (ie. 1 USDT = 1.001 USDC)
base_volume
2210.44204800
Trading volume (in USD) of base token
quote_volume
2213.22553600
Trading volume (in USD) of quote token

Example

app.get('/cmc/dex', (req, res) => {
axios({
method: 'get',
url: liveApiUrl + '/cmc/dex'
})
.then(function (response) {
res.send(response.data)
})
.catch(function(error){
console.error(error)
res.send('Error')
})
})
get
https://api.flatqube.io/v1
/cmc/farming
CMC DEX farming pools info
This function helps you get farming pools information:

Request parameters

No parameters required

Response fields explanation

Field name
Example value
Comment
provider
FlatQube
Represents provider of the farming pool
provider_logo
Path to the provider logo provider
url
https://flatqube.io
Url to the provider
links
​
​
pools
​
List of all the pools available on the provider, contains following information about each pool
name
WEVER/BRIDGE
Name of the pool in format left pair/right pair
pair
WEVER/BRIDGE
Info about which two tokens are in pair for the given pool
pairLink
URL to the farming pool where you can see all the details about that pool and start farming in it
logo
​
poolRewards
BRIDGE, QUBE
Tokens that are given as a reward for farming in that pool (ie. BRIDGE, QUBE)
apr
97.9022
Apr (Annual Percentage Rate) for farming in that pool
totalStake
53838.449198250683
TVL (Total Value Locked) in USD for the current pool

Example

app.get('/cmc/farming', (req, res) => {
axios({
method: 'get',
url: liveApiUrl + '/cmc/farming'
})
.then(function (response) {
res.send(response.data)
})
.catch(function(error){
console.error(error)
res.send('Error')
})
})