mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
types: extend order fields for futures
This commit is contained in:
parent
b71d0f5b6e
commit
20e61d5b5c
|
@ -114,6 +114,10 @@ type SubmitOrder struct {
|
|||
GroupID uint32 `json:"groupID,omitempty"`
|
||||
|
||||
MarginSideEffect MarginOrderSideEffectType `json:"marginSideEffect,omitempty"` // AUTO_REPAY = repay, MARGIN_BUY = borrow, defaults to NO_SIDE_EFFECT
|
||||
|
||||
// futures order fields
|
||||
ReduceOnly bool `json:"reduceOnly" db:"reduce_only"`
|
||||
ClosePosition bool `json:"closePosition" db:"close_position"`
|
||||
}
|
||||
|
||||
func (o *SubmitOrder) String() string {
|
||||
|
|
Loading…
Reference in New Issue
Block a user