@binance/w3w-prediction 1.0.0 → 2.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 +112 -112
- package/dist/index.d.ts +112 -112
- package/dist/index.js +93 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -93
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ let __binance_common = require("@binance/common");
|
|
|
19
19
|
|
|
20
20
|
//#region package.json
|
|
21
21
|
var name = "@binance/w3w-prediction";
|
|
22
|
-
var version = "
|
|
22
|
+
var version = "2.0.0";
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/rest-api/modules/market-data-api.ts
|
|
@@ -170,7 +170,7 @@ var MarketDataApi = class {
|
|
|
170
170
|
* @returns {Promise<RestApiResponse<GetMarketDetailResponse>>}
|
|
171
171
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
172
172
|
* @memberof MarketDataApi
|
|
173
|
-
* @see {@link https://developers.binance.com/en/
|
|
173
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#get-market-detail Binance API Documentation}
|
|
174
174
|
*/
|
|
175
175
|
async getMarketDetail(requestParameters) {
|
|
176
176
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketDetail(requestParameters?.marketTopicId);
|
|
@@ -185,7 +185,7 @@ var MarketDataApi = class {
|
|
|
185
185
|
* @returns {Promise<RestApiResponse<ListPredictionCategoriesResponse>>}
|
|
186
186
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
187
187
|
* @memberof MarketDataApi
|
|
188
|
-
* @see {@link https://developers.binance.com/en/
|
|
188
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-categories Binance API Documentation}
|
|
189
189
|
*/
|
|
190
190
|
async listPredictionCategories() {
|
|
191
191
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listPredictionCategories();
|
|
@@ -201,7 +201,7 @@ var MarketDataApi = class {
|
|
|
201
201
|
* @returns {Promise<RestApiResponse<ListPredictionMarketsResponse>>}
|
|
202
202
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
203
203
|
* @memberof MarketDataApi
|
|
204
|
-
* @see {@link https://developers.binance.com/en/
|
|
204
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-markets Binance API Documentation}
|
|
205
205
|
*/
|
|
206
206
|
async listPredictionMarkets(requestParameters = {}) {
|
|
207
207
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listPredictionMarkets(requestParameters?.l1Category, requestParameters?.l2Category, requestParameters?.sortBy, requestParameters?.orderBy, requestParameters?.offset, requestParameters?.limit);
|
|
@@ -217,7 +217,7 @@ var MarketDataApi = class {
|
|
|
217
217
|
* @returns {Promise<RestApiResponse<MarketSearchResponse>>}
|
|
218
218
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
219
219
|
* @memberof MarketDataApi
|
|
220
|
-
* @see {@link https://developers.binance.com/en/
|
|
220
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#market-search Binance API Documentation}
|
|
221
221
|
*/
|
|
222
222
|
async marketSearch(requestParameters) {
|
|
223
223
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marketSearch(requestParameters?.query, requestParameters?.topK);
|
|
@@ -233,7 +233,7 @@ var MarketDataApi = class {
|
|
|
233
233
|
* @returns {Promise<RestApiResponse<QueryLastTradePriceResponse>>}
|
|
234
234
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
235
235
|
* @memberof MarketDataApi
|
|
236
|
-
* @see {@link https://developers.binance.com/en/
|
|
236
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-last-trade-price Binance API Documentation}
|
|
237
237
|
*/
|
|
238
238
|
async queryLastTradePrice(requestParameters) {
|
|
239
239
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryLastTradePrice(requestParameters?.marketId);
|
|
@@ -249,7 +249,7 @@ var MarketDataApi = class {
|
|
|
249
249
|
* @returns {Promise<RestApiResponse<QueryOrderBookResponse>>}
|
|
250
250
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
251
251
|
* @memberof MarketDataApi
|
|
252
|
-
* @see {@link https://developers.binance.com/en/
|
|
252
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-order-book Binance API Documentation}
|
|
253
253
|
*/
|
|
254
254
|
async queryOrderBook(requestParameters) {
|
|
255
255
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOrderBook(requestParameters?.vendor, requestParameters?.marketId, requestParameters?.tokenId);
|
|
@@ -412,12 +412,12 @@ var PositionApi = class {
|
|
|
412
412
|
*
|
|
413
413
|
* Security Type: USER_DATA
|
|
414
414
|
*
|
|
415
|
-
* @summary Get Position by Token
|
|
415
|
+
* @summary Get Position by Token (USER_DATA)
|
|
416
416
|
* @param {GetPositionByTokenRequest} requestParameters Request parameters.
|
|
417
417
|
* @returns {Promise<RestApiResponse<GetPositionByTokenResponse>>}
|
|
418
418
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
419
419
|
* @memberof PositionApi
|
|
420
|
-
* @see {@link https://developers.binance.com/en/
|
|
420
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#get-position-by-token Binance API Documentation}
|
|
421
421
|
*/
|
|
422
422
|
async getPositionByToken(requestParameters) {
|
|
423
423
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPositionByToken(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.recvWindow);
|
|
@@ -430,12 +430,12 @@ var PositionApi = class {
|
|
|
430
430
|
*
|
|
431
431
|
* Security Type: USER_DATA
|
|
432
432
|
*
|
|
433
|
-
* @summary Query PnL
|
|
433
|
+
* @summary Query PnL (USER_DATA)
|
|
434
434
|
* @param {QueryPnLRequest} requestParameters Request parameters.
|
|
435
435
|
* @returns {Promise<RestApiResponse<QueryPnLResponse>>}
|
|
436
436
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
437
437
|
* @memberof PositionApi
|
|
438
|
-
* @see {@link https://developers.binance.com/en/
|
|
438
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-pn-l Binance API Documentation}
|
|
439
439
|
*/
|
|
440
440
|
async queryPnL(requestParameters) {
|
|
441
441
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPnL(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.marketId, requestParameters?.marketTopicId, requestParameters?.activeOnly, requestParameters?.recvWindow);
|
|
@@ -448,12 +448,12 @@ var PositionApi = class {
|
|
|
448
448
|
*
|
|
449
449
|
* Security Type: USER_DATA
|
|
450
450
|
*
|
|
451
|
-
* @summary Query Positions
|
|
451
|
+
* @summary Query Positions (USER_DATA)
|
|
452
452
|
* @param {QueryPositionsRequest} requestParameters Request parameters.
|
|
453
453
|
* @returns {Promise<RestApiResponse<QueryPositionsResponse>>}
|
|
454
454
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
455
455
|
* @memberof PositionApi
|
|
456
|
-
* @see {@link https://developers.binance.com/en/
|
|
456
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions Binance API Documentation}
|
|
457
457
|
*/
|
|
458
458
|
async queryPositions(requestParameters) {
|
|
459
459
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPositions(requestParameters?.walletAddress, requestParameters?.tab, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -466,12 +466,12 @@ var PositionApi = class {
|
|
|
466
466
|
*
|
|
467
467
|
* Security Type: USER_DATA
|
|
468
468
|
*
|
|
469
|
-
* @summary Query Positions by Filter
|
|
469
|
+
* @summary Query Positions by Filter (USER_DATA)
|
|
470
470
|
* @param {QueryPositionsByFilterRequest} requestParameters Request parameters.
|
|
471
471
|
* @returns {Promise<RestApiResponse<QueryPositionsByFilterResponse>>}
|
|
472
472
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
473
473
|
* @memberof PositionApi
|
|
474
|
-
* @see {@link https://developers.binance.com/en/
|
|
474
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions-by-filter Binance API Documentation}
|
|
475
475
|
*/
|
|
476
476
|
async queryPositionsByFilter(requestParameters = {}) {
|
|
477
477
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPositionsByFilter(requestParameters?.walletAddress, requestParameters?.marketTopicId, requestParameters?.recvWindow);
|
|
@@ -484,12 +484,12 @@ var PositionApi = class {
|
|
|
484
484
|
*
|
|
485
485
|
* Security Type: USER_DATA
|
|
486
486
|
*
|
|
487
|
-
* @summary Query Settled Position History
|
|
487
|
+
* @summary Query Settled Position History (USER_DATA)
|
|
488
488
|
* @param {QuerySettledPositionHistoryRequest} requestParameters Request parameters.
|
|
489
489
|
* @returns {Promise<RestApiResponse<QuerySettledPositionHistoryResponse>>}
|
|
490
490
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
491
491
|
* @memberof PositionApi
|
|
492
|
-
* @see {@link https://developers.binance.com/en/
|
|
492
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-settled-position-history Binance API Documentation}
|
|
493
493
|
*/
|
|
494
494
|
async querySettledPositionHistory(requestParameters) {
|
|
495
495
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySettledPositionHistory(requestParameters?.walletAddress, requestParameters?.l1Category, requestParameters?.result, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -576,12 +576,12 @@ var RedeemApi = class {
|
|
|
576
576
|
*
|
|
577
577
|
* Security Type: TRADE
|
|
578
578
|
*
|
|
579
|
-
* @summary Batch Redeem
|
|
579
|
+
* @summary Batch Redeem (TRADE)
|
|
580
580
|
* @param {BatchRedeemRequest} requestParameters Request parameters.
|
|
581
581
|
* @returns {Promise<RestApiResponse<BatchRedeemResponse>>}
|
|
582
582
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
583
583
|
* @memberof RedeemApi
|
|
584
|
-
* @see {@link https://developers.binance.com/en/
|
|
584
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#batch-redeem Binance API Documentation}
|
|
585
585
|
*/
|
|
586
586
|
async batchRedeem(requestParameters) {
|
|
587
587
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.batchRedeem(requestParameters?.walletAddress, requestParameters?.walletId, requestParameters?.tokenIds, requestParameters?.chainId);
|
|
@@ -604,12 +604,12 @@ var RedeemApi = class {
|
|
|
604
604
|
* | `FAILED` | Transaction failed |
|
|
605
605
|
* | `NOT_FOUND` | Transaction hash not found |
|
|
606
606
|
*
|
|
607
|
-
* @summary Get Redeem Status
|
|
607
|
+
* @summary Get Redeem Status (USER_DATA)
|
|
608
608
|
* @param {GetRedeemStatusRequest} requestParameters Request parameters.
|
|
609
609
|
* @returns {Promise<RestApiResponse<GetRedeemStatusResponse>>}
|
|
610
610
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
611
611
|
* @memberof RedeemApi
|
|
612
|
-
* @see {@link https://developers.binance.com/en/
|
|
612
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#get-redeem-status Binance API Documentation}
|
|
613
613
|
*/
|
|
614
614
|
async getRedeemStatus(requestParameters) {
|
|
615
615
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRedeemStatus(requestParameters?.walletAddress, requestParameters?.txHash, requestParameters?.recvWindow);
|
|
@@ -798,12 +798,12 @@ var TradeApi = class {
|
|
|
798
798
|
* - Use dot notation for nested list fields: `cancelInfoList[0].orderId`, `cancelInfoList[1].orderId`, etc.
|
|
799
799
|
* - `vendor` does not need to be supplied. The server automatically sets the correct vendor (`predict_fun`) for every item in the batch.
|
|
800
800
|
*
|
|
801
|
-
* @summary Batch Cancel Orders
|
|
801
|
+
* @summary Batch Cancel Orders (TRADE)
|
|
802
802
|
* @param {BatchCancelOrdersRequest} requestParameters Request parameters.
|
|
803
803
|
* @returns {Promise<RestApiResponse<BatchCancelOrdersResponse>>}
|
|
804
804
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
805
805
|
* @memberof TradeApi
|
|
806
|
-
* @see {@link https://developers.binance.com/en/
|
|
806
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#batch-cancel-orders Binance API Documentation}
|
|
807
807
|
*/
|
|
808
808
|
async batchCancelOrders(requestParameters) {
|
|
809
809
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.batchCancelOrders(requestParameters?.walletAddress, requestParameters?.walletId, requestParameters?.cancelInfoList);
|
|
@@ -820,12 +820,12 @@ var TradeApi = class {
|
|
|
820
820
|
* - `feeAmount` is a string because it is denominated in wei (18 decimals) and may exceed JavaScript's safe integer range. `feeDiscountBps` is also a string to allow fractional basis-point values in the future. `feeRateBps` and `slippageBps` are integers and will never exceed safe integer bounds.
|
|
821
821
|
* - **MARKET order minimum amount:** For `MARKET` orders, `amountIn` must be at least approximately **1.5 USDT** (in wei: `1500000000000000000`). The exact minimum varies by market liquidity. If the amount is too small, the server returns `-9000 Your order amount is too small`. This limit does **not** apply to `LIMIT` orders.
|
|
822
822
|
*
|
|
823
|
-
* @summary Get Quote
|
|
823
|
+
* @summary Get Quote (TRADE)
|
|
824
824
|
* @param {GetQuoteRequest} requestParameters Request parameters.
|
|
825
825
|
* @returns {Promise<RestApiResponse<GetQuoteResponse>>}
|
|
826
826
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
827
827
|
* @memberof TradeApi
|
|
828
|
-
* @see {@link https://developers.binance.com/en/
|
|
828
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#get-quote Binance API Documentation}
|
|
829
829
|
*/
|
|
830
830
|
async getQuote(requestParameters) {
|
|
831
831
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getQuote(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.side, requestParameters?.amountIn, requestParameters?.orderType, requestParameters?.slippageBps, requestParameters?.priceLimit, requestParameters?.chainId, requestParameters?.feeRateBps, requestParameters?.fundingSource, requestParameters?.fundTransferAmount);
|
|
@@ -846,12 +846,12 @@ var TradeApi = class {
|
|
|
846
846
|
* | `MARKET` | Must be `FOK` | Not required |
|
|
847
847
|
* | `LIMIT` | Must be `GTC` | Required, must be > 0 |
|
|
848
848
|
*
|
|
849
|
-
* @summary Place Order
|
|
849
|
+
* @summary Place Order (TRADE)
|
|
850
850
|
* @param {PlaceOrderRequest} requestParameters Request parameters.
|
|
851
851
|
* @returns {Promise<RestApiResponse<PlaceOrderResponse>>}
|
|
852
852
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
853
853
|
* @memberof TradeApi
|
|
854
|
-
* @see {@link https://developers.binance.com/en/
|
|
854
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#place-order Binance API Documentation}
|
|
855
855
|
*/
|
|
856
856
|
async placeOrder(requestParameters) {
|
|
857
857
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.placeOrder(requestParameters?.walletAddress, requestParameters?.walletId, requestParameters?.quoteId, requestParameters?.timeInForce, requestParameters?.accountType, requestParameters?.orderType, requestParameters?.slippageBps, requestParameters?.priceLimit, requestParameters?.fundingSource, requestParameters?.fundTransferAmount);
|
|
@@ -864,12 +864,12 @@ var TradeApi = class {
|
|
|
864
864
|
*
|
|
865
865
|
* Security Type: USER_DATA
|
|
866
866
|
*
|
|
867
|
-
* @summary Query Active Orders
|
|
867
|
+
* @summary Query Active Orders (USER_DATA)
|
|
868
868
|
* @param {QueryActiveOrdersRequest} requestParameters Request parameters.
|
|
869
869
|
* @returns {Promise<RestApiResponse<QueryActiveOrdersResponse>>}
|
|
870
870
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
871
871
|
* @memberof TradeApi
|
|
872
|
-
* @see {@link https://developers.binance.com/en/
|
|
872
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-active-orders Binance API Documentation}
|
|
873
873
|
*/
|
|
874
874
|
async queryActiveOrders(requestParameters) {
|
|
875
875
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryActiveOrders(requestParameters?.walletAddress, requestParameters?.tradeSide, requestParameters?.l1Category, requestParameters?.marketId, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -882,12 +882,12 @@ var TradeApi = class {
|
|
|
882
882
|
*
|
|
883
883
|
* Security Type: USER_DATA
|
|
884
884
|
*
|
|
885
|
-
* @summary Query Order History
|
|
885
|
+
* @summary Query Order History (USER_DATA)
|
|
886
886
|
* @param {QueryOrderHistoryRequest} requestParameters Request parameters.
|
|
887
887
|
* @returns {Promise<RestApiResponse<QueryOrderHistoryResponse>>}
|
|
888
888
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
889
889
|
* @memberof TradeApi
|
|
890
|
-
* @see {@link https://developers.binance.com/en/
|
|
890
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-order-history Binance API Documentation}
|
|
891
891
|
*/
|
|
892
892
|
async queryOrderHistory(requestParameters) {
|
|
893
893
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOrderHistory(requestParameters?.walletAddress, requestParameters?.l1Category, requestParameters?.orderType, requestParameters?.status, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -1072,12 +1072,12 @@ var TransferApi = class {
|
|
|
1072
1072
|
*
|
|
1073
1073
|
* Security Type: TRADE
|
|
1074
1074
|
*
|
|
1075
|
-
* @summary Create Inbound Transfer
|
|
1075
|
+
* @summary Create Inbound Transfer (TRADE)
|
|
1076
1076
|
* @param {CreateInboundTransferRequest} requestParameters Request parameters.
|
|
1077
1077
|
* @returns {Promise<RestApiResponse<CreateInboundTransferResponse>>}
|
|
1078
1078
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1079
1079
|
* @memberof TransferApi
|
|
1080
|
-
* @see {@link https://developers.binance.com/en/
|
|
1080
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-inbound-transfer Binance API Documentation}
|
|
1081
1081
|
*/
|
|
1082
1082
|
async createInboundTransfer(requestParameters) {
|
|
1083
1083
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.createInboundTransfer(requestParameters?.walletId, requestParameters?.walletAddress, requestParameters?.fromTokenAmount, requestParameters?.accountType, requestParameters?.fromToken, requestParameters?.toToken, requestParameters?.chainId);
|
|
@@ -1090,12 +1090,12 @@ var TransferApi = class {
|
|
|
1090
1090
|
*
|
|
1091
1091
|
* Security Type: TRADE
|
|
1092
1092
|
*
|
|
1093
|
-
* @summary Create Outbound Transfer
|
|
1093
|
+
* @summary Create Outbound Transfer (TRADE)
|
|
1094
1094
|
* @param {CreateOutboundTransferRequest} requestParameters Request parameters.
|
|
1095
1095
|
* @returns {Promise<RestApiResponse<CreateOutboundTransferResponse>>}
|
|
1096
1096
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1097
1097
|
* @memberof TransferApi
|
|
1098
|
-
* @see {@link https://developers.binance.com/en/
|
|
1098
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-outbound-transfer Binance API Documentation}
|
|
1099
1099
|
*/
|
|
1100
1100
|
async createOutboundTransfer(requestParameters) {
|
|
1101
1101
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.createOutboundTransfer(requestParameters?.walletId, requestParameters?.walletAddress, requestParameters?.fromTokenAmount, requestParameters?.accountType, requestParameters?.sourceBiz, requestParameters?.fromToken, requestParameters?.toToken, requestParameters?.chainId);
|
|
@@ -1108,12 +1108,12 @@ var TransferApi = class {
|
|
|
1108
1108
|
*
|
|
1109
1109
|
* Security Type: USER_DATA
|
|
1110
1110
|
*
|
|
1111
|
-
* @summary Query Transfer List
|
|
1111
|
+
* @summary Query Transfer List (USER_DATA)
|
|
1112
1112
|
* @param {QueryTransferListRequest} requestParameters Request parameters.
|
|
1113
1113
|
* @returns {Promise<RestApiResponse<QueryTransferListResponse>>}
|
|
1114
1114
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1115
1115
|
* @memberof TransferApi
|
|
1116
|
-
* @see {@link https://developers.binance.com/en/
|
|
1116
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-list Binance API Documentation}
|
|
1117
1117
|
*/
|
|
1118
1118
|
async queryTransferList(requestParameters) {
|
|
1119
1119
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryTransferList(requestParameters?.walletAddress, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.tokenSymbol, requestParameters?.direction, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -1128,12 +1128,12 @@ var TransferApi = class {
|
|
|
1128
1128
|
*
|
|
1129
1129
|
* Security Type: USER_DATA
|
|
1130
1130
|
*
|
|
1131
|
-
* @summary Query Transfer Status
|
|
1131
|
+
* @summary Query Transfer Status (USER_DATA)
|
|
1132
1132
|
* @param {QueryTransferStatusRequest} requestParameters Request parameters.
|
|
1133
1133
|
* @returns {Promise<RestApiResponse<QueryTransferStatusResponse>>}
|
|
1134
1134
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1135
1135
|
* @memberof TransferApi
|
|
1136
|
-
* @see {@link https://developers.binance.com/en/
|
|
1136
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-status Binance API Documentation}
|
|
1137
1137
|
*/
|
|
1138
1138
|
async queryTransferStatus(requestParameters) {
|
|
1139
1139
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryTransferStatus(requestParameters?.transferId, requestParameters?.recvWindow);
|
|
@@ -1268,12 +1268,12 @@ var WalletApi = class {
|
|
|
1268
1268
|
*
|
|
1269
1269
|
* Security Type: USER_DATA
|
|
1270
1270
|
*
|
|
1271
|
-
* @summary Get Portfolio
|
|
1271
|
+
* @summary Get Portfolio (USER_DATA)
|
|
1272
1272
|
* @param {GetPortfolioRequest} requestParameters Request parameters.
|
|
1273
1273
|
* @returns {Promise<RestApiResponse<GetPortfolioResponse>>}
|
|
1274
1274
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1275
1275
|
* @memberof WalletApi
|
|
1276
|
-
* @see {@link https://developers.binance.com/en/
|
|
1276
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-portfolio Binance API Documentation}
|
|
1277
1277
|
*/
|
|
1278
1278
|
async getPortfolio(requestParameters) {
|
|
1279
1279
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPortfolio(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.marketId, requestParameters?.marketTopicId, requestParameters?.activeOnly, requestParameters?.recvWindow);
|
|
@@ -1286,12 +1286,12 @@ var WalletApi = class {
|
|
|
1286
1286
|
*
|
|
1287
1287
|
* Security Type: USER_DATA
|
|
1288
1288
|
*
|
|
1289
|
-
* @summary Get Quota Status
|
|
1289
|
+
* @summary Get Quota Status (USER_DATA)
|
|
1290
1290
|
* @param {GetQuotaStatusRequest} requestParameters Request parameters.
|
|
1291
1291
|
* @returns {Promise<RestApiResponse<GetQuotaStatusResponse>>}
|
|
1292
1292
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1293
1293
|
* @memberof WalletApi
|
|
1294
|
-
* @see {@link https://developers.binance.com/en/
|
|
1294
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-quota-status Binance API Documentation}
|
|
1295
1295
|
*/
|
|
1296
1296
|
async getQuotaStatus(requestParameters = {}) {
|
|
1297
1297
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getQuotaStatus(requestParameters?.recvWindow);
|
|
@@ -1304,12 +1304,12 @@ var WalletApi = class {
|
|
|
1304
1304
|
*
|
|
1305
1305
|
* Security Type: USER_DATA
|
|
1306
1306
|
*
|
|
1307
|
-
* @summary List Prediction Wallets
|
|
1307
|
+
* @summary List Prediction Wallets (USER_DATA)
|
|
1308
1308
|
* @param {ListPredictionWalletsRequest} requestParameters Request parameters.
|
|
1309
1309
|
* @returns {Promise<RestApiResponse<ListPredictionWalletsResponse>>}
|
|
1310
1310
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1311
1311
|
* @memberof WalletApi
|
|
1312
|
-
* @see {@link https://developers.binance.com/en/
|
|
1312
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#list-prediction-wallets Binance API Documentation}
|
|
1313
1313
|
*/
|
|
1314
1314
|
async listPredictionWallets(requestParameters = {}) {
|
|
1315
1315
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listPredictionWallets(requestParameters?.recvWindow);
|
|
@@ -1322,12 +1322,12 @@ var WalletApi = class {
|
|
|
1322
1322
|
*
|
|
1323
1323
|
* Security Type: USER_DATA
|
|
1324
1324
|
*
|
|
1325
|
-
* @summary Query Payment Option Balances
|
|
1325
|
+
* @summary Query Payment Option Balances (USER_DATA)
|
|
1326
1326
|
* @param {QueryPaymentOptionBalancesRequest} requestParameters Request parameters.
|
|
1327
1327
|
* @returns {Promise<RestApiResponse<QueryPaymentOptionBalancesResponse>>}
|
|
1328
1328
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1329
1329
|
* @memberof WalletApi
|
|
1330
|
-
* @see {@link https://developers.binance.com/en/
|
|
1330
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#query-payment-option-balances Binance API Documentation}
|
|
1331
1331
|
*/
|
|
1332
1332
|
async queryPaymentOptionBalances(requestParameters = {}) {
|
|
1333
1333
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPaymentOptionBalances(requestParameters?.recvWindow);
|
|
@@ -1393,7 +1393,7 @@ var RestAPI = class {
|
|
|
1393
1393
|
*
|
|
1394
1394
|
* @returns {Promise<RestApiResponse<GetMarketDetailResponse>>}
|
|
1395
1395
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1396
|
-
* @see {@link https://developers.binance.com/en/
|
|
1396
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#get-market-detail Binance API Documentation}
|
|
1397
1397
|
*/
|
|
1398
1398
|
getMarketDetail(requestParameters) {
|
|
1399
1399
|
return this.marketDataApi.getMarketDetail(requestParameters);
|
|
@@ -1407,7 +1407,7 @@ var RestAPI = class {
|
|
|
1407
1407
|
*
|
|
1408
1408
|
* @returns {Promise<RestApiResponse<ListPredictionCategoriesResponse>>}
|
|
1409
1409
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1410
|
-
* @see {@link https://developers.binance.com/en/
|
|
1410
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-categories Binance API Documentation}
|
|
1411
1411
|
*/
|
|
1412
1412
|
listPredictionCategories() {
|
|
1413
1413
|
return this.marketDataApi.listPredictionCategories();
|
|
@@ -1422,7 +1422,7 @@ var RestAPI = class {
|
|
|
1422
1422
|
*
|
|
1423
1423
|
* @returns {Promise<RestApiResponse<ListPredictionMarketsResponse>>}
|
|
1424
1424
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1425
|
-
* @see {@link https://developers.binance.com/en/
|
|
1425
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-markets Binance API Documentation}
|
|
1426
1426
|
*/
|
|
1427
1427
|
listPredictionMarkets(requestParameters = {}) {
|
|
1428
1428
|
return this.marketDataApi.listPredictionMarkets(requestParameters);
|
|
@@ -1437,7 +1437,7 @@ var RestAPI = class {
|
|
|
1437
1437
|
*
|
|
1438
1438
|
* @returns {Promise<RestApiResponse<MarketSearchResponse>>}
|
|
1439
1439
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1440
|
-
* @see {@link https://developers.binance.com/en/
|
|
1440
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#market-search Binance API Documentation}
|
|
1441
1441
|
*/
|
|
1442
1442
|
marketSearch(requestParameters) {
|
|
1443
1443
|
return this.marketDataApi.marketSearch(requestParameters);
|
|
@@ -1452,7 +1452,7 @@ var RestAPI = class {
|
|
|
1452
1452
|
*
|
|
1453
1453
|
* @returns {Promise<RestApiResponse<QueryLastTradePriceResponse>>}
|
|
1454
1454
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1455
|
-
* @see {@link https://developers.binance.com/en/
|
|
1455
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-last-trade-price Binance API Documentation}
|
|
1456
1456
|
*/
|
|
1457
1457
|
queryLastTradePrice(requestParameters) {
|
|
1458
1458
|
return this.marketDataApi.queryLastTradePrice(requestParameters);
|
|
@@ -1467,7 +1467,7 @@ var RestAPI = class {
|
|
|
1467
1467
|
*
|
|
1468
1468
|
* @returns {Promise<RestApiResponse<QueryOrderBookResponse>>}
|
|
1469
1469
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1470
|
-
* @see {@link https://developers.binance.com/en/
|
|
1470
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-order-book Binance API Documentation}
|
|
1471
1471
|
*/
|
|
1472
1472
|
queryOrderBook(requestParameters) {
|
|
1473
1473
|
return this.marketDataApi.queryOrderBook(requestParameters);
|
|
@@ -1479,12 +1479,12 @@ var RestAPI = class {
|
|
|
1479
1479
|
*
|
|
1480
1480
|
* Security Type: USER_DATA
|
|
1481
1481
|
*
|
|
1482
|
-
* @summary Get Position by Token
|
|
1482
|
+
* @summary Get Position by Token (USER_DATA)
|
|
1483
1483
|
* @param {GetPositionByTokenRequest} requestParameters Request parameters.
|
|
1484
1484
|
*
|
|
1485
1485
|
* @returns {Promise<RestApiResponse<GetPositionByTokenResponse>>}
|
|
1486
1486
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1487
|
-
* @see {@link https://developers.binance.com/en/
|
|
1487
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#get-position-by-token Binance API Documentation}
|
|
1488
1488
|
*/
|
|
1489
1489
|
getPositionByToken(requestParameters) {
|
|
1490
1490
|
return this.positionApi.getPositionByToken(requestParameters);
|
|
@@ -1496,12 +1496,12 @@ var RestAPI = class {
|
|
|
1496
1496
|
*
|
|
1497
1497
|
* Security Type: USER_DATA
|
|
1498
1498
|
*
|
|
1499
|
-
* @summary Query PnL
|
|
1499
|
+
* @summary Query PnL (USER_DATA)
|
|
1500
1500
|
* @param {QueryPnLRequest} requestParameters Request parameters.
|
|
1501
1501
|
*
|
|
1502
1502
|
* @returns {Promise<RestApiResponse<QueryPnLResponse>>}
|
|
1503
1503
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1504
|
-
* @see {@link https://developers.binance.com/en/
|
|
1504
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-pn-l Binance API Documentation}
|
|
1505
1505
|
*/
|
|
1506
1506
|
queryPnL(requestParameters) {
|
|
1507
1507
|
return this.positionApi.queryPnL(requestParameters);
|
|
@@ -1513,12 +1513,12 @@ var RestAPI = class {
|
|
|
1513
1513
|
*
|
|
1514
1514
|
* Security Type: USER_DATA
|
|
1515
1515
|
*
|
|
1516
|
-
* @summary Query Positions
|
|
1516
|
+
* @summary Query Positions (USER_DATA)
|
|
1517
1517
|
* @param {QueryPositionsRequest} requestParameters Request parameters.
|
|
1518
1518
|
*
|
|
1519
1519
|
* @returns {Promise<RestApiResponse<QueryPositionsResponse>>}
|
|
1520
1520
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1521
|
-
* @see {@link https://developers.binance.com/en/
|
|
1521
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions Binance API Documentation}
|
|
1522
1522
|
*/
|
|
1523
1523
|
queryPositions(requestParameters) {
|
|
1524
1524
|
return this.positionApi.queryPositions(requestParameters);
|
|
@@ -1530,12 +1530,12 @@ var RestAPI = class {
|
|
|
1530
1530
|
*
|
|
1531
1531
|
* Security Type: USER_DATA
|
|
1532
1532
|
*
|
|
1533
|
-
* @summary Query Positions by Filter
|
|
1533
|
+
* @summary Query Positions by Filter (USER_DATA)
|
|
1534
1534
|
* @param {QueryPositionsByFilterRequest} requestParameters Request parameters.
|
|
1535
1535
|
*
|
|
1536
1536
|
* @returns {Promise<RestApiResponse<QueryPositionsByFilterResponse>>}
|
|
1537
1537
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1538
|
-
* @see {@link https://developers.binance.com/en/
|
|
1538
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions-by-filter Binance API Documentation}
|
|
1539
1539
|
*/
|
|
1540
1540
|
queryPositionsByFilter(requestParameters = {}) {
|
|
1541
1541
|
return this.positionApi.queryPositionsByFilter(requestParameters);
|
|
@@ -1547,12 +1547,12 @@ var RestAPI = class {
|
|
|
1547
1547
|
*
|
|
1548
1548
|
* Security Type: USER_DATA
|
|
1549
1549
|
*
|
|
1550
|
-
* @summary Query Settled Position History
|
|
1550
|
+
* @summary Query Settled Position History (USER_DATA)
|
|
1551
1551
|
* @param {QuerySettledPositionHistoryRequest} requestParameters Request parameters.
|
|
1552
1552
|
*
|
|
1553
1553
|
* @returns {Promise<RestApiResponse<QuerySettledPositionHistoryResponse>>}
|
|
1554
1554
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1555
|
-
* @see {@link https://developers.binance.com/en/
|
|
1555
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-settled-position-history Binance API Documentation}
|
|
1556
1556
|
*/
|
|
1557
1557
|
querySettledPositionHistory(requestParameters) {
|
|
1558
1558
|
return this.positionApi.querySettledPositionHistory(requestParameters);
|
|
@@ -1564,12 +1564,12 @@ var RestAPI = class {
|
|
|
1564
1564
|
*
|
|
1565
1565
|
* Security Type: TRADE
|
|
1566
1566
|
*
|
|
1567
|
-
* @summary Batch Redeem
|
|
1567
|
+
* @summary Batch Redeem (TRADE)
|
|
1568
1568
|
* @param {BatchRedeemRequest} requestParameters Request parameters.
|
|
1569
1569
|
*
|
|
1570
1570
|
* @returns {Promise<RestApiResponse<BatchRedeemResponse>>}
|
|
1571
1571
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1572
|
-
* @see {@link https://developers.binance.com/en/
|
|
1572
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#batch-redeem Binance API Documentation}
|
|
1573
1573
|
*/
|
|
1574
1574
|
batchRedeem(requestParameters) {
|
|
1575
1575
|
return this.redeemApi.batchRedeem(requestParameters);
|
|
@@ -1591,12 +1591,12 @@ var RestAPI = class {
|
|
|
1591
1591
|
* | `FAILED` | Transaction failed |
|
|
1592
1592
|
* | `NOT_FOUND` | Transaction hash not found |
|
|
1593
1593
|
*
|
|
1594
|
-
* @summary Get Redeem Status
|
|
1594
|
+
* @summary Get Redeem Status (USER_DATA)
|
|
1595
1595
|
* @param {GetRedeemStatusRequest} requestParameters Request parameters.
|
|
1596
1596
|
*
|
|
1597
1597
|
* @returns {Promise<RestApiResponse<GetRedeemStatusResponse>>}
|
|
1598
1598
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1599
|
-
* @see {@link https://developers.binance.com/en/
|
|
1599
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#get-redeem-status Binance API Documentation}
|
|
1600
1600
|
*/
|
|
1601
1601
|
getRedeemStatus(requestParameters) {
|
|
1602
1602
|
return this.redeemApi.getRedeemStatus(requestParameters);
|
|
@@ -1620,12 +1620,12 @@ var RestAPI = class {
|
|
|
1620
1620
|
* - Use dot notation for nested list fields: `cancelInfoList[0].orderId`, `cancelInfoList[1].orderId`, etc.
|
|
1621
1621
|
* - `vendor` does not need to be supplied. The server automatically sets the correct vendor (`predict_fun`) for every item in the batch.
|
|
1622
1622
|
*
|
|
1623
|
-
* @summary Batch Cancel Orders
|
|
1623
|
+
* @summary Batch Cancel Orders (TRADE)
|
|
1624
1624
|
* @param {BatchCancelOrdersRequest} requestParameters Request parameters.
|
|
1625
1625
|
*
|
|
1626
1626
|
* @returns {Promise<RestApiResponse<BatchCancelOrdersResponse>>}
|
|
1627
1627
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1628
|
-
* @see {@link https://developers.binance.com/en/
|
|
1628
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#batch-cancel-orders Binance API Documentation}
|
|
1629
1629
|
*/
|
|
1630
1630
|
batchCancelOrders(requestParameters) {
|
|
1631
1631
|
return this.tradeApi.batchCancelOrders(requestParameters);
|
|
@@ -1641,12 +1641,12 @@ var RestAPI = class {
|
|
|
1641
1641
|
* - `feeAmount` is a string because it is denominated in wei (18 decimals) and may exceed JavaScript's safe integer range. `feeDiscountBps` is also a string to allow fractional basis-point values in the future. `feeRateBps` and `slippageBps` are integers and will never exceed safe integer bounds.
|
|
1642
1642
|
* - **MARKET order minimum amount:** For `MARKET` orders, `amountIn` must be at least approximately **1.5 USDT** (in wei: `1500000000000000000`). The exact minimum varies by market liquidity. If the amount is too small, the server returns `-9000 Your order amount is too small`. This limit does **not** apply to `LIMIT` orders.
|
|
1643
1643
|
*
|
|
1644
|
-
* @summary Get Quote
|
|
1644
|
+
* @summary Get Quote (TRADE)
|
|
1645
1645
|
* @param {GetQuoteRequest} requestParameters Request parameters.
|
|
1646
1646
|
*
|
|
1647
1647
|
* @returns {Promise<RestApiResponse<GetQuoteResponse>>}
|
|
1648
1648
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1649
|
-
* @see {@link https://developers.binance.com/en/
|
|
1649
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#get-quote Binance API Documentation}
|
|
1650
1650
|
*/
|
|
1651
1651
|
getQuote(requestParameters) {
|
|
1652
1652
|
return this.tradeApi.getQuote(requestParameters);
|
|
@@ -1666,12 +1666,12 @@ var RestAPI = class {
|
|
|
1666
1666
|
* | `MARKET` | Must be `FOK` | Not required |
|
|
1667
1667
|
* | `LIMIT` | Must be `GTC` | Required, must be > 0 |
|
|
1668
1668
|
*
|
|
1669
|
-
* @summary Place Order
|
|
1669
|
+
* @summary Place Order (TRADE)
|
|
1670
1670
|
* @param {PlaceOrderRequest} requestParameters Request parameters.
|
|
1671
1671
|
*
|
|
1672
1672
|
* @returns {Promise<RestApiResponse<PlaceOrderResponse>>}
|
|
1673
1673
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1674
|
-
* @see {@link https://developers.binance.com/en/
|
|
1674
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#place-order Binance API Documentation}
|
|
1675
1675
|
*/
|
|
1676
1676
|
placeOrder(requestParameters) {
|
|
1677
1677
|
return this.tradeApi.placeOrder(requestParameters);
|
|
@@ -1683,12 +1683,12 @@ var RestAPI = class {
|
|
|
1683
1683
|
*
|
|
1684
1684
|
* Security Type: USER_DATA
|
|
1685
1685
|
*
|
|
1686
|
-
* @summary Query Active Orders
|
|
1686
|
+
* @summary Query Active Orders (USER_DATA)
|
|
1687
1687
|
* @param {QueryActiveOrdersRequest} requestParameters Request parameters.
|
|
1688
1688
|
*
|
|
1689
1689
|
* @returns {Promise<RestApiResponse<QueryActiveOrdersResponse>>}
|
|
1690
1690
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1691
|
-
* @see {@link https://developers.binance.com/en/
|
|
1691
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-active-orders Binance API Documentation}
|
|
1692
1692
|
*/
|
|
1693
1693
|
queryActiveOrders(requestParameters) {
|
|
1694
1694
|
return this.tradeApi.queryActiveOrders(requestParameters);
|
|
@@ -1700,12 +1700,12 @@ var RestAPI = class {
|
|
|
1700
1700
|
*
|
|
1701
1701
|
* Security Type: USER_DATA
|
|
1702
1702
|
*
|
|
1703
|
-
* @summary Query Order History
|
|
1703
|
+
* @summary Query Order History (USER_DATA)
|
|
1704
1704
|
* @param {QueryOrderHistoryRequest} requestParameters Request parameters.
|
|
1705
1705
|
*
|
|
1706
1706
|
* @returns {Promise<RestApiResponse<QueryOrderHistoryResponse>>}
|
|
1707
1707
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1708
|
-
* @see {@link https://developers.binance.com/en/
|
|
1708
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-order-history Binance API Documentation}
|
|
1709
1709
|
*/
|
|
1710
1710
|
queryOrderHistory(requestParameters) {
|
|
1711
1711
|
return this.tradeApi.queryOrderHistory(requestParameters);
|
|
@@ -1719,12 +1719,12 @@ var RestAPI = class {
|
|
|
1719
1719
|
*
|
|
1720
1720
|
* Security Type: TRADE
|
|
1721
1721
|
*
|
|
1722
|
-
* @summary Create Inbound Transfer
|
|
1722
|
+
* @summary Create Inbound Transfer (TRADE)
|
|
1723
1723
|
* @param {CreateInboundTransferRequest} requestParameters Request parameters.
|
|
1724
1724
|
*
|
|
1725
1725
|
* @returns {Promise<RestApiResponse<CreateInboundTransferResponse>>}
|
|
1726
1726
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1727
|
-
* @see {@link https://developers.binance.com/en/
|
|
1727
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-inbound-transfer Binance API Documentation}
|
|
1728
1728
|
*/
|
|
1729
1729
|
createInboundTransfer(requestParameters) {
|
|
1730
1730
|
return this.transferApi.createInboundTransfer(requestParameters);
|
|
@@ -1736,12 +1736,12 @@ var RestAPI = class {
|
|
|
1736
1736
|
*
|
|
1737
1737
|
* Security Type: TRADE
|
|
1738
1738
|
*
|
|
1739
|
-
* @summary Create Outbound Transfer
|
|
1739
|
+
* @summary Create Outbound Transfer (TRADE)
|
|
1740
1740
|
* @param {CreateOutboundTransferRequest} requestParameters Request parameters.
|
|
1741
1741
|
*
|
|
1742
1742
|
* @returns {Promise<RestApiResponse<CreateOutboundTransferResponse>>}
|
|
1743
1743
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1744
|
-
* @see {@link https://developers.binance.com/en/
|
|
1744
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-outbound-transfer Binance API Documentation}
|
|
1745
1745
|
*/
|
|
1746
1746
|
createOutboundTransfer(requestParameters) {
|
|
1747
1747
|
return this.transferApi.createOutboundTransfer(requestParameters);
|
|
@@ -1753,12 +1753,12 @@ var RestAPI = class {
|
|
|
1753
1753
|
*
|
|
1754
1754
|
* Security Type: USER_DATA
|
|
1755
1755
|
*
|
|
1756
|
-
* @summary Query Transfer List
|
|
1756
|
+
* @summary Query Transfer List (USER_DATA)
|
|
1757
1757
|
* @param {QueryTransferListRequest} requestParameters Request parameters.
|
|
1758
1758
|
*
|
|
1759
1759
|
* @returns {Promise<RestApiResponse<QueryTransferListResponse>>}
|
|
1760
1760
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1761
|
-
* @see {@link https://developers.binance.com/en/
|
|
1761
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-list Binance API Documentation}
|
|
1762
1762
|
*/
|
|
1763
1763
|
queryTransferList(requestParameters) {
|
|
1764
1764
|
return this.transferApi.queryTransferList(requestParameters);
|
|
@@ -1772,12 +1772,12 @@ var RestAPI = class {
|
|
|
1772
1772
|
*
|
|
1773
1773
|
* Security Type: USER_DATA
|
|
1774
1774
|
*
|
|
1775
|
-
* @summary Query Transfer Status
|
|
1775
|
+
* @summary Query Transfer Status (USER_DATA)
|
|
1776
1776
|
* @param {QueryTransferStatusRequest} requestParameters Request parameters.
|
|
1777
1777
|
*
|
|
1778
1778
|
* @returns {Promise<RestApiResponse<QueryTransferStatusResponse>>}
|
|
1779
1779
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1780
|
-
* @see {@link https://developers.binance.com/en/
|
|
1780
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-status Binance API Documentation}
|
|
1781
1781
|
*/
|
|
1782
1782
|
queryTransferStatus(requestParameters) {
|
|
1783
1783
|
return this.transferApi.queryTransferStatus(requestParameters);
|
|
@@ -1789,12 +1789,12 @@ var RestAPI = class {
|
|
|
1789
1789
|
*
|
|
1790
1790
|
* Security Type: USER_DATA
|
|
1791
1791
|
*
|
|
1792
|
-
* @summary Get Portfolio
|
|
1792
|
+
* @summary Get Portfolio (USER_DATA)
|
|
1793
1793
|
* @param {GetPortfolioRequest} requestParameters Request parameters.
|
|
1794
1794
|
*
|
|
1795
1795
|
* @returns {Promise<RestApiResponse<GetPortfolioResponse>>}
|
|
1796
1796
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1797
|
-
* @see {@link https://developers.binance.com/en/
|
|
1797
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-portfolio Binance API Documentation}
|
|
1798
1798
|
*/
|
|
1799
1799
|
getPortfolio(requestParameters) {
|
|
1800
1800
|
return this.walletApi.getPortfolio(requestParameters);
|
|
@@ -1806,12 +1806,12 @@ var RestAPI = class {
|
|
|
1806
1806
|
*
|
|
1807
1807
|
* Security Type: USER_DATA
|
|
1808
1808
|
*
|
|
1809
|
-
* @summary Get Quota Status
|
|
1809
|
+
* @summary Get Quota Status (USER_DATA)
|
|
1810
1810
|
* @param {GetQuotaStatusRequest} requestParameters Request parameters.
|
|
1811
1811
|
*
|
|
1812
1812
|
* @returns {Promise<RestApiResponse<GetQuotaStatusResponse>>}
|
|
1813
1813
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1814
|
-
* @see {@link https://developers.binance.com/en/
|
|
1814
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-quota-status Binance API Documentation}
|
|
1815
1815
|
*/
|
|
1816
1816
|
getQuotaStatus(requestParameters = {}) {
|
|
1817
1817
|
return this.walletApi.getQuotaStatus(requestParameters);
|
|
@@ -1823,12 +1823,12 @@ var RestAPI = class {
|
|
|
1823
1823
|
*
|
|
1824
1824
|
* Security Type: USER_DATA
|
|
1825
1825
|
*
|
|
1826
|
-
* @summary List Prediction Wallets
|
|
1826
|
+
* @summary List Prediction Wallets (USER_DATA)
|
|
1827
1827
|
* @param {ListPredictionWalletsRequest} requestParameters Request parameters.
|
|
1828
1828
|
*
|
|
1829
1829
|
* @returns {Promise<RestApiResponse<ListPredictionWalletsResponse>>}
|
|
1830
1830
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1831
|
-
* @see {@link https://developers.binance.com/en/
|
|
1831
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#list-prediction-wallets Binance API Documentation}
|
|
1832
1832
|
*/
|
|
1833
1833
|
listPredictionWallets(requestParameters = {}) {
|
|
1834
1834
|
return this.walletApi.listPredictionWallets(requestParameters);
|
|
@@ -1840,12 +1840,12 @@ var RestAPI = class {
|
|
|
1840
1840
|
*
|
|
1841
1841
|
* Security Type: USER_DATA
|
|
1842
1842
|
*
|
|
1843
|
-
* @summary Query Payment Option Balances
|
|
1843
|
+
* @summary Query Payment Option Balances (USER_DATA)
|
|
1844
1844
|
* @param {QueryPaymentOptionBalancesRequest} requestParameters Request parameters.
|
|
1845
1845
|
*
|
|
1846
1846
|
* @returns {Promise<RestApiResponse<QueryPaymentOptionBalancesResponse>>}
|
|
1847
1847
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1848
|
-
* @see {@link https://developers.binance.com/en/
|
|
1848
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#query-payment-option-balances Binance API Documentation}
|
|
1849
1849
|
*/
|
|
1850
1850
|
queryPaymentOptionBalances(requestParameters = {}) {
|
|
1851
1851
|
return this.walletApi.queryPaymentOptionBalances(requestParameters);
|