mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-21 00:31:10 +00:00
fix(ftx): should use local symbol in fillResponse
This commit is contained in:
parent
ab8c1ec18c
commit
2fd82ef775
|
@ -270,7 +270,8 @@ func (e *Exchange) QueryTrades(ctx context.Context, symbol string, options *type
|
||||||
if _, ok := tradeIDs[r.TradeId]; ok {
|
if _, ok := tradeIDs[r.TradeId]; ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if r.TradeId <= lastTradeID || r.Time.Before(since) || r.Time.After(until) || r.Market != symbol {
|
|
||||||
|
if r.TradeId <= lastTradeID || r.Time.Before(since) || r.Time.After(until) || r.Market != toLocalSymbol(symbol) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
tradeIDs[r.TradeId] = struct{}{}
|
tradeIDs[r.TradeId] = struct{}{}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user