fix(max): use global trade side here, not string

This commit is contained in:
Jui-Nan Lin 2021-02-07 14:54:06 +08:00
parent 209ef66037
commit 001f0e8c2f

View File

@ -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),