@binance/derivatives-trading-portfolio-margin-pro 11.1.1 → 12.0.0
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.
- package/dist/index.d.mts +167 -1
- package/dist/index.d.ts +167 -1
- package/dist/index.js +97 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +97 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -136,6 +136,33 @@ interface GetAutoRepayFuturesStatusResponse {
|
|
|
136
136
|
autoRepay?: boolean;
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
|
+
//#region src/rest-api/types/get-delta-mode-status-response.d.ts
|
|
140
|
+
/**
|
|
141
|
+
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
142
|
+
*
|
|
143
|
+
* OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
144
|
+
*
|
|
145
|
+
* The version of the OpenAPI document: 1.0.0
|
|
146
|
+
*
|
|
147
|
+
*
|
|
148
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
149
|
+
* https://openapi-generator.tech
|
|
150
|
+
* Do not edit the class manually.
|
|
151
|
+
*/
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @export
|
|
155
|
+
* @interface GetDeltaModeStatusResponse
|
|
156
|
+
*/
|
|
157
|
+
interface GetDeltaModeStatusResponse {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {boolean}
|
|
161
|
+
* @memberof GetDeltaModeStatusResponse
|
|
162
|
+
*/
|
|
163
|
+
deltaEnabled?: boolean;
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
139
166
|
//#region src/rest-api/types/get-portfolio-margin-asset-leverage-response-inner.d.ts
|
|
140
167
|
/**
|
|
141
168
|
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
@@ -862,6 +889,33 @@ interface RepayFuturesNegativeBalanceResponse {
|
|
|
862
889
|
msg?: string;
|
|
863
890
|
}
|
|
864
891
|
//#endregion
|
|
892
|
+
//#region src/rest-api/types/switch-delta-mode-response.d.ts
|
|
893
|
+
/**
|
|
894
|
+
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
895
|
+
*
|
|
896
|
+
* OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
897
|
+
*
|
|
898
|
+
* The version of the OpenAPI document: 1.0.0
|
|
899
|
+
*
|
|
900
|
+
*
|
|
901
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
902
|
+
* https://openapi-generator.tech
|
|
903
|
+
* Do not edit the class manually.
|
|
904
|
+
*/
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @export
|
|
908
|
+
* @interface SwitchDeltaModeResponse
|
|
909
|
+
*/
|
|
910
|
+
interface SwitchDeltaModeResponse {
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @type {string}
|
|
914
|
+
* @memberof SwitchDeltaModeResponse
|
|
915
|
+
*/
|
|
916
|
+
msg?: string;
|
|
917
|
+
}
|
|
918
|
+
//#endregion
|
|
865
919
|
//#region src/rest-api/types/transfer-ldusdt-rwusd-for-portfolio-margin-response.d.ts
|
|
866
920
|
/**
|
|
867
921
|
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
@@ -963,6 +1017,18 @@ interface AccountApiInterface {
|
|
|
963
1017
|
* @memberof AccountApiInterface
|
|
964
1018
|
*/
|
|
965
1019
|
getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Query the Delta mode status of current account.
|
|
1022
|
+
*
|
|
1023
|
+
* Weight: 1500
|
|
1024
|
+
*
|
|
1025
|
+
* @summary Get Delta Mode Status(USER_DATA)
|
|
1026
|
+
* @param {GetDeltaModeStatusRequest} requestParameters Request parameters.
|
|
1027
|
+
*
|
|
1028
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1029
|
+
* @memberof AccountApiInterface
|
|
1030
|
+
*/
|
|
1031
|
+
getDeltaModeStatus(requestParameters?: GetDeltaModeStatusRequest): Promise<RestApiResponse<GetDeltaModeStatusResponse>>;
|
|
966
1032
|
/**
|
|
967
1033
|
* Query Portfolio Margin Pro account balance
|
|
968
1034
|
*
|
|
@@ -1014,6 +1080,8 @@ interface AccountApiInterface {
|
|
|
1014
1080
|
/**
|
|
1015
1081
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
1016
1082
|
*
|
|
1083
|
+
* Please note that the API Key has enabled Spot & Margin Trading permissions to access this endpoint.
|
|
1084
|
+
*
|
|
1017
1085
|
* Weight: 3000
|
|
1018
1086
|
*
|
|
1019
1087
|
* @summary Portfolio Margin Pro Bankruptcy Loan Repay
|
|
@@ -1078,6 +1146,18 @@ interface AccountApiInterface {
|
|
|
1078
1146
|
* @memberof AccountApiInterface
|
|
1079
1147
|
*/
|
|
1080
1148
|
repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
1151
|
+
*
|
|
1152
|
+
* Weight: 1500
|
|
1153
|
+
*
|
|
1154
|
+
* @summary Switch Delta Mode(TRADE)
|
|
1155
|
+
* @param {SwitchDeltaModeRequest} requestParameters Request parameters.
|
|
1156
|
+
*
|
|
1157
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1158
|
+
* @memberof AccountApiInterface
|
|
1159
|
+
*/
|
|
1160
|
+
switchDeltaMode(requestParameters: SwitchDeltaModeRequest): Promise<RestApiResponse<SwitchDeltaModeResponse>>;
|
|
1081
1161
|
/**
|
|
1082
1162
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
1083
1163
|
*
|
|
@@ -1175,6 +1255,18 @@ interface GetAutoRepayFuturesStatusRequest {
|
|
|
1175
1255
|
*/
|
|
1176
1256
|
readonly recvWindow?: number | bigint;
|
|
1177
1257
|
}
|
|
1258
|
+
/**
|
|
1259
|
+
* Request parameters for getDeltaModeStatus operation in AccountApi.
|
|
1260
|
+
* @interface GetDeltaModeStatusRequest
|
|
1261
|
+
*/
|
|
1262
|
+
interface GetDeltaModeStatusRequest {
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @type {number | bigint}
|
|
1266
|
+
* @memberof AccountApiGetDeltaModeStatus
|
|
1267
|
+
*/
|
|
1268
|
+
readonly recvWindow?: number | bigint;
|
|
1269
|
+
}
|
|
1178
1270
|
/**
|
|
1179
1271
|
* Request parameters for getPortfolioMarginProAccountBalance operation in AccountApi.
|
|
1180
1272
|
* @interface GetPortfolioMarginProAccountBalanceRequest
|
|
@@ -1361,6 +1453,24 @@ interface RepayFuturesNegativeBalanceRequest {
|
|
|
1361
1453
|
*/
|
|
1362
1454
|
readonly recvWindow?: number | bigint;
|
|
1363
1455
|
}
|
|
1456
|
+
/**
|
|
1457
|
+
* Request parameters for switchDeltaMode operation in AccountApi.
|
|
1458
|
+
* @interface SwitchDeltaModeRequest
|
|
1459
|
+
*/
|
|
1460
|
+
interface SwitchDeltaModeRequest {
|
|
1461
|
+
/**
|
|
1462
|
+
* `true` to enable Delta mode; `false` to disable Delta mode
|
|
1463
|
+
* @type {string}
|
|
1464
|
+
* @memberof AccountApiSwitchDeltaMode
|
|
1465
|
+
*/
|
|
1466
|
+
readonly deltaEnabled: string;
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
* @type {number | bigint}
|
|
1470
|
+
* @memberof AccountApiSwitchDeltaMode
|
|
1471
|
+
*/
|
|
1472
|
+
readonly recvWindow?: number | bigint;
|
|
1473
|
+
}
|
|
1364
1474
|
/**
|
|
1365
1475
|
* Request parameters for transferLdusdtRwusdForPortfolioMargin operation in AccountApi.
|
|
1366
1476
|
* @interface TransferLdusdtRwusdForPortfolioMarginRequest
|
|
@@ -1472,6 +1582,19 @@ declare class AccountApi implements AccountApiInterface {
|
|
|
1472
1582
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Auto-repay-futures-Status Binance API Documentation}
|
|
1473
1583
|
*/
|
|
1474
1584
|
getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
|
|
1585
|
+
/**
|
|
1586
|
+
* Query the Delta mode status of current account.
|
|
1587
|
+
*
|
|
1588
|
+
* Weight: 1500
|
|
1589
|
+
*
|
|
1590
|
+
* @summary Get Delta Mode Status(USER_DATA)
|
|
1591
|
+
* @param {GetDeltaModeStatusRequest} requestParameters Request parameters.
|
|
1592
|
+
* @returns {Promise<RestApiResponse<GetDeltaModeStatusResponse>>}
|
|
1593
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1594
|
+
* @memberof AccountApi
|
|
1595
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Delta-Mode-Status Binance API Documentation}
|
|
1596
|
+
*/
|
|
1597
|
+
getDeltaModeStatus(requestParameters?: GetDeltaModeStatusRequest): Promise<RestApiResponse<GetDeltaModeStatusResponse>>;
|
|
1475
1598
|
/**
|
|
1476
1599
|
* Query Portfolio Margin Pro account balance
|
|
1477
1600
|
*
|
|
@@ -1527,6 +1650,8 @@ declare class AccountApi implements AccountApiInterface {
|
|
|
1527
1650
|
/**
|
|
1528
1651
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
1529
1652
|
*
|
|
1653
|
+
* Please note that the API Key has enabled Spot & Margin Trading permissions to access this endpoint.
|
|
1654
|
+
*
|
|
1530
1655
|
* Weight: 3000
|
|
1531
1656
|
*
|
|
1532
1657
|
* @summary Portfolio Margin Pro Bankruptcy Loan Repay
|
|
@@ -1596,6 +1721,19 @@ declare class AccountApi implements AccountApiInterface {
|
|
|
1596
1721
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Repay-futures-Negative-Balance Binance API Documentation}
|
|
1597
1722
|
*/
|
|
1598
1723
|
repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
1726
|
+
*
|
|
1727
|
+
* Weight: 1500
|
|
1728
|
+
*
|
|
1729
|
+
* @summary Switch Delta Mode(TRADE)
|
|
1730
|
+
* @param {SwitchDeltaModeRequest} requestParameters Request parameters.
|
|
1731
|
+
* @returns {Promise<RestApiResponse<SwitchDeltaModeResponse>>}
|
|
1732
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1733
|
+
* @memberof AccountApi
|
|
1734
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Switch-Delta-Mode Binance API Documentation}
|
|
1735
|
+
*/
|
|
1736
|
+
switchDeltaMode(requestParameters: SwitchDeltaModeRequest): Promise<RestApiResponse<SwitchDeltaModeResponse>>;
|
|
1599
1737
|
/**
|
|
1600
1738
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
1601
1739
|
*
|
|
@@ -1847,6 +1985,19 @@ declare class RestAPI {
|
|
|
1847
1985
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Auto-repay-futures-Status Binance API Documentation}
|
|
1848
1986
|
*/
|
|
1849
1987
|
getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
|
|
1988
|
+
/**
|
|
1989
|
+
* Query the Delta mode status of current account.
|
|
1990
|
+
*
|
|
1991
|
+
* Weight: 1500
|
|
1992
|
+
*
|
|
1993
|
+
* @summary Get Delta Mode Status(USER_DATA)
|
|
1994
|
+
* @param {GetDeltaModeStatusRequest} requestParameters Request parameters.
|
|
1995
|
+
*
|
|
1996
|
+
* @returns {Promise<RestApiResponse<GetDeltaModeStatusResponse>>}
|
|
1997
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1998
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Delta-Mode-Status Binance API Documentation}
|
|
1999
|
+
*/
|
|
2000
|
+
getDeltaModeStatus(requestParameters?: GetDeltaModeStatusRequest): Promise<RestApiResponse<GetDeltaModeStatusResponse>>;
|
|
1850
2001
|
/**
|
|
1851
2002
|
* Query Portfolio Margin Pro account balance
|
|
1852
2003
|
*
|
|
@@ -1902,6 +2053,8 @@ declare class RestAPI {
|
|
|
1902
2053
|
/**
|
|
1903
2054
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
1904
2055
|
*
|
|
2056
|
+
* Please note that the API Key has enabled Spot & Margin Trading permissions to access this endpoint.
|
|
2057
|
+
*
|
|
1905
2058
|
* Weight: 3000
|
|
1906
2059
|
*
|
|
1907
2060
|
* @summary Portfolio Margin Pro Bankruptcy Loan Repay
|
|
@@ -1971,6 +2124,19 @@ declare class RestAPI {
|
|
|
1971
2124
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Repay-futures-Negative-Balance Binance API Documentation}
|
|
1972
2125
|
*/
|
|
1973
2126
|
repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
|
|
2127
|
+
/**
|
|
2128
|
+
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
2129
|
+
*
|
|
2130
|
+
* Weight: 1500
|
|
2131
|
+
*
|
|
2132
|
+
* @summary Switch Delta Mode(TRADE)
|
|
2133
|
+
* @param {SwitchDeltaModeRequest} requestParameters Request parameters.
|
|
2134
|
+
*
|
|
2135
|
+
* @returns {Promise<RestApiResponse<SwitchDeltaModeResponse>>}
|
|
2136
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2137
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Switch-Delta-Mode Binance API Documentation}
|
|
2138
|
+
*/
|
|
2139
|
+
switchDeltaMode(requestParameters: SwitchDeltaModeRequest): Promise<RestApiResponse<SwitchDeltaModeResponse>>;
|
|
1974
2140
|
/**
|
|
1975
2141
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
1976
2142
|
*
|
|
@@ -2036,7 +2202,7 @@ declare class RestAPI {
|
|
|
2036
2202
|
queryPortfolioMarginAssetIndexPrice(requestParameters?: QueryPortfolioMarginAssetIndexPriceRequest): Promise<RestApiResponse<QueryPortfolioMarginAssetIndexPriceResponse>>;
|
|
2037
2203
|
}
|
|
2038
2204
|
declare namespace index_d_exports {
|
|
2039
|
-
export { AccountApi, AccountApiInterface, BnbTransferRequest, BnbTransferResponse, ChangeAutoRepayFuturesStatusRequest, ChangeAutoRepayFuturesStatusResponse, FundAutoCollectionRequest, FundAutoCollectionResponse, FundCollectionByAssetRequest, FundCollectionByAssetResponse, GetAutoRepayFuturesStatusRequest, GetAutoRepayFuturesStatusResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginAssetLeverageResponseInner, GetPortfolioMarginProAccountBalanceRequest, GetPortfolioMarginProAccountBalanceResponse, GetPortfolioMarginProAccountBalanceResponseInner, GetPortfolioMarginProAccountInfoRequest, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoRequest, GetPortfolioMarginProSpanAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoResponseRiskUnitMMListInner, GetTransferableEarnAssetBalanceForPortfolioMarginRequest, GetTransferableEarnAssetBalanceForPortfolioMarginResponse, MarketDataApi, MarketDataApiInterface, PortfolioMarginCollateralRateResponse, PortfolioMarginCollateralRateResponseInner, PortfolioMarginProBankruptcyLoanRepayRequest, PortfolioMarginProBankruptcyLoanRepayResponse, PortfolioMarginProTieredCollateralRateRequest, PortfolioMarginProTieredCollateralRateResponse, PortfolioMarginProTieredCollateralRateResponseInner, PortfolioMarginProTieredCollateralRateResponseInnerCollateralInfoInner, QueryPortfolioMarginAssetIndexPriceRequest, QueryPortfolioMarginAssetIndexPriceResponse, QueryPortfolioMarginAssetIndexPriceResponseInner, QueryPortfolioMarginProBankruptcyLoanAmountRequest, QueryPortfolioMarginProBankruptcyLoanAmountResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryRequest, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponseRowsInner, QueryPortfolioMarginProNegativeBalanceInterestHistoryRequest, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponse, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponseInner, RepayFuturesNegativeBalanceRequest, RepayFuturesNegativeBalanceResponse, RestAPI, TransferLdusdtRwusdForPortfolioMarginRequest, TransferLdusdtRwusdForPortfolioMarginResponse };
|
|
2205
|
+
export { AccountApi, AccountApiInterface, BnbTransferRequest, BnbTransferResponse, ChangeAutoRepayFuturesStatusRequest, ChangeAutoRepayFuturesStatusResponse, FundAutoCollectionRequest, FundAutoCollectionResponse, FundCollectionByAssetRequest, FundCollectionByAssetResponse, GetAutoRepayFuturesStatusRequest, GetAutoRepayFuturesStatusResponse, GetDeltaModeStatusRequest, GetDeltaModeStatusResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginAssetLeverageResponseInner, GetPortfolioMarginProAccountBalanceRequest, GetPortfolioMarginProAccountBalanceResponse, GetPortfolioMarginProAccountBalanceResponseInner, GetPortfolioMarginProAccountInfoRequest, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoRequest, GetPortfolioMarginProSpanAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoResponseRiskUnitMMListInner, GetTransferableEarnAssetBalanceForPortfolioMarginRequest, GetTransferableEarnAssetBalanceForPortfolioMarginResponse, MarketDataApi, MarketDataApiInterface, PortfolioMarginCollateralRateResponse, PortfolioMarginCollateralRateResponseInner, PortfolioMarginProBankruptcyLoanRepayRequest, PortfolioMarginProBankruptcyLoanRepayResponse, PortfolioMarginProTieredCollateralRateRequest, PortfolioMarginProTieredCollateralRateResponse, PortfolioMarginProTieredCollateralRateResponseInner, PortfolioMarginProTieredCollateralRateResponseInnerCollateralInfoInner, QueryPortfolioMarginAssetIndexPriceRequest, QueryPortfolioMarginAssetIndexPriceResponse, QueryPortfolioMarginAssetIndexPriceResponseInner, QueryPortfolioMarginProBankruptcyLoanAmountRequest, QueryPortfolioMarginProBankruptcyLoanAmountResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryRequest, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponseRowsInner, QueryPortfolioMarginProNegativeBalanceInterestHistoryRequest, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponse, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponseInner, RepayFuturesNegativeBalanceRequest, RepayFuturesNegativeBalanceResponse, RestAPI, SwitchDeltaModeRequest, SwitchDeltaModeResponse, TransferLdusdtRwusdForPortfolioMarginRequest, TransferLdusdtRwusdForPortfolioMarginResponse };
|
|
2040
2206
|
}
|
|
2041
2207
|
//#endregion
|
|
2042
2208
|
//#region src/websocket-streams/types/risklevelchange.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -138,6 +138,33 @@ interface GetAutoRepayFuturesStatusResponse {
|
|
|
138
138
|
autoRepay?: boolean;
|
|
139
139
|
}
|
|
140
140
|
//#endregion
|
|
141
|
+
//#region src/rest-api/types/get-delta-mode-status-response.d.ts
|
|
142
|
+
/**
|
|
143
|
+
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
144
|
+
*
|
|
145
|
+
* OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
146
|
+
*
|
|
147
|
+
* The version of the OpenAPI document: 1.0.0
|
|
148
|
+
*
|
|
149
|
+
*
|
|
150
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
151
|
+
* https://openapi-generator.tech
|
|
152
|
+
* Do not edit the class manually.
|
|
153
|
+
*/
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @export
|
|
157
|
+
* @interface GetDeltaModeStatusResponse
|
|
158
|
+
*/
|
|
159
|
+
interface GetDeltaModeStatusResponse {
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {boolean}
|
|
163
|
+
* @memberof GetDeltaModeStatusResponse
|
|
164
|
+
*/
|
|
165
|
+
deltaEnabled?: boolean;
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
141
168
|
//#region src/rest-api/types/get-portfolio-margin-asset-leverage-response-inner.d.ts
|
|
142
169
|
/**
|
|
143
170
|
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
@@ -864,6 +891,33 @@ interface RepayFuturesNegativeBalanceResponse {
|
|
|
864
891
|
msg?: string;
|
|
865
892
|
}
|
|
866
893
|
//#endregion
|
|
894
|
+
//#region src/rest-api/types/switch-delta-mode-response.d.ts
|
|
895
|
+
/**
|
|
896
|
+
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
897
|
+
*
|
|
898
|
+
* OpenAPI Specification for the Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
899
|
+
*
|
|
900
|
+
* The version of the OpenAPI document: 1.0.0
|
|
901
|
+
*
|
|
902
|
+
*
|
|
903
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
904
|
+
* https://openapi-generator.tech
|
|
905
|
+
* Do not edit the class manually.
|
|
906
|
+
*/
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @export
|
|
910
|
+
* @interface SwitchDeltaModeResponse
|
|
911
|
+
*/
|
|
912
|
+
interface SwitchDeltaModeResponse {
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @type {string}
|
|
916
|
+
* @memberof SwitchDeltaModeResponse
|
|
917
|
+
*/
|
|
918
|
+
msg?: string;
|
|
919
|
+
}
|
|
920
|
+
//#endregion
|
|
867
921
|
//#region src/rest-api/types/transfer-ldusdt-rwusd-for-portfolio-margin-response.d.ts
|
|
868
922
|
/**
|
|
869
923
|
* Binance Derivatives Trading Portfolio Margin Pro REST API
|
|
@@ -965,6 +1019,18 @@ interface AccountApiInterface {
|
|
|
965
1019
|
* @memberof AccountApiInterface
|
|
966
1020
|
*/
|
|
967
1021
|
getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Query the Delta mode status of current account.
|
|
1024
|
+
*
|
|
1025
|
+
* Weight: 1500
|
|
1026
|
+
*
|
|
1027
|
+
* @summary Get Delta Mode Status(USER_DATA)
|
|
1028
|
+
* @param {GetDeltaModeStatusRequest} requestParameters Request parameters.
|
|
1029
|
+
*
|
|
1030
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1031
|
+
* @memberof AccountApiInterface
|
|
1032
|
+
*/
|
|
1033
|
+
getDeltaModeStatus(requestParameters?: GetDeltaModeStatusRequest): Promise<RestApiResponse<GetDeltaModeStatusResponse>>;
|
|
968
1034
|
/**
|
|
969
1035
|
* Query Portfolio Margin Pro account balance
|
|
970
1036
|
*
|
|
@@ -1016,6 +1082,8 @@ interface AccountApiInterface {
|
|
|
1016
1082
|
/**
|
|
1017
1083
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
1018
1084
|
*
|
|
1085
|
+
* Please note that the API Key has enabled Spot & Margin Trading permissions to access this endpoint.
|
|
1086
|
+
*
|
|
1019
1087
|
* Weight: 3000
|
|
1020
1088
|
*
|
|
1021
1089
|
* @summary Portfolio Margin Pro Bankruptcy Loan Repay
|
|
@@ -1080,6 +1148,18 @@ interface AccountApiInterface {
|
|
|
1080
1148
|
* @memberof AccountApiInterface
|
|
1081
1149
|
*/
|
|
1082
1150
|
repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
1153
|
+
*
|
|
1154
|
+
* Weight: 1500
|
|
1155
|
+
*
|
|
1156
|
+
* @summary Switch Delta Mode(TRADE)
|
|
1157
|
+
* @param {SwitchDeltaModeRequest} requestParameters Request parameters.
|
|
1158
|
+
*
|
|
1159
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1160
|
+
* @memberof AccountApiInterface
|
|
1161
|
+
*/
|
|
1162
|
+
switchDeltaMode(requestParameters: SwitchDeltaModeRequest): Promise<RestApiResponse<SwitchDeltaModeResponse>>;
|
|
1083
1163
|
/**
|
|
1084
1164
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
1085
1165
|
*
|
|
@@ -1177,6 +1257,18 @@ interface GetAutoRepayFuturesStatusRequest {
|
|
|
1177
1257
|
*/
|
|
1178
1258
|
readonly recvWindow?: number | bigint;
|
|
1179
1259
|
}
|
|
1260
|
+
/**
|
|
1261
|
+
* Request parameters for getDeltaModeStatus operation in AccountApi.
|
|
1262
|
+
* @interface GetDeltaModeStatusRequest
|
|
1263
|
+
*/
|
|
1264
|
+
interface GetDeltaModeStatusRequest {
|
|
1265
|
+
/**
|
|
1266
|
+
*
|
|
1267
|
+
* @type {number | bigint}
|
|
1268
|
+
* @memberof AccountApiGetDeltaModeStatus
|
|
1269
|
+
*/
|
|
1270
|
+
readonly recvWindow?: number | bigint;
|
|
1271
|
+
}
|
|
1180
1272
|
/**
|
|
1181
1273
|
* Request parameters for getPortfolioMarginProAccountBalance operation in AccountApi.
|
|
1182
1274
|
* @interface GetPortfolioMarginProAccountBalanceRequest
|
|
@@ -1363,6 +1455,24 @@ interface RepayFuturesNegativeBalanceRequest {
|
|
|
1363
1455
|
*/
|
|
1364
1456
|
readonly recvWindow?: number | bigint;
|
|
1365
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Request parameters for switchDeltaMode operation in AccountApi.
|
|
1460
|
+
* @interface SwitchDeltaModeRequest
|
|
1461
|
+
*/
|
|
1462
|
+
interface SwitchDeltaModeRequest {
|
|
1463
|
+
/**
|
|
1464
|
+
* `true` to enable Delta mode; `false` to disable Delta mode
|
|
1465
|
+
* @type {string}
|
|
1466
|
+
* @memberof AccountApiSwitchDeltaMode
|
|
1467
|
+
*/
|
|
1468
|
+
readonly deltaEnabled: string;
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @type {number | bigint}
|
|
1472
|
+
* @memberof AccountApiSwitchDeltaMode
|
|
1473
|
+
*/
|
|
1474
|
+
readonly recvWindow?: number | bigint;
|
|
1475
|
+
}
|
|
1366
1476
|
/**
|
|
1367
1477
|
* Request parameters for transferLdusdtRwusdForPortfolioMargin operation in AccountApi.
|
|
1368
1478
|
* @interface TransferLdusdtRwusdForPortfolioMarginRequest
|
|
@@ -1474,6 +1584,19 @@ declare class AccountApi implements AccountApiInterface {
|
|
|
1474
1584
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Auto-repay-futures-Status Binance API Documentation}
|
|
1475
1585
|
*/
|
|
1476
1586
|
getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
|
|
1587
|
+
/**
|
|
1588
|
+
* Query the Delta mode status of current account.
|
|
1589
|
+
*
|
|
1590
|
+
* Weight: 1500
|
|
1591
|
+
*
|
|
1592
|
+
* @summary Get Delta Mode Status(USER_DATA)
|
|
1593
|
+
* @param {GetDeltaModeStatusRequest} requestParameters Request parameters.
|
|
1594
|
+
* @returns {Promise<RestApiResponse<GetDeltaModeStatusResponse>>}
|
|
1595
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1596
|
+
* @memberof AccountApi
|
|
1597
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Delta-Mode-Status Binance API Documentation}
|
|
1598
|
+
*/
|
|
1599
|
+
getDeltaModeStatus(requestParameters?: GetDeltaModeStatusRequest): Promise<RestApiResponse<GetDeltaModeStatusResponse>>;
|
|
1477
1600
|
/**
|
|
1478
1601
|
* Query Portfolio Margin Pro account balance
|
|
1479
1602
|
*
|
|
@@ -1529,6 +1652,8 @@ declare class AccountApi implements AccountApiInterface {
|
|
|
1529
1652
|
/**
|
|
1530
1653
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
1531
1654
|
*
|
|
1655
|
+
* Please note that the API Key has enabled Spot & Margin Trading permissions to access this endpoint.
|
|
1656
|
+
*
|
|
1532
1657
|
* Weight: 3000
|
|
1533
1658
|
*
|
|
1534
1659
|
* @summary Portfolio Margin Pro Bankruptcy Loan Repay
|
|
@@ -1598,6 +1723,19 @@ declare class AccountApi implements AccountApiInterface {
|
|
|
1598
1723
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Repay-futures-Negative-Balance Binance API Documentation}
|
|
1599
1724
|
*/
|
|
1600
1725
|
repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
|
|
1726
|
+
/**
|
|
1727
|
+
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
1728
|
+
*
|
|
1729
|
+
* Weight: 1500
|
|
1730
|
+
*
|
|
1731
|
+
* @summary Switch Delta Mode(TRADE)
|
|
1732
|
+
* @param {SwitchDeltaModeRequest} requestParameters Request parameters.
|
|
1733
|
+
* @returns {Promise<RestApiResponse<SwitchDeltaModeResponse>>}
|
|
1734
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1735
|
+
* @memberof AccountApi
|
|
1736
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Switch-Delta-Mode Binance API Documentation}
|
|
1737
|
+
*/
|
|
1738
|
+
switchDeltaMode(requestParameters: SwitchDeltaModeRequest): Promise<RestApiResponse<SwitchDeltaModeResponse>>;
|
|
1601
1739
|
/**
|
|
1602
1740
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
1603
1741
|
*
|
|
@@ -1849,6 +1987,19 @@ declare class RestAPI {
|
|
|
1849
1987
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Auto-repay-futures-Status Binance API Documentation}
|
|
1850
1988
|
*/
|
|
1851
1989
|
getAutoRepayFuturesStatus(requestParameters?: GetAutoRepayFuturesStatusRequest): Promise<RestApiResponse<GetAutoRepayFuturesStatusResponse>>;
|
|
1990
|
+
/**
|
|
1991
|
+
* Query the Delta mode status of current account.
|
|
1992
|
+
*
|
|
1993
|
+
* Weight: 1500
|
|
1994
|
+
*
|
|
1995
|
+
* @summary Get Delta Mode Status(USER_DATA)
|
|
1996
|
+
* @param {GetDeltaModeStatusRequest} requestParameters Request parameters.
|
|
1997
|
+
*
|
|
1998
|
+
* @returns {Promise<RestApiResponse<GetDeltaModeStatusResponse>>}
|
|
1999
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2000
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Get-Delta-Mode-Status Binance API Documentation}
|
|
2001
|
+
*/
|
|
2002
|
+
getDeltaModeStatus(requestParameters?: GetDeltaModeStatusRequest): Promise<RestApiResponse<GetDeltaModeStatusResponse>>;
|
|
1852
2003
|
/**
|
|
1853
2004
|
* Query Portfolio Margin Pro account balance
|
|
1854
2005
|
*
|
|
@@ -1904,6 +2055,8 @@ declare class RestAPI {
|
|
|
1904
2055
|
/**
|
|
1905
2056
|
* Repay Portfolio Margin Pro Bankruptcy Loan
|
|
1906
2057
|
*
|
|
2058
|
+
* Please note that the API Key has enabled Spot & Margin Trading permissions to access this endpoint.
|
|
2059
|
+
*
|
|
1907
2060
|
* Weight: 3000
|
|
1908
2061
|
*
|
|
1909
2062
|
* @summary Portfolio Margin Pro Bankruptcy Loan Repay
|
|
@@ -1973,6 +2126,19 @@ declare class RestAPI {
|
|
|
1973
2126
|
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Repay-futures-Negative-Balance Binance API Documentation}
|
|
1974
2127
|
*/
|
|
1975
2128
|
repayFuturesNegativeBalance(requestParameters?: RepayFuturesNegativeBalanceRequest): Promise<RestApiResponse<RepayFuturesNegativeBalanceResponse>>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Switch the Delta mode for existing PM PRO / PM RETAIL accounts.
|
|
2131
|
+
*
|
|
2132
|
+
* Weight: 1500
|
|
2133
|
+
*
|
|
2134
|
+
* @summary Switch Delta Mode(TRADE)
|
|
2135
|
+
* @param {SwitchDeltaModeRequest} requestParameters Request parameters.
|
|
2136
|
+
*
|
|
2137
|
+
* @returns {Promise<RestApiResponse<SwitchDeltaModeResponse>>}
|
|
2138
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
2139
|
+
* @see {@link https://developers.binance.com/docs/derivatives/portfolio-margin-pro/account/Switch-Delta-Mode Binance API Documentation}
|
|
2140
|
+
*/
|
|
2141
|
+
switchDeltaMode(requestParameters: SwitchDeltaModeRequest): Promise<RestApiResponse<SwitchDeltaModeResponse>>;
|
|
1976
2142
|
/**
|
|
1977
2143
|
* Transfer LDUSDT/RWUSD as collateral for all types of Portfolio Margin account
|
|
1978
2144
|
*
|
|
@@ -2038,7 +2204,7 @@ declare class RestAPI {
|
|
|
2038
2204
|
queryPortfolioMarginAssetIndexPrice(requestParameters?: QueryPortfolioMarginAssetIndexPriceRequest): Promise<RestApiResponse<QueryPortfolioMarginAssetIndexPriceResponse>>;
|
|
2039
2205
|
}
|
|
2040
2206
|
declare namespace index_d_exports {
|
|
2041
|
-
export { AccountApi, AccountApiInterface, BnbTransferRequest, BnbTransferResponse, ChangeAutoRepayFuturesStatusRequest, ChangeAutoRepayFuturesStatusResponse, FundAutoCollectionRequest, FundAutoCollectionResponse, FundCollectionByAssetRequest, FundCollectionByAssetResponse, GetAutoRepayFuturesStatusRequest, GetAutoRepayFuturesStatusResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginAssetLeverageResponseInner, GetPortfolioMarginProAccountBalanceRequest, GetPortfolioMarginProAccountBalanceResponse, GetPortfolioMarginProAccountBalanceResponseInner, GetPortfolioMarginProAccountInfoRequest, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoRequest, GetPortfolioMarginProSpanAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoResponseRiskUnitMMListInner, GetTransferableEarnAssetBalanceForPortfolioMarginRequest, GetTransferableEarnAssetBalanceForPortfolioMarginResponse, MarketDataApi, MarketDataApiInterface, PortfolioMarginCollateralRateResponse, PortfolioMarginCollateralRateResponseInner, PortfolioMarginProBankruptcyLoanRepayRequest, PortfolioMarginProBankruptcyLoanRepayResponse, PortfolioMarginProTieredCollateralRateRequest, PortfolioMarginProTieredCollateralRateResponse, PortfolioMarginProTieredCollateralRateResponseInner, PortfolioMarginProTieredCollateralRateResponseInnerCollateralInfoInner, QueryPortfolioMarginAssetIndexPriceRequest, QueryPortfolioMarginAssetIndexPriceResponse, QueryPortfolioMarginAssetIndexPriceResponseInner, QueryPortfolioMarginProBankruptcyLoanAmountRequest, QueryPortfolioMarginProBankruptcyLoanAmountResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryRequest, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponseRowsInner, QueryPortfolioMarginProNegativeBalanceInterestHistoryRequest, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponse, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponseInner, RepayFuturesNegativeBalanceRequest, RepayFuturesNegativeBalanceResponse, RestAPI, TransferLdusdtRwusdForPortfolioMarginRequest, TransferLdusdtRwusdForPortfolioMarginResponse };
|
|
2207
|
+
export { AccountApi, AccountApiInterface, BnbTransferRequest, BnbTransferResponse, ChangeAutoRepayFuturesStatusRequest, ChangeAutoRepayFuturesStatusResponse, FundAutoCollectionRequest, FundAutoCollectionResponse, FundCollectionByAssetRequest, FundCollectionByAssetResponse, GetAutoRepayFuturesStatusRequest, GetAutoRepayFuturesStatusResponse, GetDeltaModeStatusRequest, GetDeltaModeStatusResponse, GetPortfolioMarginAssetLeverageResponse, GetPortfolioMarginAssetLeverageResponseInner, GetPortfolioMarginProAccountBalanceRequest, GetPortfolioMarginProAccountBalanceResponse, GetPortfolioMarginProAccountBalanceResponseInner, GetPortfolioMarginProAccountInfoRequest, GetPortfolioMarginProAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoRequest, GetPortfolioMarginProSpanAccountInfoResponse, GetPortfolioMarginProSpanAccountInfoResponseRiskUnitMMListInner, GetTransferableEarnAssetBalanceForPortfolioMarginRequest, GetTransferableEarnAssetBalanceForPortfolioMarginResponse, MarketDataApi, MarketDataApiInterface, PortfolioMarginCollateralRateResponse, PortfolioMarginCollateralRateResponseInner, PortfolioMarginProBankruptcyLoanRepayRequest, PortfolioMarginProBankruptcyLoanRepayResponse, PortfolioMarginProTieredCollateralRateRequest, PortfolioMarginProTieredCollateralRateResponse, PortfolioMarginProTieredCollateralRateResponseInner, PortfolioMarginProTieredCollateralRateResponseInnerCollateralInfoInner, QueryPortfolioMarginAssetIndexPriceRequest, QueryPortfolioMarginAssetIndexPriceResponse, QueryPortfolioMarginAssetIndexPriceResponseInner, QueryPortfolioMarginProBankruptcyLoanAmountRequest, QueryPortfolioMarginProBankruptcyLoanAmountResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryRequest, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponse, QueryPortfolioMarginProBankruptcyLoanRepayHistoryResponseRowsInner, QueryPortfolioMarginProNegativeBalanceInterestHistoryRequest, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponse, QueryPortfolioMarginProNegativeBalanceInterestHistoryResponseInner, RepayFuturesNegativeBalanceRequest, RepayFuturesNegativeBalanceResponse, RestAPI, SwitchDeltaModeRequest, SwitchDeltaModeResponse, TransferLdusdtRwusdForPortfolioMarginRequest, TransferLdusdtRwusdForPortfolioMarginResponse };
|
|
2042
2208
|
}
|
|
2043
2209
|
//#endregion
|
|
2044
2210
|
//#region src/websocket-streams/types/risklevelchange.d.ts
|