mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
Merge pull request #126 from jnlin/fix/pnl-amount
fix(max): use global trade side here, not string
This commit is contained in:
commit
78750c6e48
|
@ -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