22 lines
601 B
Python
22 lines
601 B
Python
from construct import Bytes, Int64ul, Padding
|
|
from construct import Struct as cStruct
|
|
|
|
from .account_flags import ACCOUNT_FLAGS_LAYOUT
|
|
|
|
OPEN_ORDERS_LAYOUT = cStruct(
|
|
Padding(5),
|
|
"account_flags" / ACCOUNT_FLAGS_LAYOUT,
|
|
"market" / Bytes(32),
|
|
"owner" / Bytes(32),
|
|
"base_token_free" / Int64ul,
|
|
"base_token_total" / Int64ul,
|
|
"quote_token_free" / Int64ul,
|
|
"quote_token_total" / Int64ul,
|
|
"free_slot_bits" / Bytes(16),
|
|
"is_bid_bits" / Bytes(16),
|
|
"orders" / Bytes(16)[128],
|
|
"client_ids" / Int64ul[128],
|
|
"referrer_rebate_accrued" / Int64ul,
|
|
Padding(7),
|
|
)
|