binance-sdk-derivatives-trading-portfolio-margin 1.2.0__py3-none-any.whl → 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of binance-sdk-derivatives-trading-portfolio-margin might be problematic. Click here for more details.

@@ -8,7 +8,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
8
  Do not edit the class manually.
9
9
  """
10
10
 
11
- from typing import Optional
11
+ from typing import Optional, Union
12
12
  from requests import Session
13
13
  from binance_common.configuration import ConfigurationRestAPI
14
14
  from binance_common.errors import RequiredError
@@ -132,7 +132,7 @@ class TradeApi:
132
132
 
133
133
  def cancel_all_cm_open_conditional_orders(
134
134
  self,
135
- symbol: str = None,
135
+ symbol: Union[str, None],
136
136
  recv_window: Optional[int] = None,
137
137
  ) -> ApiResponse[CancelAllCmOpenConditionalOrdersResponse]:
138
138
  """
@@ -145,8 +145,8 @@ class TradeApi:
145
145
  Weight: 1
146
146
 
147
147
  Args:
148
- symbol (str):
149
- recv_window (Optional[int]):
148
+ symbol (Union[str, None]):
149
+ recv_window (Optional[int] = None):
150
150
 
151
151
  Returns:
152
152
  ApiResponse[CancelAllCmOpenConditionalOrdersResponse]
@@ -177,7 +177,7 @@ class TradeApi:
177
177
 
178
178
  def cancel_all_cm_open_orders(
179
179
  self,
180
- symbol: str = None,
180
+ symbol: Union[str, None],
181
181
  recv_window: Optional[int] = None,
182
182
  ) -> ApiResponse[CancelAllCmOpenOrdersResponse]:
183
183
  """
@@ -190,8 +190,8 @@ class TradeApi:
190
190
  Weight: 1
191
191
 
192
192
  Args:
193
- symbol (str):
194
- recv_window (Optional[int]):
193
+ symbol (Union[str, None]):
194
+ recv_window (Optional[int] = None):
195
195
 
196
196
  Returns:
197
197
  ApiResponse[CancelAllCmOpenOrdersResponse]
@@ -222,7 +222,7 @@ class TradeApi:
222
222
 
223
223
  def cancel_all_um_open_conditional_orders(
224
224
  self,
225
- symbol: str = None,
225
+ symbol: Union[str, None],
226
226
  recv_window: Optional[int] = None,
227
227
  ) -> ApiResponse[CancelAllUmOpenConditionalOrdersResponse]:
228
228
  """
@@ -235,8 +235,8 @@ class TradeApi:
235
235
  Weight: 1
236
236
 
237
237
  Args:
238
- symbol (str):
239
- recv_window (Optional[int]):
238
+ symbol (Union[str, None]):
239
+ recv_window (Optional[int] = None):
240
240
 
241
241
  Returns:
242
242
  ApiResponse[CancelAllUmOpenConditionalOrdersResponse]
@@ -267,7 +267,7 @@ class TradeApi:
267
267
 
268
268
  def cancel_all_um_open_orders(
269
269
  self,
270
- symbol: str = None,
270
+ symbol: Union[str, None],
271
271
  recv_window: Optional[int] = None,
272
272
  ) -> ApiResponse[CancelAllUmOpenOrdersResponse]:
273
273
  """
@@ -280,8 +280,8 @@ class TradeApi:
280
280
  Weight: 1
281
281
 
282
282
  Args:
283
- symbol (str):
284
- recv_window (Optional[int]):
283
+ symbol (Union[str, None]):
284
+ recv_window (Optional[int] = None):
285
285
 
286
286
  Returns:
287
287
  ApiResponse[CancelAllUmOpenOrdersResponse]
@@ -312,7 +312,7 @@ class TradeApi:
312
312
 
313
313
  def cancel_cm_conditional_order(
314
314
  self,
315
- symbol: str = None,
315
+ symbol: Union[str, None],
316
316
  strategy_id: Optional[int] = None,
317
317
  new_client_strategy_id: Optional[str] = None,
318
318
  recv_window: Optional[int] = None,
@@ -329,10 +329,10 @@ class TradeApi:
329
329
  Weight: 1
330
330
 
331
331
  Args:
332
- symbol (str):
333
- strategy_id (Optional[int]):
334
- new_client_strategy_id (Optional[str]):
335
- recv_window (Optional[int]):
332
+ symbol (Union[str, None]):
333
+ strategy_id (Optional[int] = None):
334
+ new_client_strategy_id (Optional[str] = None):
335
+ recv_window (Optional[int] = None):
336
336
 
337
337
  Returns:
338
338
  ApiResponse[CancelCmConditionalOrderResponse]
@@ -368,7 +368,7 @@ class TradeApi:
368
368
 
369
369
  def cancel_cm_order(
370
370
  self,
371
- symbol: str = None,
371
+ symbol: Union[str, None],
372
372
  order_id: Optional[int] = None,
373
373
  orig_client_order_id: Optional[str] = None,
374
374
  recv_window: Optional[int] = None,
@@ -385,10 +385,10 @@ class TradeApi:
385
385
  Weight: 1
386
386
 
387
387
  Args:
388
- symbol (str):
389
- order_id (Optional[int]):
390
- orig_client_order_id (Optional[str]):
391
- recv_window (Optional[int]):
388
+ symbol (Union[str, None]):
389
+ order_id (Optional[int] = None):
390
+ orig_client_order_id (Optional[str] = None):
391
+ recv_window (Optional[int] = None):
392
392
 
393
393
  Returns:
394
394
  ApiResponse[CancelCmOrderResponse]
@@ -424,7 +424,7 @@ class TradeApi:
424
424
 
425
425
  def cancel_margin_account_all_open_orders_on_a_symbol(
426
426
  self,
427
- symbol: str = None,
427
+ symbol: Union[str, None],
428
428
  recv_window: Optional[int] = None,
429
429
  ) -> ApiResponse[CancelMarginAccountAllOpenOrdersOnASymbolResponse]:
430
430
  """
@@ -437,8 +437,8 @@ class TradeApi:
437
437
  Weight: 5
438
438
 
439
439
  Args:
440
- symbol (str):
441
- recv_window (Optional[int]):
440
+ symbol (Union[str, None]):
441
+ recv_window (Optional[int] = None):
442
442
 
443
443
  Returns:
444
444
  ApiResponse[CancelMarginAccountAllOpenOrdersOnASymbolResponse]
@@ -469,7 +469,7 @@ class TradeApi:
469
469
 
470
470
  def cancel_margin_account_oco_orders(
471
471
  self,
472
- symbol: str = None,
472
+ symbol: Union[str, None],
473
473
  order_list_id: Optional[int] = None,
474
474
  list_client_order_id: Optional[str] = None,
475
475
  new_client_order_id: Optional[str] = None,
@@ -487,11 +487,11 @@ class TradeApi:
487
487
  Weight: 2
488
488
 
489
489
  Args:
490
- symbol (str):
491
- order_list_id (Optional[int]): Either `orderListId` or `listClientOrderId` must be provided
492
- list_client_order_id (Optional[str]): Either `orderListId` or `listClientOrderId` must be provided
493
- new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
494
- recv_window (Optional[int]):
490
+ symbol (Union[str, None]):
491
+ order_list_id (Optional[int] = None): Either `orderListId` or `listClientOrderId` must be provided
492
+ list_client_order_id (Optional[str] = None): Either `orderListId` or `listClientOrderId` must be provided
493
+ new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
494
+ recv_window (Optional[int] = None):
495
495
 
496
496
  Returns:
497
497
  ApiResponse[CancelMarginAccountOcoOrdersResponse]
@@ -528,7 +528,7 @@ class TradeApi:
528
528
 
529
529
  def cancel_margin_account_order(
530
530
  self,
531
- symbol: str = None,
531
+ symbol: Union[str, None],
532
532
  order_id: Optional[int] = None,
533
533
  orig_client_order_id: Optional[str] = None,
534
534
  new_client_order_id: Optional[str] = None,
@@ -546,11 +546,11 @@ class TradeApi:
546
546
  Weight: 2
547
547
 
548
548
  Args:
549
- symbol (str):
550
- order_id (Optional[int]):
551
- orig_client_order_id (Optional[str]):
552
- new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
553
- recv_window (Optional[int]):
549
+ symbol (Union[str, None]):
550
+ order_id (Optional[int] = None):
551
+ orig_client_order_id (Optional[str] = None):
552
+ new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
553
+ recv_window (Optional[int] = None):
554
554
 
555
555
  Returns:
556
556
  ApiResponse[CancelMarginAccountOrderResponse]
@@ -587,7 +587,7 @@ class TradeApi:
587
587
 
588
588
  def cancel_um_conditional_order(
589
589
  self,
590
- symbol: str = None,
590
+ symbol: Union[str, None],
591
591
  strategy_id: Optional[int] = None,
592
592
  new_client_strategy_id: Optional[str] = None,
593
593
  recv_window: Optional[int] = None,
@@ -604,10 +604,10 @@ class TradeApi:
604
604
  Weight: 1
605
605
 
606
606
  Args:
607
- symbol (str):
608
- strategy_id (Optional[int]):
609
- new_client_strategy_id (Optional[str]):
610
- recv_window (Optional[int]):
607
+ symbol (Union[str, None]):
608
+ strategy_id (Optional[int] = None):
609
+ new_client_strategy_id (Optional[str] = None):
610
+ recv_window (Optional[int] = None):
611
611
 
612
612
  Returns:
613
613
  ApiResponse[CancelUmConditionalOrderResponse]
@@ -643,7 +643,7 @@ class TradeApi:
643
643
 
644
644
  def cancel_um_order(
645
645
  self,
646
- symbol: str = None,
646
+ symbol: Union[str, None],
647
647
  order_id: Optional[int] = None,
648
648
  orig_client_order_id: Optional[str] = None,
649
649
  recv_window: Optional[int] = None,
@@ -660,10 +660,10 @@ class TradeApi:
660
660
  Weight: 1
661
661
 
662
662
  Args:
663
- symbol (str):
664
- order_id (Optional[int]):
665
- orig_client_order_id (Optional[str]):
666
- recv_window (Optional[int]):
663
+ symbol (Union[str, None]):
664
+ order_id (Optional[int] = None):
665
+ orig_client_order_id (Optional[str] = None):
666
+ recv_window (Optional[int] = None):
667
667
 
668
668
  Returns:
669
669
  ApiResponse[CancelUmOrderResponse]
@@ -726,13 +726,13 @@ class TradeApi:
726
726
  Weight: 20 with symbol, 40 with pair
727
727
 
728
728
  Args:
729
- symbol (Optional[str]):
730
- pair (Optional[str]):
731
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
732
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
733
- from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
734
- limit (Optional[int]): Default 100; max 1000
735
- recv_window (Optional[int]):
729
+ symbol (Optional[str] = None):
730
+ pair (Optional[str] = None):
731
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
732
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
733
+ from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
734
+ limit (Optional[int] = None): Default 100; max 1000
735
+ recv_window (Optional[int] = None):
736
736
 
737
737
  Returns:
738
738
  ApiResponse[CmAccountTradeListResponse]
@@ -785,8 +785,8 @@ class TradeApi:
785
785
  Weight: 5
786
786
 
787
787
  Args:
788
- symbol (Optional[str]):
789
- recv_window (Optional[int]):
788
+ symbol (Optional[str] = None):
789
+ recv_window (Optional[int] = None):
790
790
 
791
791
  Returns:
792
792
  ApiResponse[CmPositionAdlQuantileEstimationResponse]
@@ -824,7 +824,7 @@ class TradeApi:
824
824
  Weight: 30
825
825
 
826
826
  Args:
827
- recv_window (Optional[int]):
827
+ recv_window (Optional[int] = None):
828
828
 
829
829
  Returns:
830
830
  ApiResponse[GetUmFuturesBnbBurnStatusResponse]
@@ -850,8 +850,8 @@ class TradeApi:
850
850
 
851
851
  def margin_account_borrow(
852
852
  self,
853
- asset: str = None,
854
- amount: float = None,
853
+ asset: Union[str, None],
854
+ amount: Union[float, None],
855
855
  recv_window: Optional[int] = None,
856
856
  ) -> ApiResponse[MarginAccountBorrowResponse]:
857
857
  """
@@ -864,9 +864,9 @@ class TradeApi:
864
864
  Weight: 100
865
865
 
866
866
  Args:
867
- asset (str):
868
- amount (float):
869
- recv_window (Optional[int]):
867
+ asset (Union[str, None]):
868
+ amount (Union[float, None]):
869
+ recv_window (Optional[int] = None):
870
870
 
871
871
  Returns:
872
872
  ApiResponse[MarginAccountBorrowResponse]
@@ -901,11 +901,11 @@ class TradeApi:
901
901
 
902
902
  def margin_account_new_oco(
903
903
  self,
904
- symbol: str = None,
905
- side: MarginAccountNewOcoSideEnum = None,
906
- quantity: float = None,
907
- price: float = None,
908
- stop_price: float = None,
904
+ symbol: Union[str, None],
905
+ side: Union[MarginAccountNewOcoSideEnum, None],
906
+ quantity: Union[float, None],
907
+ price: Union[float, None],
908
+ stop_price: Union[float, None],
909
909
  list_client_order_id: Optional[str] = None,
910
910
  limit_client_order_id: Optional[str] = None,
911
911
  limit_iceberg_qty: Optional[float] = None,
@@ -938,21 +938,21 @@ class TradeApi:
938
938
  Weight: 1
939
939
 
940
940
  Args:
941
- symbol (str):
942
- side (MarginAccountNewOcoSideEnum):
943
- quantity (float): Order quantity
944
- price (float):
945
- stop_price (float):
946
- list_client_order_id (Optional[str]): Either `orderListId` or `listClientOrderId` must be provided
947
- limit_client_order_id (Optional[str]): A unique Id for the limit order
948
- limit_iceberg_qty (Optional[float]):
949
- stop_client_order_id (Optional[str]): A unique Id for the stop loss/stop loss limit leg
950
- stop_limit_price (Optional[float]): If provided, stopLimitTimeInForce is required.
951
- stop_iceberg_qty (Optional[float]):
952
- stop_limit_time_in_force (Optional[MarginAccountNewOcoStopLimitTimeInForceEnum]): Valid values are `GTC/FOK/IOC`
953
- new_order_resp_type (Optional[MarginAccountNewOcoNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
954
- side_effect_type (Optional[MarginAccountNewOcoSideEffectTypeEnum]): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
955
- recv_window (Optional[int]):
941
+ symbol (Union[str, None]):
942
+ side (Union[MarginAccountNewOcoSideEnum, None]):
943
+ quantity (Union[float, None]): Order quantity
944
+ price (Union[float, None]):
945
+ stop_price (Union[float, None]):
946
+ list_client_order_id (Optional[str] = None): Either `orderListId` or `listClientOrderId` must be provided
947
+ limit_client_order_id (Optional[str] = None): A unique Id for the limit order
948
+ limit_iceberg_qty (Optional[float] = None):
949
+ stop_client_order_id (Optional[str] = None): A unique Id for the stop loss/stop loss limit leg
950
+ stop_limit_price (Optional[float] = None): If provided, stopLimitTimeInForce is required.
951
+ stop_iceberg_qty (Optional[float] = None):
952
+ stop_limit_time_in_force (Optional[MarginAccountNewOcoStopLimitTimeInForceEnum] = None): Valid values are `GTC/FOK/IOC`
953
+ new_order_resp_type (Optional[MarginAccountNewOcoNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
954
+ side_effect_type (Optional[MarginAccountNewOcoSideEffectTypeEnum] = None): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
955
+ recv_window (Optional[int] = None):
956
956
 
957
957
  Returns:
958
958
  ApiResponse[MarginAccountNewOcoResponse]
@@ -1016,8 +1016,8 @@ class TradeApi:
1016
1016
 
1017
1017
  def margin_account_repay(
1018
1018
  self,
1019
- asset: str = None,
1020
- amount: float = None,
1019
+ asset: Union[str, None],
1020
+ amount: Union[float, None],
1021
1021
  recv_window: Optional[int] = None,
1022
1022
  ) -> ApiResponse[MarginAccountRepayResponse]:
1023
1023
  """
@@ -1030,9 +1030,9 @@ class TradeApi:
1030
1030
  Weight: 100
1031
1031
 
1032
1032
  Args:
1033
- asset (str):
1034
- amount (float):
1035
- recv_window (Optional[int]):
1033
+ asset (Union[str, None]):
1034
+ amount (Union[float, None]):
1035
+ recv_window (Optional[int] = None):
1036
1036
 
1037
1037
  Returns:
1038
1038
  ApiResponse[MarginAccountRepayResponse]
@@ -1067,7 +1067,7 @@ class TradeApi:
1067
1067
 
1068
1068
  def margin_account_repay_debt(
1069
1069
  self,
1070
- asset: str = None,
1070
+ asset: Union[str, None],
1071
1071
  amount: Optional[str] = None,
1072
1072
  specify_repay_assets: Optional[str] = None,
1073
1073
  recv_window: Optional[int] = None,
@@ -1087,10 +1087,10 @@ class TradeApi:
1087
1087
  Weight: 3000
1088
1088
 
1089
1089
  Args:
1090
- asset (str):
1091
- amount (Optional[str]):
1092
- specify_repay_assets (Optional[str]): Specific asset list to repay debt; Can be added in batch, separated by commas
1093
- recv_window (Optional[int]):
1090
+ asset (Union[str, None]):
1091
+ amount (Optional[str] = None):
1092
+ specify_repay_assets (Optional[str] = None): Specific asset list to repay debt; Can be added in batch, separated by commas
1093
+ recv_window (Optional[int] = None):
1094
1094
 
1095
1095
  Returns:
1096
1096
  ApiResponse[MarginAccountRepayDebtResponse]
@@ -1126,7 +1126,7 @@ class TradeApi:
1126
1126
 
1127
1127
  def margin_account_trade_list(
1128
1128
  self,
1129
- symbol: str = None,
1129
+ symbol: Union[str, None],
1130
1130
  order_id: Optional[int] = None,
1131
1131
  start_time: Optional[int] = None,
1132
1132
  end_time: Optional[int] = None,
@@ -1144,13 +1144,13 @@ class TradeApi:
1144
1144
  Weight: 5
1145
1145
 
1146
1146
  Args:
1147
- symbol (str):
1148
- order_id (Optional[int]):
1149
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1150
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1151
- from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
1152
- limit (Optional[int]): Default 100; max 1000
1153
- recv_window (Optional[int]):
1147
+ symbol (Union[str, None]):
1148
+ order_id (Optional[int] = None):
1149
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1150
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1151
+ from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
1152
+ limit (Optional[int] = None): Default 100; max 1000
1153
+ recv_window (Optional[int] = None):
1154
1154
 
1155
1155
  Returns:
1156
1156
  ApiResponse[MarginAccountTradeListResponse]
@@ -1189,10 +1189,10 @@ class TradeApi:
1189
1189
 
1190
1190
  def modify_cm_order(
1191
1191
  self,
1192
- symbol: str = None,
1193
- side: ModifyCmOrderSideEnum = None,
1194
- quantity: float = None,
1195
- price: float = None,
1192
+ symbol: Union[str, None],
1193
+ side: Union[ModifyCmOrderSideEnum, None],
1194
+ quantity: Union[float, None],
1195
+ price: Union[float, None],
1196
1196
  order_id: Optional[int] = None,
1197
1197
  orig_client_order_id: Optional[str] = None,
1198
1198
  price_match: Optional[ModifyCmOrderPriceMatchEnum] = None,
@@ -1215,14 +1215,14 @@ class TradeApi:
1215
1215
  Weight: 1
1216
1216
 
1217
1217
  Args:
1218
- symbol (str):
1219
- side (ModifyCmOrderSideEnum):
1220
- quantity (float): Order quantity
1221
- price (float):
1222
- order_id (Optional[int]):
1223
- orig_client_order_id (Optional[str]):
1224
- price_match (Optional[ModifyCmOrderPriceMatchEnum]): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1225
- recv_window (Optional[int]):
1218
+ symbol (Union[str, None]):
1219
+ side (Union[ModifyCmOrderSideEnum, None]):
1220
+ quantity (Union[float, None]): Order quantity
1221
+ price (Union[float, None]):
1222
+ order_id (Optional[int] = None):
1223
+ orig_client_order_id (Optional[str] = None):
1224
+ price_match (Optional[ModifyCmOrderPriceMatchEnum] = None): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1225
+ recv_window (Optional[int] = None):
1226
1226
 
1227
1227
  Returns:
1228
1228
  ApiResponse[ModifyCmOrderResponse]
@@ -1274,10 +1274,10 @@ class TradeApi:
1274
1274
 
1275
1275
  def modify_um_order(
1276
1276
  self,
1277
- symbol: str = None,
1278
- side: ModifyUmOrderSideEnum = None,
1279
- quantity: float = None,
1280
- price: float = None,
1277
+ symbol: Union[str, None],
1278
+ side: Union[ModifyUmOrderSideEnum, None],
1279
+ quantity: Union[float, None],
1280
+ price: Union[float, None],
1281
1281
  order_id: Optional[int] = None,
1282
1282
  orig_client_order_id: Optional[str] = None,
1283
1283
  price_match: Optional[ModifyUmOrderPriceMatchEnum] = None,
@@ -1300,14 +1300,14 @@ class TradeApi:
1300
1300
  Weight: 1
1301
1301
 
1302
1302
  Args:
1303
- symbol (str):
1304
- side (ModifyUmOrderSideEnum):
1305
- quantity (float): Order quantity
1306
- price (float):
1307
- order_id (Optional[int]):
1308
- orig_client_order_id (Optional[str]):
1309
- price_match (Optional[ModifyUmOrderPriceMatchEnum]): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1310
- recv_window (Optional[int]):
1303
+ symbol (Union[str, None]):
1304
+ side (Union[ModifyUmOrderSideEnum, None]):
1305
+ quantity (Union[float, None]): Order quantity
1306
+ price (Union[float, None]):
1307
+ order_id (Optional[int] = None):
1308
+ orig_client_order_id (Optional[str] = None):
1309
+ price_match (Optional[ModifyUmOrderPriceMatchEnum] = None): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1310
+ recv_window (Optional[int] = None):
1311
1311
 
1312
1312
  Returns:
1313
1313
  ApiResponse[ModifyUmOrderResponse]
@@ -1359,9 +1359,9 @@ class TradeApi:
1359
1359
 
1360
1360
  def new_cm_conditional_order(
1361
1361
  self,
1362
- symbol: str = None,
1363
- side: NewCmConditionalOrderSideEnum = None,
1364
- strategy_type: NewCmConditionalOrderStrategyTypeEnum = None,
1362
+ symbol: Union[str, None],
1363
+ side: Union[NewCmConditionalOrderSideEnum, None],
1364
+ strategy_type: Union[NewCmConditionalOrderStrategyTypeEnum, None],
1365
1365
  position_side: Optional[NewCmConditionalOrderPositionSideEnum] = None,
1366
1366
  time_in_force: Optional[NewCmConditionalOrderTimeInForceEnum] = None,
1367
1367
  quantity: Optional[float] = None,
@@ -1410,21 +1410,21 @@ class TradeApi:
1410
1410
  Weight: 1
1411
1411
 
1412
1412
  Args:
1413
- symbol (str):
1414
- side (NewCmConditionalOrderSideEnum):
1415
- strategy_type (NewCmConditionalOrderStrategyTypeEnum): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
1416
- position_side (Optional[NewCmConditionalOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1417
- time_in_force (Optional[NewCmConditionalOrderTimeInForceEnum]):
1418
- quantity (Optional[float]):
1419
- reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1420
- price (Optional[float]):
1421
- working_type (Optional[NewCmConditionalOrderWorkingTypeEnum]): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
1422
- price_protect (Optional[str]): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
1423
- new_client_strategy_id (Optional[str]):
1424
- stop_price (Optional[float]): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
1425
- activation_price (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
1426
- callback_rate (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
1427
- recv_window (Optional[int]):
1413
+ symbol (Union[str, None]):
1414
+ side (Union[NewCmConditionalOrderSideEnum, None]):
1415
+ strategy_type (Union[NewCmConditionalOrderStrategyTypeEnum, None]): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
1416
+ position_side (Optional[NewCmConditionalOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1417
+ time_in_force (Optional[NewCmConditionalOrderTimeInForceEnum] = None):
1418
+ quantity (Optional[float] = None):
1419
+ reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1420
+ price (Optional[float] = None):
1421
+ working_type (Optional[NewCmConditionalOrderWorkingTypeEnum] = None): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
1422
+ price_protect (Optional[str] = None): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
1423
+ new_client_strategy_id (Optional[str] = None):
1424
+ stop_price (Optional[float] = None): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
1425
+ activation_price (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
1426
+ callback_rate (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
1427
+ recv_window (Optional[int] = None):
1428
1428
 
1429
1429
  Returns:
1430
1430
  ApiResponse[NewCmConditionalOrderResponse]
@@ -1480,9 +1480,9 @@ class TradeApi:
1480
1480
 
1481
1481
  def new_cm_order(
1482
1482
  self,
1483
- symbol: str = None,
1484
- side: NewCmOrderSideEnum = None,
1485
- type: NewCmOrderTypeEnum = None,
1483
+ symbol: Union[str, None],
1484
+ side: Union[NewCmOrderSideEnum, None],
1485
+ type: Union[NewCmOrderTypeEnum, None],
1486
1486
  position_side: Optional[NewCmOrderPositionSideEnum] = None,
1487
1487
  time_in_force: Optional[NewCmOrderTimeInForceEnum] = None,
1488
1488
  quantity: Optional[float] = None,
@@ -1507,18 +1507,18 @@ class TradeApi:
1507
1507
  Weight: 1
1508
1508
 
1509
1509
  Args:
1510
- symbol (str):
1511
- side (NewCmOrderSideEnum):
1512
- type (NewCmOrderTypeEnum): `LIMIT`, `MARKET`
1513
- position_side (Optional[NewCmOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1514
- time_in_force (Optional[NewCmOrderTimeInForceEnum]):
1515
- quantity (Optional[float]):
1516
- reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1517
- price (Optional[float]):
1518
- price_match (Optional[NewCmOrderPriceMatchEnum]): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1519
- new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
1520
- new_order_resp_type (Optional[NewCmOrderNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
1521
- recv_window (Optional[int]):
1510
+ symbol (Union[str, None]):
1511
+ side (Union[NewCmOrderSideEnum, None]):
1512
+ type (Union[NewCmOrderTypeEnum, None]): `LIMIT`, `MARKET`
1513
+ position_side (Optional[NewCmOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1514
+ time_in_force (Optional[NewCmOrderTimeInForceEnum] = None):
1515
+ quantity (Optional[float] = None):
1516
+ reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1517
+ price (Optional[float] = None):
1518
+ price_match (Optional[NewCmOrderPriceMatchEnum] = None): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1519
+ new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
1520
+ new_order_resp_type (Optional[NewCmOrderNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
1521
+ recv_window (Optional[int] = None):
1522
1522
 
1523
1523
  Returns:
1524
1524
  ApiResponse[NewCmOrderResponse]
@@ -1570,9 +1570,9 @@ class TradeApi:
1570
1570
 
1571
1571
  def new_margin_order(
1572
1572
  self,
1573
- symbol: str = None,
1574
- side: NewMarginOrderSideEnum = None,
1575
- type: NewMarginOrderTypeEnum = None,
1573
+ symbol: Union[str, None],
1574
+ side: Union[NewMarginOrderSideEnum, None],
1575
+ type: Union[NewMarginOrderTypeEnum, None],
1576
1576
  quantity: Optional[float] = None,
1577
1577
  quote_order_qty: Optional[float] = None,
1578
1578
  price: Optional[float] = None,
@@ -1598,21 +1598,21 @@ class TradeApi:
1598
1598
  Weight: 1
1599
1599
 
1600
1600
  Args:
1601
- symbol (str):
1602
- side (NewMarginOrderSideEnum):
1603
- type (NewMarginOrderTypeEnum): `LIMIT`, `MARKET`
1604
- quantity (Optional[float]):
1605
- quote_order_qty (Optional[float]):
1606
- price (Optional[float]):
1607
- stop_price (Optional[float]): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
1608
- new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
1609
- new_order_resp_type (Optional[NewMarginOrderNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
1610
- iceberg_qty (Optional[float]): Used with `LIMIT`, `STOP_LOSS_LIMIT`, and `TAKE_PROFIT_LIMIT` to create an iceberg order
1611
- side_effect_type (Optional[NewMarginOrderSideEffectTypeEnum]): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
1612
- time_in_force (Optional[NewMarginOrderTimeInForceEnum]):
1613
- self_trade_prevention_mode (Optional[NewMarginOrderSelfTradePreventionModeEnum]): `NONE`:No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers
1614
- auto_repay_at_cancel (Optional[bool]): 只有在自动借款单或者自动借还单生效,true表示的是撤单后需要把订单产生的借款归还,默认为true
1615
- recv_window (Optional[int]):
1601
+ symbol (Union[str, None]):
1602
+ side (Union[NewMarginOrderSideEnum, None]):
1603
+ type (Union[NewMarginOrderTypeEnum, None]): `LIMIT`, `MARKET`
1604
+ quantity (Optional[float] = None):
1605
+ quote_order_qty (Optional[float] = None):
1606
+ price (Optional[float] = None):
1607
+ stop_price (Optional[float] = None): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
1608
+ new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
1609
+ new_order_resp_type (Optional[NewMarginOrderNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
1610
+ iceberg_qty (Optional[float] = None): Used with `LIMIT`, `STOP_LOSS_LIMIT`, and `TAKE_PROFIT_LIMIT` to create an iceberg order
1611
+ side_effect_type (Optional[NewMarginOrderSideEffectTypeEnum] = None): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
1612
+ time_in_force (Optional[NewMarginOrderTimeInForceEnum] = None):
1613
+ self_trade_prevention_mode (Optional[NewMarginOrderSelfTradePreventionModeEnum] = None): `NONE`:No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers
1614
+ auto_repay_at_cancel (Optional[bool] = None): 只有在自动借款单或者自动借还单生效,true表示的是撤单后需要把订单产生的借款归还,默认为true
1615
+ recv_window (Optional[int] = None):
1616
1616
 
1617
1617
  Returns:
1618
1618
  ApiResponse[NewMarginOrderResponse]
@@ -1667,9 +1667,9 @@ class TradeApi:
1667
1667
 
1668
1668
  def new_um_conditional_order(
1669
1669
  self,
1670
- symbol: str = None,
1671
- side: NewUmConditionalOrderSideEnum = None,
1672
- strategy_type: NewUmConditionalOrderStrategyTypeEnum = None,
1670
+ symbol: Union[str, None],
1671
+ side: Union[NewUmConditionalOrderSideEnum, None],
1672
+ strategy_type: Union[NewUmConditionalOrderStrategyTypeEnum, None],
1673
1673
  position_side: Optional[NewUmConditionalOrderPositionSideEnum] = None,
1674
1674
  time_in_force: Optional[NewUmConditionalOrderTimeInForceEnum] = None,
1675
1675
  quantity: Optional[float] = None,
@@ -1725,24 +1725,24 @@ class TradeApi:
1725
1725
  Weight: 1
1726
1726
 
1727
1727
  Args:
1728
- symbol (str):
1729
- side (NewUmConditionalOrderSideEnum):
1730
- strategy_type (NewUmConditionalOrderStrategyTypeEnum): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
1731
- position_side (Optional[NewUmConditionalOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1732
- time_in_force (Optional[NewUmConditionalOrderTimeInForceEnum]):
1733
- quantity (Optional[float]):
1734
- reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1735
- price (Optional[float]):
1736
- working_type (Optional[NewUmConditionalOrderWorkingTypeEnum]): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
1737
- price_protect (Optional[str]): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
1738
- new_client_strategy_id (Optional[str]):
1739
- stop_price (Optional[float]): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
1740
- activation_price (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
1741
- callback_rate (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
1742
- price_match (Optional[NewUmConditionalOrderPriceMatchEnum]): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1743
- self_trade_prevention_mode (Optional[NewUmConditionalOrderSelfTradePreventionModeEnum]): `NONE`:No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers
1744
- good_till_date (Optional[int]): order cancel time for timeInForce `GTD`, mandatory when `timeInforce` set to `GTD`; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. It must be sent in Hedge Mode.
1745
- recv_window (Optional[int]):
1728
+ symbol (Union[str, None]):
1729
+ side (Union[NewUmConditionalOrderSideEnum, None]):
1730
+ strategy_type (Union[NewUmConditionalOrderStrategyTypeEnum, None]): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
1731
+ position_side (Optional[NewUmConditionalOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1732
+ time_in_force (Optional[NewUmConditionalOrderTimeInForceEnum] = None):
1733
+ quantity (Optional[float] = None):
1734
+ reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1735
+ price (Optional[float] = None):
1736
+ working_type (Optional[NewUmConditionalOrderWorkingTypeEnum] = None): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
1737
+ price_protect (Optional[str] = None): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
1738
+ new_client_strategy_id (Optional[str] = None):
1739
+ stop_price (Optional[float] = None): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
1740
+ activation_price (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
1741
+ callback_rate (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
1742
+ price_match (Optional[NewUmConditionalOrderPriceMatchEnum] = None): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1743
+ self_trade_prevention_mode (Optional[NewUmConditionalOrderSelfTradePreventionModeEnum] = None): `NONE`:No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers
1744
+ good_till_date (Optional[int] = None): order cancel time for timeInForce `GTD`, mandatory when `timeInforce` set to `GTD`; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. It must be sent in Hedge Mode.
1745
+ recv_window (Optional[int] = None):
1746
1746
 
1747
1747
  Returns:
1748
1748
  ApiResponse[NewUmConditionalOrderResponse]
@@ -1801,9 +1801,9 @@ class TradeApi:
1801
1801
 
1802
1802
  def new_um_order(
1803
1803
  self,
1804
- symbol: str = None,
1805
- side: NewUmOrderSideEnum = None,
1806
- type: NewUmOrderTypeEnum = None,
1804
+ symbol: Union[str, None],
1805
+ side: Union[NewUmOrderSideEnum, None],
1806
+ type: Union[NewUmOrderTypeEnum, None],
1807
1807
  position_side: Optional[NewUmOrderPositionSideEnum] = None,
1808
1808
  time_in_force: Optional[NewUmOrderTimeInForceEnum] = None,
1809
1809
  quantity: Optional[float] = None,
@@ -1834,20 +1834,20 @@ class TradeApi:
1834
1834
  Weight: 1
1835
1835
 
1836
1836
  Args:
1837
- symbol (str):
1838
- side (NewUmOrderSideEnum):
1839
- type (NewUmOrderTypeEnum): `LIMIT`, `MARKET`
1840
- position_side (Optional[NewUmOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1841
- time_in_force (Optional[NewUmOrderTimeInForceEnum]):
1842
- quantity (Optional[float]):
1843
- reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1844
- price (Optional[float]):
1845
- new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
1846
- new_order_resp_type (Optional[NewUmOrderNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
1847
- price_match (Optional[NewUmOrderPriceMatchEnum]): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1848
- self_trade_prevention_mode (Optional[NewUmOrderSelfTradePreventionModeEnum]): `NONE`:No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers
1849
- good_till_date (Optional[int]): order cancel time for timeInForce `GTD`, mandatory when `timeInforce` set to `GTD`; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. It must be sent in Hedge Mode.
1850
- recv_window (Optional[int]):
1837
+ symbol (Union[str, None]):
1838
+ side (Union[NewUmOrderSideEnum, None]):
1839
+ type (Union[NewUmOrderTypeEnum, None]): `LIMIT`, `MARKET`
1840
+ position_side (Optional[NewUmOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
1841
+ time_in_force (Optional[NewUmOrderTimeInForceEnum] = None):
1842
+ quantity (Optional[float] = None):
1843
+ reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
1844
+ price (Optional[float] = None):
1845
+ new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
1846
+ new_order_resp_type (Optional[NewUmOrderNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
1847
+ price_match (Optional[NewUmOrderPriceMatchEnum] = None): only avaliable for `LIMIT`/`STOP`/`TAKE_PROFIT` order; can be set to `OPPONENT`/ `OPPONENT_5`/ `OPPONENT_10`/ `OPPONENT_20`: /`QUEUE`/ `QUEUE_5`/ `QUEUE_10`/ `QUEUE_20`; Can't be passed together with `price`
1848
+ self_trade_prevention_mode (Optional[NewUmOrderSelfTradePreventionModeEnum] = None): `NONE`:No STP / `EXPIRE_TAKER`:expire taker order when STP triggers/ `EXPIRE_MAKER`:expire taker order when STP triggers/ `EXPIRE_BOTH`:expire both orders when STP triggers
1849
+ good_till_date (Optional[int] = None): order cancel time for timeInForce `GTD`, mandatory when `timeInforce` set to `GTD`; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000Mode. It must be sent in Hedge Mode.
1850
+ recv_window (Optional[int] = None):
1851
1851
 
1852
1852
  Returns:
1853
1853
  ApiResponse[NewUmOrderResponse]
@@ -1924,12 +1924,12 @@ class TradeApi:
1924
1924
  Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
1925
1925
 
1926
1926
  Args:
1927
- symbol (Optional[str]):
1928
- strategy_id (Optional[int]):
1929
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1930
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1931
- limit (Optional[int]): Default 100; max 1000
1932
- recv_window (Optional[int]):
1927
+ symbol (Optional[str] = None):
1928
+ strategy_id (Optional[int] = None):
1929
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1930
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1931
+ limit (Optional[int] = None): Default 100; max 1000
1932
+ recv_window (Optional[int] = None):
1933
1933
 
1934
1934
  Returns:
1935
1935
  ApiResponse[QueryAllCmConditionalOrdersResponse]
@@ -1962,7 +1962,7 @@ class TradeApi:
1962
1962
 
1963
1963
  def query_all_cm_orders(
1964
1964
  self,
1965
- symbol: str = None,
1965
+ symbol: Union[str, None],
1966
1966
  pair: Optional[str] = None,
1967
1967
  order_id: Optional[int] = None,
1968
1968
  start_time: Optional[int] = None,
@@ -1987,13 +1987,13 @@ class TradeApi:
1987
1987
  Weight: 20 with symbol, 40 with pair
1988
1988
 
1989
1989
  Args:
1990
- symbol (str):
1991
- pair (Optional[str]):
1992
- order_id (Optional[int]):
1993
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1994
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1995
- limit (Optional[int]): Default 100; max 1000
1996
- recv_window (Optional[int]):
1990
+ symbol (Union[str, None]):
1991
+ pair (Optional[str] = None):
1992
+ order_id (Optional[int] = None):
1993
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1994
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1995
+ limit (Optional[int] = None): Default 100; max 1000
1996
+ recv_window (Optional[int] = None):
1997
1997
 
1998
1998
  Returns:
1999
1999
  ApiResponse[QueryAllCmOrdersResponse]
@@ -2047,8 +2047,8 @@ class TradeApi:
2047
2047
  Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
2048
2048
 
2049
2049
  Args:
2050
- symbol (Optional[str]):
2051
- recv_window (Optional[int]):
2050
+ symbol (Optional[str] = None):
2051
+ recv_window (Optional[int] = None):
2052
2052
 
2053
2053
  Returns:
2054
2054
  ApiResponse[QueryAllCurrentCmOpenConditionalOrdersResponse]
@@ -2091,9 +2091,9 @@ class TradeApi:
2091
2091
  Careful when accessing this with no symbol.
2092
2092
 
2093
2093
  Args:
2094
- symbol (Optional[str]):
2095
- pair (Optional[str]):
2096
- recv_window (Optional[int]):
2094
+ symbol (Optional[str] = None):
2095
+ pair (Optional[str] = None):
2096
+ recv_window (Optional[int] = None):
2097
2097
 
2098
2098
  Returns:
2099
2099
  ApiResponse[QueryAllCurrentCmOpenOrdersResponse]
@@ -2135,8 +2135,8 @@ class TradeApi:
2135
2135
  Careful when accessing this with no symbol.
2136
2136
 
2137
2137
  Args:
2138
- symbol (Optional[str]):
2139
- recv_window (Optional[int]):
2138
+ symbol (Optional[str] = None):
2139
+ recv_window (Optional[int] = None):
2140
2140
 
2141
2141
  Returns:
2142
2142
  ApiResponse[QueryAllCurrentUmOpenConditionalOrdersResponse]
@@ -2178,8 +2178,8 @@ class TradeApi:
2178
2178
  Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
2179
2179
 
2180
2180
  Args:
2181
- symbol (Optional[str]):
2182
- recv_window (Optional[int]):
2181
+ symbol (Optional[str] = None):
2182
+ recv_window (Optional[int] = None):
2183
2183
 
2184
2184
  Returns:
2185
2185
  ApiResponse[QueryAllCurrentUmOpenOrdersResponse]
@@ -2205,7 +2205,7 @@ class TradeApi:
2205
2205
 
2206
2206
  def query_all_margin_account_orders(
2207
2207
  self,
2208
- symbol: str = None,
2208
+ symbol: Union[str, None],
2209
2209
  order_id: Optional[int] = None,
2210
2210
  start_time: Optional[int] = None,
2211
2211
  end_time: Optional[int] = None,
@@ -2222,12 +2222,12 @@ class TradeApi:
2222
2222
  Weight: 100
2223
2223
 
2224
2224
  Args:
2225
- symbol (str):
2226
- order_id (Optional[int]):
2227
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
2228
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
2229
- limit (Optional[int]): Default 100; max 1000
2230
- recv_window (Optional[int]):
2225
+ symbol (Union[str, None]):
2226
+ order_id (Optional[int] = None):
2227
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
2228
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
2229
+ limit (Optional[int] = None): Default 100; max 1000
2230
+ recv_window (Optional[int] = None):
2231
2231
 
2232
2232
  Returns:
2233
2233
  ApiResponse[QueryAllMarginAccountOrdersResponse]
@@ -2288,12 +2288,12 @@ class TradeApi:
2288
2288
  Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
2289
2289
 
2290
2290
  Args:
2291
- symbol (Optional[str]):
2292
- strategy_id (Optional[int]):
2293
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
2294
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
2295
- limit (Optional[int]): Default 100; max 1000
2296
- recv_window (Optional[int]):
2291
+ symbol (Optional[str] = None):
2292
+ strategy_id (Optional[int] = None):
2293
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
2294
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
2295
+ limit (Optional[int] = None): Default 100; max 1000
2296
+ recv_window (Optional[int] = None):
2297
2297
 
2298
2298
  Returns:
2299
2299
  ApiResponse[QueryAllUmConditionalOrdersResponse]
@@ -2326,7 +2326,7 @@ class TradeApi:
2326
2326
 
2327
2327
  def query_all_um_orders(
2328
2328
  self,
2329
- symbol: str = None,
2329
+ symbol: Union[str, None],
2330
2330
  order_id: Optional[int] = None,
2331
2331
  start_time: Optional[int] = None,
2332
2332
  end_time: Optional[int] = None,
@@ -2350,12 +2350,12 @@ class TradeApi:
2350
2350
  Weight: 5
2351
2351
 
2352
2352
  Args:
2353
- symbol (str):
2354
- order_id (Optional[int]):
2355
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
2356
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
2357
- limit (Optional[int]): Default 100; max 1000
2358
- recv_window (Optional[int]):
2353
+ symbol (Union[str, None]):
2354
+ order_id (Optional[int] = None):
2355
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
2356
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
2357
+ limit (Optional[int] = None): Default 100; max 1000
2358
+ recv_window (Optional[int] = None):
2359
2359
 
2360
2360
  Returns:
2361
2361
  ApiResponse[QueryAllUmOrdersResponse]
@@ -2393,7 +2393,7 @@ class TradeApi:
2393
2393
 
2394
2394
  def query_cm_conditional_order_history(
2395
2395
  self,
2396
- symbol: str = None,
2396
+ symbol: Union[str, None],
2397
2397
  strategy_id: Optional[int] = None,
2398
2398
  new_client_strategy_id: Optional[str] = None,
2399
2399
  recv_window: Optional[int] = None,
@@ -2416,10 +2416,10 @@ class TradeApi:
2416
2416
  Weight: 1
2417
2417
 
2418
2418
  Args:
2419
- symbol (str):
2420
- strategy_id (Optional[int]):
2421
- new_client_strategy_id (Optional[str]):
2422
- recv_window (Optional[int]):
2419
+ symbol (Union[str, None]):
2420
+ strategy_id (Optional[int] = None):
2421
+ new_client_strategy_id (Optional[str] = None):
2422
+ recv_window (Optional[int] = None):
2423
2423
 
2424
2424
  Returns:
2425
2425
  ApiResponse[QueryCmConditionalOrderHistoryResponse]
@@ -2455,7 +2455,7 @@ class TradeApi:
2455
2455
 
2456
2456
  def query_cm_modify_order_history(
2457
2457
  self,
2458
- symbol: str = None,
2458
+ symbol: Union[str, None],
2459
2459
  order_id: Optional[int] = None,
2460
2460
  orig_client_order_id: Optional[str] = None,
2461
2461
  start_time: Optional[int] = None,
@@ -2475,13 +2475,13 @@ class TradeApi:
2475
2475
  Weight: 1
2476
2476
 
2477
2477
  Args:
2478
- symbol (str):
2479
- order_id (Optional[int]):
2480
- orig_client_order_id (Optional[str]):
2481
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
2482
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
2483
- limit (Optional[int]): Default 100; max 1000
2484
- recv_window (Optional[int]):
2478
+ symbol (Union[str, None]):
2479
+ order_id (Optional[int] = None):
2480
+ orig_client_order_id (Optional[str] = None):
2481
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
2482
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
2483
+ limit (Optional[int] = None): Default 100; max 1000
2484
+ recv_window (Optional[int] = None):
2485
2485
 
2486
2486
  Returns:
2487
2487
  ApiResponse[QueryCmModifyOrderHistoryResponse]
@@ -2520,7 +2520,7 @@ class TradeApi:
2520
2520
 
2521
2521
  def query_cm_order(
2522
2522
  self,
2523
- symbol: str = None,
2523
+ symbol: Union[str, None],
2524
2524
  order_id: Optional[int] = None,
2525
2525
  orig_client_order_id: Optional[str] = None,
2526
2526
  recv_window: Optional[int] = None,
@@ -2541,10 +2541,10 @@ class TradeApi:
2541
2541
  Weight: 1
2542
2542
 
2543
2543
  Args:
2544
- symbol (str):
2545
- order_id (Optional[int]):
2546
- orig_client_order_id (Optional[str]):
2547
- recv_window (Optional[int]):
2544
+ symbol (Union[str, None]):
2545
+ order_id (Optional[int] = None):
2546
+ orig_client_order_id (Optional[str] = None):
2547
+ recv_window (Optional[int] = None):
2548
2548
 
2549
2549
  Returns:
2550
2550
  ApiResponse[QueryCmOrderResponse]
@@ -2580,7 +2580,7 @@ class TradeApi:
2580
2580
 
2581
2581
  def query_current_cm_open_conditional_order(
2582
2582
  self,
2583
- symbol: str = None,
2583
+ symbol: Union[str, None],
2584
2584
  strategy_id: Optional[int] = None,
2585
2585
  new_client_strategy_id: Optional[str] = None,
2586
2586
  recv_window: Optional[int] = None,
@@ -2598,10 +2598,10 @@ class TradeApi:
2598
2598
  Weight: 1
2599
2599
 
2600
2600
  Args:
2601
- symbol (str):
2602
- strategy_id (Optional[int]):
2603
- new_client_strategy_id (Optional[str]):
2604
- recv_window (Optional[int]):
2601
+ symbol (Union[str, None]):
2602
+ strategy_id (Optional[int] = None):
2603
+ new_client_strategy_id (Optional[str] = None):
2604
+ recv_window (Optional[int] = None):
2605
2605
 
2606
2606
  Returns:
2607
2607
  ApiResponse[QueryCurrentCmOpenConditionalOrderResponse]
@@ -2637,7 +2637,7 @@ class TradeApi:
2637
2637
 
2638
2638
  def query_current_cm_open_order(
2639
2639
  self,
2640
- symbol: str = None,
2640
+ symbol: Union[str, None],
2641
2641
  order_id: Optional[int] = None,
2642
2642
  orig_client_order_id: Optional[str] = None,
2643
2643
  recv_window: Optional[int] = None,
@@ -2655,10 +2655,10 @@ class TradeApi:
2655
2655
  Weight: 1
2656
2656
 
2657
2657
  Args:
2658
- symbol (str):
2659
- order_id (Optional[int]):
2660
- orig_client_order_id (Optional[str]):
2661
- recv_window (Optional[int]):
2658
+ symbol (Union[str, None]):
2659
+ order_id (Optional[int] = None):
2660
+ orig_client_order_id (Optional[str] = None):
2661
+ recv_window (Optional[int] = None):
2662
2662
 
2663
2663
  Returns:
2664
2664
  ApiResponse[QueryCurrentCmOpenOrderResponse]
@@ -2694,7 +2694,7 @@ class TradeApi:
2694
2694
 
2695
2695
  def query_current_margin_open_order(
2696
2696
  self,
2697
- symbol: str = None,
2697
+ symbol: Union[str, None],
2698
2698
  recv_window: Optional[int] = None,
2699
2699
  ) -> ApiResponse[QueryCurrentMarginOpenOrderResponse]:
2700
2700
  """
@@ -2707,8 +2707,8 @@ class TradeApi:
2707
2707
  Weight: 5
2708
2708
 
2709
2709
  Args:
2710
- symbol (str):
2711
- recv_window (Optional[int]):
2710
+ symbol (Union[str, None]):
2711
+ recv_window (Optional[int] = None):
2712
2712
 
2713
2713
  Returns:
2714
2714
  ApiResponse[QueryCurrentMarginOpenOrderResponse]
@@ -2739,7 +2739,7 @@ class TradeApi:
2739
2739
 
2740
2740
  def query_current_um_open_conditional_order(
2741
2741
  self,
2742
- symbol: str = None,
2742
+ symbol: Union[str, None],
2743
2743
  strategy_id: Optional[int] = None,
2744
2744
  new_client_strategy_id: Optional[str] = None,
2745
2745
  recv_window: Optional[int] = None,
@@ -2757,10 +2757,10 @@ class TradeApi:
2757
2757
  Weight: 1
2758
2758
 
2759
2759
  Args:
2760
- symbol (str):
2761
- strategy_id (Optional[int]):
2762
- new_client_strategy_id (Optional[str]):
2763
- recv_window (Optional[int]):
2760
+ symbol (Union[str, None]):
2761
+ strategy_id (Optional[int] = None):
2762
+ new_client_strategy_id (Optional[str] = None):
2763
+ recv_window (Optional[int] = None):
2764
2764
 
2765
2765
  Returns:
2766
2766
  ApiResponse[QueryCurrentUmOpenConditionalOrderResponse]
@@ -2796,7 +2796,7 @@ class TradeApi:
2796
2796
 
2797
2797
  def query_current_um_open_order(
2798
2798
  self,
2799
- symbol: str = None,
2799
+ symbol: Union[str, None],
2800
2800
  order_id: Optional[int] = None,
2801
2801
  orig_client_order_id: Optional[str] = None,
2802
2802
  recv_window: Optional[int] = None,
@@ -2815,10 +2815,10 @@ class TradeApi:
2815
2815
  Weight: 1
2816
2816
 
2817
2817
  Args:
2818
- symbol (str):
2819
- order_id (Optional[int]):
2820
- orig_client_order_id (Optional[str]):
2821
- recv_window (Optional[int]):
2818
+ symbol (Union[str, None]):
2819
+ order_id (Optional[int] = None):
2820
+ orig_client_order_id (Optional[str] = None):
2821
+ recv_window (Optional[int] = None):
2822
2822
 
2823
2823
  Returns:
2824
2824
  ApiResponse[QueryCurrentUmOpenOrderResponse]
@@ -2854,7 +2854,7 @@ class TradeApi:
2854
2854
 
2855
2855
  def query_margin_account_order(
2856
2856
  self,
2857
- symbol: str = None,
2857
+ symbol: Union[str, None],
2858
2858
  order_id: Optional[int] = None,
2859
2859
  orig_client_order_id: Optional[str] = None,
2860
2860
  recv_window: Optional[int] = None,
@@ -2869,10 +2869,10 @@ class TradeApi:
2869
2869
  Weight: 10
2870
2870
 
2871
2871
  Args:
2872
- symbol (str):
2873
- order_id (Optional[int]):
2874
- orig_client_order_id (Optional[str]):
2875
- recv_window (Optional[int]):
2872
+ symbol (Union[str, None]):
2873
+ order_id (Optional[int] = None):
2874
+ orig_client_order_id (Optional[str] = None):
2875
+ recv_window (Optional[int] = None):
2876
2876
 
2877
2877
  Returns:
2878
2878
  ApiResponse[QueryMarginAccountOrderResponse]
@@ -2924,11 +2924,11 @@ class TradeApi:
2924
2924
  Weight: 100
2925
2925
 
2926
2926
  Args:
2927
- from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
2928
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
2929
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
2930
- limit (Optional[int]): Default 100; max 1000
2931
- recv_window (Optional[int]):
2927
+ from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
2928
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
2929
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
2930
+ limit (Optional[int] = None): Default 100; max 1000
2931
+ recv_window (Optional[int] = None):
2932
2932
 
2933
2933
  Returns:
2934
2934
  ApiResponse[QueryMarginAccountsAllOcoResponse]
@@ -2974,9 +2974,9 @@ class TradeApi:
2974
2974
  Weight: 5
2975
2975
 
2976
2976
  Args:
2977
- order_list_id (Optional[int]): Either `orderListId` or `listClientOrderId` must be provided
2978
- orig_client_order_id (Optional[str]):
2979
- recv_window (Optional[int]):
2977
+ order_list_id (Optional[int] = None): Either `orderListId` or `listClientOrderId` must be provided
2978
+ orig_client_order_id (Optional[str] = None):
2979
+ recv_window (Optional[int] = None):
2980
2980
 
2981
2981
  Returns:
2982
2982
  ApiResponse[QueryMarginAccountsOcoResponse]
@@ -3018,7 +3018,7 @@ class TradeApi:
3018
3018
  Weight: 5
3019
3019
 
3020
3020
  Args:
3021
- recv_window (Optional[int]):
3021
+ recv_window (Optional[int] = None):
3022
3022
 
3023
3023
  Returns:
3024
3024
  ApiResponse[QueryMarginAccountsOpenOcoResponse]
@@ -3044,7 +3044,7 @@ class TradeApi:
3044
3044
 
3045
3045
  def query_um_conditional_order_history(
3046
3046
  self,
3047
- symbol: str = None,
3047
+ symbol: Union[str, None],
3048
3048
  strategy_id: Optional[int] = None,
3049
3049
  new_client_strategy_id: Optional[str] = None,
3050
3050
  recv_window: Optional[int] = None,
@@ -3066,10 +3066,10 @@ class TradeApi:
3066
3066
  Weight: 1
3067
3067
 
3068
3068
  Args:
3069
- symbol (str):
3070
- strategy_id (Optional[int]):
3071
- new_client_strategy_id (Optional[str]):
3072
- recv_window (Optional[int]):
3069
+ symbol (Union[str, None]):
3070
+ strategy_id (Optional[int] = None):
3071
+ new_client_strategy_id (Optional[str] = None):
3072
+ recv_window (Optional[int] = None):
3073
3073
 
3074
3074
  Returns:
3075
3075
  ApiResponse[QueryUmConditionalOrderHistoryResponse]
@@ -3105,7 +3105,7 @@ class TradeApi:
3105
3105
 
3106
3106
  def query_um_modify_order_history(
3107
3107
  self,
3108
- symbol: str = None,
3108
+ symbol: Union[str, None],
3109
3109
  order_id: Optional[int] = None,
3110
3110
  orig_client_order_id: Optional[str] = None,
3111
3111
  start_time: Optional[int] = None,
@@ -3125,13 +3125,13 @@ class TradeApi:
3125
3125
  Weight: 1
3126
3126
 
3127
3127
  Args:
3128
- symbol (str):
3129
- order_id (Optional[int]):
3130
- orig_client_order_id (Optional[str]):
3131
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
3132
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
3133
- limit (Optional[int]): Default 100; max 1000
3134
- recv_window (Optional[int]):
3128
+ symbol (Union[str, None]):
3129
+ order_id (Optional[int] = None):
3130
+ orig_client_order_id (Optional[str] = None):
3131
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
3132
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
3133
+ limit (Optional[int] = None): Default 100; max 1000
3134
+ recv_window (Optional[int] = None):
3135
3135
 
3136
3136
  Returns:
3137
3137
  ApiResponse[QueryUmModifyOrderHistoryResponse]
@@ -3170,7 +3170,7 @@ class TradeApi:
3170
3170
 
3171
3171
  def query_um_order(
3172
3172
  self,
3173
- symbol: str = None,
3173
+ symbol: Union[str, None],
3174
3174
  order_id: Optional[int] = None,
3175
3175
  orig_client_order_id: Optional[str] = None,
3176
3176
  recv_window: Optional[int] = None,
@@ -3191,10 +3191,10 @@ class TradeApi:
3191
3191
  Weight: 1
3192
3192
 
3193
3193
  Args:
3194
- symbol (str):
3195
- order_id (Optional[int]):
3196
- orig_client_order_id (Optional[str]):
3197
- recv_window (Optional[int]):
3194
+ symbol (Union[str, None]):
3195
+ order_id (Optional[int] = None):
3196
+ orig_client_order_id (Optional[str] = None):
3197
+ recv_window (Optional[int] = None):
3198
3198
 
3199
3199
  Returns:
3200
3200
  ApiResponse[QueryUmOrderResponse]
@@ -3250,12 +3250,12 @@ class TradeApi:
3250
3250
  Weight: 20 with symbol, 50 without symbol
3251
3251
 
3252
3252
  Args:
3253
- symbol (Optional[str]):
3254
- auto_close_type (Optional[QueryUsersCmForceOrdersAutoCloseTypeEnum]): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
3255
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
3256
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
3257
- limit (Optional[int]): Default 100; max 1000
3258
- recv_window (Optional[int]):
3253
+ symbol (Optional[str] = None):
3254
+ auto_close_type (Optional[QueryUsersCmForceOrdersAutoCloseTypeEnum] = None): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
3255
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
3256
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
3257
+ limit (Optional[int] = None): Default 100; max 1000
3258
+ recv_window (Optional[int] = None):
3259
3259
 
3260
3260
  Returns:
3261
3261
  ApiResponse[QueryUsersCmForceOrdersResponse]
@@ -3304,11 +3304,11 @@ class TradeApi:
3304
3304
  Weight: 1
3305
3305
 
3306
3306
  Args:
3307
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
3308
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
3309
- current (Optional[int]): Currently querying page. Start from 1. Default:1
3310
- size (Optional[int]): Default:10 Max:100
3311
- recv_window (Optional[int]):
3307
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
3308
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
3309
+ current (Optional[int] = None): Currently querying page. Start from 1. Default:1
3310
+ size (Optional[int] = None): Default:10 Max:100
3311
+ recv_window (Optional[int] = None):
3312
3312
 
3313
3313
  Returns:
3314
3314
  ApiResponse[QueryUsersMarginForceOrdersResponse]
@@ -3360,12 +3360,12 @@ class TradeApi:
3360
3360
  Weight: 20 with symbol, 50 without symbol
3361
3361
 
3362
3362
  Args:
3363
- symbol (Optional[str]):
3364
- auto_close_type (Optional[QueryUsersUmForceOrdersAutoCloseTypeEnum]): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
3365
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
3366
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
3367
- limit (Optional[int]): Default 100; max 1000
3368
- recv_window (Optional[int]):
3363
+ symbol (Optional[str] = None):
3364
+ auto_close_type (Optional[QueryUsersUmForceOrdersAutoCloseTypeEnum] = None): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
3365
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
3366
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
3367
+ limit (Optional[int] = None): Default 100; max 1000
3368
+ recv_window (Optional[int] = None):
3369
3369
 
3370
3370
  Returns:
3371
3371
  ApiResponse[QueryUsersUmForceOrdersResponse]
@@ -3398,7 +3398,7 @@ class TradeApi:
3398
3398
 
3399
3399
  def toggle_bnb_burn_on_um_futures_trade(
3400
3400
  self,
3401
- fee_burn: str = None,
3401
+ fee_burn: Union[str, None],
3402
3402
  recv_window: Optional[int] = None,
3403
3403
  ) -> ApiResponse[ToggleBnbBurnOnUmFuturesTradeResponse]:
3404
3404
  """
@@ -3414,8 +3414,8 @@ class TradeApi:
3414
3414
  Weight: 1
3415
3415
 
3416
3416
  Args:
3417
- fee_burn (str): "true": Fee Discount On; "false": Fee Discount Off
3418
- recv_window (Optional[int]):
3417
+ fee_burn (Union[str, None]): "true": Fee Discount On; "false": Fee Discount Off
3418
+ recv_window (Optional[int] = None):
3419
3419
 
3420
3420
  Returns:
3421
3421
  ApiResponse[ToggleBnbBurnOnUmFuturesTradeResponse]
@@ -3446,7 +3446,7 @@ class TradeApi:
3446
3446
 
3447
3447
  def um_account_trade_list(
3448
3448
  self,
3449
- symbol: str = None,
3449
+ symbol: Union[str, None],
3450
3450
  start_time: Optional[int] = None,
3451
3451
  end_time: Optional[int] = None,
3452
3452
  from_id: Optional[int] = None,
@@ -3468,12 +3468,12 @@ class TradeApi:
3468
3468
  Weight: 5
3469
3469
 
3470
3470
  Args:
3471
- symbol (str):
3472
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
3473
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
3474
- from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
3475
- limit (Optional[int]): Default 100; max 1000
3476
- recv_window (Optional[int]):
3471
+ symbol (Union[str, None]):
3472
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
3473
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
3474
+ from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
3475
+ limit (Optional[int] = None): Default 100; max 1000
3476
+ recv_window (Optional[int] = None):
3477
3477
 
3478
3478
  Returns:
3479
3479
  ApiResponse[UmAccountTradeListResponse]
@@ -3531,8 +3531,8 @@ class TradeApi:
3531
3531
  Weight: 5
3532
3532
 
3533
3533
  Args:
3534
- symbol (Optional[str]):
3535
- recv_window (Optional[int]):
3534
+ symbol (Optional[str] = None):
3535
+ recv_window (Optional[int] = None):
3536
3536
 
3537
3537
  Returns:
3538
3538
  ApiResponse[UmPositionAdlQuantileEstimationResponse]