instant_beta

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

This API can be used to calculate the beta of a given asset against a given benchmark. The benchmark is suggested to be BTC if looking to measure against the market.

Path Parameters

NameTypeDescription

chain*

String

Indicates the blockchain network to use (ETH or SOL)

coin1*

String

Indicates the token address of the second asset, for which the beta is calculated. Example: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"

coin2*

Integer

Indicates the token address of the benchmark asset. BTC recommended. Example: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"

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

http://api.fibonacci.fi/instant_beta/ETH/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599/7/15m

Response

{"status": 200, "msg": "Success", "elapsed_time": 10, "last_data_ts": 1686128622.9145458, "data": [{"first_datapoint_timestamp": 1685536809.0, "Number_of_datapoints_used": 19727.0, "beta_positive_ret": -7.399904303530689e-07, "beta_negative_ret": 1.34560309351109e-08, "beta_general": 9.257058220899994e-09}], "granularity": "15m"}

Last updated