Implement bfxapi/notifications.py in websocket subpackage.

This commit is contained in:
Davide Casale
2023-01-12 18:36:23 +01:00
parent ff58f049a7
commit e64c25bf19
4 changed files with 24 additions and 33 deletions

View File

@@ -2,6 +2,8 @@ from . import typings
from .. labeler import _Serializer
from .. notification import _Notification
#region Serializers definition for Websocket Public Channels
TradingPairTicker = _Serializer[typings.TradingPairTicker]("TradingPairTicker", labels=[
@@ -292,19 +294,4 @@ BalanceInfo = _Serializer[typings.BalanceInfo]("BalanceInfo", labels=[
"AUM_NET",
])
#endregion
#region Serializers definition for Notifications channel
Notification = _Serializer[typings.Notification]("Notification", labels=[
"MTS",
"TYPE",
"MESSAGE_ID",
"_PLACEHOLDER",
"NOTIFY_INFO",
"CODE",
"STATUS",
"TEXT"
])
#endregion