fix(ftx): should use local symbol in fillResponse

This commit is contained in:
Jui-Nan Lin 2021-05-25 22:43:26 +08:00
parent ab8c1ec18c
commit 2fd82ef775

View File

@ -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{}{}