@@ -138,19 +138,26 @@ type OpenPositionOptions struct {
138
138
Short bool `json:"-" yaml:"-"`
139
139
140
140
// Leverage is used for leveraged position and account
141
+ // Leverage is not effected when using non-leverage spot account
141
142
Leverage fixedpoint.Value `json:"leverage,omitempty"`
142
143
143
- // Quantity will be used first, it will override the leverage if it's given.
144
+ // Quantity will be used first, it will override the leverage if it's given
144
145
Quantity fixedpoint.Value `json:"quantity,omitempty"`
145
146
146
147
// MarketOrder set to true to open a position with a market order
148
+ // default is MarketOrder = true
147
149
MarketOrder bool `json:"marketOrder,omitempty"`
148
150
149
151
// LimitOrder set to true to open a position with a limit order
150
152
LimitOrder bool `json:"limitOrder,omitempty"`
151
153
152
154
// LimitOrderTakerRatio is used when LimitOrder = true, it adjusts the price of the limit order with a ratio.
153
155
// So you can ensure that the limit order can be a taker order. Higher the ratio, higher the chance it could be a taker order.
156
+ //
157
+ // limitOrderTakerRatio is the price ratio to adjust your limit order as a taker order. e.g., 0.1%
158
+ // for sell order, 0.1% ratio means your final price = price * (1 - 0.1%)
159
+ // for buy order, 0.1% ratio means your final price = price * (1 + 0.1%)
160
+ // this is only enabled when the limitOrder option set to true
154
161
LimitOrderTakerRatio fixedpoint.Value `json:"limitOrderTakerRatio,omitempty"`
155
162
156
163
Price fixedpoint.Value `json:"-" yaml:"-"`
0 commit comments