onchain_histo_price
GET
http://api.fibonacci.fi/onchain_histo_price/{chain}/{coin1}/{coin2}/{timeperiod}/{granularity}
This API retrieves historical price data for a specified token pair on a specified chain using relevant AMM data.
Path Parameters
Name | Type | Description |
---|---|---|
chain* | String | Indicates the blockchain network to use (ETH or SOL) |
coin1* | String | Indicates the token address of the first asset. Example: "So11111111111111111111111111111111111111112" |
coin2* | Integer | Indicates the token address of the second asset. Must be the token ID of USDC on the relevant chain. Example for SOL: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" |
timeperiod* | String | Indicates the number of days to perform the operation over |
granularity* | String | Indicates with what frequency the data is gathered. Available parameters : "1h", "3h", "6h", "12h", "1D". |
Example
Request
Response
Last updated