mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge pull request #1094 from c9s/fix/maxapi/order-updated-at
FIX: use updated_at instead of created_at to convert MAX order to typ…
This commit is contained in:
commit
4586f68fdb
|
@ -188,7 +188,7 @@ func toGlobalOrder(maxOrder max.Order) (*types.Order, error) {
|
|||
Status: toGlobalOrderStatus(maxOrder.State, executedVolume, remainingVolume),
|
||||
ExecutedQuantity: executedVolume,
|
||||
CreationTime: types.Time(maxOrder.CreatedAt.Time()),
|
||||
UpdateTime: types.Time(maxOrder.CreatedAt.Time()),
|
||||
UpdateTime: types.Time(maxOrder.UpdatedAt.Time()),
|
||||
IsMargin: isMargin,
|
||||
IsIsolated: false, // isolated margin is not supported
|
||||
}, nil
|
||||
|
|
|
@ -91,4 +91,5 @@ type Order struct {
|
|||
GroupID uint32 `json:"group_id,omitempty"`
|
||||
ClientOID string `json:"client_oid,omitempty"`
|
||||
CreatedAt types.MillisecondTimestamp `json:"created_at"`
|
||||
UpdatedAt types.MillisecondTimestamp `json:"updated_at"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user