You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// How the order is finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set
126
+
// FinishAs indicates how the order was completed:
127
+
// - filled: all filled
128
+
// - cancelled: manually cancelled
129
+
// - liquidated: cancelled due to liquidation
130
+
// - ioc: time in force is IOC, finished immediately
131
+
// - auto_deleveraged: finished by ADL
132
+
// - reduce_only: cancelled due to increase in position while reduce-only set
133
+
// - position_closed: cancelled due to position close
134
+
// - stp: cancelled due to self trade prevention
135
+
// - _new: order created
136
+
// - _update: order filled, partially filled, or updated
137
+
// - reduce_out: only reduce position, excluding pending orders hard to execute
128
138
FinishAsstring`json:"finish_as,omitempty"`
129
-
// Order status - `open`: waiting to be traded - `finished`: finished
130
-
Statusstring`json:"status,omitempty"`
131
139
// Futures contract
132
140
Contractstring`json:"contract"`
133
141
// Order size. Specify positive number to make a bid, and negative number to ask
@@ -160,6 +168,18 @@ type FuturesOrder struct {
160
168
161
169
StopProfitPricestring`json:"stop_profit_price"`
162
170
StopLossPricestring`json:"stop_loss_price"`
171
+
// StpId represents the ID associated with the self-trade prevention mechanism.
172
+
StpIdint64`json:"stp_id,omitempty"`
173
+
// StpAct represents the self-trade prevention (STP) action:
174
+
// - cn: Cancel newest (keep old orders)
175
+
// - co: Cancel oldest (keep new orders)
176
+
// - cb: Cancel both (cancel both old and new orders)
177
+
// If not provided, defaults to 'cn'. Requires STP group membership; otherwise, an error is returned.
178
+
StpActstring`json:"stp_act,omitempty"`
179
+
// BizInfo represents business-specific information related to the order. The exact content and format can vary depending on the use case.
180
+
BizInfostring`json:"biz_info,omitempty"`
181
+
// AmendText provides the custom data that the user remarked when amending the order
182
+
AmendTextstring`json:"amend_text,omitempty"`
163
183
}
164
184
165
185
typeFuturesUserTradestruct {
@@ -177,6 +197,7 @@ type FuturesUserTrade struct {
0 commit comments