get_historical_liquidity

get
Get historical liquidity by pair

https://api2.sushipro.io/?action=get_historical_liquidity
Request
Response
Request
Query Parameters
action
required
string
get_historical_liquidity
pair
required
string
The contract address of the requested pair.
from
required
integer
From when - unix timestamp
to
required
integer
To when - unix timestamp
chainID
optional
integer
Network ID. 1 ( Ethereum ) by default.
Response
200: OK
Example : https://api2.sushipro.io/?action=get_historical_liquidity&pair=0xd45afa3649e57a961c001b935ded1c79d81a9d23&from=1625097600&to=1625473410
[
{
"action": "get_historical_liquidity",
"chain": "Ethereum",
"number_of_results": 4,
"pair": "0xd45afa3649e57a961c001b935ded1c79d81a9d23"
},
[
{
"Date": 1625097600,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_reserve": 117013.56541,
"Token_2_reserve": 11.09696596011583,
"USD_total_liquidity": 233802.31753627176
},
{
"Date": 1625184000,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_reserve": 114634.023631,
"Token_2_reserve": 11.332668044222162,
"USD_total_liquidity": 229148.00856327545
},
{
"Date": 1625270400,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_reserve": 110475.264419,
"Token_2_reserve": 11.761085309062162,
"USD_total_liquidity": 220891.95658708934
},
{
"Date": 1625356800,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_reserve": 110320.442629,
"Token_2_reserve": 11.779776429681153,
"USD_total_liquidity": 220582.3037021762
}
]
]
404: Not Found
{
"action": "get_historical_liquidity",
"chain": "Ethereum",
"error": "No data available"
}

‚Äč