mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
fix side issue
This commit is contained in:
parent
577caab3f5
commit
c0d0aca3b8
|
@ -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"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user