binance-sdk-derivatives-trading-portfolio-margin 1.1.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
@@ -88,8 +88,8 @@ class AccountApi:
88
88
  Weight: 20
89
89
 
90
90
  Args:
91
- asset (Optional[str]):
92
- recv_window (Optional[int]):
91
+ asset (Optional[str] = None):
92
+ recv_window (Optional[int] = None):
93
93
 
94
94
  Returns:
95
95
  ApiResponse[AccountBalanceResponse]
@@ -127,7 +127,7 @@ class AccountApi:
127
127
  Weight: 20
128
128
 
129
129
  Args:
130
- recv_window (Optional[int]):
130
+ recv_window (Optional[int] = None):
131
131
 
132
132
  Returns:
133
133
  ApiResponse[AccountInformationResponse]
@@ -153,8 +153,8 @@ class AccountApi:
153
153
 
154
154
  def bnb_transfer(
155
155
  self,
156
- amount: float = None,
157
- transfer_side: str = None,
156
+ amount: Union[float, None],
157
+ transfer_side: Union[str, None],
158
158
  recv_window: Optional[int] = None,
159
159
  ) -> ApiResponse[BnbTransferResponse]:
160
160
  """
@@ -169,9 +169,9 @@ class AccountApi:
169
169
  Weight: 750
170
170
 
171
171
  Args:
172
- amount (float):
173
- transfer_side (str): "TO_UM","FROM_UM"
174
- recv_window (Optional[int]):
172
+ amount (Union[float, None]):
173
+ transfer_side (Union[str, None]): "TO_UM","FROM_UM"
174
+ recv_window (Optional[int] = None):
175
175
 
176
176
  Returns:
177
177
  ApiResponse[BnbTransferResponse]
@@ -211,7 +211,7 @@ class AccountApi:
211
211
 
212
212
  def change_auto_repay_futures_status(
213
213
  self,
214
- auto_repay: str = None,
214
+ auto_repay: Union[str, None],
215
215
  recv_window: Optional[int] = None,
216
216
  ) -> ApiResponse[ChangeAutoRepayFuturesStatusResponse]:
217
217
  """
@@ -224,8 +224,8 @@ class AccountApi:
224
224
  Weight: 750
225
225
 
226
226
  Args:
227
- auto_repay (str): Default: `true`; `false` for turn off the auto-repay futures negative balance function
228
- recv_window (Optional[int]):
227
+ auto_repay (Union[str, None]): Default: `true`; `false` for turn off the auto-repay futures negative balance function
228
+ recv_window (Optional[int] = None):
229
229
 
230
230
  Returns:
231
231
  ApiResponse[ChangeAutoRepayFuturesStatusResponse]
@@ -257,8 +257,8 @@ class AccountApi:
257
257
 
258
258
  def change_cm_initial_leverage(
259
259
  self,
260
- symbol: str = None,
261
- leverage: int = None,
260
+ symbol: Union[str, None],
261
+ leverage: Union[int, None],
262
262
  recv_window: Optional[int] = None,
263
263
  ) -> ApiResponse[ChangeCmInitialLeverageResponse]:
264
264
  """
@@ -271,9 +271,9 @@ class AccountApi:
271
271
  Weight: 1
272
272
 
273
273
  Args:
274
- symbol (str):
275
- leverage (int): target initial leverage: int from 1 to 125
276
- recv_window (Optional[int]):
274
+ symbol (Union[str, None]):
275
+ leverage (Union[int, None]): target initial leverage: int from 1 to 125
276
+ recv_window (Optional[int] = None):
277
277
 
278
278
  Returns:
279
279
  ApiResponse[ChangeCmInitialLeverageResponse]
@@ -308,7 +308,7 @@ class AccountApi:
308
308
 
309
309
  def change_cm_position_mode(
310
310
  self,
311
- dual_side_position: str = None,
311
+ dual_side_position: Union[str, None],
312
312
  recv_window: Optional[int] = None,
313
313
  ) -> ApiResponse[ChangeCmPositionModeResponse]:
314
314
  """
@@ -321,8 +321,8 @@ class AccountApi:
321
321
  Weight: 1
322
322
 
323
323
  Args:
324
- dual_side_position (str): "true": Hedge Mode; "false": One-way Mode
325
- recv_window (Optional[int]):
324
+ dual_side_position (Union[str, None]): "true": Hedge Mode; "false": One-way Mode
325
+ recv_window (Optional[int] = None):
326
326
 
327
327
  Returns:
328
328
  ApiResponse[ChangeCmPositionModeResponse]
@@ -354,8 +354,8 @@ class AccountApi:
354
354
 
355
355
  def change_um_initial_leverage(
356
356
  self,
357
- symbol: str = None,
358
- leverage: int = None,
357
+ symbol: Union[str, None],
358
+ leverage: Union[int, None],
359
359
  recv_window: Optional[int] = None,
360
360
  ) -> ApiResponse[ChangeUmInitialLeverageResponse]:
361
361
  """
@@ -368,9 +368,9 @@ class AccountApi:
368
368
  Weight: 1
369
369
 
370
370
  Args:
371
- symbol (str):
372
- leverage (int): target initial leverage: int from 1 to 125
373
- recv_window (Optional[int]):
371
+ symbol (Union[str, None]):
372
+ leverage (Union[int, None]): target initial leverage: int from 1 to 125
373
+ recv_window (Optional[int] = None):
374
374
 
375
375
  Returns:
376
376
  ApiResponse[ChangeUmInitialLeverageResponse]
@@ -405,7 +405,7 @@ class AccountApi:
405
405
 
406
406
  def change_um_position_mode(
407
407
  self,
408
- dual_side_position: str = None,
408
+ dual_side_position: Union[str, None],
409
409
  recv_window: Optional[int] = None,
410
410
  ) -> ApiResponse[ChangeUmPositionModeResponse]:
411
411
  """
@@ -418,8 +418,8 @@ class AccountApi:
418
418
  Weight: 1
419
419
 
420
420
  Args:
421
- dual_side_position (str): "true": Hedge Mode; "false": One-way Mode
422
- recv_window (Optional[int]):
421
+ dual_side_position (Union[str, None]): "true": Hedge Mode; "false": One-way Mode
422
+ recv_window (Optional[int] = None):
423
423
 
424
424
  Returns:
425
425
  ApiResponse[ChangeUmPositionModeResponse]
@@ -464,8 +464,8 @@ class AccountApi:
464
464
  Weight: 1
465
465
 
466
466
  Args:
467
- symbol (Optional[str]):
468
- recv_window (Optional[int]):
467
+ symbol (Optional[str] = None):
468
+ recv_window (Optional[int] = None):
469
469
 
470
470
  Returns:
471
471
  ApiResponse[CmNotionalAndLeverageBracketsResponse]
@@ -506,7 +506,7 @@ class AccountApi:
506
506
  Weight: 750
507
507
 
508
508
  Args:
509
- recv_window (Optional[int]):
509
+ recv_window (Optional[int] = None):
510
510
 
511
511
  Returns:
512
512
  ApiResponse[FundAutoCollectionResponse]
@@ -532,7 +532,7 @@ class AccountApi:
532
532
 
533
533
  def fund_collection_by_asset(
534
534
  self,
535
- asset: str = None,
535
+ asset: Union[str, None],
536
536
  recv_window: Optional[int] = None,
537
537
  ) -> ApiResponse[FundCollectionByAssetResponse]:
538
538
  """
@@ -547,8 +547,8 @@ class AccountApi:
547
547
  Weight: 30
548
548
 
549
549
  Args:
550
- asset (str):
551
- recv_window (Optional[int]):
550
+ asset (Union[str, None]):
551
+ recv_window (Optional[int] = None):
552
552
 
553
553
  Returns:
554
554
  ApiResponse[FundCollectionByAssetResponse]
@@ -591,7 +591,7 @@ class AccountApi:
591
591
  Weight: 30
592
592
 
593
593
  Args:
594
- recv_window (Optional[int]):
594
+ recv_window (Optional[int] = None):
595
595
 
596
596
  Returns:
597
597
  ApiResponse[GetAutoRepayFuturesStatusResponse]
@@ -629,7 +629,7 @@ class AccountApi:
629
629
  Weight: 5
630
630
 
631
631
  Args:
632
- recv_window (Optional[int]):
632
+ recv_window (Optional[int] = None):
633
633
 
634
634
  Returns:
635
635
  ApiResponse[GetCmAccountDetailResponse]
@@ -667,7 +667,7 @@ class AccountApi:
667
667
  Weight: 30
668
668
 
669
669
  Args:
670
- recv_window (Optional[int]):
670
+ recv_window (Optional[int] = None):
671
671
 
672
672
  Returns:
673
673
  ApiResponse[GetCmCurrentPositionModeResponse]
@@ -717,13 +717,13 @@ class AccountApi:
717
717
  Weight: 30
718
718
 
719
719
  Args:
720
- symbol (Optional[str]):
721
- income_type (Optional[str]): TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
722
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
723
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
724
- page (Optional[int]):
725
- limit (Optional[int]): Default 100; max 1000
726
- recv_window (Optional[int]):
720
+ symbol (Optional[str] = None):
721
+ income_type (Optional[str] = None): TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
722
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
723
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
724
+ page (Optional[int] = None):
725
+ limit (Optional[int] = None): Default 100; max 1000
726
+ recv_window (Optional[int] = None):
727
727
 
728
728
  Returns:
729
729
  ApiResponse[GetCmIncomeHistoryResponse]
@@ -757,8 +757,8 @@ class AccountApi:
757
757
 
758
758
  def get_download_id_for_um_futures_order_history(
759
759
  self,
760
- start_time: int = None,
761
- end_time: int = None,
760
+ start_time: Union[int, None],
761
+ end_time: Union[int, None],
762
762
  recv_window: Optional[int] = None,
763
763
  ) -> ApiResponse[GetDownloadIdForUmFuturesOrderHistoryResponse]:
764
764
  """
@@ -774,9 +774,9 @@ class AccountApi:
774
774
  Weight: 1500
775
775
 
776
776
  Args:
777
- start_time (int):
778
- end_time (int):
779
- recv_window (Optional[int]):
777
+ start_time (Union[int, None]):
778
+ end_time (Union[int, None]):
779
+ recv_window (Optional[int] = None):
780
780
 
781
781
  Returns:
782
782
  ApiResponse[GetDownloadIdForUmFuturesOrderHistoryResponse]
@@ -816,8 +816,8 @@ class AccountApi:
816
816
 
817
817
  def get_download_id_for_um_futures_trade_history(
818
818
  self,
819
- start_time: int = None,
820
- end_time: int = None,
819
+ start_time: Union[int, None],
820
+ end_time: Union[int, None],
821
821
  recv_window: Optional[int] = None,
822
822
  ) -> ApiResponse[GetDownloadIdForUmFuturesTradeHistoryResponse]:
823
823
  """
@@ -833,9 +833,9 @@ class AccountApi:
833
833
  Weight: 1500
834
834
 
835
835
  Args:
836
- start_time (int):
837
- end_time (int):
838
- recv_window (Optional[int]):
836
+ start_time (Union[int, None]):
837
+ end_time (Union[int, None]):
838
+ recv_window (Optional[int] = None):
839
839
 
840
840
  Returns:
841
841
  ApiResponse[GetDownloadIdForUmFuturesTradeHistoryResponse]
@@ -875,8 +875,8 @@ class AccountApi:
875
875
 
876
876
  def get_download_id_for_um_futures_transaction_history(
877
877
  self,
878
- start_time: int = None,
879
- end_time: int = None,
878
+ start_time: Union[int, None],
879
+ end_time: Union[int, None],
880
880
  recv_window: Optional[int] = None,
881
881
  ) -> ApiResponse[GetDownloadIdForUmFuturesTransactionHistoryResponse]:
882
882
  """
@@ -892,9 +892,9 @@ class AccountApi:
892
892
  Weight: 1500
893
893
 
894
894
  Args:
895
- start_time (int):
896
- end_time (int):
897
- recv_window (Optional[int]):
895
+ start_time (Union[int, None]):
896
+ end_time (Union[int, None]):
897
+ recv_window (Optional[int] = None):
898
898
 
899
899
  Returns:
900
900
  ApiResponse[GetDownloadIdForUmFuturesTransactionHistoryResponse]
@@ -965,13 +965,13 @@ class AccountApi:
965
965
  Weight: 1
966
966
 
967
967
  Args:
968
- asset (Optional[str]):
969
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
970
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
971
- current (Optional[int]): Currently querying page. Start from 1. Default:1
972
- size (Optional[int]): Default:10 Max:100
973
- archived (Optional[str]): Default: `false`. Set to `true` for archived data from 6 months ago
974
- recv_window (Optional[int]):
968
+ asset (Optional[str] = None):
969
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
970
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
971
+ current (Optional[int] = None): Currently querying page. Start from 1. Default:1
972
+ size (Optional[int] = None): Default:10 Max:100
973
+ archived (Optional[str] = None): Default: `false`. Set to `true` for archived data from 6 months ago
974
+ recv_window (Optional[int] = None):
975
975
 
976
976
  Returns:
977
977
  ApiResponse[GetMarginBorrowLoanInterestHistoryResponse]
@@ -1017,7 +1017,7 @@ class AccountApi:
1017
1017
  Weight: 5
1018
1018
 
1019
1019
  Args:
1020
- recv_window (Optional[int]):
1020
+ recv_window (Optional[int] = None):
1021
1021
 
1022
1022
  Returns:
1023
1023
  ApiResponse[GetUmAccountDetailResponse]
@@ -1055,7 +1055,7 @@ class AccountApi:
1055
1055
  Weight: 5
1056
1056
 
1057
1057
  Args:
1058
- recv_window (Optional[int]):
1058
+ recv_window (Optional[int] = None):
1059
1059
 
1060
1060
  Returns:
1061
1061
  ApiResponse[GetUmAccountDetailV2Response]
@@ -1093,7 +1093,7 @@ class AccountApi:
1093
1093
  Weight: 30
1094
1094
 
1095
1095
  Args:
1096
- recv_window (Optional[int]):
1096
+ recv_window (Optional[int] = None):
1097
1097
 
1098
1098
  Returns:
1099
1099
  ApiResponse[GetUmCurrentPositionModeResponse]
@@ -1119,7 +1119,7 @@ class AccountApi:
1119
1119
 
1120
1120
  def get_um_futures_order_download_link_by_id(
1121
1121
  self,
1122
- download_id: str = None,
1122
+ download_id: Union[str, None],
1123
1123
  recv_window: Optional[int] = None,
1124
1124
  ) -> ApiResponse[GetUmFuturesOrderDownloadLinkByIdResponse]:
1125
1125
  """
@@ -1134,8 +1134,8 @@ class AccountApi:
1134
1134
  Weight: 10
1135
1135
 
1136
1136
  Args:
1137
- download_id (str): get by download id api
1138
- recv_window (Optional[int]):
1137
+ download_id (Union[str, None]): get by download id api
1138
+ recv_window (Optional[int] = None):
1139
1139
 
1140
1140
  Returns:
1141
1141
  ApiResponse[GetUmFuturesOrderDownloadLinkByIdResponse]
@@ -1167,7 +1167,7 @@ class AccountApi:
1167
1167
 
1168
1168
  def get_um_futures_trade_download_link_by_id(
1169
1169
  self,
1170
- download_id: str = None,
1170
+ download_id: Union[str, None],
1171
1171
  recv_window: Optional[int] = None,
1172
1172
  ) -> ApiResponse[GetUmFuturesTradeDownloadLinkByIdResponse]:
1173
1173
  """
@@ -1182,8 +1182,8 @@ class AccountApi:
1182
1182
  Weight: 10
1183
1183
 
1184
1184
  Args:
1185
- download_id (str): get by download id api
1186
- recv_window (Optional[int]):
1185
+ download_id (Union[str, None]): get by download id api
1186
+ recv_window (Optional[int] = None):
1187
1187
 
1188
1188
  Returns:
1189
1189
  ApiResponse[GetUmFuturesTradeDownloadLinkByIdResponse]
@@ -1215,7 +1215,7 @@ class AccountApi:
1215
1215
 
1216
1216
  def get_um_futures_transaction_download_link_by_id(
1217
1217
  self,
1218
- download_id: str = None,
1218
+ download_id: Union[str, None],
1219
1219
  recv_window: Optional[int] = None,
1220
1220
  ) -> ApiResponse[GetUmFuturesTransactionDownloadLinkByIdResponse]:
1221
1221
  """
@@ -1230,8 +1230,8 @@ class AccountApi:
1230
1230
  Weight: 10
1231
1231
 
1232
1232
  Args:
1233
- download_id (str): get by download id api
1234
- recv_window (Optional[int]):
1233
+ download_id (Union[str, None]): get by download id api
1234
+ recv_window (Optional[int] = None):
1235
1235
 
1236
1236
  Returns:
1237
1237
  ApiResponse[GetUmFuturesTransactionDownloadLinkByIdResponse]
@@ -1286,13 +1286,13 @@ class AccountApi:
1286
1286
  Weight: 30
1287
1287
 
1288
1288
  Args:
1289
- symbol (Optional[str]):
1290
- income_type (Optional[str]): TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
1291
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1292
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1293
- page (Optional[int]):
1294
- limit (Optional[int]): Default 100; max 1000
1295
- recv_window (Optional[int]):
1289
+ symbol (Optional[str] = None):
1290
+ income_type (Optional[str] = None): TRANSFER, WELCOME_BONUS, REALIZED_PNL, FUNDING_FEE, COMMISSION, INSURANCE_CLEAR, REFERRAL_KICKBACK, COMMISSION_REBATE, API_REBATE, CONTEST_REWARD, CROSS_COLLATERAL_TRANSFER, OPTIONS_PREMIUM_FEE, OPTIONS_SETTLE_PROFIT, INTERNAL_TRANSFER, AUTO_EXCHANGE, DELIVERED_SETTELMENT, COIN_SWAP_DEPOSIT, COIN_SWAP_WITHDRAW, POSITION_LIMIT_INCREASE_FEE
1291
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1292
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1293
+ page (Optional[int] = None):
1294
+ limit (Optional[int] = None): Default 100; max 1000
1295
+ recv_window (Optional[int] = None):
1296
1296
 
1297
1297
  Returns:
1298
1298
  ApiResponse[GetUmIncomeHistoryResponse]
@@ -1326,7 +1326,7 @@ class AccountApi:
1326
1326
 
1327
1327
  def get_user_commission_rate_for_cm(
1328
1328
  self,
1329
- symbol: str = None,
1329
+ symbol: Union[str, None],
1330
1330
  recv_window: Optional[int] = None,
1331
1331
  ) -> ApiResponse[GetUserCommissionRateForCmResponse]:
1332
1332
  """
@@ -1339,8 +1339,8 @@ class AccountApi:
1339
1339
  Weight: 20
1340
1340
 
1341
1341
  Args:
1342
- symbol (str):
1343
- recv_window (Optional[int]):
1342
+ symbol (Union[str, None]):
1343
+ recv_window (Optional[int] = None):
1344
1344
 
1345
1345
  Returns:
1346
1346
  ApiResponse[GetUserCommissionRateForCmResponse]
@@ -1371,7 +1371,7 @@ class AccountApi:
1371
1371
 
1372
1372
  def get_user_commission_rate_for_um(
1373
1373
  self,
1374
- symbol: str = None,
1374
+ symbol: Union[str, None],
1375
1375
  recv_window: Optional[int] = None,
1376
1376
  ) -> ApiResponse[GetUserCommissionRateForUmResponse]:
1377
1377
  """
@@ -1384,8 +1384,8 @@ class AccountApi:
1384
1384
  Weight: 20
1385
1385
 
1386
1386
  Args:
1387
- symbol (str):
1388
- recv_window (Optional[int]):
1387
+ symbol (Union[str, None]):
1388
+ recv_window (Optional[int] = None):
1389
1389
 
1390
1390
  Returns:
1391
1391
  ApiResponse[GetUserCommissionRateForUmResponse]
@@ -1416,7 +1416,7 @@ class AccountApi:
1416
1416
 
1417
1417
  def margin_max_borrow(
1418
1418
  self,
1419
- asset: str = None,
1419
+ asset: Union[str, None],
1420
1420
  recv_window: Optional[int] = None,
1421
1421
  ) -> ApiResponse[MarginMaxBorrowResponse]:
1422
1422
  """
@@ -1429,8 +1429,8 @@ class AccountApi:
1429
1429
  Weight: 5
1430
1430
 
1431
1431
  Args:
1432
- asset (str):
1433
- recv_window (Optional[int]):
1432
+ asset (Union[str, None]):
1433
+ recv_window (Optional[int] = None):
1434
1434
 
1435
1435
  Returns:
1436
1436
  ApiResponse[MarginMaxBorrowResponse]
@@ -1475,8 +1475,8 @@ class AccountApi:
1475
1475
  10 when the symbol parameter is omitted
1476
1476
 
1477
1477
  Args:
1478
- symbol (Optional[str]):
1479
- recv_window (Optional[int]):
1478
+ symbol (Optional[str] = None):
1479
+ recv_window (Optional[int] = None):
1480
1480
 
1481
1481
  Returns:
1482
1482
  ApiResponse[PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse]
@@ -1521,9 +1521,9 @@ class AccountApi:
1521
1521
  Weight: 1
1522
1522
 
1523
1523
  Args:
1524
- margin_asset (Optional[str]):
1525
- pair (Optional[str]):
1526
- recv_window (Optional[int]):
1524
+ margin_asset (Optional[str] = None):
1525
+ pair (Optional[str] = None):
1526
+ recv_window (Optional[int] = None):
1527
1527
 
1528
1528
  Returns:
1529
1529
  ApiResponse[QueryCmPositionInformationResponse]
@@ -1553,7 +1553,7 @@ class AccountApi:
1553
1553
 
1554
1554
  def query_margin_loan_record(
1555
1555
  self,
1556
- asset: str = None,
1556
+ asset: Union[str, None],
1557
1557
  tx_id: Optional[int] = None,
1558
1558
  start_time: Optional[int] = None,
1559
1559
  end_time: Optional[int] = None,
@@ -1578,14 +1578,14 @@ class AccountApi:
1578
1578
  Weight: 10
1579
1579
 
1580
1580
  Args:
1581
- asset (str):
1582
- tx_id (Optional[int]): the `tranId` in `POST/papi/v1/marginLoan`
1583
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1584
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1585
- current (Optional[int]): Currently querying page. Start from 1. Default:1
1586
- size (Optional[int]): Default:10 Max:100
1587
- archived (Optional[str]): Default: `false`. Set to `true` for archived data from 6 months ago
1588
- recv_window (Optional[int]):
1581
+ asset (Union[str, None]):
1582
+ tx_id (Optional[int] = None): the `tranId` in `POST/papi/v1/marginLoan`
1583
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1584
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1585
+ current (Optional[int] = None): Currently querying page. Start from 1. Default:1
1586
+ size (Optional[int] = None): Default:10 Max:100
1587
+ archived (Optional[str] = None): Default: `false`. Set to `true` for archived data from 6 months ago
1588
+ recv_window (Optional[int] = None):
1589
1589
 
1590
1590
  Returns:
1591
1591
  ApiResponse[QueryMarginLoanRecordResponse]
@@ -1625,7 +1625,7 @@ class AccountApi:
1625
1625
 
1626
1626
  def query_margin_max_withdraw(
1627
1627
  self,
1628
- asset: str = None,
1628
+ asset: Union[str, None],
1629
1629
  recv_window: Optional[int] = None,
1630
1630
  ) -> ApiResponse[QueryMarginMaxWithdrawResponse]:
1631
1631
  """
@@ -1638,8 +1638,8 @@ class AccountApi:
1638
1638
  Weight: 5
1639
1639
 
1640
1640
  Args:
1641
- asset (str):
1642
- recv_window (Optional[int]):
1641
+ asset (Union[str, None]):
1642
+ recv_window (Optional[int] = None):
1643
1643
 
1644
1644
  Returns:
1645
1645
  ApiResponse[QueryMarginMaxWithdrawResponse]
@@ -1670,7 +1670,7 @@ class AccountApi:
1670
1670
 
1671
1671
  def query_margin_repay_record(
1672
1672
  self,
1673
- asset: str = None,
1673
+ asset: Union[str, None],
1674
1674
  tx_id: Optional[int] = None,
1675
1675
  start_time: Optional[int] = None,
1676
1676
  end_time: Optional[int] = None,
@@ -1695,14 +1695,14 @@ class AccountApi:
1695
1695
  Weight: 10
1696
1696
 
1697
1697
  Args:
1698
- asset (str):
1699
- tx_id (Optional[int]): the `tranId` in `POST/papi/v1/marginLoan`
1700
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1701
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1702
- current (Optional[int]): Currently querying page. Start from 1. Default:1
1703
- size (Optional[int]): Default:10 Max:100
1704
- archived (Optional[str]): Default: `false`. Set to `true` for archived data from 6 months ago
1705
- recv_window (Optional[int]):
1698
+ asset (Union[str, None]):
1699
+ tx_id (Optional[int] = None): the `tranId` in `POST/papi/v1/marginLoan`
1700
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1701
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1702
+ current (Optional[int] = None): Currently querying page. Start from 1. Default:1
1703
+ size (Optional[int] = None): Default:10 Max:100
1704
+ archived (Optional[str] = None): Default: `false`. Set to `true` for archived data from 6 months ago
1705
+ recv_window (Optional[int] = None):
1706
1706
 
1707
1707
  Returns:
1708
1708
  ApiResponse[QueryMarginRepayRecordResponse]
@@ -1764,11 +1764,11 @@ class AccountApi:
1764
1764
  Weight: 50
1765
1765
 
1766
1766
  Args:
1767
- asset (Optional[str]):
1768
- start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
1769
- end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
1770
- size (Optional[int]): Default:10 Max:100
1771
- recv_window (Optional[int]):
1767
+ asset (Optional[str] = None):
1768
+ start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
1769
+ end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
1770
+ size (Optional[int] = None): Default:10 Max:100
1771
+ recv_window (Optional[int] = None):
1772
1772
 
1773
1773
  Returns:
1774
1774
  ApiResponse[QueryPortfolioMarginNegativeBalanceInterestHistoryResponse]
@@ -1817,8 +1817,8 @@ class AccountApi:
1817
1817
  Weight: 5
1818
1818
 
1819
1819
  Args:
1820
- symbol (Optional[str]):
1821
- recv_window (Optional[int]):
1820
+ symbol (Optional[str] = None):
1821
+ recv_window (Optional[int] = None):
1822
1822
 
1823
1823
  Returns:
1824
1824
  ApiResponse[QueryUmPositionInformationResponse]
@@ -1844,8 +1844,8 @@ class AccountApi:
1844
1844
 
1845
1845
  def query_user_negative_balance_auto_exchange_record(
1846
1846
  self,
1847
- start_time: int = None,
1848
- end_time: int = None,
1847
+ start_time: Union[int, None],
1848
+ end_time: Union[int, None],
1849
1849
  recv_window: Optional[int] = None,
1850
1850
  ) -> ApiResponse[QueryUserNegativeBalanceAutoExchangeRecordResponse]:
1851
1851
  """
@@ -1861,9 +1861,9 @@ class AccountApi:
1861
1861
  Weight: 100
1862
1862
 
1863
1863
  Args:
1864
- start_time (int):
1865
- end_time (int):
1866
- recv_window (Optional[int]):
1864
+ start_time (Union[int, None]):
1865
+ end_time (Union[int, None]):
1866
+ recv_window (Optional[int] = None):
1867
1867
 
1868
1868
  Returns:
1869
1869
  ApiResponse[QueryUserNegativeBalanceAutoExchangeRecordResponse]
@@ -1915,7 +1915,7 @@ class AccountApi:
1915
1915
  Weight: 1
1916
1916
 
1917
1917
  Args:
1918
- recv_window (Optional[int]):
1918
+ recv_window (Optional[int] = None):
1919
1919
 
1920
1920
  Returns:
1921
1921
  ApiResponse[QueryUserRateLimitResponse]
@@ -1953,7 +1953,7 @@ class AccountApi:
1953
1953
  Weight: 750
1954
1954
 
1955
1955
  Args:
1956
- recv_window (Optional[int]):
1956
+ recv_window (Optional[int] = None):
1957
1957
 
1958
1958
  Returns:
1959
1959
  ApiResponse[RepayFuturesNegativeBalanceResponse]
@@ -1991,7 +1991,7 @@ class AccountApi:
1991
1991
  Weight: 5
1992
1992
 
1993
1993
  Args:
1994
- recv_window (Optional[int]):
1994
+ recv_window (Optional[int] = None):
1995
1995
 
1996
1996
  Returns:
1997
1997
  ApiResponse[UmFuturesAccountConfigurationResponse]
@@ -2030,8 +2030,8 @@ class AccountApi:
2030
2030
  Weight: 5
2031
2031
 
2032
2032
  Args:
2033
- symbol (Optional[str]):
2034
- recv_window (Optional[int]):
2033
+ symbol (Optional[str] = None):
2034
+ recv_window (Optional[int] = None):
2035
2035
 
2036
2036
  Returns:
2037
2037
  ApiResponse[UmFuturesSymbolConfigurationResponse]
@@ -2070,8 +2070,8 @@ class AccountApi:
2070
2070
  Weight: 1
2071
2071
 
2072
2072
  Args:
2073
- symbol (Optional[str]):
2074
- recv_window (Optional[int]):
2073
+ symbol (Optional[str] = None):
2074
+ recv_window (Optional[int] = None):
2075
2075
 
2076
2076
  Returns:
2077
2077
  ApiResponse[UmNotionalAndLeverageBracketsResponse]