mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
1.3 KiB
1.3 KiB
MarketInfo
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| market_id | int | ||
| index_price | str | ||
| mark_price | str | ||
| open_interest | str | ||
| last_trade_price | str | ||
| current_funding_rate | str | ||
| funding_rate | str | ||
| funding_timestamp | int | ||
| daily_base_token_volume | float | ||
| daily_quote_token_volume | float | ||
| daily_price_low | float | ||
| daily_price_high | float | ||
| daily_price_change | float |
Example
from lighter.models.market_info import MarketInfo
# TODO update the JSON string below
json = "{}"
# create an instance of MarketInfo from a JSON string
market_info_instance = MarketInfo.from_json(json)
# print the JSON string representation of the object
print(MarketInfo.to_json())
# convert the object into a dict
market_info_dict = market_info_instance.to_dict()
# create an instance of MarketInfo from a dict
market_info_from_dict = MarketInfo.from_dict(market_info_dict)