mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
cf396e3661
This separates the regeneration step from the build/install step. This is to simplify bootstrapping: trezorlib is needed in several build/test steps, and bound to be needed in more. It should be usable and installable straight from the checkout.
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
from .. import protobuf as p
|
|
|
|
|
|
class BinanceOrderMsg(p.MessageType):
|
|
MESSAGE_WIRE_TYPE = 707
|
|
|
|
def __init__(
|
|
self,
|
|
id: str = None,
|
|
ordertype: int = None,
|
|
price: int = None,
|
|
quantity: int = None,
|
|
sender: str = None,
|
|
side: int = None,
|
|
symbol: str = None,
|
|
timeinforce: int = None,
|
|
) -> None:
|
|
self.id = id
|
|
self.ordertype = ordertype
|
|
self.price = price
|
|
self.quantity = quantity
|
|
self.sender = sender
|
|
self.side = side
|
|
self.symbol = symbol
|
|
self.timeinforce = timeinforce
|
|
|
|
@classmethod
|
|
def get_fields(cls):
|
|
return {
|
|
1: ('id', p.UnicodeType, 0),
|
|
2: ('ordertype', p.UVarintType, 0),
|
|
3: ('price', p.SVarintType, 0),
|
|
4: ('quantity', p.SVarintType, 0),
|
|
5: ('sender', p.UnicodeType, 0),
|
|
6: ('side', p.UVarintType, 0),
|
|
7: ('symbol', p.UnicodeType, 0),
|
|
8: ('timeinforce', p.UVarintType, 0),
|
|
}
|