mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
1.1 KiB
1.1 KiB
OrderBookDepth
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| code | int | ||
| message | str | [optional] | |
| asks | List[PriceLevel] | ||
| bids | List[PriceLevel] | ||
| offset | int | ||
| nonce | int |
Example
from lighter.models.order_book_depth import OrderBookDepth
# TODO update the JSON string below
json = "{}"
# create an instance of OrderBookDepth from a JSON string
order_book_depth_instance = OrderBookDepth.from_json(json)
# print the JSON string representation of the object
print(OrderBookDepth.to_json())
# convert the object into a dict
order_book_depth_dict = order_book_depth_instance.to_dict()
# create an instance of OrderBookDepth from a dict
order_book_depth_from_dict = OrderBookDepth.from_dict(order_book_depth_dict)