parent
5c37e8dae2
commit
d02d173e69
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 701
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceCancelMsg(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 708
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
refid: str = None,
|
||||
sender: str = None,
|
||||
symbol: str = None,
|
||||
) -> None:
|
||||
self.refid = refid
|
||||
self.sender = sender
|
||||
self.symbol = symbol
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('refid', p.UnicodeType, 0),
|
||||
2: ('sender', p.UnicodeType, 0),
|
||||
3: ('symbol', p.UnicodeType, 0),
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceGetAddress(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 700
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
show_display: bool = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.show_display = show_display
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceGetPublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 702
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
show_display: bool = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.show_display = show_display
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('show_display', p.BoolType, 0),
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
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),
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinancePublicKey(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 703
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
public_key: bytes = None,
|
||||
) -> None:
|
||||
self.public_key = public_key
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('public_key', p.BytesType, 0),
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceSignTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 704
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address_n: List[int] = None,
|
||||
msg_count: int = None,
|
||||
account_number: int = None,
|
||||
chain_id: str = None,
|
||||
memo: str = None,
|
||||
sequence: int = None,
|
||||
source: int = None,
|
||||
) -> None:
|
||||
self.address_n = address_n if address_n is not None else []
|
||||
self.msg_count = msg_count
|
||||
self.account_number = account_number
|
||||
self.chain_id = chain_id
|
||||
self.memo = memo
|
||||
self.sequence = sequence
|
||||
self.source = source
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address_n', p.UVarintType, p.FLAG_REPEATED),
|
||||
2: ('msg_count', p.UVarintType, 0),
|
||||
3: ('account_number', p.SVarintType, 0),
|
||||
4: ('chain_id', p.UnicodeType, 0),
|
||||
5: ('memo', p.UnicodeType, 0),
|
||||
6: ('sequence', p.SVarintType, 0),
|
||||
7: ('source', p.SVarintType, 0),
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceSignedTx(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 709
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
signature: bytes = None,
|
||||
public_key: bytes = None,
|
||||
json: str = None,
|
||||
) -> None:
|
||||
self.signature = signature
|
||||
self.public_key = public_key
|
||||
self.json = json
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('signature', p.BytesType, 0),
|
||||
2: ('public_key', p.BytesType, 0),
|
||||
3: ('json', p.UnicodeType, 0),
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .InputOutput import InputOutput
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class BinanceTransferMsg(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 706
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
inputs: List[InputOutput] = None,
|
||||
outputs: List[InputOutput] = None,
|
||||
) -> None:
|
||||
self.inputs = inputs if inputs is not None else []
|
||||
self.outputs = outputs if outputs is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('inputs', InputOutput, p.FLAG_REPEATED),
|
||||
2: ('outputs', InputOutput, p.FLAG_REPEATED),
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class BinanceTxRequest(p.MessageType):
|
||||
MESSAGE_WIRE_TYPE = 705
|
@ -0,0 +1,21 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
|
||||
class Coin(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
amount: int = None,
|
||||
denom: str = None,
|
||||
) -> None:
|
||||
self.amount = amount
|
||||
self.denom = denom
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('amount', p.SVarintType, 0),
|
||||
2: ('denom', p.UnicodeType, 0),
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
import protobuf as p
|
||||
|
||||
from .Coin import Coin
|
||||
|
||||
if __debug__:
|
||||
try:
|
||||
from typing import List
|
||||
except ImportError:
|
||||
List = None # type: ignore
|
||||
|
||||
|
||||
class InputOutput(p.MessageType):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
address: str = None,
|
||||
coins: List[Coin] = None,
|
||||
) -> None:
|
||||
self.address = address
|
||||
self.coins = coins if coins is not None else []
|
||||
|
||||
@classmethod
|
||||
def get_fields(cls):
|
||||
return {
|
||||
1: ('address', p.UnicodeType, 0),
|
||||
2: ('coins', Coin, p.FLAG_REPEATED),
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
SIDE_UNKNOWN = 0
|
||||
BUY = 1
|
||||
SELL = 2
|
@ -0,0 +1,6 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
OT_UNKNOWN = 0
|
||||
MARKET = 1
|
||||
LIMIT = 2
|
||||
OT_RESERVED = 3
|
@ -0,0 +1,6 @@
|
||||
# Automatically generated by pb2py
|
||||
# fmt: off
|
||||
TIF_UNKNOWN = 0
|
||||
GTE = 1
|
||||
TIF_RESERVED = 2
|
||||
IOC = 3
|
@ -1 +1 @@
|
||||
Subproject commit cb238cb1f134accc4200217d9511115a8f61c6cb
|
||||
Subproject commit c5e54d7535c8772b9a75ff90c506a28526f94267
|
Loading…
Reference in new issue