max: add warning for the uneffected conditions

This commit is contained in:
c9s 2022-01-24 23:51:53 +08:00
parent 50871c1b61
commit 04a15340bc

View File

@ -178,7 +178,10 @@ func (e *Exchange) QueryClosedOrders(ctx context.Context, symbol string, since,
limit := 1000 // max limit = 1000, default 100 limit := 1000 // max limit = 1000, default 100
orderIDs := make(map[uint64]struct{}, limit*2) orderIDs := make(map[uint64]struct{}, limit*2)
log.Warn("max exchange does not support time-range-based query, we will start from the first record") log.Warn("since/until condition will not be effected on closed orders query, max exchange does not support time-range-based query, we will start from the first record")
if lastOrderID > 0 {
log.Warn("last order id condition will not be effected on max exchange, max exchange does not support last order id query")
}
page := 1 page := 1
for { for {