Add Flags enumeration to enums.py. Rename new_order and new_position to order_new and position_new to mantain consistency. Add _BfxWebsocketInputs class with order_new, order_update and order_cancel inputs.

This commit is contained in:
Davide Casale
2022-11-29 15:26:02 +01:00
parent fa073823ce
commit b308bbacbd
3 changed files with 30 additions and 7 deletions

View File

@@ -7,6 +7,14 @@ class Channels(str, Enum):
CANDLES = "candles"
STATUS = "status"
class Flags(int, Enum):
HIDDEN = 64
CLOSE = 512
REDUCE_ONLY = 1024
POST_ONLY = 4096
OCO = 16384
NO_VAR_RATES = 524288
class Errors(int, Enum):
ERR_UNK = 10000
ERR_GENERIC = 10001