MarketDepthInfo

Documentation for eth_defi.gmx.market_depth.MarketDepthInfo Python class.

class MarketDepthInfo

Bases: object

Market depth snapshot for a single GMX v2 perpetual market.

Populated from the /markets/info REST endpoint (cached 60 s). All USD values are already divided by 10^30 (the GMX fixed-point precision) and expressed as plain floats.

Pool amounts (long_pool_amount, short_pool_amount) are kept in raw token units as returned by the API, because the conversion to USD requires per-token decimal information.

Attributes summary

market_token_address

market_symbol

index_token_address

long_token_address

short_token_address

long_open_interest_usd

short_open_interest_usd

max_long_open_interest_usd

max_short_open_interest_usd

available_long_oi_usd

available_short_oi_usd

long_pool_amount

short_pool_amount

long_funding_rate

short_funding_rate

long_borrowing_rate

short_borrowing_rate

is_listed

Methods summary

__init__(market_token_address, ...)

__init__(market_token_address, market_symbol, index_token_address, long_token_address, short_token_address, long_open_interest_usd, short_open_interest_usd, max_long_open_interest_usd, max_short_open_interest_usd, available_long_oi_usd, available_short_oi_usd, long_pool_amount, short_pool_amount, long_funding_rate, short_funding_rate, long_borrowing_rate, short_borrowing_rate, is_listed)
Parameters
Return type

None