This function is used to get pair data info by liquidity pool address.
It can be used for presenting a pair with all the details about it in the desired pool.
Request parameters
Address parameter required - represents the pool address of a specific pair.
Value used for testing is pool WEVER/BRIDGE address: 0:83b88abbcd562c8d8dc4cab30ec1ded86a4ded99000ca02425715e5cec754f06
This function is used to get pair data info by token root addresses. It can be used anywhere where details about the pairs are used and should be retrieved using their root addresses.
Request parameters
Left and right parameter required - represents address of a specific currency.
Value used for testing are WEVER and BRIDGE addresses (respectively) :
left = 0:a49cd4e158a9a15555e624759e2e4e766d22600b7800d891e46f9291f044a93d
``right = 0:f2679d80b682974e065e03bf42bbee285ce7c587eb153b41d761ebfd954c45e1
This function needs to get ohlcv pair data info by token root addresses.
It can be used ie. for graphic representation of price change of the right pair compared to the value of the left pair over a certain period of time (ie. 1 WEVER = 0.02245627 BRIDGE).
Request parameters
Left parameter required - represents the address of a specific currency.
Value used for testing is WEVER address: 0:a49cd4e158a9a15555e624759e2e4e766d22600b7800d891e46f9291f044a93d
Right parameter required - represents the address of a specific currency.
Value used for testing is BRIDGE address:
0:f2679d80b682974e065e03bf42bbee285ce7c587eb153b41d761ebfd954c45e1
address of the pool containing left and right pair
tvl
11992480.952892429456
TVL in the pair’s pool
tvlchange
1.22
TVL change (percentage) in the pool for the last 24h
leftLocked
25795814.233390122000
TVL of the left pair (token) in USD
leftPrice
0.2322839661557624874057319495
price (in USD) of the left pair
rightLocked
644766.509092723000
TVL of the right pair (token) in USD
rightPrice
9.293215382388
price (in USD) of the right pair
volume24h
68293.598448021590
trading volume of the pair in the last 24h (in USD)
volume7d
1549070.057378500757
trading volume of the pair in the last 7 days (in USD)
volumechange24h
-44.98
trading volume change (percentage) in the last 24h
fee24h
205.053510628491
total amount of fees (in USD) in the last 24h
fee7d
4637.831319664494
total amount of fees (in USD) in the last 7 days
feeAllTime
18789.418763913485
total amount of fees (in USD) EVER
from
1646741858511
Date time in UNIX format for the start of timeframe (ie. 1646741858511 or March 8, 2022 12:17:38.511 PM GMT time)
timeframe
H1
desired timeframe to retrieve prices data, could be set for hours, days, etc. (“H1”, “D1”...)
to
1647346658513
date time in UNIX format for the end of timeframe (ie. 1647346658513 or March 15, 2022 12:17:38.513 PM)
close
0.025131270323
Value of the currency (in USD) in the last moment of given timeframe
closeTimestamp
1647275606000
Date time for the “close” value in UNIX format
high
0.025131270323
The highest currency price in the given timeframe
low
0.024980850704
The lowest currency price in the given timeframe
open
0.024984390565
Value of the currency (in USD) in the first moment of the given timeframe
openTimestamp
1647274428000
Date time for the “open” value in UNIX format
timeStamp
1647273600000
date time in UNIX format, the round value of openTimestamp (ex. openTimeStamp is March 8, 2022 11:25:48 PM, timeStamp will be March 8, 2022 11:00:00 PM when converted to GMT)
volume
249.621417263132
Trading volume (in USD) for the given currency between openTimeStamp and closeTimeStamp)