pool_composition

AMMs supported : Raydium v2, Raydium v3, Orca Whirlpools, Curve, Uniswap v2, Balancer

For Orca Whirlpools and Raydium v3 pools (concentrated liquidity), a full distribution of the liquidity over the time period is returned

GET http://api.fibonacci.fi/pool_composition/{chain}/{poolid}/{timeperiod}/{granularity}

This API retrieves the historical composition of a particular pool, on SOL or ETH. It also returns the historical liquidity distribution if the pool requested is a CL pool

Path Parameters

NameTypeDescription

chain*

String

indicates the blockchain network to use ("ETH", "SOL")

poolid*

String

indicates the pool id to use for the backtesting (e.g. "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", corresponds to ethusdc)

timeperiod*

Integer

Indicates the number of days to perform the backtesting 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/pool_composition/SOL/KEN5P7p3asnb23Sw6yAmJRGvijfAzso3RqfyLAQhznt/3/10

Response

{"status": 200, "msg": "Success pool_composition SOL KEN5P7p3asnb23Sw6yAmJRGvijfAzso3RqfyLAQhznt", "elapsed_time": 10, "last_data_ts": 1686129560.5367887, "data": {"0": {"ts": 1686024111, "A_amt": 1196596.005908, "B_amt": 1188266.603929}, "1": {"ts": 1686025505, "A_amt": 1196596.005908, "B_amt": 1188266.603929}, "2": {"ts": 1686026434, "A_amt": 1209695.783695, "B_amt": 1175167.730147}, "3": {"ts": 1686026867, "A_amt": 1209695.783695, "B_amt": 1175167.776489}, "4": {"ts": 1686027827, "A_amt": 1213818.12158, "B_amt": 1171045.907186}, "5": {"ts": 1686028765, "A_amt": 1213796.614953, "B_amt": 1171067.458532}, "6": {"ts": 1686029703, "A_amt": 1213796.614953, "B_amt": 1171067.551469}, "7": {"ts": 1686030698, "A_amt": 1213696.607032, "B_amt": 1171167.644317}, "8": {"ts": 1686039264, "A_amt": 1200326.67926, "B_amt": 1184537.863169}, "9": {"ts": 1686040232, "A_amt": 1200326.67926, "B_amt": 1184537.955981},...

Last updated