From c0d0aca3b83684068923910fb90efc87998d7641 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 11 Jul 2020 21:44:38 +0800 Subject: [PATCH] fix side issue --- bbgo/exchange/binance/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbgo/exchange/binance/parse.go b/bbgo/exchange/binance/parse.go index cf6f6b2bc..0c4e4660f 100644 --- a/bbgo/exchange/binance/parse.go +++ b/bbgo/exchange/binance/parse.go @@ -94,6 +94,7 @@ func (e *ExecutionReportEvent) Trade() (*types.Trade, error) { Symbol: e.Symbol, Price: util.MustParseFloat(e.LastExecutedPrice), Volume: util.MustParseFloat(e.LastExecutedQuantity), + Side: e.Side, IsBuyer: e.Side == "BUY", IsMaker: e.IsMaker, Time: tt, @@ -280,4 +281,3 @@ type EventBase struct { Event string `json:"e"` // event Time int64 `json:"E"` } -