mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
Merge pull request #1112 from c9s/fix/grids/fee-currency-case
FIX: fix wrong fee currency
This commit is contained in:
commit
da3b0bc3f8
|
@ -226,7 +226,7 @@ func toGlobalTradeV3(t v3.Trade) ([]types.Trade, error) {
|
||||||
bidTrade.Side = types.SideTypeBuy
|
bidTrade.Side = types.SideTypeBuy
|
||||||
bidTrade.OrderID = t.SelfTradeBidOrderID
|
bidTrade.OrderID = t.SelfTradeBidOrderID
|
||||||
bidTrade.Fee = t.SelfTradeBidFee
|
bidTrade.Fee = t.SelfTradeBidFee
|
||||||
bidTrade.FeeCurrency = t.SelfTradeBidFeeCurrency
|
bidTrade.FeeCurrency = toGlobalCurrency(t.SelfTradeBidFeeCurrency)
|
||||||
bidTrade.IsBuyer = !trade.IsBuyer
|
bidTrade.IsBuyer = !trade.IsBuyer
|
||||||
bidTrade.IsMaker = !trade.IsMaker
|
bidTrade.IsMaker = !trade.IsMaker
|
||||||
trades = append(trades, bidTrade)
|
trades = append(trades, bidTrade)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user