mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
fix withdraw query order
This commit is contained in:
parent
dbcf35e4a4
commit
75778675e3
|
@ -503,7 +503,8 @@ func (e *Exchange) QueryWithdrawHistory(ctx context.Context, asset string, since
|
|||
if len(withdraws) < limit {
|
||||
startTime = endTime
|
||||
} else {
|
||||
startTime = time.Unix(withdraws[len(withdraws)-1].UpdatedAt, 0)
|
||||
// its in descending order, so we get the first record
|
||||
startTime = time.Unix(withdraws[0].UpdatedAt, 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user