Transaction and Pool Analysis
/gethistoricaltimeseries
Retrieves the transactionHash, timestamp and the price of the token pair with regard to the first token.User can provide the startBlock and endBlock and fetch the data according to the same.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltimeseries
Query Parameters
Name | Type | Description |
---|---|---|
dexId* | String | Refer to DEX ID page for details. Supported Dexs: Uniswap v2, Sushiswap, Pancakeswap, Uniswap v3. |
endBlock | String | Last block of the range. |
startBlock | String | Starting block of the range. |
poolAddress* | String | Pool address whose time series is to be fetched. |
/gethistoricaltransactions
Retrieves the transaction details of the Add Liquidity Events that have happened for the poolAddress.User can provide the startBlock and endBlock and fetch the data according to the same.
GET
https://historicaltrade.api.expand.network/dex/gethistoricaltransactions
Query Parameters
Name | Type | Description |
---|---|---|
dexId* | String | Refer to DEX ID page for details. Supported Dexs: Uniswap v2, Sushiswap, Pancakeswap, Uniswap v3. |
endBlock | String | Last block of the range. |
startBlock | String | Starting block of the range. |
poolAddress* | String | Pool address whose transactions is to be fetched. |
/getpoolchartdata
Retrieves the open, close, high and low price for the range of the blockNumbers along with the transaction details if any happened within the specified blockRange which includes blockNumber ,price and the amount of the first and second token for the 30 interval range for the given interval.
GET
https://historicaltrade.api.expand.network/dex/getpoolchartdata
Query Parameters
Name | Type | Description |
---|---|---|
dexId* | String | Refer to DEX ID page for details. Supported Dexs: Uniswap v2, Sushiswap, Uniswap v3. |
interval | String | 15 mins(by default), 30 mins, 60 mins, and 90 mins. |
poolAddress* | String | Pool address whose transactions is to be fetched. |
/getpooltradedata
Retrieves the blockNumber,transactionHash, the values and the data for the given poolAddress and an event Type.User can provide the startBlock and endBlock along with the eventType and fetch the data according to the same.
GET
https://historicaltrade.api.expand.network/dex/getpooltradedata
Query Parameters
Name | Type | Description |
---|---|---|
dexId* | String | Refer to DEX ID page for details. Supported Dexs: Uniswap v2, Sushiswap, Uniswap v3. |
endBlock | String | Last block of the range. |
startBlock | String | Starting block of the range. |
poolAddress* | String | Pool address whose data is to be fetched. |
eventType | String | Transfer, Swap, Burn or Mint(by default). |
Last updated