fix(ftx): set lastTradeID from options{} to filter trades

This commit is contained in:
Jui-Nan Lin 2021-05-25 23:14:49 +08:00
parent 2fd82ef775
commit bca57e017b

View File

@ -248,7 +248,7 @@ func (e *Exchange) QueryTrades(ctx context.Context, symbol string, options *type
tradeIDs := make(map[int64]struct{}) tradeIDs := make(map[int64]struct{})
var lastTradeID int64 lastTradeID := options.LastTradeID
var trades []types.Trade var trades []types.Trade
symbol = strings.ToUpper(symbol) symbol = strings.ToUpper(symbol)