mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix(max): use global trade side here, not string
This commit is contained in:
parent
209ef66037
commit
001f0e8c2f
|
@ -194,7 +194,7 @@ func convertWebSocketTrade(t max.TradeUpdate) (*types.Trade, error) {
|
|||
Price: price,
|
||||
Quantity: quantity,
|
||||
Side: side,
|
||||
IsBuyer: side == "bid" || side == "buy",
|
||||
IsBuyer: side == types.SideTypeBuy,
|
||||
IsMaker: t.Maker,
|
||||
Fee: fee,
|
||||
FeeCurrency: toGlobalCurrency(t.FeeCurrency),
|
||||
|
|
Loading…
Reference in New Issue
Block a user