get_historical_volume

get
Get historical volume by pair

https://api2.sushipro.io/?action=get_historical_volume
Request
Response
Request
Query Parameters
action
required
string
get_historical_volume
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
[
{
"action": "get_historical_volume",
"chain": "Ethereum",
"number_of_results": 4,
"pair": "0xd45afa3649e57a961c001b935ded1c79d81a9d23"
},
[
{
"Date": 1625097600,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_volume": 19574.032415,
"Token_2_volume": 1.7068541157187604,
"USD_total_volume": 19568.78344504512
},
{
"Date": 1625184000,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_volume": 18193.096655,
"Token_2_volume": 1.890639431917981,
"USD_total_volume": 18190.704446294698
},
{
"Date": 1625270400,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_volume": 5844.989008,
"Token_2_volume": 0.6043963633909917,
"USD_total_volume": 5844.134622341256
},
{
"Date": 1625356800,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_1_volume": 6988.57276,
"Token_2_volume": 0.7231420039828989,
"USD_total_volume": 6986.212085130258
}
]
]
404: Not Found
{
"action": "get_historical_volume",
"chain": "Ethereum",
"error": "No data available"
}

‚Äč