add extended margin fields to the order struct

This commit is contained in:
c9s 2021-01-15 15:11:21 +08:00
parent f8a9610222
commit 1c77de031a

View File

@ -68,6 +68,11 @@ type SubmitOrder struct {
QuantityString string `json:"-"`
TimeInForce string `json:"timeInForce" db:"time_in_force"` // GTC, IOC, FOK
Margin bool `json:"margin"`
IsolatedMargin bool `json:"isolatedMargin"`
IsolatedMarginSymbol string `json:"isolatedMarginSymbol"`
MarginSideEffect string `json:"marginSideEffect"` // AUTO_REPAY, NO_SIDE_EFFECT, MARGIN_BUY
}
func (o *SubmitOrder) String() string {