pool_health

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

This API sends back a pool imbalance metric over the requested last days.

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_health/SOL/KEN5P7p3asnb23Sw6yAmJRGvijfAzso3RqfyLAQhznt/7/12h
http://api.fibonacci.fi/pool_health/ETH/0x3041cbd36888becc7bbcbc0045e3b1f144466f5f/7/12h

Response

{"status": 200, 
"msg": "Success", 
"elapsed_time": 10, 
"last_data_ts": 1688731519.9233088, 
"data": {"0": {"ts": 1688127104, "A_amt": 10957291.253172, "B_amt": 10954510.420383, "PoolHealth": 0.9994924877228715}, 
         "1": {"ts": 1688127568, "A_amt": 10957291.253172, "B_amt": 10954510.420383, "PoolHealth": 0.9994924877228715}, 
         "2": {"ts": 1688128025, "A_amt": 10953024.752549, "B_amt": 10958790.339472, "PoolHealth": 0.9989480462600727}, 
         "3": {"ts": 1688128478, "A_amt": 10953024.752549, "B_amt": 10958790.339472, "PoolHealth": 0.9989480462600727},
         ...}
}

Last updated