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.
- binance_sdk_derivatives_trading_portfolio_margin/rest_api/api/account_api.py +139 -139
- binance_sdk_derivatives_trading_portfolio_margin/rest_api/api/trade_api.py +359 -359
- binance_sdk_derivatives_trading_portfolio_margin/rest_api/rest_api.py +497 -497
- binance_sdk_derivatives_trading_portfolio_margin/websocket_streams/websocket_streams.py +10 -5
- {binance_sdk_derivatives_trading_portfolio_margin-1.1.0.dist-info → binance_sdk_derivatives_trading_portfolio_margin-1.3.0.dist-info}/METADATA +3 -3
- {binance_sdk_derivatives_trading_portfolio_margin-1.1.0.dist-info → binance_sdk_derivatives_trading_portfolio_margin-1.3.0.dist-info}/RECORD +8 -8
- {binance_sdk_derivatives_trading_portfolio_margin-1.1.0.dist-info → binance_sdk_derivatives_trading_portfolio_margin-1.3.0.dist-info}/LICENCE +0 -0
- {binance_sdk_derivatives_trading_portfolio_margin-1.1.0.dist-info → binance_sdk_derivatives_trading_portfolio_margin-1.3.0.dist-info}/WHEEL +0 -0
|
@@ -9,7 +9,7 @@ Do not edit the class manually.
|
|
|
9
9
|
"""
|
|
10
10
|
|
|
11
11
|
import requests
|
|
12
|
-
from typing import Optional, TypeVar
|
|
12
|
+
from typing import Optional, TypeVar, Union
|
|
13
13
|
from binance_common.configuration import ConfigurationRestAPI
|
|
14
14
|
from binance_common.models import ApiResponse
|
|
15
15
|
from binance_common.signature import Signers
|
|
@@ -248,8 +248,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
248
248
|
Weight: 20
|
|
249
249
|
|
|
250
250
|
Args:
|
|
251
|
-
asset (Optional[str]):
|
|
252
|
-
recv_window (Optional[int]):
|
|
251
|
+
asset (Optional[str] = None):
|
|
252
|
+
recv_window (Optional[int] = None):
|
|
253
253
|
|
|
254
254
|
Returns:
|
|
255
255
|
ApiResponse[AccountBalanceResponse]
|
|
@@ -273,7 +273,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
273
273
|
Weight: 20
|
|
274
274
|
|
|
275
275
|
Args:
|
|
276
|
-
recv_window (Optional[int]):
|
|
276
|
+
recv_window (Optional[int] = None):
|
|
277
277
|
|
|
278
278
|
Returns:
|
|
279
279
|
ApiResponse[AccountInformationResponse]
|
|
@@ -287,8 +287,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
287
287
|
|
|
288
288
|
def bnb_transfer(
|
|
289
289
|
self,
|
|
290
|
-
amount: float
|
|
291
|
-
transfer_side: str
|
|
290
|
+
amount: Union[float, None],
|
|
291
|
+
transfer_side: Union[str, None],
|
|
292
292
|
recv_window: Optional[int] = None,
|
|
293
293
|
) -> ApiResponse[BnbTransferResponse]:
|
|
294
294
|
"""
|
|
@@ -301,9 +301,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
301
301
|
Weight: 750
|
|
302
302
|
|
|
303
303
|
Args:
|
|
304
|
-
amount (float):
|
|
305
|
-
transfer_side (str): "TO_UM","FROM_UM"
|
|
306
|
-
recv_window (Optional[int]):
|
|
304
|
+
amount (Union[float, None]):
|
|
305
|
+
transfer_side (Union[str, None]): "TO_UM","FROM_UM"
|
|
306
|
+
recv_window (Optional[int] = None):
|
|
307
307
|
|
|
308
308
|
Returns:
|
|
309
309
|
ApiResponse[BnbTransferResponse]
|
|
@@ -317,7 +317,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
317
317
|
|
|
318
318
|
def change_auto_repay_futures_status(
|
|
319
319
|
self,
|
|
320
|
-
auto_repay: str
|
|
320
|
+
auto_repay: Union[str, None],
|
|
321
321
|
recv_window: Optional[int] = None,
|
|
322
322
|
) -> ApiResponse[ChangeAutoRepayFuturesStatusResponse]:
|
|
323
323
|
"""
|
|
@@ -328,8 +328,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
328
328
|
Weight: 750
|
|
329
329
|
|
|
330
330
|
Args:
|
|
331
|
-
auto_repay (str): Default: `true`; `false` for turn off the auto-repay futures negative balance function
|
|
332
|
-
recv_window (Optional[int]):
|
|
331
|
+
auto_repay (Union[str, None]): Default: `true`; `false` for turn off the auto-repay futures negative balance function
|
|
332
|
+
recv_window (Optional[int] = None):
|
|
333
333
|
|
|
334
334
|
Returns:
|
|
335
335
|
ApiResponse[ChangeAutoRepayFuturesStatusResponse]
|
|
@@ -345,8 +345,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
345
345
|
|
|
346
346
|
def change_cm_initial_leverage(
|
|
347
347
|
self,
|
|
348
|
-
symbol: str
|
|
349
|
-
leverage: int
|
|
348
|
+
symbol: Union[str, None],
|
|
349
|
+
leverage: Union[int, None],
|
|
350
350
|
recv_window: Optional[int] = None,
|
|
351
351
|
) -> ApiResponse[ChangeCmInitialLeverageResponse]:
|
|
352
352
|
"""
|
|
@@ -357,9 +357,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
357
357
|
Weight: 1
|
|
358
358
|
|
|
359
359
|
Args:
|
|
360
|
-
symbol (str):
|
|
361
|
-
leverage (int): target initial leverage: int from 1 to 125
|
|
362
|
-
recv_window (Optional[int]):
|
|
360
|
+
symbol (Union[str, None]):
|
|
361
|
+
leverage (Union[int, None]): target initial leverage: int from 1 to 125
|
|
362
|
+
recv_window (Optional[int] = None):
|
|
363
363
|
|
|
364
364
|
Returns:
|
|
365
365
|
ApiResponse[ChangeCmInitialLeverageResponse]
|
|
@@ -375,7 +375,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
375
375
|
|
|
376
376
|
def change_cm_position_mode(
|
|
377
377
|
self,
|
|
378
|
-
dual_side_position: str
|
|
378
|
+
dual_side_position: Union[str, None],
|
|
379
379
|
recv_window: Optional[int] = None,
|
|
380
380
|
) -> ApiResponse[ChangeCmPositionModeResponse]:
|
|
381
381
|
"""
|
|
@@ -386,8 +386,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
386
386
|
Weight: 1
|
|
387
387
|
|
|
388
388
|
Args:
|
|
389
|
-
dual_side_position (str): "true": Hedge Mode; "false": One-way Mode
|
|
390
|
-
recv_window (Optional[int]):
|
|
389
|
+
dual_side_position (Union[str, None]): "true": Hedge Mode; "false": One-way Mode
|
|
390
|
+
recv_window (Optional[int] = None):
|
|
391
391
|
|
|
392
392
|
Returns:
|
|
393
393
|
ApiResponse[ChangeCmPositionModeResponse]
|
|
@@ -401,8 +401,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
401
401
|
|
|
402
402
|
def change_um_initial_leverage(
|
|
403
403
|
self,
|
|
404
|
-
symbol: str
|
|
405
|
-
leverage: int
|
|
404
|
+
symbol: Union[str, None],
|
|
405
|
+
leverage: Union[int, None],
|
|
406
406
|
recv_window: Optional[int] = None,
|
|
407
407
|
) -> ApiResponse[ChangeUmInitialLeverageResponse]:
|
|
408
408
|
"""
|
|
@@ -413,9 +413,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
413
413
|
Weight: 1
|
|
414
414
|
|
|
415
415
|
Args:
|
|
416
|
-
symbol (str):
|
|
417
|
-
leverage (int): target initial leverage: int from 1 to 125
|
|
418
|
-
recv_window (Optional[int]):
|
|
416
|
+
symbol (Union[str, None]):
|
|
417
|
+
leverage (Union[int, None]): target initial leverage: int from 1 to 125
|
|
418
|
+
recv_window (Optional[int] = None):
|
|
419
419
|
|
|
420
420
|
Returns:
|
|
421
421
|
ApiResponse[ChangeUmInitialLeverageResponse]
|
|
@@ -431,7 +431,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
431
431
|
|
|
432
432
|
def change_um_position_mode(
|
|
433
433
|
self,
|
|
434
|
-
dual_side_position: str
|
|
434
|
+
dual_side_position: Union[str, None],
|
|
435
435
|
recv_window: Optional[int] = None,
|
|
436
436
|
) -> ApiResponse[ChangeUmPositionModeResponse]:
|
|
437
437
|
"""
|
|
@@ -442,8 +442,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
442
442
|
Weight: 1
|
|
443
443
|
|
|
444
444
|
Args:
|
|
445
|
-
dual_side_position (str): "true": Hedge Mode; "false": One-way Mode
|
|
446
|
-
recv_window (Optional[int]):
|
|
445
|
+
dual_side_position (Union[str, None]): "true": Hedge Mode; "false": One-way Mode
|
|
446
|
+
recv_window (Optional[int] = None):
|
|
447
447
|
|
|
448
448
|
Returns:
|
|
449
449
|
ApiResponse[ChangeUmPositionModeResponse]
|
|
@@ -468,8 +468,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
468
468
|
Weight: 1
|
|
469
469
|
|
|
470
470
|
Args:
|
|
471
|
-
symbol (Optional[str]):
|
|
472
|
-
recv_window (Optional[int]):
|
|
471
|
+
symbol (Optional[str] = None):
|
|
472
|
+
recv_window (Optional[int] = None):
|
|
473
473
|
|
|
474
474
|
Returns:
|
|
475
475
|
ApiResponse[CmNotionalAndLeverageBracketsResponse]
|
|
@@ -496,7 +496,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
496
496
|
Weight: 750
|
|
497
497
|
|
|
498
498
|
Args:
|
|
499
|
-
recv_window (Optional[int]):
|
|
499
|
+
recv_window (Optional[int] = None):
|
|
500
500
|
|
|
501
501
|
Returns:
|
|
502
502
|
ApiResponse[FundAutoCollectionResponse]
|
|
@@ -510,7 +510,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
510
510
|
|
|
511
511
|
def fund_collection_by_asset(
|
|
512
512
|
self,
|
|
513
|
-
asset: str
|
|
513
|
+
asset: Union[str, None],
|
|
514
514
|
recv_window: Optional[int] = None,
|
|
515
515
|
) -> ApiResponse[FundCollectionByAssetResponse]:
|
|
516
516
|
"""
|
|
@@ -523,8 +523,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
523
523
|
Weight: 30
|
|
524
524
|
|
|
525
525
|
Args:
|
|
526
|
-
asset (str):
|
|
527
|
-
recv_window (Optional[int]):
|
|
526
|
+
asset (Union[str, None]):
|
|
527
|
+
recv_window (Optional[int] = None):
|
|
528
528
|
|
|
529
529
|
Returns:
|
|
530
530
|
ApiResponse[FundCollectionByAssetResponse]
|
|
@@ -548,7 +548,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
548
548
|
Weight: 30
|
|
549
549
|
|
|
550
550
|
Args:
|
|
551
|
-
recv_window (Optional[int]):
|
|
551
|
+
recv_window (Optional[int] = None):
|
|
552
552
|
|
|
553
553
|
Returns:
|
|
554
554
|
ApiResponse[GetAutoRepayFuturesStatusResponse]
|
|
@@ -572,7 +572,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
572
572
|
Weight: 5
|
|
573
573
|
|
|
574
574
|
Args:
|
|
575
|
-
recv_window (Optional[int]):
|
|
575
|
+
recv_window (Optional[int] = None):
|
|
576
576
|
|
|
577
577
|
Returns:
|
|
578
578
|
ApiResponse[GetCmAccountDetailResponse]
|
|
@@ -596,7 +596,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
596
596
|
Weight: 30
|
|
597
597
|
|
|
598
598
|
Args:
|
|
599
|
-
recv_window (Optional[int]):
|
|
599
|
+
recv_window (Optional[int] = None):
|
|
600
600
|
|
|
601
601
|
Returns:
|
|
602
602
|
ApiResponse[GetCmCurrentPositionModeResponse]
|
|
@@ -632,13 +632,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
632
632
|
Weight: 30
|
|
633
633
|
|
|
634
634
|
Args:
|
|
635
|
-
symbol (Optional[str]):
|
|
636
|
-
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
|
|
637
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
638
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
639
|
-
page (Optional[int]):
|
|
640
|
-
limit (Optional[int]): Default 100; max 1000
|
|
641
|
-
recv_window (Optional[int]):
|
|
635
|
+
symbol (Optional[str] = None):
|
|
636
|
+
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
|
|
637
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
638
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
639
|
+
page (Optional[int] = None):
|
|
640
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
641
|
+
recv_window (Optional[int] = None):
|
|
642
642
|
|
|
643
643
|
Returns:
|
|
644
644
|
ApiResponse[GetCmIncomeHistoryResponse]
|
|
@@ -654,8 +654,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
654
654
|
|
|
655
655
|
def get_download_id_for_um_futures_order_history(
|
|
656
656
|
self,
|
|
657
|
-
start_time: int
|
|
658
|
-
end_time: int
|
|
657
|
+
start_time: Union[int, None],
|
|
658
|
+
end_time: Union[int, None],
|
|
659
659
|
recv_window: Optional[int] = None,
|
|
660
660
|
) -> ApiResponse[GetDownloadIdForUmFuturesOrderHistoryResponse]:
|
|
661
661
|
"""
|
|
@@ -669,9 +669,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
669
669
|
Weight: 1500
|
|
670
670
|
|
|
671
671
|
Args:
|
|
672
|
-
start_time (int):
|
|
673
|
-
end_time (int):
|
|
674
|
-
recv_window (Optional[int]):
|
|
672
|
+
start_time (Union[int, None]):
|
|
673
|
+
end_time (Union[int, None]):
|
|
674
|
+
recv_window (Optional[int] = None):
|
|
675
675
|
|
|
676
676
|
Returns:
|
|
677
677
|
ApiResponse[GetDownloadIdForUmFuturesOrderHistoryResponse]
|
|
@@ -687,8 +687,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
687
687
|
|
|
688
688
|
def get_download_id_for_um_futures_trade_history(
|
|
689
689
|
self,
|
|
690
|
-
start_time: int
|
|
691
|
-
end_time: int
|
|
690
|
+
start_time: Union[int, None],
|
|
691
|
+
end_time: Union[int, None],
|
|
692
692
|
recv_window: Optional[int] = None,
|
|
693
693
|
) -> ApiResponse[GetDownloadIdForUmFuturesTradeHistoryResponse]:
|
|
694
694
|
"""
|
|
@@ -702,9 +702,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
702
702
|
Weight: 1500
|
|
703
703
|
|
|
704
704
|
Args:
|
|
705
|
-
start_time (int):
|
|
706
|
-
end_time (int):
|
|
707
|
-
recv_window (Optional[int]):
|
|
705
|
+
start_time (Union[int, None]):
|
|
706
|
+
end_time (Union[int, None]):
|
|
707
|
+
recv_window (Optional[int] = None):
|
|
708
708
|
|
|
709
709
|
Returns:
|
|
710
710
|
ApiResponse[GetDownloadIdForUmFuturesTradeHistoryResponse]
|
|
@@ -720,8 +720,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
720
720
|
|
|
721
721
|
def get_download_id_for_um_futures_transaction_history(
|
|
722
722
|
self,
|
|
723
|
-
start_time: int
|
|
724
|
-
end_time: int
|
|
723
|
+
start_time: Union[int, None],
|
|
724
|
+
end_time: Union[int, None],
|
|
725
725
|
recv_window: Optional[int] = None,
|
|
726
726
|
) -> ApiResponse[GetDownloadIdForUmFuturesTransactionHistoryResponse]:
|
|
727
727
|
"""
|
|
@@ -735,9 +735,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
735
735
|
Weight: 1500
|
|
736
736
|
|
|
737
737
|
Args:
|
|
738
|
-
start_time (int):
|
|
739
|
-
end_time (int):
|
|
740
|
-
recv_window (Optional[int]):
|
|
738
|
+
start_time (Union[int, None]):
|
|
739
|
+
end_time (Union[int, None]):
|
|
740
|
+
recv_window (Optional[int] = None):
|
|
741
741
|
|
|
742
742
|
Returns:
|
|
743
743
|
ApiResponse[GetDownloadIdForUmFuturesTransactionHistoryResponse]
|
|
@@ -782,13 +782,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
782
782
|
Weight: 1
|
|
783
783
|
|
|
784
784
|
Args:
|
|
785
|
-
asset (Optional[str]):
|
|
786
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
787
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
788
|
-
current (Optional[int]): Currently querying page. Start from 1. Default:1
|
|
789
|
-
size (Optional[int]): Default:10 Max:100
|
|
790
|
-
archived (Optional[str]): Default: `false`. Set to `true` for archived data from 6 months ago
|
|
791
|
-
recv_window (Optional[int]):
|
|
785
|
+
asset (Optional[str] = None):
|
|
786
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
787
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
788
|
+
current (Optional[int] = None): Currently querying page. Start from 1. Default:1
|
|
789
|
+
size (Optional[int] = None): Default:10 Max:100
|
|
790
|
+
archived (Optional[str] = None): Default: `false`. Set to `true` for archived data from 6 months ago
|
|
791
|
+
recv_window (Optional[int] = None):
|
|
792
792
|
|
|
793
793
|
Returns:
|
|
794
794
|
ApiResponse[GetMarginBorrowLoanInterestHistoryResponse]
|
|
@@ -814,7 +814,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
814
814
|
Weight: 5
|
|
815
815
|
|
|
816
816
|
Args:
|
|
817
|
-
recv_window (Optional[int]):
|
|
817
|
+
recv_window (Optional[int] = None):
|
|
818
818
|
|
|
819
819
|
Returns:
|
|
820
820
|
ApiResponse[GetUmAccountDetailResponse]
|
|
@@ -838,7 +838,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
838
838
|
Weight: 5
|
|
839
839
|
|
|
840
840
|
Args:
|
|
841
|
-
recv_window (Optional[int]):
|
|
841
|
+
recv_window (Optional[int] = None):
|
|
842
842
|
|
|
843
843
|
Returns:
|
|
844
844
|
ApiResponse[GetUmAccountDetailV2Response]
|
|
@@ -862,7 +862,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
862
862
|
Weight: 30
|
|
863
863
|
|
|
864
864
|
Args:
|
|
865
|
-
recv_window (Optional[int]):
|
|
865
|
+
recv_window (Optional[int] = None):
|
|
866
866
|
|
|
867
867
|
Returns:
|
|
868
868
|
ApiResponse[GetUmCurrentPositionModeResponse]
|
|
@@ -876,7 +876,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
876
876
|
|
|
877
877
|
def get_um_futures_order_download_link_by_id(
|
|
878
878
|
self,
|
|
879
|
-
download_id: str
|
|
879
|
+
download_id: Union[str, None],
|
|
880
880
|
recv_window: Optional[int] = None,
|
|
881
881
|
) -> ApiResponse[GetUmFuturesOrderDownloadLinkByIdResponse]:
|
|
882
882
|
"""
|
|
@@ -889,8 +889,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
889
889
|
Weight: 10
|
|
890
890
|
|
|
891
891
|
Args:
|
|
892
|
-
download_id (str): get by download id api
|
|
893
|
-
recv_window (Optional[int]):
|
|
892
|
+
download_id (Union[str, None]): get by download id api
|
|
893
|
+
recv_window (Optional[int] = None):
|
|
894
894
|
|
|
895
895
|
Returns:
|
|
896
896
|
ApiResponse[GetUmFuturesOrderDownloadLinkByIdResponse]
|
|
@@ -906,7 +906,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
906
906
|
|
|
907
907
|
def get_um_futures_trade_download_link_by_id(
|
|
908
908
|
self,
|
|
909
|
-
download_id: str
|
|
909
|
+
download_id: Union[str, None],
|
|
910
910
|
recv_window: Optional[int] = None,
|
|
911
911
|
) -> ApiResponse[GetUmFuturesTradeDownloadLinkByIdResponse]:
|
|
912
912
|
"""
|
|
@@ -919,8 +919,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
919
919
|
Weight: 10
|
|
920
920
|
|
|
921
921
|
Args:
|
|
922
|
-
download_id (str): get by download id api
|
|
923
|
-
recv_window (Optional[int]):
|
|
922
|
+
download_id (Union[str, None]): get by download id api
|
|
923
|
+
recv_window (Optional[int] = None):
|
|
924
924
|
|
|
925
925
|
Returns:
|
|
926
926
|
ApiResponse[GetUmFuturesTradeDownloadLinkByIdResponse]
|
|
@@ -936,7 +936,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
936
936
|
|
|
937
937
|
def get_um_futures_transaction_download_link_by_id(
|
|
938
938
|
self,
|
|
939
|
-
download_id: str
|
|
939
|
+
download_id: Union[str, None],
|
|
940
940
|
recv_window: Optional[int] = None,
|
|
941
941
|
) -> ApiResponse[GetUmFuturesTransactionDownloadLinkByIdResponse]:
|
|
942
942
|
"""
|
|
@@ -949,8 +949,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
949
949
|
Weight: 10
|
|
950
950
|
|
|
951
951
|
Args:
|
|
952
|
-
download_id (str): get by download id api
|
|
953
|
-
recv_window (Optional[int]):
|
|
952
|
+
download_id (Union[str, None]): get by download id api
|
|
953
|
+
recv_window (Optional[int] = None):
|
|
954
954
|
|
|
955
955
|
Returns:
|
|
956
956
|
ApiResponse[GetUmFuturesTransactionDownloadLinkByIdResponse]
|
|
@@ -987,13 +987,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
987
987
|
Weight: 30
|
|
988
988
|
|
|
989
989
|
Args:
|
|
990
|
-
symbol (Optional[str]):
|
|
991
|
-
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
|
|
992
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
993
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
994
|
-
page (Optional[int]):
|
|
995
|
-
limit (Optional[int]): Default 100; max 1000
|
|
996
|
-
recv_window (Optional[int]):
|
|
990
|
+
symbol (Optional[str] = None):
|
|
991
|
+
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
|
|
992
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
993
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
994
|
+
page (Optional[int] = None):
|
|
995
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
996
|
+
recv_window (Optional[int] = None):
|
|
997
997
|
|
|
998
998
|
Returns:
|
|
999
999
|
ApiResponse[GetUmIncomeHistoryResponse]
|
|
@@ -1009,7 +1009,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1009
1009
|
|
|
1010
1010
|
def get_user_commission_rate_for_cm(
|
|
1011
1011
|
self,
|
|
1012
|
-
symbol: str
|
|
1012
|
+
symbol: Union[str, None],
|
|
1013
1013
|
recv_window: Optional[int] = None,
|
|
1014
1014
|
) -> ApiResponse[GetUserCommissionRateForCmResponse]:
|
|
1015
1015
|
"""
|
|
@@ -1020,8 +1020,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1020
1020
|
Weight: 20
|
|
1021
1021
|
|
|
1022
1022
|
Args:
|
|
1023
|
-
symbol (str):
|
|
1024
|
-
recv_window (Optional[int]):
|
|
1023
|
+
symbol (Union[str, None]):
|
|
1024
|
+
recv_window (Optional[int] = None):
|
|
1025
1025
|
|
|
1026
1026
|
Returns:
|
|
1027
1027
|
ApiResponse[GetUserCommissionRateForCmResponse]
|
|
@@ -1035,7 +1035,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1035
1035
|
|
|
1036
1036
|
def get_user_commission_rate_for_um(
|
|
1037
1037
|
self,
|
|
1038
|
-
symbol: str
|
|
1038
|
+
symbol: Union[str, None],
|
|
1039
1039
|
recv_window: Optional[int] = None,
|
|
1040
1040
|
) -> ApiResponse[GetUserCommissionRateForUmResponse]:
|
|
1041
1041
|
"""
|
|
@@ -1046,8 +1046,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1046
1046
|
Weight: 20
|
|
1047
1047
|
|
|
1048
1048
|
Args:
|
|
1049
|
-
symbol (str):
|
|
1050
|
-
recv_window (Optional[int]):
|
|
1049
|
+
symbol (Union[str, None]):
|
|
1050
|
+
recv_window (Optional[int] = None):
|
|
1051
1051
|
|
|
1052
1052
|
Returns:
|
|
1053
1053
|
ApiResponse[GetUserCommissionRateForUmResponse]
|
|
@@ -1061,7 +1061,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1061
1061
|
|
|
1062
1062
|
def margin_max_borrow(
|
|
1063
1063
|
self,
|
|
1064
|
-
asset: str
|
|
1064
|
+
asset: Union[str, None],
|
|
1065
1065
|
recv_window: Optional[int] = None,
|
|
1066
1066
|
) -> ApiResponse[MarginMaxBorrowResponse]:
|
|
1067
1067
|
"""
|
|
@@ -1072,8 +1072,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1072
1072
|
Weight: 5
|
|
1073
1073
|
|
|
1074
1074
|
Args:
|
|
1075
|
-
asset (str):
|
|
1076
|
-
recv_window (Optional[int]):
|
|
1075
|
+
asset (Union[str, None]):
|
|
1076
|
+
recv_window (Optional[int] = None):
|
|
1077
1077
|
|
|
1078
1078
|
Returns:
|
|
1079
1079
|
ApiResponse[MarginMaxBorrowResponse]
|
|
@@ -1099,8 +1099,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1099
1099
|
10 when the symbol parameter is omitted
|
|
1100
1100
|
|
|
1101
1101
|
Args:
|
|
1102
|
-
symbol (Optional[str]):
|
|
1103
|
-
recv_window (Optional[int]):
|
|
1102
|
+
symbol (Optional[str] = None):
|
|
1103
|
+
recv_window (Optional[int] = None):
|
|
1104
1104
|
|
|
1105
1105
|
Returns:
|
|
1106
1106
|
ApiResponse[PortfolioMarginUmTradingQuantitativeRulesIndicatorsResponse]
|
|
@@ -1135,9 +1135,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1135
1135
|
Weight: 1
|
|
1136
1136
|
|
|
1137
1137
|
Args:
|
|
1138
|
-
margin_asset (Optional[str]):
|
|
1139
|
-
pair (Optional[str]):
|
|
1140
|
-
recv_window (Optional[int]):
|
|
1138
|
+
margin_asset (Optional[str] = None):
|
|
1139
|
+
pair (Optional[str] = None):
|
|
1140
|
+
recv_window (Optional[int] = None):
|
|
1141
1141
|
|
|
1142
1142
|
Returns:
|
|
1143
1143
|
ApiResponse[QueryCmPositionInformationResponse]
|
|
@@ -1153,7 +1153,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1153
1153
|
|
|
1154
1154
|
def query_margin_loan_record(
|
|
1155
1155
|
self,
|
|
1156
|
-
asset: str
|
|
1156
|
+
asset: Union[str, None],
|
|
1157
1157
|
tx_id: Optional[int] = None,
|
|
1158
1158
|
start_time: Optional[int] = None,
|
|
1159
1159
|
end_time: Optional[int] = None,
|
|
@@ -1176,14 +1176,14 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1176
1176
|
Weight: 10
|
|
1177
1177
|
|
|
1178
1178
|
Args:
|
|
1179
|
-
asset (str):
|
|
1180
|
-
tx_id (Optional[int]): the `tranId` in `POST/papi/v1/marginLoan`
|
|
1181
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
1182
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
1183
|
-
current (Optional[int]): Currently querying page. Start from 1. Default:1
|
|
1184
|
-
size (Optional[int]): Default:10 Max:100
|
|
1185
|
-
archived (Optional[str]): Default: `false`. Set to `true` for archived data from 6 months ago
|
|
1186
|
-
recv_window (Optional[int]):
|
|
1179
|
+
asset (Union[str, None]):
|
|
1180
|
+
tx_id (Optional[int] = None): the `tranId` in `POST/papi/v1/marginLoan`
|
|
1181
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
1182
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
1183
|
+
current (Optional[int] = None): Currently querying page. Start from 1. Default:1
|
|
1184
|
+
size (Optional[int] = None): Default:10 Max:100
|
|
1185
|
+
archived (Optional[str] = None): Default: `false`. Set to `true` for archived data from 6 months ago
|
|
1186
|
+
recv_window (Optional[int] = None):
|
|
1187
1187
|
|
|
1188
1188
|
Returns:
|
|
1189
1189
|
ApiResponse[QueryMarginLoanRecordResponse]
|
|
@@ -1199,7 +1199,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1199
1199
|
|
|
1200
1200
|
def query_margin_max_withdraw(
|
|
1201
1201
|
self,
|
|
1202
|
-
asset: str
|
|
1202
|
+
asset: Union[str, None],
|
|
1203
1203
|
recv_window: Optional[int] = None,
|
|
1204
1204
|
) -> ApiResponse[QueryMarginMaxWithdrawResponse]:
|
|
1205
1205
|
"""
|
|
@@ -1210,8 +1210,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1210
1210
|
Weight: 5
|
|
1211
1211
|
|
|
1212
1212
|
Args:
|
|
1213
|
-
asset (str):
|
|
1214
|
-
recv_window (Optional[int]):
|
|
1213
|
+
asset (Union[str, None]):
|
|
1214
|
+
recv_window (Optional[int] = None):
|
|
1215
1215
|
|
|
1216
1216
|
Returns:
|
|
1217
1217
|
ApiResponse[QueryMarginMaxWithdrawResponse]
|
|
@@ -1225,7 +1225,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1225
1225
|
|
|
1226
1226
|
def query_margin_repay_record(
|
|
1227
1227
|
self,
|
|
1228
|
-
asset: str
|
|
1228
|
+
asset: Union[str, None],
|
|
1229
1229
|
tx_id: Optional[int] = None,
|
|
1230
1230
|
start_time: Optional[int] = None,
|
|
1231
1231
|
end_time: Optional[int] = None,
|
|
@@ -1248,14 +1248,14 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1248
1248
|
Weight: 10
|
|
1249
1249
|
|
|
1250
1250
|
Args:
|
|
1251
|
-
asset (str):
|
|
1252
|
-
tx_id (Optional[int]): the `tranId` in `POST/papi/v1/marginLoan`
|
|
1253
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
1254
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
1255
|
-
current (Optional[int]): Currently querying page. Start from 1. Default:1
|
|
1256
|
-
size (Optional[int]): Default:10 Max:100
|
|
1257
|
-
archived (Optional[str]): Default: `false`. Set to `true` for archived data from 6 months ago
|
|
1258
|
-
recv_window (Optional[int]):
|
|
1251
|
+
asset (Union[str, None]):
|
|
1252
|
+
tx_id (Optional[int] = None): the `tranId` in `POST/papi/v1/marginLoan`
|
|
1253
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
1254
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
1255
|
+
current (Optional[int] = None): Currently querying page. Start from 1. Default:1
|
|
1256
|
+
size (Optional[int] = None): Default:10 Max:100
|
|
1257
|
+
archived (Optional[str] = None): Default: `false`. Set to `true` for archived data from 6 months ago
|
|
1258
|
+
recv_window (Optional[int] = None):
|
|
1259
1259
|
|
|
1260
1260
|
Returns:
|
|
1261
1261
|
ApiResponse[QueryMarginRepayRecordResponse]
|
|
@@ -1291,11 +1291,11 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1291
1291
|
Weight: 50
|
|
1292
1292
|
|
|
1293
1293
|
Args:
|
|
1294
|
-
asset (Optional[str]):
|
|
1295
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
1296
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
1297
|
-
size (Optional[int]): Default:10 Max:100
|
|
1298
|
-
recv_window (Optional[int]):
|
|
1294
|
+
asset (Optional[str] = None):
|
|
1295
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
1296
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
1297
|
+
size (Optional[int] = None): Default:10 Max:100
|
|
1298
|
+
recv_window (Optional[int] = None):
|
|
1299
1299
|
|
|
1300
1300
|
Returns:
|
|
1301
1301
|
ApiResponse[QueryPortfolioMarginNegativeBalanceInterestHistoryResponse]
|
|
@@ -1328,8 +1328,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1328
1328
|
Weight: 5
|
|
1329
1329
|
|
|
1330
1330
|
Args:
|
|
1331
|
-
symbol (Optional[str]):
|
|
1332
|
-
recv_window (Optional[int]):
|
|
1331
|
+
symbol (Optional[str] = None):
|
|
1332
|
+
recv_window (Optional[int] = None):
|
|
1333
1333
|
|
|
1334
1334
|
Returns:
|
|
1335
1335
|
ApiResponse[QueryUmPositionInformationResponse]
|
|
@@ -1343,8 +1343,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1343
1343
|
|
|
1344
1344
|
def query_user_negative_balance_auto_exchange_record(
|
|
1345
1345
|
self,
|
|
1346
|
-
start_time: int
|
|
1347
|
-
end_time: int
|
|
1346
|
+
start_time: Union[int, None],
|
|
1347
|
+
end_time: Union[int, None],
|
|
1348
1348
|
recv_window: Optional[int] = None,
|
|
1349
1349
|
) -> ApiResponse[QueryUserNegativeBalanceAutoExchangeRecordResponse]:
|
|
1350
1350
|
"""
|
|
@@ -1358,9 +1358,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1358
1358
|
Weight: 100
|
|
1359
1359
|
|
|
1360
1360
|
Args:
|
|
1361
|
-
start_time (int):
|
|
1362
|
-
end_time (int):
|
|
1363
|
-
recv_window (Optional[int]):
|
|
1361
|
+
start_time (Union[int, None]):
|
|
1362
|
+
end_time (Union[int, None]):
|
|
1363
|
+
recv_window (Optional[int] = None):
|
|
1364
1364
|
|
|
1365
1365
|
Returns:
|
|
1366
1366
|
ApiResponse[QueryUserNegativeBalanceAutoExchangeRecordResponse]
|
|
@@ -1386,7 +1386,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1386
1386
|
Weight: 1
|
|
1387
1387
|
|
|
1388
1388
|
Args:
|
|
1389
|
-
recv_window (Optional[int]):
|
|
1389
|
+
recv_window (Optional[int] = None):
|
|
1390
1390
|
|
|
1391
1391
|
Returns:
|
|
1392
1392
|
ApiResponse[QueryUserRateLimitResponse]
|
|
@@ -1410,7 +1410,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1410
1410
|
Weight: 750
|
|
1411
1411
|
|
|
1412
1412
|
Args:
|
|
1413
|
-
recv_window (Optional[int]):
|
|
1413
|
+
recv_window (Optional[int] = None):
|
|
1414
1414
|
|
|
1415
1415
|
Returns:
|
|
1416
1416
|
ApiResponse[RepayFuturesNegativeBalanceResponse]
|
|
@@ -1434,7 +1434,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1434
1434
|
Weight: 5
|
|
1435
1435
|
|
|
1436
1436
|
Args:
|
|
1437
|
-
recv_window (Optional[int]):
|
|
1437
|
+
recv_window (Optional[int] = None):
|
|
1438
1438
|
|
|
1439
1439
|
Returns:
|
|
1440
1440
|
ApiResponse[UmFuturesAccountConfigurationResponse]
|
|
@@ -1459,8 +1459,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1459
1459
|
Weight: 5
|
|
1460
1460
|
|
|
1461
1461
|
Args:
|
|
1462
|
-
symbol (Optional[str]):
|
|
1463
|
-
recv_window (Optional[int]):
|
|
1462
|
+
symbol (Optional[str] = None):
|
|
1463
|
+
recv_window (Optional[int] = None):
|
|
1464
1464
|
|
|
1465
1465
|
Returns:
|
|
1466
1466
|
ApiResponse[UmFuturesSymbolConfigurationResponse]
|
|
@@ -1485,8 +1485,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1485
1485
|
Weight: 1
|
|
1486
1486
|
|
|
1487
1487
|
Args:
|
|
1488
|
-
symbol (Optional[str]):
|
|
1489
|
-
recv_window (Optional[int]):
|
|
1488
|
+
symbol (Optional[str] = None):
|
|
1489
|
+
recv_window (Optional[int] = None):
|
|
1490
1490
|
|
|
1491
1491
|
Returns:
|
|
1492
1492
|
ApiResponse[UmNotionalAndLeverageBracketsResponse]
|
|
@@ -1522,7 +1522,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1522
1522
|
|
|
1523
1523
|
def cancel_all_cm_open_conditional_orders(
|
|
1524
1524
|
self,
|
|
1525
|
-
symbol: str
|
|
1525
|
+
symbol: Union[str, None],
|
|
1526
1526
|
recv_window: Optional[int] = None,
|
|
1527
1527
|
) -> ApiResponse[CancelAllCmOpenConditionalOrdersResponse]:
|
|
1528
1528
|
"""
|
|
@@ -1533,8 +1533,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1533
1533
|
Weight: 1
|
|
1534
1534
|
|
|
1535
1535
|
Args:
|
|
1536
|
-
symbol (str):
|
|
1537
|
-
recv_window (Optional[int]):
|
|
1536
|
+
symbol (Union[str, None]):
|
|
1537
|
+
recv_window (Optional[int] = None):
|
|
1538
1538
|
|
|
1539
1539
|
Returns:
|
|
1540
1540
|
ApiResponse[CancelAllCmOpenConditionalOrdersResponse]
|
|
@@ -1548,7 +1548,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1548
1548
|
|
|
1549
1549
|
def cancel_all_cm_open_orders(
|
|
1550
1550
|
self,
|
|
1551
|
-
symbol: str
|
|
1551
|
+
symbol: Union[str, None],
|
|
1552
1552
|
recv_window: Optional[int] = None,
|
|
1553
1553
|
) -> ApiResponse[CancelAllCmOpenOrdersResponse]:
|
|
1554
1554
|
"""
|
|
@@ -1559,8 +1559,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1559
1559
|
Weight: 1
|
|
1560
1560
|
|
|
1561
1561
|
Args:
|
|
1562
|
-
symbol (str):
|
|
1563
|
-
recv_window (Optional[int]):
|
|
1562
|
+
symbol (Union[str, None]):
|
|
1563
|
+
recv_window (Optional[int] = None):
|
|
1564
1564
|
|
|
1565
1565
|
Returns:
|
|
1566
1566
|
ApiResponse[CancelAllCmOpenOrdersResponse]
|
|
@@ -1574,7 +1574,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1574
1574
|
|
|
1575
1575
|
def cancel_all_um_open_conditional_orders(
|
|
1576
1576
|
self,
|
|
1577
|
-
symbol: str
|
|
1577
|
+
symbol: Union[str, None],
|
|
1578
1578
|
recv_window: Optional[int] = None,
|
|
1579
1579
|
) -> ApiResponse[CancelAllUmOpenConditionalOrdersResponse]:
|
|
1580
1580
|
"""
|
|
@@ -1585,8 +1585,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1585
1585
|
Weight: 1
|
|
1586
1586
|
|
|
1587
1587
|
Args:
|
|
1588
|
-
symbol (str):
|
|
1589
|
-
recv_window (Optional[int]):
|
|
1588
|
+
symbol (Union[str, None]):
|
|
1589
|
+
recv_window (Optional[int] = None):
|
|
1590
1590
|
|
|
1591
1591
|
Returns:
|
|
1592
1592
|
ApiResponse[CancelAllUmOpenConditionalOrdersResponse]
|
|
@@ -1600,7 +1600,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1600
1600
|
|
|
1601
1601
|
def cancel_all_um_open_orders(
|
|
1602
1602
|
self,
|
|
1603
|
-
symbol: str
|
|
1603
|
+
symbol: Union[str, None],
|
|
1604
1604
|
recv_window: Optional[int] = None,
|
|
1605
1605
|
) -> ApiResponse[CancelAllUmOpenOrdersResponse]:
|
|
1606
1606
|
"""
|
|
@@ -1611,8 +1611,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1611
1611
|
Weight: 1
|
|
1612
1612
|
|
|
1613
1613
|
Args:
|
|
1614
|
-
symbol (str):
|
|
1615
|
-
recv_window (Optional[int]):
|
|
1614
|
+
symbol (Union[str, None]):
|
|
1615
|
+
recv_window (Optional[int] = None):
|
|
1616
1616
|
|
|
1617
1617
|
Returns:
|
|
1618
1618
|
ApiResponse[CancelAllUmOpenOrdersResponse]
|
|
@@ -1626,7 +1626,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1626
1626
|
|
|
1627
1627
|
def cancel_cm_conditional_order(
|
|
1628
1628
|
self,
|
|
1629
|
-
symbol: str
|
|
1629
|
+
symbol: Union[str, None],
|
|
1630
1630
|
strategy_id: Optional[int] = None,
|
|
1631
1631
|
new_client_strategy_id: Optional[str] = None,
|
|
1632
1632
|
recv_window: Optional[int] = None,
|
|
@@ -1641,10 +1641,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1641
1641
|
Weight: 1
|
|
1642
1642
|
|
|
1643
1643
|
Args:
|
|
1644
|
-
symbol (str):
|
|
1645
|
-
strategy_id (Optional[int]):
|
|
1646
|
-
new_client_strategy_id (Optional[str]):
|
|
1647
|
-
recv_window (Optional[int]):
|
|
1644
|
+
symbol (Union[str, None]):
|
|
1645
|
+
strategy_id (Optional[int] = None):
|
|
1646
|
+
new_client_strategy_id (Optional[str] = None):
|
|
1647
|
+
recv_window (Optional[int] = None):
|
|
1648
1648
|
|
|
1649
1649
|
Returns:
|
|
1650
1650
|
ApiResponse[CancelCmConditionalOrderResponse]
|
|
@@ -1660,7 +1660,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1660
1660
|
|
|
1661
1661
|
def cancel_cm_order(
|
|
1662
1662
|
self,
|
|
1663
|
-
symbol: str
|
|
1663
|
+
symbol: Union[str, None],
|
|
1664
1664
|
order_id: Optional[int] = None,
|
|
1665
1665
|
orig_client_order_id: Optional[str] = None,
|
|
1666
1666
|
recv_window: Optional[int] = None,
|
|
@@ -1675,10 +1675,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1675
1675
|
Weight: 1
|
|
1676
1676
|
|
|
1677
1677
|
Args:
|
|
1678
|
-
symbol (str):
|
|
1679
|
-
order_id (Optional[int]):
|
|
1680
|
-
orig_client_order_id (Optional[str]):
|
|
1681
|
-
recv_window (Optional[int]):
|
|
1678
|
+
symbol (Union[str, None]):
|
|
1679
|
+
order_id (Optional[int] = None):
|
|
1680
|
+
orig_client_order_id (Optional[str] = None):
|
|
1681
|
+
recv_window (Optional[int] = None):
|
|
1682
1682
|
|
|
1683
1683
|
Returns:
|
|
1684
1684
|
ApiResponse[CancelCmOrderResponse]
|
|
@@ -1694,7 +1694,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1694
1694
|
|
|
1695
1695
|
def cancel_margin_account_all_open_orders_on_a_symbol(
|
|
1696
1696
|
self,
|
|
1697
|
-
symbol: str
|
|
1697
|
+
symbol: Union[str, None],
|
|
1698
1698
|
recv_window: Optional[int] = None,
|
|
1699
1699
|
) -> ApiResponse[CancelMarginAccountAllOpenOrdersOnASymbolResponse]:
|
|
1700
1700
|
"""
|
|
@@ -1705,8 +1705,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1705
1705
|
Weight: 5
|
|
1706
1706
|
|
|
1707
1707
|
Args:
|
|
1708
|
-
symbol (str):
|
|
1709
|
-
recv_window (Optional[int]):
|
|
1708
|
+
symbol (Union[str, None]):
|
|
1709
|
+
recv_window (Optional[int] = None):
|
|
1710
1710
|
|
|
1711
1711
|
Returns:
|
|
1712
1712
|
ApiResponse[CancelMarginAccountAllOpenOrdersOnASymbolResponse]
|
|
@@ -1722,7 +1722,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1722
1722
|
|
|
1723
1723
|
def cancel_margin_account_oco_orders(
|
|
1724
1724
|
self,
|
|
1725
|
-
symbol: str
|
|
1725
|
+
symbol: Union[str, None],
|
|
1726
1726
|
order_list_id: Optional[int] = None,
|
|
1727
1727
|
list_client_order_id: Optional[str] = None,
|
|
1728
1728
|
new_client_order_id: Optional[str] = None,
|
|
@@ -1738,11 +1738,11 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1738
1738
|
Weight: 2
|
|
1739
1739
|
|
|
1740
1740
|
Args:
|
|
1741
|
-
symbol (str):
|
|
1742
|
-
order_list_id (Optional[int]): Either `orderListId` or `listClientOrderId` must be provided
|
|
1743
|
-
list_client_order_id (Optional[str]): Either `orderListId` or `listClientOrderId` must be provided
|
|
1744
|
-
new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
|
|
1745
|
-
recv_window (Optional[int]):
|
|
1741
|
+
symbol (Union[str, None]):
|
|
1742
|
+
order_list_id (Optional[int] = None): Either `orderListId` or `listClientOrderId` must be provided
|
|
1743
|
+
list_client_order_id (Optional[str] = None): Either `orderListId` or `listClientOrderId` must be provided
|
|
1744
|
+
new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
|
|
1745
|
+
recv_window (Optional[int] = None):
|
|
1746
1746
|
|
|
1747
1747
|
Returns:
|
|
1748
1748
|
ApiResponse[CancelMarginAccountOcoOrdersResponse]
|
|
@@ -1762,7 +1762,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1762
1762
|
|
|
1763
1763
|
def cancel_margin_account_order(
|
|
1764
1764
|
self,
|
|
1765
|
-
symbol: str
|
|
1765
|
+
symbol: Union[str, None],
|
|
1766
1766
|
order_id: Optional[int] = None,
|
|
1767
1767
|
orig_client_order_id: Optional[str] = None,
|
|
1768
1768
|
new_client_order_id: Optional[str] = None,
|
|
@@ -1778,11 +1778,11 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1778
1778
|
Weight: 2
|
|
1779
1779
|
|
|
1780
1780
|
Args:
|
|
1781
|
-
symbol (str):
|
|
1782
|
-
order_id (Optional[int]):
|
|
1783
|
-
orig_client_order_id (Optional[str]):
|
|
1784
|
-
new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
|
|
1785
|
-
recv_window (Optional[int]):
|
|
1781
|
+
symbol (Union[str, None]):
|
|
1782
|
+
order_id (Optional[int] = None):
|
|
1783
|
+
orig_client_order_id (Optional[str] = None):
|
|
1784
|
+
new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
|
|
1785
|
+
recv_window (Optional[int] = None):
|
|
1786
1786
|
|
|
1787
1787
|
Returns:
|
|
1788
1788
|
ApiResponse[CancelMarginAccountOrderResponse]
|
|
@@ -1798,7 +1798,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1798
1798
|
|
|
1799
1799
|
def cancel_um_conditional_order(
|
|
1800
1800
|
self,
|
|
1801
|
-
symbol: str
|
|
1801
|
+
symbol: Union[str, None],
|
|
1802
1802
|
strategy_id: Optional[int] = None,
|
|
1803
1803
|
new_client_strategy_id: Optional[str] = None,
|
|
1804
1804
|
recv_window: Optional[int] = None,
|
|
@@ -1813,10 +1813,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1813
1813
|
Weight: 1
|
|
1814
1814
|
|
|
1815
1815
|
Args:
|
|
1816
|
-
symbol (str):
|
|
1817
|
-
strategy_id (Optional[int]):
|
|
1818
|
-
new_client_strategy_id (Optional[str]):
|
|
1819
|
-
recv_window (Optional[int]):
|
|
1816
|
+
symbol (Union[str, None]):
|
|
1817
|
+
strategy_id (Optional[int] = None):
|
|
1818
|
+
new_client_strategy_id (Optional[str] = None):
|
|
1819
|
+
recv_window (Optional[int] = None):
|
|
1820
1820
|
|
|
1821
1821
|
Returns:
|
|
1822
1822
|
ApiResponse[CancelUmConditionalOrderResponse]
|
|
@@ -1832,7 +1832,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1832
1832
|
|
|
1833
1833
|
def cancel_um_order(
|
|
1834
1834
|
self,
|
|
1835
|
-
symbol: str
|
|
1835
|
+
symbol: Union[str, None],
|
|
1836
1836
|
order_id: Optional[int] = None,
|
|
1837
1837
|
orig_client_order_id: Optional[str] = None,
|
|
1838
1838
|
recv_window: Optional[int] = None,
|
|
@@ -1847,10 +1847,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1847
1847
|
Weight: 1
|
|
1848
1848
|
|
|
1849
1849
|
Args:
|
|
1850
|
-
symbol (str):
|
|
1851
|
-
order_id (Optional[int]):
|
|
1852
|
-
orig_client_order_id (Optional[str]):
|
|
1853
|
-
recv_window (Optional[int]):
|
|
1850
|
+
symbol (Union[str, None]):
|
|
1851
|
+
order_id (Optional[int] = None):
|
|
1852
|
+
orig_client_order_id (Optional[str] = None):
|
|
1853
|
+
recv_window (Optional[int] = None):
|
|
1854
1854
|
|
|
1855
1855
|
Returns:
|
|
1856
1856
|
ApiResponse[CancelUmOrderResponse]
|
|
@@ -1891,13 +1891,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1891
1891
|
Weight: 20 with symbol, 40 with pair
|
|
1892
1892
|
|
|
1893
1893
|
Args:
|
|
1894
|
-
symbol (Optional[str]):
|
|
1895
|
-
pair (Optional[str]):
|
|
1896
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
1897
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
1898
|
-
from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
|
|
1899
|
-
limit (Optional[int]): Default 100; max 1000
|
|
1900
|
-
recv_window (Optional[int]):
|
|
1894
|
+
symbol (Optional[str] = None):
|
|
1895
|
+
pair (Optional[str] = None):
|
|
1896
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
1897
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
1898
|
+
from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
|
|
1899
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
1900
|
+
recv_window (Optional[int] = None):
|
|
1901
1901
|
|
|
1902
1902
|
Returns:
|
|
1903
1903
|
ApiResponse[CmAccountTradeListResponse]
|
|
@@ -1930,8 +1930,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1930
1930
|
Weight: 5
|
|
1931
1931
|
|
|
1932
1932
|
Args:
|
|
1933
|
-
symbol (Optional[str]):
|
|
1934
|
-
recv_window (Optional[int]):
|
|
1933
|
+
symbol (Optional[str] = None):
|
|
1934
|
+
recv_window (Optional[int] = None):
|
|
1935
1935
|
|
|
1936
1936
|
Returns:
|
|
1937
1937
|
ApiResponse[CmPositionAdlQuantileEstimationResponse]
|
|
@@ -1955,7 +1955,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1955
1955
|
Weight: 30
|
|
1956
1956
|
|
|
1957
1957
|
Args:
|
|
1958
|
-
recv_window (Optional[int]):
|
|
1958
|
+
recv_window (Optional[int] = None):
|
|
1959
1959
|
|
|
1960
1960
|
Returns:
|
|
1961
1961
|
ApiResponse[GetUmFuturesBnbBurnStatusResponse]
|
|
@@ -1969,8 +1969,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1969
1969
|
|
|
1970
1970
|
def margin_account_borrow(
|
|
1971
1971
|
self,
|
|
1972
|
-
asset: str
|
|
1973
|
-
amount: float
|
|
1972
|
+
asset: Union[str, None],
|
|
1973
|
+
amount: Union[float, None],
|
|
1974
1974
|
recv_window: Optional[int] = None,
|
|
1975
1975
|
) -> ApiResponse[MarginAccountBorrowResponse]:
|
|
1976
1976
|
"""
|
|
@@ -1981,9 +1981,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1981
1981
|
Weight: 100
|
|
1982
1982
|
|
|
1983
1983
|
Args:
|
|
1984
|
-
asset (str):
|
|
1985
|
-
amount (float):
|
|
1986
|
-
recv_window (Optional[int]):
|
|
1984
|
+
asset (Union[str, None]):
|
|
1985
|
+
amount (Union[float, None]):
|
|
1986
|
+
recv_window (Optional[int] = None):
|
|
1987
1987
|
|
|
1988
1988
|
Returns:
|
|
1989
1989
|
ApiResponse[MarginAccountBorrowResponse]
|
|
@@ -1997,11 +1997,11 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
1997
1997
|
|
|
1998
1998
|
def margin_account_new_oco(
|
|
1999
1999
|
self,
|
|
2000
|
-
symbol: str
|
|
2001
|
-
side: MarginAccountNewOcoSideEnum
|
|
2002
|
-
quantity: float
|
|
2003
|
-
price: float
|
|
2004
|
-
stop_price: float
|
|
2000
|
+
symbol: Union[str, None],
|
|
2001
|
+
side: Union[MarginAccountNewOcoSideEnum, None],
|
|
2002
|
+
quantity: Union[float, None],
|
|
2003
|
+
price: Union[float, None],
|
|
2004
|
+
stop_price: Union[float, None],
|
|
2005
2005
|
list_client_order_id: Optional[str] = None,
|
|
2006
2006
|
limit_client_order_id: Optional[str] = None,
|
|
2007
2007
|
limit_iceberg_qty: Optional[float] = None,
|
|
@@ -2032,21 +2032,21 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2032
2032
|
Weight: 1
|
|
2033
2033
|
|
|
2034
2034
|
Args:
|
|
2035
|
-
symbol (str):
|
|
2036
|
-
side (MarginAccountNewOcoSideEnum):
|
|
2037
|
-
quantity (float): Order quantity
|
|
2038
|
-
price (float):
|
|
2039
|
-
stop_price (float):
|
|
2040
|
-
list_client_order_id (Optional[str]): Either `orderListId` or `listClientOrderId` must be provided
|
|
2041
|
-
limit_client_order_id (Optional[str]): A unique Id for the limit order
|
|
2042
|
-
limit_iceberg_qty (Optional[float]):
|
|
2043
|
-
stop_client_order_id (Optional[str]): A unique Id for the stop loss/stop loss limit leg
|
|
2044
|
-
stop_limit_price (Optional[float]): If provided, stopLimitTimeInForce is required.
|
|
2045
|
-
stop_iceberg_qty (Optional[float]):
|
|
2046
|
-
stop_limit_time_in_force (Optional[MarginAccountNewOcoStopLimitTimeInForceEnum]): Valid values are `GTC/FOK/IOC`
|
|
2047
|
-
new_order_resp_type (Optional[MarginAccountNewOcoNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
|
|
2048
|
-
side_effect_type (Optional[MarginAccountNewOcoSideEffectTypeEnum]): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
|
|
2049
|
-
recv_window (Optional[int]):
|
|
2035
|
+
symbol (Union[str, None]):
|
|
2036
|
+
side (Union[MarginAccountNewOcoSideEnum, None]):
|
|
2037
|
+
quantity (Union[float, None]): Order quantity
|
|
2038
|
+
price (Union[float, None]):
|
|
2039
|
+
stop_price (Union[float, None]):
|
|
2040
|
+
list_client_order_id (Optional[str] = None): Either `orderListId` or `listClientOrderId` must be provided
|
|
2041
|
+
limit_client_order_id (Optional[str] = None): A unique Id for the limit order
|
|
2042
|
+
limit_iceberg_qty (Optional[float] = None):
|
|
2043
|
+
stop_client_order_id (Optional[str] = None): A unique Id for the stop loss/stop loss limit leg
|
|
2044
|
+
stop_limit_price (Optional[float] = None): If provided, stopLimitTimeInForce is required.
|
|
2045
|
+
stop_iceberg_qty (Optional[float] = None):
|
|
2046
|
+
stop_limit_time_in_force (Optional[MarginAccountNewOcoStopLimitTimeInForceEnum] = None): Valid values are `GTC/FOK/IOC`
|
|
2047
|
+
new_order_resp_type (Optional[MarginAccountNewOcoNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
|
|
2048
|
+
side_effect_type (Optional[MarginAccountNewOcoSideEffectTypeEnum] = None): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
|
|
2049
|
+
recv_window (Optional[int] = None):
|
|
2050
2050
|
|
|
2051
2051
|
Returns:
|
|
2052
2052
|
ApiResponse[MarginAccountNewOcoResponse]
|
|
@@ -2076,8 +2076,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2076
2076
|
|
|
2077
2077
|
def margin_account_repay(
|
|
2078
2078
|
self,
|
|
2079
|
-
asset: str
|
|
2080
|
-
amount: float
|
|
2079
|
+
asset: Union[str, None],
|
|
2080
|
+
amount: Union[float, None],
|
|
2081
2081
|
recv_window: Optional[int] = None,
|
|
2082
2082
|
) -> ApiResponse[MarginAccountRepayResponse]:
|
|
2083
2083
|
"""
|
|
@@ -2088,9 +2088,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2088
2088
|
Weight: 100
|
|
2089
2089
|
|
|
2090
2090
|
Args:
|
|
2091
|
-
asset (str):
|
|
2092
|
-
amount (float):
|
|
2093
|
-
recv_window (Optional[int]):
|
|
2091
|
+
asset (Union[str, None]):
|
|
2092
|
+
amount (Union[float, None]):
|
|
2093
|
+
recv_window (Optional[int] = None):
|
|
2094
2094
|
|
|
2095
2095
|
Returns:
|
|
2096
2096
|
ApiResponse[MarginAccountRepayResponse]
|
|
@@ -2104,7 +2104,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2104
2104
|
|
|
2105
2105
|
def margin_account_repay_debt(
|
|
2106
2106
|
self,
|
|
2107
|
-
asset: str
|
|
2107
|
+
asset: Union[str, None],
|
|
2108
2108
|
amount: Optional[str] = None,
|
|
2109
2109
|
specify_repay_assets: Optional[str] = None,
|
|
2110
2110
|
recv_window: Optional[int] = None,
|
|
@@ -2122,10 +2122,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2122
2122
|
Weight: 3000
|
|
2123
2123
|
|
|
2124
2124
|
Args:
|
|
2125
|
-
asset (str):
|
|
2126
|
-
amount (Optional[str]):
|
|
2127
|
-
specify_repay_assets (Optional[str]): Specific asset list to repay debt; Can be added in batch, separated by commas
|
|
2128
|
-
recv_window (Optional[int]):
|
|
2125
|
+
asset (Union[str, None]):
|
|
2126
|
+
amount (Optional[str] = None):
|
|
2127
|
+
specify_repay_assets (Optional[str] = None): Specific asset list to repay debt; Can be added in batch, separated by commas
|
|
2128
|
+
recv_window (Optional[int] = None):
|
|
2129
2129
|
|
|
2130
2130
|
Returns:
|
|
2131
2131
|
ApiResponse[MarginAccountRepayDebtResponse]
|
|
@@ -2141,7 +2141,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2141
2141
|
|
|
2142
2142
|
def margin_account_trade_list(
|
|
2143
2143
|
self,
|
|
2144
|
-
symbol: str
|
|
2144
|
+
symbol: Union[str, None],
|
|
2145
2145
|
order_id: Optional[int] = None,
|
|
2146
2146
|
start_time: Optional[int] = None,
|
|
2147
2147
|
end_time: Optional[int] = None,
|
|
@@ -2157,13 +2157,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2157
2157
|
Weight: 5
|
|
2158
2158
|
|
|
2159
2159
|
Args:
|
|
2160
|
-
symbol (str):
|
|
2161
|
-
order_id (Optional[int]):
|
|
2162
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
2163
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
2164
|
-
from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
|
|
2165
|
-
limit (Optional[int]): Default 100; max 1000
|
|
2166
|
-
recv_window (Optional[int]):
|
|
2160
|
+
symbol (Union[str, None]):
|
|
2161
|
+
order_id (Optional[int] = None):
|
|
2162
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
2163
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
2164
|
+
from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
|
|
2165
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
2166
|
+
recv_window (Optional[int] = None):
|
|
2167
2167
|
|
|
2168
2168
|
Returns:
|
|
2169
2169
|
ApiResponse[MarginAccountTradeListResponse]
|
|
@@ -2179,10 +2179,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2179
2179
|
|
|
2180
2180
|
def modify_cm_order(
|
|
2181
2181
|
self,
|
|
2182
|
-
symbol: str
|
|
2183
|
-
side: ModifyCmOrderSideEnum
|
|
2184
|
-
quantity: float
|
|
2185
|
-
price: float
|
|
2182
|
+
symbol: Union[str, None],
|
|
2183
|
+
side: Union[ModifyCmOrderSideEnum, None],
|
|
2184
|
+
quantity: Union[float, None],
|
|
2185
|
+
price: Union[float, None],
|
|
2186
2186
|
order_id: Optional[int] = None,
|
|
2187
2187
|
orig_client_order_id: Optional[str] = None,
|
|
2188
2188
|
price_match: Optional[ModifyCmOrderPriceMatchEnum] = None,
|
|
@@ -2203,14 +2203,14 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2203
2203
|
Weight: 1
|
|
2204
2204
|
|
|
2205
2205
|
Args:
|
|
2206
|
-
symbol (str):
|
|
2207
|
-
side (ModifyCmOrderSideEnum):
|
|
2208
|
-
quantity (float): Order quantity
|
|
2209
|
-
price (float):
|
|
2210
|
-
order_id (Optional[int]):
|
|
2211
|
-
orig_client_order_id (Optional[str]):
|
|
2212
|
-
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`
|
|
2213
|
-
recv_window (Optional[int]):
|
|
2206
|
+
symbol (Union[str, None]):
|
|
2207
|
+
side (Union[ModifyCmOrderSideEnum, None]):
|
|
2208
|
+
quantity (Union[float, None]): Order quantity
|
|
2209
|
+
price (Union[float, None]):
|
|
2210
|
+
order_id (Optional[int] = None):
|
|
2211
|
+
orig_client_order_id (Optional[str] = None):
|
|
2212
|
+
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`
|
|
2213
|
+
recv_window (Optional[int] = None):
|
|
2214
2214
|
|
|
2215
2215
|
Returns:
|
|
2216
2216
|
ApiResponse[ModifyCmOrderResponse]
|
|
@@ -2233,10 +2233,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2233
2233
|
|
|
2234
2234
|
def modify_um_order(
|
|
2235
2235
|
self,
|
|
2236
|
-
symbol: str
|
|
2237
|
-
side: ModifyUmOrderSideEnum
|
|
2238
|
-
quantity: float
|
|
2239
|
-
price: float
|
|
2236
|
+
symbol: Union[str, None],
|
|
2237
|
+
side: Union[ModifyUmOrderSideEnum, None],
|
|
2238
|
+
quantity: Union[float, None],
|
|
2239
|
+
price: Union[float, None],
|
|
2240
2240
|
order_id: Optional[int] = None,
|
|
2241
2241
|
orig_client_order_id: Optional[str] = None,
|
|
2242
2242
|
price_match: Optional[ModifyUmOrderPriceMatchEnum] = None,
|
|
@@ -2257,14 +2257,14 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2257
2257
|
Weight: 1
|
|
2258
2258
|
|
|
2259
2259
|
Args:
|
|
2260
|
-
symbol (str):
|
|
2261
|
-
side (ModifyUmOrderSideEnum):
|
|
2262
|
-
quantity (float): Order quantity
|
|
2263
|
-
price (float):
|
|
2264
|
-
order_id (Optional[int]):
|
|
2265
|
-
orig_client_order_id (Optional[str]):
|
|
2266
|
-
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`
|
|
2267
|
-
recv_window (Optional[int]):
|
|
2260
|
+
symbol (Union[str, None]):
|
|
2261
|
+
side (Union[ModifyUmOrderSideEnum, None]):
|
|
2262
|
+
quantity (Union[float, None]): Order quantity
|
|
2263
|
+
price (Union[float, None]):
|
|
2264
|
+
order_id (Optional[int] = None):
|
|
2265
|
+
orig_client_order_id (Optional[str] = None):
|
|
2266
|
+
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`
|
|
2267
|
+
recv_window (Optional[int] = None):
|
|
2268
2268
|
|
|
2269
2269
|
Returns:
|
|
2270
2270
|
ApiResponse[ModifyUmOrderResponse]
|
|
@@ -2287,9 +2287,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2287
2287
|
|
|
2288
2288
|
def new_cm_conditional_order(
|
|
2289
2289
|
self,
|
|
2290
|
-
symbol: str
|
|
2291
|
-
side: NewCmConditionalOrderSideEnum
|
|
2292
|
-
strategy_type: NewCmConditionalOrderStrategyTypeEnum
|
|
2290
|
+
symbol: Union[str, None],
|
|
2291
|
+
side: Union[NewCmConditionalOrderSideEnum, None],
|
|
2292
|
+
strategy_type: Union[NewCmConditionalOrderStrategyTypeEnum, None],
|
|
2293
2293
|
position_side: Optional[NewCmConditionalOrderPositionSideEnum] = None,
|
|
2294
2294
|
time_in_force: Optional[NewCmConditionalOrderTimeInForceEnum] = None,
|
|
2295
2295
|
quantity: Optional[float] = None,
|
|
@@ -2336,21 +2336,21 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2336
2336
|
Weight: 1
|
|
2337
2337
|
|
|
2338
2338
|
Args:
|
|
2339
|
-
symbol (str):
|
|
2340
|
-
side (NewCmConditionalOrderSideEnum):
|
|
2341
|
-
strategy_type (NewCmConditionalOrderStrategyTypeEnum): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
|
|
2342
|
-
position_side (Optional[NewCmConditionalOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2343
|
-
time_in_force (Optional[NewCmConditionalOrderTimeInForceEnum]):
|
|
2344
|
-
quantity (Optional[float]):
|
|
2345
|
-
reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2346
|
-
price (Optional[float]):
|
|
2347
|
-
working_type (Optional[NewCmConditionalOrderWorkingTypeEnum]): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
|
|
2348
|
-
price_protect (Optional[str]): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
|
|
2349
|
-
new_client_strategy_id (Optional[str]):
|
|
2350
|
-
stop_price (Optional[float]): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
|
|
2351
|
-
activation_price (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
|
|
2352
|
-
callback_rate (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
|
|
2353
|
-
recv_window (Optional[int]):
|
|
2339
|
+
symbol (Union[str, None]):
|
|
2340
|
+
side (Union[NewCmConditionalOrderSideEnum, None]):
|
|
2341
|
+
strategy_type (Union[NewCmConditionalOrderStrategyTypeEnum, None]): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
|
|
2342
|
+
position_side (Optional[NewCmConditionalOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2343
|
+
time_in_force (Optional[NewCmConditionalOrderTimeInForceEnum] = None):
|
|
2344
|
+
quantity (Optional[float] = None):
|
|
2345
|
+
reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2346
|
+
price (Optional[float] = None):
|
|
2347
|
+
working_type (Optional[NewCmConditionalOrderWorkingTypeEnum] = None): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
|
|
2348
|
+
price_protect (Optional[str] = None): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
|
|
2349
|
+
new_client_strategy_id (Optional[str] = None):
|
|
2350
|
+
stop_price (Optional[float] = None): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
|
|
2351
|
+
activation_price (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
|
|
2352
|
+
callback_rate (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
|
|
2353
|
+
recv_window (Optional[int] = None):
|
|
2354
2354
|
|
|
2355
2355
|
Returns:
|
|
2356
2356
|
ApiResponse[NewCmConditionalOrderResponse]
|
|
@@ -2380,9 +2380,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2380
2380
|
|
|
2381
2381
|
def new_cm_order(
|
|
2382
2382
|
self,
|
|
2383
|
-
symbol: str
|
|
2384
|
-
side: NewCmOrderSideEnum
|
|
2385
|
-
type: NewCmOrderTypeEnum
|
|
2383
|
+
symbol: Union[str, None],
|
|
2384
|
+
side: Union[NewCmOrderSideEnum, None],
|
|
2385
|
+
type: Union[NewCmOrderTypeEnum, None],
|
|
2386
2386
|
position_side: Optional[NewCmOrderPositionSideEnum] = None,
|
|
2387
2387
|
time_in_force: Optional[NewCmOrderTimeInForceEnum] = None,
|
|
2388
2388
|
quantity: Optional[float] = None,
|
|
@@ -2405,18 +2405,18 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2405
2405
|
Weight: 1
|
|
2406
2406
|
|
|
2407
2407
|
Args:
|
|
2408
|
-
symbol (str):
|
|
2409
|
-
side (NewCmOrderSideEnum):
|
|
2410
|
-
type (NewCmOrderTypeEnum): `LIMIT`, `MARKET`
|
|
2411
|
-
position_side (Optional[NewCmOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2412
|
-
time_in_force (Optional[NewCmOrderTimeInForceEnum]):
|
|
2413
|
-
quantity (Optional[float]):
|
|
2414
|
-
reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2415
|
-
price (Optional[float]):
|
|
2416
|
-
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`
|
|
2417
|
-
new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
|
|
2418
|
-
new_order_resp_type (Optional[NewCmOrderNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
|
|
2419
|
-
recv_window (Optional[int]):
|
|
2408
|
+
symbol (Union[str, None]):
|
|
2409
|
+
side (Union[NewCmOrderSideEnum, None]):
|
|
2410
|
+
type (Union[NewCmOrderTypeEnum, None]): `LIMIT`, `MARKET`
|
|
2411
|
+
position_side (Optional[NewCmOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2412
|
+
time_in_force (Optional[NewCmOrderTimeInForceEnum] = None):
|
|
2413
|
+
quantity (Optional[float] = None):
|
|
2414
|
+
reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2415
|
+
price (Optional[float] = None):
|
|
2416
|
+
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`
|
|
2417
|
+
new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
|
|
2418
|
+
new_order_resp_type (Optional[NewCmOrderNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
|
|
2419
|
+
recv_window (Optional[int] = None):
|
|
2420
2420
|
|
|
2421
2421
|
Returns:
|
|
2422
2422
|
ApiResponse[NewCmOrderResponse]
|
|
@@ -2443,9 +2443,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2443
2443
|
|
|
2444
2444
|
def new_margin_order(
|
|
2445
2445
|
self,
|
|
2446
|
-
symbol: str
|
|
2447
|
-
side: NewMarginOrderSideEnum
|
|
2448
|
-
type: NewMarginOrderTypeEnum
|
|
2446
|
+
symbol: Union[str, None],
|
|
2447
|
+
side: Union[NewMarginOrderSideEnum, None],
|
|
2448
|
+
type: Union[NewMarginOrderTypeEnum, None],
|
|
2449
2449
|
quantity: Optional[float] = None,
|
|
2450
2450
|
quote_order_qty: Optional[float] = None,
|
|
2451
2451
|
price: Optional[float] = None,
|
|
@@ -2469,21 +2469,21 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2469
2469
|
Weight: 1
|
|
2470
2470
|
|
|
2471
2471
|
Args:
|
|
2472
|
-
symbol (str):
|
|
2473
|
-
side (NewMarginOrderSideEnum):
|
|
2474
|
-
type (NewMarginOrderTypeEnum): `LIMIT`, `MARKET`
|
|
2475
|
-
quantity (Optional[float]):
|
|
2476
|
-
quote_order_qty (Optional[float]):
|
|
2477
|
-
price (Optional[float]):
|
|
2478
|
-
stop_price (Optional[float]): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
|
|
2479
|
-
new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
|
|
2480
|
-
new_order_resp_type (Optional[NewMarginOrderNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
|
|
2481
|
-
iceberg_qty (Optional[float]): Used with `LIMIT`, `STOP_LOSS_LIMIT`, and `TAKE_PROFIT_LIMIT` to create an iceberg order
|
|
2482
|
-
side_effect_type (Optional[NewMarginOrderSideEffectTypeEnum]): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
|
|
2483
|
-
time_in_force (Optional[NewMarginOrderTimeInForceEnum]):
|
|
2484
|
-
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
|
|
2485
|
-
auto_repay_at_cancel (Optional[bool]): 只有在自动借款单或者自动借还单生效,true表示的是撤单后需要把订单产生的借款归还,默认为true
|
|
2486
|
-
recv_window (Optional[int]):
|
|
2472
|
+
symbol (Union[str, None]):
|
|
2473
|
+
side (Union[NewMarginOrderSideEnum, None]):
|
|
2474
|
+
type (Union[NewMarginOrderTypeEnum, None]): `LIMIT`, `MARKET`
|
|
2475
|
+
quantity (Optional[float] = None):
|
|
2476
|
+
quote_order_qty (Optional[float] = None):
|
|
2477
|
+
price (Optional[float] = None):
|
|
2478
|
+
stop_price (Optional[float] = None): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
|
|
2479
|
+
new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
|
|
2480
|
+
new_order_resp_type (Optional[NewMarginOrderNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
|
|
2481
|
+
iceberg_qty (Optional[float] = None): Used with `LIMIT`, `STOP_LOSS_LIMIT`, and `TAKE_PROFIT_LIMIT` to create an iceberg order
|
|
2482
|
+
side_effect_type (Optional[NewMarginOrderSideEffectTypeEnum] = None): NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY; default NO_SIDE_EFFECT.
|
|
2483
|
+
time_in_force (Optional[NewMarginOrderTimeInForceEnum] = None):
|
|
2484
|
+
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
|
|
2485
|
+
auto_repay_at_cancel (Optional[bool] = None): 只有在自动借款单或者自动借还单生效,true表示的是撤单后需要把订单产生的借款归还,默认为true
|
|
2486
|
+
recv_window (Optional[int] = None):
|
|
2487
2487
|
|
|
2488
2488
|
Returns:
|
|
2489
2489
|
ApiResponse[NewMarginOrderResponse]
|
|
@@ -2513,9 +2513,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2513
2513
|
|
|
2514
2514
|
def new_um_conditional_order(
|
|
2515
2515
|
self,
|
|
2516
|
-
symbol: str
|
|
2517
|
-
side: NewUmConditionalOrderSideEnum
|
|
2518
|
-
strategy_type: NewUmConditionalOrderStrategyTypeEnum
|
|
2516
|
+
symbol: Union[str, None],
|
|
2517
|
+
side: Union[NewUmConditionalOrderSideEnum, None],
|
|
2518
|
+
strategy_type: Union[NewUmConditionalOrderStrategyTypeEnum, None],
|
|
2519
2519
|
position_side: Optional[NewUmConditionalOrderPositionSideEnum] = None,
|
|
2520
2520
|
time_in_force: Optional[NewUmConditionalOrderTimeInForceEnum] = None,
|
|
2521
2521
|
quantity: Optional[float] = None,
|
|
@@ -2569,24 +2569,24 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2569
2569
|
Weight: 1
|
|
2570
2570
|
|
|
2571
2571
|
Args:
|
|
2572
|
-
symbol (str):
|
|
2573
|
-
side (NewUmConditionalOrderSideEnum):
|
|
2574
|
-
strategy_type (NewUmConditionalOrderStrategyTypeEnum): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
|
|
2575
|
-
position_side (Optional[NewUmConditionalOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2576
|
-
time_in_force (Optional[NewUmConditionalOrderTimeInForceEnum]):
|
|
2577
|
-
quantity (Optional[float]):
|
|
2578
|
-
reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2579
|
-
price (Optional[float]):
|
|
2580
|
-
working_type (Optional[NewUmConditionalOrderWorkingTypeEnum]): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
|
|
2581
|
-
price_protect (Optional[str]): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
|
|
2582
|
-
new_client_strategy_id (Optional[str]):
|
|
2583
|
-
stop_price (Optional[float]): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
|
|
2584
|
-
activation_price (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
|
|
2585
|
-
callback_rate (Optional[float]): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
|
|
2586
|
-
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`
|
|
2587
|
-
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
|
|
2588
|
-
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.
|
|
2589
|
-
recv_window (Optional[int]):
|
|
2572
|
+
symbol (Union[str, None]):
|
|
2573
|
+
side (Union[NewUmConditionalOrderSideEnum, None]):
|
|
2574
|
+
strategy_type (Union[NewUmConditionalOrderStrategyTypeEnum, None]): "STOP", "STOP_MARKET", "TAKE_PROFIT", "TAKE_PROFIT_MARKET", and "TRAILING_STOP_MARKET"
|
|
2575
|
+
position_side (Optional[NewUmConditionalOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2576
|
+
time_in_force (Optional[NewUmConditionalOrderTimeInForceEnum] = None):
|
|
2577
|
+
quantity (Optional[float] = None):
|
|
2578
|
+
reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2579
|
+
price (Optional[float] = None):
|
|
2580
|
+
working_type (Optional[NewUmConditionalOrderWorkingTypeEnum] = None): stopPrice triggered by: "MARK_PRICE", "CONTRACT_PRICE". Default "CONTRACT_PRICE"
|
|
2581
|
+
price_protect (Optional[str] = None): "TRUE" or "FALSE", default "FALSE". Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders
|
|
2582
|
+
new_client_strategy_id (Optional[str] = None):
|
|
2583
|
+
stop_price (Optional[float] = None): Used with `STOP/STOP_MARKET` or `TAKE_PROFIT/TAKE_PROFIT_MARKET` orders.
|
|
2584
|
+
activation_price (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, default as the mark price
|
|
2585
|
+
callback_rate (Optional[float] = None): Used with `TRAILING_STOP_MARKET` orders, min 0.1, max 5 where 1 for 1%
|
|
2586
|
+
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`
|
|
2587
|
+
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
|
|
2588
|
+
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.
|
|
2589
|
+
recv_window (Optional[int] = None):
|
|
2590
2590
|
|
|
2591
2591
|
Returns:
|
|
2592
2592
|
ApiResponse[NewUmConditionalOrderResponse]
|
|
@@ -2619,9 +2619,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2619
2619
|
|
|
2620
2620
|
def new_um_order(
|
|
2621
2621
|
self,
|
|
2622
|
-
symbol: str
|
|
2623
|
-
side: NewUmOrderSideEnum
|
|
2624
|
-
type: NewUmOrderTypeEnum
|
|
2622
|
+
symbol: Union[str, None],
|
|
2623
|
+
side: Union[NewUmOrderSideEnum, None],
|
|
2624
|
+
type: Union[NewUmOrderTypeEnum, None],
|
|
2625
2625
|
position_side: Optional[NewUmOrderPositionSideEnum] = None,
|
|
2626
2626
|
time_in_force: Optional[NewUmOrderTimeInForceEnum] = None,
|
|
2627
2627
|
quantity: Optional[float] = None,
|
|
@@ -2650,20 +2650,20 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2650
2650
|
Weight: 1
|
|
2651
2651
|
|
|
2652
2652
|
Args:
|
|
2653
|
-
symbol (str):
|
|
2654
|
-
side (NewUmOrderSideEnum):
|
|
2655
|
-
type (NewUmOrderTypeEnum): `LIMIT`, `MARKET`
|
|
2656
|
-
position_side (Optional[NewUmOrderPositionSideEnum]): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2657
|
-
time_in_force (Optional[NewUmOrderTimeInForceEnum]):
|
|
2658
|
-
quantity (Optional[float]):
|
|
2659
|
-
reduce_only (Optional[str]): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2660
|
-
price (Optional[float]):
|
|
2661
|
-
new_client_order_id (Optional[str]): Used to uniquely identify this cancel. Automatically generated by default
|
|
2662
|
-
new_order_resp_type (Optional[NewUmOrderNewOrderRespTypeEnum]): "ACK", "RESULT", default "ACK"
|
|
2663
|
-
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`
|
|
2664
|
-
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
|
|
2665
|
-
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.
|
|
2666
|
-
recv_window (Optional[int]):
|
|
2653
|
+
symbol (Union[str, None]):
|
|
2654
|
+
side (Union[NewUmOrderSideEnum, None]):
|
|
2655
|
+
type (Union[NewUmOrderTypeEnum, None]): `LIMIT`, `MARKET`
|
|
2656
|
+
position_side (Optional[NewUmOrderPositionSideEnum] = None): Default `BOTH` for One-way Mode ; `LONG` or `SHORT` for Hedge Mode. It must be sent in Hedge Mode.
|
|
2657
|
+
time_in_force (Optional[NewUmOrderTimeInForceEnum] = None):
|
|
2658
|
+
quantity (Optional[float] = None):
|
|
2659
|
+
reduce_only (Optional[str] = None): "true" or "false". default "false". Cannot be sent in Hedge Mode .
|
|
2660
|
+
price (Optional[float] = None):
|
|
2661
|
+
new_client_order_id (Optional[str] = None): Used to uniquely identify this cancel. Automatically generated by default
|
|
2662
|
+
new_order_resp_type (Optional[NewUmOrderNewOrderRespTypeEnum] = None): "ACK", "RESULT", default "ACK"
|
|
2663
|
+
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`
|
|
2664
|
+
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
|
|
2665
|
+
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.
|
|
2666
|
+
recv_window (Optional[int] = None):
|
|
2667
2667
|
|
|
2668
2668
|
Returns:
|
|
2669
2669
|
ApiResponse[NewUmOrderResponse]
|
|
@@ -2713,12 +2713,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2713
2713
|
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
|
|
2714
2714
|
|
|
2715
2715
|
Args:
|
|
2716
|
-
symbol (Optional[str]):
|
|
2717
|
-
strategy_id (Optional[int]):
|
|
2718
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
2719
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
2720
|
-
limit (Optional[int]): Default 100; max 1000
|
|
2721
|
-
recv_window (Optional[int]):
|
|
2716
|
+
symbol (Optional[str] = None):
|
|
2717
|
+
strategy_id (Optional[int] = None):
|
|
2718
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
2719
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
2720
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
2721
|
+
recv_window (Optional[int] = None):
|
|
2722
2722
|
|
|
2723
2723
|
Returns:
|
|
2724
2724
|
ApiResponse[QueryAllCmConditionalOrdersResponse]
|
|
@@ -2734,7 +2734,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2734
2734
|
|
|
2735
2735
|
def query_all_cm_orders(
|
|
2736
2736
|
self,
|
|
2737
|
-
symbol: str
|
|
2737
|
+
symbol: Union[str, None],
|
|
2738
2738
|
pair: Optional[str] = None,
|
|
2739
2739
|
order_id: Optional[int] = None,
|
|
2740
2740
|
start_time: Optional[int] = None,
|
|
@@ -2757,13 +2757,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2757
2757
|
Weight: 20 with symbol, 40 with pair
|
|
2758
2758
|
|
|
2759
2759
|
Args:
|
|
2760
|
-
symbol (str):
|
|
2761
|
-
pair (Optional[str]):
|
|
2762
|
-
order_id (Optional[int]):
|
|
2763
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
2764
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
2765
|
-
limit (Optional[int]): Default 100; max 1000
|
|
2766
|
-
recv_window (Optional[int]):
|
|
2760
|
+
symbol (Union[str, None]):
|
|
2761
|
+
pair (Optional[str] = None):
|
|
2762
|
+
order_id (Optional[int] = None):
|
|
2763
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
2764
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
2765
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
2766
|
+
recv_window (Optional[int] = None):
|
|
2767
2767
|
|
|
2768
2768
|
Returns:
|
|
2769
2769
|
ApiResponse[QueryAllCmOrdersResponse]
|
|
@@ -2792,8 +2792,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2792
2792
|
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
|
|
2793
2793
|
|
|
2794
2794
|
Args:
|
|
2795
|
-
symbol (Optional[str]):
|
|
2796
|
-
recv_window (Optional[int]):
|
|
2795
|
+
symbol (Optional[str] = None):
|
|
2796
|
+
recv_window (Optional[int] = None):
|
|
2797
2797
|
|
|
2798
2798
|
Returns:
|
|
2799
2799
|
ApiResponse[QueryAllCurrentCmOpenConditionalOrdersResponse]
|
|
@@ -2824,9 +2824,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2824
2824
|
Careful when accessing this with no symbol.
|
|
2825
2825
|
|
|
2826
2826
|
Args:
|
|
2827
|
-
symbol (Optional[str]):
|
|
2828
|
-
pair (Optional[str]):
|
|
2829
|
-
recv_window (Optional[int]):
|
|
2827
|
+
symbol (Optional[str] = None):
|
|
2828
|
+
pair (Optional[str] = None):
|
|
2829
|
+
recv_window (Optional[int] = None):
|
|
2830
2830
|
|
|
2831
2831
|
Returns:
|
|
2832
2832
|
ApiResponse[QueryAllCurrentCmOpenOrdersResponse]
|
|
@@ -2856,8 +2856,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2856
2856
|
Careful when accessing this with no symbol.
|
|
2857
2857
|
|
|
2858
2858
|
Args:
|
|
2859
|
-
symbol (Optional[str]):
|
|
2860
|
-
recv_window (Optional[int]):
|
|
2859
|
+
symbol (Optional[str] = None):
|
|
2860
|
+
recv_window (Optional[int] = None):
|
|
2861
2861
|
|
|
2862
2862
|
Returns:
|
|
2863
2863
|
ApiResponse[QueryAllCurrentUmOpenConditionalOrdersResponse]
|
|
@@ -2887,8 +2887,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2887
2887
|
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
|
|
2888
2888
|
|
|
2889
2889
|
Args:
|
|
2890
|
-
symbol (Optional[str]):
|
|
2891
|
-
recv_window (Optional[int]):
|
|
2890
|
+
symbol (Optional[str] = None):
|
|
2891
|
+
recv_window (Optional[int] = None):
|
|
2892
2892
|
|
|
2893
2893
|
Returns:
|
|
2894
2894
|
ApiResponse[QueryAllCurrentUmOpenOrdersResponse]
|
|
@@ -2902,7 +2902,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2902
2902
|
|
|
2903
2903
|
def query_all_margin_account_orders(
|
|
2904
2904
|
self,
|
|
2905
|
-
symbol: str
|
|
2905
|
+
symbol: Union[str, None],
|
|
2906
2906
|
order_id: Optional[int] = None,
|
|
2907
2907
|
start_time: Optional[int] = None,
|
|
2908
2908
|
end_time: Optional[int] = None,
|
|
@@ -2917,12 +2917,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2917
2917
|
Weight: 100
|
|
2918
2918
|
|
|
2919
2919
|
Args:
|
|
2920
|
-
symbol (str):
|
|
2921
|
-
order_id (Optional[int]):
|
|
2922
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
2923
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
2924
|
-
limit (Optional[int]): Default 100; max 1000
|
|
2925
|
-
recv_window (Optional[int]):
|
|
2920
|
+
symbol (Union[str, None]):
|
|
2921
|
+
order_id (Optional[int] = None):
|
|
2922
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
2923
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
2924
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
2925
|
+
recv_window (Optional[int] = None):
|
|
2926
2926
|
|
|
2927
2927
|
Returns:
|
|
2928
2928
|
ApiResponse[QueryAllMarginAccountOrdersResponse]
|
|
@@ -2959,12 +2959,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2959
2959
|
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
|
|
2960
2960
|
|
|
2961
2961
|
Args:
|
|
2962
|
-
symbol (Optional[str]):
|
|
2963
|
-
strategy_id (Optional[int]):
|
|
2964
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
2965
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
2966
|
-
limit (Optional[int]): Default 100; max 1000
|
|
2967
|
-
recv_window (Optional[int]):
|
|
2962
|
+
symbol (Optional[str] = None):
|
|
2963
|
+
strategy_id (Optional[int] = None):
|
|
2964
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
2965
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
2966
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
2967
|
+
recv_window (Optional[int] = None):
|
|
2968
2968
|
|
|
2969
2969
|
Returns:
|
|
2970
2970
|
ApiResponse[QueryAllUmConditionalOrdersResponse]
|
|
@@ -2980,7 +2980,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
2980
2980
|
|
|
2981
2981
|
def query_all_um_orders(
|
|
2982
2982
|
self,
|
|
2983
|
-
symbol: str
|
|
2983
|
+
symbol: Union[str, None],
|
|
2984
2984
|
order_id: Optional[int] = None,
|
|
2985
2985
|
start_time: Optional[int] = None,
|
|
2986
2986
|
end_time: Optional[int] = None,
|
|
@@ -3002,12 +3002,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3002
3002
|
Weight: 5
|
|
3003
3003
|
|
|
3004
3004
|
Args:
|
|
3005
|
-
symbol (str):
|
|
3006
|
-
order_id (Optional[int]):
|
|
3007
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3008
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3009
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3010
|
-
recv_window (Optional[int]):
|
|
3005
|
+
symbol (Union[str, None]):
|
|
3006
|
+
order_id (Optional[int] = None):
|
|
3007
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3008
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3009
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3010
|
+
recv_window (Optional[int] = None):
|
|
3011
3011
|
|
|
3012
3012
|
Returns:
|
|
3013
3013
|
ApiResponse[QueryAllUmOrdersResponse]
|
|
@@ -3023,7 +3023,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3023
3023
|
|
|
3024
3024
|
def query_cm_conditional_order_history(
|
|
3025
3025
|
self,
|
|
3026
|
-
symbol: str
|
|
3026
|
+
symbol: Union[str, None],
|
|
3027
3027
|
strategy_id: Optional[int] = None,
|
|
3028
3028
|
new_client_strategy_id: Optional[str] = None,
|
|
3029
3029
|
recv_window: Optional[int] = None,
|
|
@@ -3044,10 +3044,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3044
3044
|
Weight: 1
|
|
3045
3045
|
|
|
3046
3046
|
Args:
|
|
3047
|
-
symbol (str):
|
|
3048
|
-
strategy_id (Optional[int]):
|
|
3049
|
-
new_client_strategy_id (Optional[str]):
|
|
3050
|
-
recv_window (Optional[int]):
|
|
3047
|
+
symbol (Union[str, None]):
|
|
3048
|
+
strategy_id (Optional[int] = None):
|
|
3049
|
+
new_client_strategy_id (Optional[str] = None):
|
|
3050
|
+
recv_window (Optional[int] = None):
|
|
3051
3051
|
|
|
3052
3052
|
Returns:
|
|
3053
3053
|
ApiResponse[QueryCmConditionalOrderHistoryResponse]
|
|
@@ -3063,7 +3063,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3063
3063
|
|
|
3064
3064
|
def query_cm_modify_order_history(
|
|
3065
3065
|
self,
|
|
3066
|
-
symbol: str
|
|
3066
|
+
symbol: Union[str, None],
|
|
3067
3067
|
order_id: Optional[int] = None,
|
|
3068
3068
|
orig_client_order_id: Optional[str] = None,
|
|
3069
3069
|
start_time: Optional[int] = None,
|
|
@@ -3081,13 +3081,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3081
3081
|
Weight: 1
|
|
3082
3082
|
|
|
3083
3083
|
Args:
|
|
3084
|
-
symbol (str):
|
|
3085
|
-
order_id (Optional[int]):
|
|
3086
|
-
orig_client_order_id (Optional[str]):
|
|
3087
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3088
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3089
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3090
|
-
recv_window (Optional[int]):
|
|
3084
|
+
symbol (Union[str, None]):
|
|
3085
|
+
order_id (Optional[int] = None):
|
|
3086
|
+
orig_client_order_id (Optional[str] = None):
|
|
3087
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3088
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3089
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3090
|
+
recv_window (Optional[int] = None):
|
|
3091
3091
|
|
|
3092
3092
|
Returns:
|
|
3093
3093
|
ApiResponse[QueryCmModifyOrderHistoryResponse]
|
|
@@ -3109,7 +3109,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3109
3109
|
|
|
3110
3110
|
def query_cm_order(
|
|
3111
3111
|
self,
|
|
3112
|
-
symbol: str
|
|
3112
|
+
symbol: Union[str, None],
|
|
3113
3113
|
order_id: Optional[int] = None,
|
|
3114
3114
|
orig_client_order_id: Optional[str] = None,
|
|
3115
3115
|
recv_window: Optional[int] = None,
|
|
@@ -3128,10 +3128,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3128
3128
|
Weight: 1
|
|
3129
3129
|
|
|
3130
3130
|
Args:
|
|
3131
|
-
symbol (str):
|
|
3132
|
-
order_id (Optional[int]):
|
|
3133
|
-
orig_client_order_id (Optional[str]):
|
|
3134
|
-
recv_window (Optional[int]):
|
|
3131
|
+
symbol (Union[str, None]):
|
|
3132
|
+
order_id (Optional[int] = None):
|
|
3133
|
+
orig_client_order_id (Optional[str] = None):
|
|
3134
|
+
recv_window (Optional[int] = None):
|
|
3135
3135
|
|
|
3136
3136
|
Returns:
|
|
3137
3137
|
ApiResponse[QueryCmOrderResponse]
|
|
@@ -3147,7 +3147,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3147
3147
|
|
|
3148
3148
|
def query_current_cm_open_conditional_order(
|
|
3149
3149
|
self,
|
|
3150
|
-
symbol: str
|
|
3150
|
+
symbol: Union[str, None],
|
|
3151
3151
|
strategy_id: Optional[int] = None,
|
|
3152
3152
|
new_client_strategy_id: Optional[str] = None,
|
|
3153
3153
|
recv_window: Optional[int] = None,
|
|
@@ -3163,10 +3163,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3163
3163
|
Weight: 1
|
|
3164
3164
|
|
|
3165
3165
|
Args:
|
|
3166
|
-
symbol (str):
|
|
3167
|
-
strategy_id (Optional[int]):
|
|
3168
|
-
new_client_strategy_id (Optional[str]):
|
|
3169
|
-
recv_window (Optional[int]):
|
|
3166
|
+
symbol (Union[str, None]):
|
|
3167
|
+
strategy_id (Optional[int] = None):
|
|
3168
|
+
new_client_strategy_id (Optional[str] = None):
|
|
3169
|
+
recv_window (Optional[int] = None):
|
|
3170
3170
|
|
|
3171
3171
|
Returns:
|
|
3172
3172
|
ApiResponse[QueryCurrentCmOpenConditionalOrderResponse]
|
|
@@ -3182,7 +3182,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3182
3182
|
|
|
3183
3183
|
def query_current_cm_open_order(
|
|
3184
3184
|
self,
|
|
3185
|
-
symbol: str
|
|
3185
|
+
symbol: Union[str, None],
|
|
3186
3186
|
order_id: Optional[int] = None,
|
|
3187
3187
|
orig_client_order_id: Optional[str] = None,
|
|
3188
3188
|
recv_window: Optional[int] = None,
|
|
@@ -3198,10 +3198,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3198
3198
|
Weight: 1
|
|
3199
3199
|
|
|
3200
3200
|
Args:
|
|
3201
|
-
symbol (str):
|
|
3202
|
-
order_id (Optional[int]):
|
|
3203
|
-
orig_client_order_id (Optional[str]):
|
|
3204
|
-
recv_window (Optional[int]):
|
|
3201
|
+
symbol (Union[str, None]):
|
|
3202
|
+
order_id (Optional[int] = None):
|
|
3203
|
+
orig_client_order_id (Optional[str] = None):
|
|
3204
|
+
recv_window (Optional[int] = None):
|
|
3205
3205
|
|
|
3206
3206
|
Returns:
|
|
3207
3207
|
ApiResponse[QueryCurrentCmOpenOrderResponse]
|
|
@@ -3217,7 +3217,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3217
3217
|
|
|
3218
3218
|
def query_current_margin_open_order(
|
|
3219
3219
|
self,
|
|
3220
|
-
symbol: str
|
|
3220
|
+
symbol: Union[str, None],
|
|
3221
3221
|
recv_window: Optional[int] = None,
|
|
3222
3222
|
) -> ApiResponse[QueryCurrentMarginOpenOrderResponse]:
|
|
3223
3223
|
"""
|
|
@@ -3228,8 +3228,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3228
3228
|
Weight: 5
|
|
3229
3229
|
|
|
3230
3230
|
Args:
|
|
3231
|
-
symbol (str):
|
|
3232
|
-
recv_window (Optional[int]):
|
|
3231
|
+
symbol (Union[str, None]):
|
|
3232
|
+
recv_window (Optional[int] = None):
|
|
3233
3233
|
|
|
3234
3234
|
Returns:
|
|
3235
3235
|
ApiResponse[QueryCurrentMarginOpenOrderResponse]
|
|
@@ -3243,7 +3243,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3243
3243
|
|
|
3244
3244
|
def query_current_um_open_conditional_order(
|
|
3245
3245
|
self,
|
|
3246
|
-
symbol: str
|
|
3246
|
+
symbol: Union[str, None],
|
|
3247
3247
|
strategy_id: Optional[int] = None,
|
|
3248
3248
|
new_client_strategy_id: Optional[str] = None,
|
|
3249
3249
|
recv_window: Optional[int] = None,
|
|
@@ -3259,10 +3259,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3259
3259
|
Weight: 1
|
|
3260
3260
|
|
|
3261
3261
|
Args:
|
|
3262
|
-
symbol (str):
|
|
3263
|
-
strategy_id (Optional[int]):
|
|
3264
|
-
new_client_strategy_id (Optional[str]):
|
|
3265
|
-
recv_window (Optional[int]):
|
|
3262
|
+
symbol (Union[str, None]):
|
|
3263
|
+
strategy_id (Optional[int] = None):
|
|
3264
|
+
new_client_strategy_id (Optional[str] = None):
|
|
3265
|
+
recv_window (Optional[int] = None):
|
|
3266
3266
|
|
|
3267
3267
|
Returns:
|
|
3268
3268
|
ApiResponse[QueryCurrentUmOpenConditionalOrderResponse]
|
|
@@ -3278,7 +3278,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3278
3278
|
|
|
3279
3279
|
def query_current_um_open_order(
|
|
3280
3280
|
self,
|
|
3281
|
-
symbol: str
|
|
3281
|
+
symbol: Union[str, None],
|
|
3282
3282
|
order_id: Optional[int] = None,
|
|
3283
3283
|
orig_client_order_id: Optional[str] = None,
|
|
3284
3284
|
recv_window: Optional[int] = None,
|
|
@@ -3295,10 +3295,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3295
3295
|
Weight: 1
|
|
3296
3296
|
|
|
3297
3297
|
Args:
|
|
3298
|
-
symbol (str):
|
|
3299
|
-
order_id (Optional[int]):
|
|
3300
|
-
orig_client_order_id (Optional[str]):
|
|
3301
|
-
recv_window (Optional[int]):
|
|
3298
|
+
symbol (Union[str, None]):
|
|
3299
|
+
order_id (Optional[int] = None):
|
|
3300
|
+
orig_client_order_id (Optional[str] = None):
|
|
3301
|
+
recv_window (Optional[int] = None):
|
|
3302
3302
|
|
|
3303
3303
|
Returns:
|
|
3304
3304
|
ApiResponse[QueryCurrentUmOpenOrderResponse]
|
|
@@ -3314,7 +3314,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3314
3314
|
|
|
3315
3315
|
def query_margin_account_order(
|
|
3316
3316
|
self,
|
|
3317
|
-
symbol: str
|
|
3317
|
+
symbol: Union[str, None],
|
|
3318
3318
|
order_id: Optional[int] = None,
|
|
3319
3319
|
orig_client_order_id: Optional[str] = None,
|
|
3320
3320
|
recv_window: Optional[int] = None,
|
|
@@ -3327,10 +3327,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3327
3327
|
Weight: 10
|
|
3328
3328
|
|
|
3329
3329
|
Args:
|
|
3330
|
-
symbol (str):
|
|
3331
|
-
order_id (Optional[int]):
|
|
3332
|
-
orig_client_order_id (Optional[str]):
|
|
3333
|
-
recv_window (Optional[int]):
|
|
3330
|
+
symbol (Union[str, None]):
|
|
3331
|
+
order_id (Optional[int] = None):
|
|
3332
|
+
orig_client_order_id (Optional[str] = None):
|
|
3333
|
+
recv_window (Optional[int] = None):
|
|
3334
3334
|
|
|
3335
3335
|
Returns:
|
|
3336
3336
|
ApiResponse[QueryMarginAccountOrderResponse]
|
|
@@ -3360,11 +3360,11 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3360
3360
|
Weight: 100
|
|
3361
3361
|
|
|
3362
3362
|
Args:
|
|
3363
|
-
from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
|
|
3364
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3365
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3366
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3367
|
-
recv_window (Optional[int]):
|
|
3363
|
+
from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
|
|
3364
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3365
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3366
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3367
|
+
recv_window (Optional[int] = None):
|
|
3368
3368
|
|
|
3369
3369
|
Returns:
|
|
3370
3370
|
ApiResponse[QueryMarginAccountsAllOcoResponse]
|
|
@@ -3392,9 +3392,9 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3392
3392
|
Weight: 5
|
|
3393
3393
|
|
|
3394
3394
|
Args:
|
|
3395
|
-
order_list_id (Optional[int]): Either `orderListId` or `listClientOrderId` must be provided
|
|
3396
|
-
orig_client_order_id (Optional[str]):
|
|
3397
|
-
recv_window (Optional[int]):
|
|
3395
|
+
order_list_id (Optional[int] = None): Either `orderListId` or `listClientOrderId` must be provided
|
|
3396
|
+
orig_client_order_id (Optional[str] = None):
|
|
3397
|
+
recv_window (Optional[int] = None):
|
|
3398
3398
|
|
|
3399
3399
|
Returns:
|
|
3400
3400
|
ApiResponse[QueryMarginAccountsOcoResponse]
|
|
@@ -3420,7 +3420,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3420
3420
|
Weight: 5
|
|
3421
3421
|
|
|
3422
3422
|
Args:
|
|
3423
|
-
recv_window (Optional[int]):
|
|
3423
|
+
recv_window (Optional[int] = None):
|
|
3424
3424
|
|
|
3425
3425
|
Returns:
|
|
3426
3426
|
ApiResponse[QueryMarginAccountsOpenOcoResponse]
|
|
@@ -3434,7 +3434,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3434
3434
|
|
|
3435
3435
|
def query_um_conditional_order_history(
|
|
3436
3436
|
self,
|
|
3437
|
-
symbol: str
|
|
3437
|
+
symbol: Union[str, None],
|
|
3438
3438
|
strategy_id: Optional[int] = None,
|
|
3439
3439
|
new_client_strategy_id: Optional[str] = None,
|
|
3440
3440
|
recv_window: Optional[int] = None,
|
|
@@ -3454,10 +3454,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3454
3454
|
Weight: 1
|
|
3455
3455
|
|
|
3456
3456
|
Args:
|
|
3457
|
-
symbol (str):
|
|
3458
|
-
strategy_id (Optional[int]):
|
|
3459
|
-
new_client_strategy_id (Optional[str]):
|
|
3460
|
-
recv_window (Optional[int]):
|
|
3457
|
+
symbol (Union[str, None]):
|
|
3458
|
+
strategy_id (Optional[int] = None):
|
|
3459
|
+
new_client_strategy_id (Optional[str] = None):
|
|
3460
|
+
recv_window (Optional[int] = None):
|
|
3461
3461
|
|
|
3462
3462
|
Returns:
|
|
3463
3463
|
ApiResponse[QueryUmConditionalOrderHistoryResponse]
|
|
@@ -3473,7 +3473,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3473
3473
|
|
|
3474
3474
|
def query_um_modify_order_history(
|
|
3475
3475
|
self,
|
|
3476
|
-
symbol: str
|
|
3476
|
+
symbol: Union[str, None],
|
|
3477
3477
|
order_id: Optional[int] = None,
|
|
3478
3478
|
orig_client_order_id: Optional[str] = None,
|
|
3479
3479
|
start_time: Optional[int] = None,
|
|
@@ -3491,13 +3491,13 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3491
3491
|
Weight: 1
|
|
3492
3492
|
|
|
3493
3493
|
Args:
|
|
3494
|
-
symbol (str):
|
|
3495
|
-
order_id (Optional[int]):
|
|
3496
|
-
orig_client_order_id (Optional[str]):
|
|
3497
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3498
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3499
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3500
|
-
recv_window (Optional[int]):
|
|
3494
|
+
symbol (Union[str, None]):
|
|
3495
|
+
order_id (Optional[int] = None):
|
|
3496
|
+
orig_client_order_id (Optional[str] = None):
|
|
3497
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3498
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3499
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3500
|
+
recv_window (Optional[int] = None):
|
|
3501
3501
|
|
|
3502
3502
|
Returns:
|
|
3503
3503
|
ApiResponse[QueryUmModifyOrderHistoryResponse]
|
|
@@ -3519,7 +3519,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3519
3519
|
|
|
3520
3520
|
def query_um_order(
|
|
3521
3521
|
self,
|
|
3522
|
-
symbol: str
|
|
3522
|
+
symbol: Union[str, None],
|
|
3523
3523
|
order_id: Optional[int] = None,
|
|
3524
3524
|
orig_client_order_id: Optional[str] = None,
|
|
3525
3525
|
recv_window: Optional[int] = None,
|
|
@@ -3538,10 +3538,10 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3538
3538
|
Weight: 1
|
|
3539
3539
|
|
|
3540
3540
|
Args:
|
|
3541
|
-
symbol (str):
|
|
3542
|
-
order_id (Optional[int]):
|
|
3543
|
-
orig_client_order_id (Optional[str]):
|
|
3544
|
-
recv_window (Optional[int]):
|
|
3541
|
+
symbol (Union[str, None]):
|
|
3542
|
+
order_id (Optional[int] = None):
|
|
3543
|
+
orig_client_order_id (Optional[str] = None):
|
|
3544
|
+
recv_window (Optional[int] = None):
|
|
3545
3545
|
|
|
3546
3546
|
Returns:
|
|
3547
3547
|
ApiResponse[QueryUmOrderResponse]
|
|
@@ -3575,12 +3575,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3575
3575
|
Weight: 20 with symbol, 50 without symbol
|
|
3576
3576
|
|
|
3577
3577
|
Args:
|
|
3578
|
-
symbol (Optional[str]):
|
|
3579
|
-
auto_close_type (Optional[QueryUsersCmForceOrdersAutoCloseTypeEnum]): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
|
|
3580
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3581
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3582
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3583
|
-
recv_window (Optional[int]):
|
|
3578
|
+
symbol (Optional[str] = None):
|
|
3579
|
+
auto_close_type (Optional[QueryUsersCmForceOrdersAutoCloseTypeEnum] = None): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
|
|
3580
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3581
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3582
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3583
|
+
recv_window (Optional[int] = None):
|
|
3584
3584
|
|
|
3585
3585
|
Returns:
|
|
3586
3586
|
ApiResponse[QueryUsersCmForceOrdersResponse]
|
|
@@ -3610,11 +3610,11 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3610
3610
|
Weight: 1
|
|
3611
3611
|
|
|
3612
3612
|
Args:
|
|
3613
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3614
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3615
|
-
current (Optional[int]): Currently querying page. Start from 1. Default:1
|
|
3616
|
-
size (Optional[int]): Default:10 Max:100
|
|
3617
|
-
recv_window (Optional[int]):
|
|
3613
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3614
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3615
|
+
current (Optional[int] = None): Currently querying page. Start from 1. Default:1
|
|
3616
|
+
size (Optional[int] = None): Default:10 Max:100
|
|
3617
|
+
recv_window (Optional[int] = None):
|
|
3618
3618
|
|
|
3619
3619
|
Returns:
|
|
3620
3620
|
ApiResponse[QueryUsersMarginForceOrdersResponse]
|
|
@@ -3648,12 +3648,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3648
3648
|
Weight: 20 with symbol, 50 without symbol
|
|
3649
3649
|
|
|
3650
3650
|
Args:
|
|
3651
|
-
symbol (Optional[str]):
|
|
3652
|
-
auto_close_type (Optional[QueryUsersUmForceOrdersAutoCloseTypeEnum]): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
|
|
3653
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3654
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3655
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3656
|
-
recv_window (Optional[int]):
|
|
3651
|
+
symbol (Optional[str] = None):
|
|
3652
|
+
auto_close_type (Optional[QueryUsersUmForceOrdersAutoCloseTypeEnum] = None): `LIQUIDATION` for liquidation orders, `ADL` for ADL orders.
|
|
3653
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3654
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3655
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3656
|
+
recv_window (Optional[int] = None):
|
|
3657
3657
|
|
|
3658
3658
|
Returns:
|
|
3659
3659
|
ApiResponse[QueryUsersUmForceOrdersResponse]
|
|
@@ -3669,7 +3669,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3669
3669
|
|
|
3670
3670
|
def toggle_bnb_burn_on_um_futures_trade(
|
|
3671
3671
|
self,
|
|
3672
|
-
fee_burn: str
|
|
3672
|
+
fee_burn: Union[str, None],
|
|
3673
3673
|
recv_window: Optional[int] = None,
|
|
3674
3674
|
) -> ApiResponse[ToggleBnbBurnOnUmFuturesTradeResponse]:
|
|
3675
3675
|
"""
|
|
@@ -3683,8 +3683,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3683
3683
|
Weight: 1
|
|
3684
3684
|
|
|
3685
3685
|
Args:
|
|
3686
|
-
fee_burn (str): "true": Fee Discount On; "false": Fee Discount Off
|
|
3687
|
-
recv_window (Optional[int]):
|
|
3686
|
+
fee_burn (Union[str, None]): "true": Fee Discount On; "false": Fee Discount Off
|
|
3687
|
+
recv_window (Optional[int] = None):
|
|
3688
3688
|
|
|
3689
3689
|
Returns:
|
|
3690
3690
|
ApiResponse[ToggleBnbBurnOnUmFuturesTradeResponse]
|
|
@@ -3698,7 +3698,7 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3698
3698
|
|
|
3699
3699
|
def um_account_trade_list(
|
|
3700
3700
|
self,
|
|
3701
|
-
symbol: str
|
|
3701
|
+
symbol: Union[str, None],
|
|
3702
3702
|
start_time: Optional[int] = None,
|
|
3703
3703
|
end_time: Optional[int] = None,
|
|
3704
3704
|
from_id: Optional[int] = None,
|
|
@@ -3718,12 +3718,12 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3718
3718
|
Weight: 5
|
|
3719
3719
|
|
|
3720
3720
|
Args:
|
|
3721
|
-
symbol (str):
|
|
3722
|
-
start_time (Optional[int]): Timestamp in ms to get funding from INCLUSIVE.
|
|
3723
|
-
end_time (Optional[int]): Timestamp in ms to get funding until INCLUSIVE.
|
|
3724
|
-
from_id (Optional[int]): Trade id to fetch from. Default gets most recent trades.
|
|
3725
|
-
limit (Optional[int]): Default 100; max 1000
|
|
3726
|
-
recv_window (Optional[int]):
|
|
3721
|
+
symbol (Union[str, None]):
|
|
3722
|
+
start_time (Optional[int] = None): Timestamp in ms to get funding from INCLUSIVE.
|
|
3723
|
+
end_time (Optional[int] = None): Timestamp in ms to get funding until INCLUSIVE.
|
|
3724
|
+
from_id (Optional[int] = None): Trade id to fetch from. Default gets most recent trades.
|
|
3725
|
+
limit (Optional[int] = None): Default 100; max 1000
|
|
3726
|
+
recv_window (Optional[int] = None):
|
|
3727
3727
|
|
|
3728
3728
|
Returns:
|
|
3729
3729
|
ApiResponse[UmAccountTradeListResponse]
|
|
@@ -3757,8 +3757,8 @@ class DerivativesTradingPortfolioMarginRestAPI:
|
|
|
3757
3757
|
Weight: 5
|
|
3758
3758
|
|
|
3759
3759
|
Args:
|
|
3760
|
-
symbol (Optional[str]):
|
|
3761
|
-
recv_window (Optional[int]):
|
|
3760
|
+
symbol (Optional[str] = None):
|
|
3761
|
+
recv_window (Optional[int] = None):
|
|
3762
3762
|
|
|
3763
3763
|
Returns:
|
|
3764
3764
|
ApiResponse[UmPositionAdlQuantileEstimationResponse]
|