get_historical_transactions_count

get
Get historical number of transactions by pair

https://api2.sushipro.io/?action=get_historical_transactions_count
Request
Response
Request
Query Parameters
action
required
string
get_historical_transactions_count
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_transactions_count&pair=0xd45afa3649e57a961c001b935ded1c79d81a9d23&from=1625097600&to=1625473410
[
{
"action": "get_historical_transactions_count",
"chain": "Ethereum",
"number_of_results": 4,
"pair": "0xd45afa3649e57a961c001b935ded1c79d81a9d23"
},
[
{
"Date": 1625097600,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Transactions": 10
},
{
"Date": 1625184000,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Transactions": 11
},
{
"Date": 1625270400,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Transactions": 5
},
{
"Date": 1625356800,
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Transactions": 6
}
]
]
404: Not Found
{
"action": "get_historical_transactions_count",
"chain": "Ethereum",
"error": "No data available"
}