getLpTokenView
GET https://api.covalenthq.com/v1/:chainName/xyk/:dexName/tokens/address/:tokenAddress/view/?quote-currency=
Returns: NetworkExchangeTokenViewResponse{
"updated_at" : "{{DATETIME}}",
"chain_id" : "{{INTEGER}}",
"chain_name" : "{{STRING}}",
"items" : [ {
"chain_name" : "{{STRING}}",
"chain_id" : "{{STRING}}",
"dex_name" : "{{STRING}}",
"contract_address" : "{{STRING}}",
"contract_name" : "{{STRING}}",
"total_liquidity" : "{{SAFELONG}}",
"total_volume24h" : "{{SAFELONG}}",
"logo_url" : "{{STRING}}",
"contract_ticker_symbol" : "{{STRING}}",
"contract_decimals" : "{{INTEGER}}",
"swap_count24h" : "{{INTEGER}}",
"quote_rate" : "{{DOUBLE}}",
"quote_rate24h" : "{{DOUBLE}}",
"pretty_quote_rate" : "{{STRING}}",
"pretty_quote_rate24h" : "{{STRING}}",
"pretty_total_liquidity_quote" : "{{STRING}}",
"pretty_total_volume24h_quote" : "{{STRING}}",
"total_liquidity_quote" : "{{DOUBLE}}",
"total_volume24h_quote" : "{{DOUBLE}}",
"transactions24h" : "{{SAFELONG}}",
"volume_timeseries7d" : [ {
"dex_name" : "{{STRING}}",
"chain_id" : "{{STRING}}",
"dt" : "{{STRING}}",
"total_volume" : "{{STRING}}",
"volume_quote" : "{{DOUBLE}}",
"pretty_volume_quote" : "{{STRING}}"
} ],
"volume_timeseries30d" : [ "{{VolumeTokenTimeseries}}" ],
"liquidity_timeseries7d" : [ {
"dex_name" : "{{STRING}}",
"chain_id" : "{{STRING}}",
"dt" : "{{STRING}}",
"total_liquidity" : "{{STRING}}",
"liquidity_quote" : "{{DOUBLE}}",
"pretty_liquidity_quote" : "{{STRING}}"
} ],
"liquidity_timeseries30d" : [ "{{LiquidityTokenTimeseries}}" ],
"price_timeseries7d" : [ {
"dex_name" : "{{STRING}}",
"chain_id" : "{{STRING}}",
"dt" : "{{STRING}}",
"quote_currency" : "{{STRING}}",
"quote_rate" : "{{DOUBLE}}",
"pretty_quote_rate" : "{{STRING}}"
} ],
"price_timeseries30d" : [ "{{PriceTokenTimeseries}}" ]
} ],
"pagination" : {
"has_more" : "{{BOOLEAN}}",
"page_number" : "{{INTEGER}}",
"page_size" : "{{INTEGER}}",
"total_count" : "{{INTEGER}}"
}
}
Body
PARAM
Key | Datatype | Required | Description |
quote-currency
|
null |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string |
RESPONSES
status
ENDPOINTS