mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Change event trade_executed to trade_execution (and update references).
This commit is contained in:
@@ -16,7 +16,7 @@ class AuthenticatedEventsHandler:
|
||||
"fon": "funding_offer_new", "fou": "funding_offer_update", "foc": "funding_offer_cancel",
|
||||
"fcn": "funding_credit_new", "fcu": "funding_credit_update", "fcc": "funding_credit_close",
|
||||
"fln": "funding_loan_new", "flu": "funding_loan_update", "flc": "funding_loan_close",
|
||||
"te": "trade_executed", "tu": "trade_execution_update", "wu": "wallet_update",
|
||||
"te": "trade_execution", "tu": "trade_execution_update", "wu": "wallet_update",
|
||||
"bu": "balance_update"
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ class PublicChannelsHandler:
|
||||
|
||||
EVENTS = [
|
||||
*ONCE_PER_SUBSCRIPTION_EVENTS,
|
||||
"t_ticker_update", "f_ticker_update", "t_trade_executed",
|
||||
"t_trade_execution_update", "f_trade_executed", "f_trade_execution_update",
|
||||
"t_ticker_update", "f_ticker_update", "t_trade_execution",
|
||||
"t_trade_execution_update", "f_trade_execution", "f_trade_execution_update",
|
||||
"t_book_update", "f_book_update", "t_raw_book_update",
|
||||
"f_raw_book_update", "candles_update", "derivatives_status_update"
|
||||
]
|
||||
@@ -71,14 +71,14 @@ class PublicChannelsHandler:
|
||||
if (event := stream[0]) and event in [ "te", "tu", "fte", "ftu" ]:
|
||||
if subscription["symbol"].startswith("t"):
|
||||
return self.__emit(
|
||||
{ "te": "t_trade_executed", "tu": "t_trade_execution_update" }[event],
|
||||
{ "te": "t_trade_execution", "tu": "t_trade_execution_update" }[event],
|
||||
subscription,
|
||||
serializers.TradingPairTrade.parse(*stream[1])
|
||||
)
|
||||
|
||||
if subscription["symbol"].startswith("f"):
|
||||
return self.__emit(
|
||||
{ "fte": "f_trade_executed", "ftu": "f_trade_execution_update" }[event],
|
||||
{ "fte": "f_trade_execution", "ftu": "f_trade_execution_update" }[event],
|
||||
subscription,
|
||||
serializers.FundingCurrencyTrade.parse(*stream[1])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user