@@ -112,6 +112,15 @@ type UserUniversalTransferStatusType string
112
112
// FuturesOrderBookHistoryDataType define the futures order book history data types
113
113
type FuturesOrderBookHistoryDataType string
114
114
115
+ // FutureAlgoType define future algo types
116
+ type FuturesAlgoType string
117
+
118
+ // FutureAlgoUrgencyType define future algo urgency type
119
+ type FuturesAlgoUrgencyType string
120
+
121
+ // FutureAlgoOrderStatusType define future algo order status
122
+ type FuturesAlgoOrderStatusType string
123
+
115
124
// Endpoints
116
125
var (
117
126
BaseAPIMainURL = "https://api.binance.com"
@@ -295,6 +304,17 @@ const (
295
304
296
305
FuturesOrderBookHistoryDataTypeTDepth FuturesOrderBookHistoryDataType = "T_DEPTH"
297
306
FuturesOrderBookHistoryDataTypeSDepth FuturesOrderBookHistoryDataType = "S_DEPTH"
307
+
308
+ FuturesAlgoTypeVp FuturesAlgoType = "VP"
309
+ FuturesAlgoTypeTwap FuturesAlgoType = "TWAP"
310
+
311
+ FuturesAlgoUrgencyTypeLow FuturesAlgoUrgencyType = "LOW"
312
+ FuturesAlgoUrgencyTypeMedium FuturesAlgoUrgencyType = "MEDIUM"
313
+ FuturesAlgoUrgencyTypeHigh FuturesAlgoUrgencyType = "HIGH"
314
+
315
+ FuturesAlgoOrderStatusTypeWorking FuturesAlgoOrderStatusType = "WORKING"
316
+ FuturesAlgoOrderStatusTypeFinished FuturesAlgoOrderStatusType = "FINISHED"
317
+ FuturesAlgoOrderStatusTypeCancelled FuturesAlgoOrderStatusType = "CANCELLED"
298
318
)
299
319
300
320
func currentTimestamp () int64 {
@@ -1304,3 +1324,33 @@ func (c *Client) NewSubAccountFuturesAccountV2Service() *SubAccountFuturesAccoun
1304
1324
func (c * Client ) NewFuturesOrderBookHistoryService () * FuturesOrderBookHistoryService {
1305
1325
return & FuturesOrderBookHistoryService {c : c }
1306
1326
}
1327
+
1328
+ // NewCreateFuturesAlgoVpOrderService create futures algo vp order
1329
+ func (c * Client ) NewCreateFuturesAlgoVpOrderService () * CreateFuturesAlgoVpOrderService {
1330
+ return & CreateFuturesAlgoVpOrderService {c : c }
1331
+ }
1332
+
1333
+ // NewCreateFuturesAlgoTwapOrderService create futures algo twap order
1334
+ func (c * Client ) NewCreateFuturesAlgoTwapOrderService () * CreateFuturesAlgoTwapOrderService {
1335
+ return & CreateFuturesAlgoTwapOrderService {c : c }
1336
+ }
1337
+
1338
+ // NewListOpenFuturesAlgoOrdersService list open futures algo orders
1339
+ func (c * Client ) NewListOpenFuturesAlgoOrdersService () * ListOpenFuturesAlgoOrdersService {
1340
+ return & ListOpenFuturesAlgoOrdersService {c : c }
1341
+ }
1342
+
1343
+ // NewListHistoryFuturesAlgoOrdersService list history futures algo orders
1344
+ func (c * Client ) NewListHistoryFuturesAlgoOrdersService () * ListHistoryFuturesAlgoOrdersService {
1345
+ return & ListHistoryFuturesAlgoOrdersService {c : c }
1346
+ }
1347
+
1348
+ // NewCancelFuturesAlgoOrderService cancel future algo order
1349
+ func (c * Client ) NewCancelFuturesAlgoOrderService () * CancelFuturesAlgoOrderService {
1350
+ return & CancelFuturesAlgoOrderService {c : c }
1351
+ }
1352
+
1353
+ // NewGetFuturesAlgoSubOrdersService get futures algo sub orders
1354
+ func (c * Client ) NewGetFuturesAlgoSubOrdersService () * GetFuturesAlgoSubOrdersService {
1355
+ return & GetFuturesAlgoSubOrdersService {c : c }
1356
+ }
0 commit comments