histo_slippage

GET http://api.fibonacci.fi/histo_slippage/{chain}/{coin1}/{coin2}/{timeperiod}/{granularity}

This API can be used to retrieve historical on-chain slippages for particular assets.

Path Parameters

NameTypeDescription

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: "5m", "15m", "30m", "1h", "3h", "6h", "12h", "1D"

Example

Request

http://api.fibonacci.fi/histo_slippage/SOL/So11111111111111111111111111111111111111112/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/7/12h
http://api.fibonacci.fi/histo_slippage/ETH/0xD533a949740bb3306d119CC777fa900bA034cd52/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/10/15m

Response

{"status": 200, "msg": "Success", "elapsed_time": 10, "last_data_ts": 1686128048.395342, "data": [
{"ts": 1685491768.0, "-6000000": 60.19108280254777, "-3000000": 38.419853439251185, "-1000000": 3.8646414151124797, "-750000": 2.7993779160186527, "-500000": 1.671583087512285, "-250000": 0.7838079174521284, "-100000": 0.32891458187980227, "-50000": 0.21951706246258196, "-10000": 0.08991907283444345, "10000": 0.04, "50000": 0.13, "100000": 0.17, "250000": 0.31, "500000": 0.49, "750000": 0.93, "1000000": 2.15, "3000000": 39.98, "6000000": 150.75, "Price": 21.26297432140759}, 
{"ts": 1685492270.0, "-6000000": 60.19108280254777, "-3000000": 38.408474993840855, "-1000000": 4.324531190202818, "-750000": 3.1945788964181876, "-500000": 1.8934562935347898, "-250000": 0.8821488750123785, "-100000": 0.35870864886409226, "-50000": 0.23942537909017458, "-10000": 0.1198561725929026, "10000": 0.03, "50000": 0.12, "100000": 0.18, "250000": 0.31, "500000": 0.52, "750000": 0.98, "1000000": 2.17, "3000000": 40.13, "6000000": 151.13, "Price": 21.220160952374403}, 
{"ts": 1685492787.0, "-6000000": 60.168883932127784, "-3000000": 38.3705164550721, "-1000000": 4.324531190202818, "-750000": 3.100775193798455, "-500000": 1.9415571680721722, "-250000": 0.9214306945407813, "-100000": 0.3090419698933422, "-50000": 0.1796765821521329, "-10000": 0.06995103427599458, "10000": 0.05, "50000": 0.13, "100000": 0.18, "250000": 0.3, "500000": 0.51, "750000": 0.96, "1000000": 2.15, "3000000": 40.21, "6000000": 151.36, "Price": 21.19318837362032},

Last updated