mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
core: document order store options
This commit is contained in:
parent
6591ffad60
commit
1d24af13a8
|
@ -12,8 +12,16 @@ type OrderStore struct {
|
||||||
orders map[uint64]types.Order
|
orders map[uint64]types.Order
|
||||||
|
|
||||||
Symbol string
|
Symbol string
|
||||||
|
|
||||||
|
// RemoveCancelled removes the canceled order when receiving a cancel order update event
|
||||||
|
// It also removes the order even if it's partially filled
|
||||||
|
// by default, only 0 filled canceled order will be removed.
|
||||||
RemoveCancelled bool
|
RemoveCancelled bool
|
||||||
|
|
||||||
|
// RemoveFilled removes the fully filled order when receiving a filled order update event
|
||||||
RemoveFilled bool
|
RemoveFilled bool
|
||||||
|
|
||||||
|
// AddOrderUpdate adds the order into the store when receiving an order update when the order does not exist in the current store.
|
||||||
AddOrderUpdate bool
|
AddOrderUpdate bool
|
||||||
C chan types.Order
|
C chan types.Order
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user