mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +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"`
|
GroupID uint32 `json:"groupID,omitempty"`
|
||||||
|
|
||||||
MarginSideEffect MarginOrderSideEffectType `json:"marginSideEffect,omitempty"` // AUTO_REPAY = repay, MARGIN_BUY = borrow, defaults to NO_SIDE_EFFECT
|
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 {
|
func (o *SubmitOrder) String() string {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user