From fa0cb1e85f6859708c915702c6cfa3fbaf59355e Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 1 Jun 2023 12:17:11 +0800 Subject: [PATCH] binance: document balanceUpdate event --- pkg/exchange/binance/parse.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/exchange/binance/parse.go b/pkg/exchange/binance/parse.go index 499fca948..b2990d977 100644 --- a/pkg/exchange/binance/parse.go +++ b/pkg/exchange/binance/parse.go @@ -165,7 +165,12 @@ func (e *ExecutionReportEvent) Trade() (*types.Trade, error) { } /* -balanceUpdate +event: balanceUpdate + +Balance Update occurs during the following: + +Deposits or withdrawals from the account +Transfer of funds between accounts (e.g. Spot to Margin) { "e": "balanceUpdate", //KLineEvent Type @@ -174,6 +179,8 @@ balanceUpdate "d": "100.00000000", //Balance Delta "T": 1573200697068 //Clear Time } + +This event is only for Spot */ type BalanceUpdateEvent struct { EventBase