mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
core: document order store options
This commit is contained in:
parent
6591ffad60
commit
1d24af13a8
|
@ -11,11 +11,19 @@ type OrderStore struct {
|
|||
mu sync.Mutex
|
||||
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
|
||||
RemoveFilled bool
|
||||
AddOrderUpdate bool
|
||||
C chan types.Order
|
||||
|
||||
// RemoveFilled removes the fully filled order when receiving a filled order update event
|
||||
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
|
||||
C chan types.Order
|
||||
}
|
||||
|
||||
func NewOrderStore(symbol string) *OrderStore {
|
||||
|
|
Loading…
Reference in New Issue
Block a user