LP Tokens Price End-points
This section provides all the needed information about how to request the data to the LP Tokens Price API
getLpTokenPrice
Get USD price of a given LP Token for a given time or block number
GET
https://api-v1.mymerlin.io/api/merlin/public/lp-token/price?address={address}&chain={chain}&blockNumber={blockNumber}
Returning a LP Token's price: real-time current price or historical price at a point in time, specified by either the block number or the time in Unix timestamp format.
Query Parameters
Name | Type | Description |
---|---|---|
address* | long | LP Token address |
timestamp | string | Unix timestamp. If set, returning the LP Token's historical price at the given time in the past. If empty, returning real-time price of the LP Token (current price). For historical price, use either |
chain* | string | Chain name |
blockNumber | long | Block number. If set, returning the LP Token's historical price at the given block. If empty, returning real-time price of the LP Token (current price). For historical price, use either |
Last updated