mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +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 {
|
||||
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
|
||||
}
|
||||
tradeIDs[r.TradeId] = struct{}{}
|
||||
|
|
Loading…
Reference in New Issue
Block a user