| Name |
Type |
Description |
Notes |
| trade_id |
int |
|
|
| tx_hash |
str |
|
|
| type |
str |
|
|
| market_id |
int |
|
|
| size |
str |
|
|
| price |
str |
|
|
| usd_amount |
str |
|
|
| ask_id |
int |
|
|
| bid_id |
int |
|
|
| ask_client_id |
int |
|
|
| bid_client_id |
int |
|
|
| ask_account_id |
int |
|
|
| bid_account_id |
int |
|
|
| is_maker_ask |
bool |
|
|
| block_height |
int |
|
|
| timestamp |
int |
|
|
| taker_fee |
int |
|
|
| taker_position_size_before |
str |
|
|
| taker_entry_quote_before |
str |
|
|
| taker_initial_margin_fraction_before |
int |
|
|
| taker_position_sign_changed |
bool |
|
|
| maker_fee |
int |
|
|
| maker_position_size_before |
str |
|
|
| maker_entry_quote_before |
str |
|
|
| maker_initial_margin_fraction_before |
int |
|
|
| maker_position_sign_changed |
bool |
|
|
| transaction_time |
int |
|
|
| ask_account_pnl |
str |
|
|
| bid_account_pnl |
str |
|
|
from lighter.models.trade import Trade
# TODO update the JSON string below
json = "{}"
# create an instance of Trade from a JSON string
trade_instance = Trade.from_json(json)
# print the JSON string representation of the object
print(Trade.to_json())
# convert the object into a dict
trade_dict = trade_instance.to_dict()
# create an instance of Trade from a dict
trade_from_dict = Trade.from_dict(trade_dict)
[Back to Model list] [Back to API list] [Back to README]