mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
service: use created_at field to sort the orders
Signed-off-by: c9s <yoanlin93@gmail.com>
This commit is contained in:
parent
2c96d079b8
commit
8c1198de83
|
@ -94,7 +94,7 @@ func SelectLastOrders(ex types.ExchangeName, symbol string, isMargin, isFutures,
|
|||
sq.Eq{"is_futures": isFutures},
|
||||
sq.Eq{"is_isolated": isIsolated},
|
||||
}).
|
||||
OrderBy("gid DESC").
|
||||
OrderBy("created_at DESC").
|
||||
Limit(limit)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user