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

@@ -124,8 +124,8 @@ class PublicChannelsHandler(object):
class AuthenticatedChannelsHandler(object):
__abbreviations = {
"os": "order_snapshot", "on": "new_order", "ou": "order_update", "oc": "order_cancel",
"ps": "position_snapshot", "pn": "new_position", "pu": "position_update", "pc": "position_close",
"os": "order_snapshot", "on": "order_new", "ou": "order_update", "oc": "order_cancel",
"ps": "position_snapshot", "pn": "position_new", "pu": "position_update", "pc": "position_close",
"te": "trade_executed", "tu": "trade_execution_update",
"fos": "funding_offer_snapshot", "fon": "funding_offer_new", "fou": "funding_offer_update", "foc": "funding_offer_cancel",
"fcs": "funding_credit_snapshot", "fcn": "funding_credit_new", "fcu": "funding_credit_update", "fcc": "funding_credit_close",