mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
add extended margin fields to the order struct
This commit is contained in:
parent
f8a9610222
commit
1c77de031a
|
@ -68,6 +68,11 @@ type SubmitOrder struct {
|
||||||
QuantityString string `json:"-"`
|
QuantityString string `json:"-"`
|
||||||
|
|
||||||
TimeInForce string `json:"timeInForce" db:"time_in_force"` // GTC, IOC, FOK
|
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 {
|
func (o *SubmitOrder) String() string {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user