types: extend order fields for futures

This commit is contained in:
c9s 2021-12-05 15:26:09 +08:00
parent b71d0f5b6e
commit 20e61d5b5c

View File

@ -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 {