@binance/w3w-prediction 1.0.0 → 2.0.1
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/README.md +13 -0
- 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 +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenE
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/w3w-prediction";
|
|
6
|
-
var version = "
|
|
6
|
+
var version = "2.0.1";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/market-data-api.ts
|
|
@@ -154,7 +154,7 @@ var MarketDataApi = class {
|
|
|
154
154
|
* @returns {Promise<RestApiResponse<GetMarketDetailResponse>>}
|
|
155
155
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
156
156
|
* @memberof MarketDataApi
|
|
157
|
-
* @see {@link https://developers.binance.com/en/
|
|
157
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#get-market-detail Binance API Documentation}
|
|
158
158
|
*/
|
|
159
159
|
async getMarketDetail(requestParameters) {
|
|
160
160
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getMarketDetail(requestParameters?.marketTopicId);
|
|
@@ -169,7 +169,7 @@ var MarketDataApi = class {
|
|
|
169
169
|
* @returns {Promise<RestApiResponse<ListPredictionCategoriesResponse>>}
|
|
170
170
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
171
171
|
* @memberof MarketDataApi
|
|
172
|
-
* @see {@link https://developers.binance.com/en/
|
|
172
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-categories Binance API Documentation}
|
|
173
173
|
*/
|
|
174
174
|
async listPredictionCategories() {
|
|
175
175
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listPredictionCategories();
|
|
@@ -185,7 +185,7 @@ var MarketDataApi = class {
|
|
|
185
185
|
* @returns {Promise<RestApiResponse<ListPredictionMarketsResponse>>}
|
|
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-markets Binance API Documentation}
|
|
189
189
|
*/
|
|
190
190
|
async listPredictionMarkets(requestParameters = {}) {
|
|
191
191
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listPredictionMarkets(requestParameters?.l1Category, requestParameters?.l2Category, requestParameters?.sortBy, requestParameters?.orderBy, requestParameters?.offset, requestParameters?.limit);
|
|
@@ -201,7 +201,7 @@ var MarketDataApi = class {
|
|
|
201
201
|
* @returns {Promise<RestApiResponse<MarketSearchResponse>>}
|
|
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#market-search Binance API Documentation}
|
|
205
205
|
*/
|
|
206
206
|
async marketSearch(requestParameters) {
|
|
207
207
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.marketSearch(requestParameters?.query, requestParameters?.topK);
|
|
@@ -217,7 +217,7 @@ var MarketDataApi = class {
|
|
|
217
217
|
* @returns {Promise<RestApiResponse<QueryLastTradePriceResponse>>}
|
|
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#query-last-trade-price Binance API Documentation}
|
|
221
221
|
*/
|
|
222
222
|
async queryLastTradePrice(requestParameters) {
|
|
223
223
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryLastTradePrice(requestParameters?.marketId);
|
|
@@ -233,7 +233,7 @@ var MarketDataApi = class {
|
|
|
233
233
|
* @returns {Promise<RestApiResponse<QueryOrderBookResponse>>}
|
|
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-order-book Binance API Documentation}
|
|
237
237
|
*/
|
|
238
238
|
async queryOrderBook(requestParameters) {
|
|
239
239
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOrderBook(requestParameters?.vendor, requestParameters?.marketId, requestParameters?.tokenId);
|
|
@@ -396,12 +396,12 @@ var PositionApi = class {
|
|
|
396
396
|
*
|
|
397
397
|
* Security Type: USER_DATA
|
|
398
398
|
*
|
|
399
|
-
* @summary Get Position by Token
|
|
399
|
+
* @summary Get Position by Token (USER_DATA)
|
|
400
400
|
* @param {GetPositionByTokenRequest} requestParameters Request parameters.
|
|
401
401
|
* @returns {Promise<RestApiResponse<GetPositionByTokenResponse>>}
|
|
402
402
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
403
403
|
* @memberof PositionApi
|
|
404
|
-
* @see {@link https://developers.binance.com/en/
|
|
404
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#get-position-by-token Binance API Documentation}
|
|
405
405
|
*/
|
|
406
406
|
async getPositionByToken(requestParameters) {
|
|
407
407
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPositionByToken(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.recvWindow);
|
|
@@ -414,12 +414,12 @@ var PositionApi = class {
|
|
|
414
414
|
*
|
|
415
415
|
* Security Type: USER_DATA
|
|
416
416
|
*
|
|
417
|
-
* @summary Query PnL
|
|
417
|
+
* @summary Query PnL (USER_DATA)
|
|
418
418
|
* @param {QueryPnLRequest} requestParameters Request parameters.
|
|
419
419
|
* @returns {Promise<RestApiResponse<QueryPnLResponse>>}
|
|
420
420
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
421
421
|
* @memberof PositionApi
|
|
422
|
-
* @see {@link https://developers.binance.com/en/
|
|
422
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-pn-l Binance API Documentation}
|
|
423
423
|
*/
|
|
424
424
|
async queryPnL(requestParameters) {
|
|
425
425
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPnL(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.marketId, requestParameters?.marketTopicId, requestParameters?.activeOnly, requestParameters?.recvWindow);
|
|
@@ -432,12 +432,12 @@ var PositionApi = class {
|
|
|
432
432
|
*
|
|
433
433
|
* Security Type: USER_DATA
|
|
434
434
|
*
|
|
435
|
-
* @summary Query Positions
|
|
435
|
+
* @summary Query Positions (USER_DATA)
|
|
436
436
|
* @param {QueryPositionsRequest} requestParameters Request parameters.
|
|
437
437
|
* @returns {Promise<RestApiResponse<QueryPositionsResponse>>}
|
|
438
438
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
439
439
|
* @memberof PositionApi
|
|
440
|
-
* @see {@link https://developers.binance.com/en/
|
|
440
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions Binance API Documentation}
|
|
441
441
|
*/
|
|
442
442
|
async queryPositions(requestParameters) {
|
|
443
443
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPositions(requestParameters?.walletAddress, requestParameters?.tab, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -450,12 +450,12 @@ var PositionApi = class {
|
|
|
450
450
|
*
|
|
451
451
|
* Security Type: USER_DATA
|
|
452
452
|
*
|
|
453
|
-
* @summary Query Positions by Filter
|
|
453
|
+
* @summary Query Positions by Filter (USER_DATA)
|
|
454
454
|
* @param {QueryPositionsByFilterRequest} requestParameters Request parameters.
|
|
455
455
|
* @returns {Promise<RestApiResponse<QueryPositionsByFilterResponse>>}
|
|
456
456
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
457
457
|
* @memberof PositionApi
|
|
458
|
-
* @see {@link https://developers.binance.com/en/
|
|
458
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions-by-filter Binance API Documentation}
|
|
459
459
|
*/
|
|
460
460
|
async queryPositionsByFilter(requestParameters = {}) {
|
|
461
461
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPositionsByFilter(requestParameters?.walletAddress, requestParameters?.marketTopicId, requestParameters?.recvWindow);
|
|
@@ -468,12 +468,12 @@ var PositionApi = class {
|
|
|
468
468
|
*
|
|
469
469
|
* Security Type: USER_DATA
|
|
470
470
|
*
|
|
471
|
-
* @summary Query Settled Position History
|
|
471
|
+
* @summary Query Settled Position History (USER_DATA)
|
|
472
472
|
* @param {QuerySettledPositionHistoryRequest} requestParameters Request parameters.
|
|
473
473
|
* @returns {Promise<RestApiResponse<QuerySettledPositionHistoryResponse>>}
|
|
474
474
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
475
475
|
* @memberof PositionApi
|
|
476
|
-
* @see {@link https://developers.binance.com/en/
|
|
476
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-settled-position-history Binance API Documentation}
|
|
477
477
|
*/
|
|
478
478
|
async querySettledPositionHistory(requestParameters) {
|
|
479
479
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.querySettledPositionHistory(requestParameters?.walletAddress, requestParameters?.l1Category, requestParameters?.result, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -560,12 +560,12 @@ var RedeemApi = class {
|
|
|
560
560
|
*
|
|
561
561
|
* Security Type: TRADE
|
|
562
562
|
*
|
|
563
|
-
* @summary Batch Redeem
|
|
563
|
+
* @summary Batch Redeem (TRADE)
|
|
564
564
|
* @param {BatchRedeemRequest} requestParameters Request parameters.
|
|
565
565
|
* @returns {Promise<RestApiResponse<BatchRedeemResponse>>}
|
|
566
566
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
567
567
|
* @memberof RedeemApi
|
|
568
|
-
* @see {@link https://developers.binance.com/en/
|
|
568
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#batch-redeem Binance API Documentation}
|
|
569
569
|
*/
|
|
570
570
|
async batchRedeem(requestParameters) {
|
|
571
571
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.batchRedeem(requestParameters?.walletAddress, requestParameters?.walletId, requestParameters?.tokenIds, requestParameters?.chainId);
|
|
@@ -588,12 +588,12 @@ var RedeemApi = class {
|
|
|
588
588
|
* | `FAILED` | Transaction failed |
|
|
589
589
|
* | `NOT_FOUND` | Transaction hash not found |
|
|
590
590
|
*
|
|
591
|
-
* @summary Get Redeem Status
|
|
591
|
+
* @summary Get Redeem Status (USER_DATA)
|
|
592
592
|
* @param {GetRedeemStatusRequest} requestParameters Request parameters.
|
|
593
593
|
* @returns {Promise<RestApiResponse<GetRedeemStatusResponse>>}
|
|
594
594
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
595
595
|
* @memberof RedeemApi
|
|
596
|
-
* @see {@link https://developers.binance.com/en/
|
|
596
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#get-redeem-status Binance API Documentation}
|
|
597
597
|
*/
|
|
598
598
|
async getRedeemStatus(requestParameters) {
|
|
599
599
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getRedeemStatus(requestParameters?.walletAddress, requestParameters?.txHash, requestParameters?.recvWindow);
|
|
@@ -782,12 +782,12 @@ var TradeApi = class {
|
|
|
782
782
|
* - Use dot notation for nested list fields: `cancelInfoList[0].orderId`, `cancelInfoList[1].orderId`, etc.
|
|
783
783
|
* - `vendor` does not need to be supplied. The server automatically sets the correct vendor (`predict_fun`) for every item in the batch.
|
|
784
784
|
*
|
|
785
|
-
* @summary Batch Cancel Orders
|
|
785
|
+
* @summary Batch Cancel Orders (TRADE)
|
|
786
786
|
* @param {BatchCancelOrdersRequest} requestParameters Request parameters.
|
|
787
787
|
* @returns {Promise<RestApiResponse<BatchCancelOrdersResponse>>}
|
|
788
788
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
789
789
|
* @memberof TradeApi
|
|
790
|
-
* @see {@link https://developers.binance.com/en/
|
|
790
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#batch-cancel-orders Binance API Documentation}
|
|
791
791
|
*/
|
|
792
792
|
async batchCancelOrders(requestParameters) {
|
|
793
793
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.batchCancelOrders(requestParameters?.walletAddress, requestParameters?.walletId, requestParameters?.cancelInfoList);
|
|
@@ -804,12 +804,12 @@ var TradeApi = class {
|
|
|
804
804
|
* - `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.
|
|
805
805
|
* - **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.
|
|
806
806
|
*
|
|
807
|
-
* @summary Get Quote
|
|
807
|
+
* @summary Get Quote (TRADE)
|
|
808
808
|
* @param {GetQuoteRequest} requestParameters Request parameters.
|
|
809
809
|
* @returns {Promise<RestApiResponse<GetQuoteResponse>>}
|
|
810
810
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
811
811
|
* @memberof TradeApi
|
|
812
|
-
* @see {@link https://developers.binance.com/en/
|
|
812
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#get-quote Binance API Documentation}
|
|
813
813
|
*/
|
|
814
814
|
async getQuote(requestParameters) {
|
|
815
815
|
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);
|
|
@@ -830,12 +830,12 @@ var TradeApi = class {
|
|
|
830
830
|
* | `MARKET` | Must be `FOK` | Not required |
|
|
831
831
|
* | `LIMIT` | Must be `GTC` | Required, must be > 0 |
|
|
832
832
|
*
|
|
833
|
-
* @summary Place Order
|
|
833
|
+
* @summary Place Order (TRADE)
|
|
834
834
|
* @param {PlaceOrderRequest} requestParameters Request parameters.
|
|
835
835
|
* @returns {Promise<RestApiResponse<PlaceOrderResponse>>}
|
|
836
836
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
837
837
|
* @memberof TradeApi
|
|
838
|
-
* @see {@link https://developers.binance.com/en/
|
|
838
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#place-order Binance API Documentation}
|
|
839
839
|
*/
|
|
840
840
|
async placeOrder(requestParameters) {
|
|
841
841
|
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);
|
|
@@ -848,12 +848,12 @@ var TradeApi = class {
|
|
|
848
848
|
*
|
|
849
849
|
* Security Type: USER_DATA
|
|
850
850
|
*
|
|
851
|
-
* @summary Query Active Orders
|
|
851
|
+
* @summary Query Active Orders (USER_DATA)
|
|
852
852
|
* @param {QueryActiveOrdersRequest} requestParameters Request parameters.
|
|
853
853
|
* @returns {Promise<RestApiResponse<QueryActiveOrdersResponse>>}
|
|
854
854
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
855
855
|
* @memberof TradeApi
|
|
856
|
-
* @see {@link https://developers.binance.com/en/
|
|
856
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-active-orders Binance API Documentation}
|
|
857
857
|
*/
|
|
858
858
|
async queryActiveOrders(requestParameters) {
|
|
859
859
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryActiveOrders(requestParameters?.walletAddress, requestParameters?.tradeSide, requestParameters?.l1Category, requestParameters?.marketId, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -866,12 +866,12 @@ var TradeApi = class {
|
|
|
866
866
|
*
|
|
867
867
|
* Security Type: USER_DATA
|
|
868
868
|
*
|
|
869
|
-
* @summary Query Order History
|
|
869
|
+
* @summary Query Order History (USER_DATA)
|
|
870
870
|
* @param {QueryOrderHistoryRequest} requestParameters Request parameters.
|
|
871
871
|
* @returns {Promise<RestApiResponse<QueryOrderHistoryResponse>>}
|
|
872
872
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
873
873
|
* @memberof TradeApi
|
|
874
|
-
* @see {@link https://developers.binance.com/en/
|
|
874
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-order-history Binance API Documentation}
|
|
875
875
|
*/
|
|
876
876
|
async queryOrderHistory(requestParameters) {
|
|
877
877
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryOrderHistory(requestParameters?.walletAddress, requestParameters?.l1Category, requestParameters?.orderType, requestParameters?.status, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -1056,12 +1056,12 @@ var TransferApi = class {
|
|
|
1056
1056
|
*
|
|
1057
1057
|
* Security Type: TRADE
|
|
1058
1058
|
*
|
|
1059
|
-
* @summary Create Inbound Transfer
|
|
1059
|
+
* @summary Create Inbound Transfer (TRADE)
|
|
1060
1060
|
* @param {CreateInboundTransferRequest} requestParameters Request parameters.
|
|
1061
1061
|
* @returns {Promise<RestApiResponse<CreateInboundTransferResponse>>}
|
|
1062
1062
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1063
1063
|
* @memberof TransferApi
|
|
1064
|
-
* @see {@link https://developers.binance.com/en/
|
|
1064
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-inbound-transfer Binance API Documentation}
|
|
1065
1065
|
*/
|
|
1066
1066
|
async createInboundTransfer(requestParameters) {
|
|
1067
1067
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.createInboundTransfer(requestParameters?.walletId, requestParameters?.walletAddress, requestParameters?.fromTokenAmount, requestParameters?.accountType, requestParameters?.fromToken, requestParameters?.toToken, requestParameters?.chainId);
|
|
@@ -1074,12 +1074,12 @@ var TransferApi = class {
|
|
|
1074
1074
|
*
|
|
1075
1075
|
* Security Type: TRADE
|
|
1076
1076
|
*
|
|
1077
|
-
* @summary Create Outbound Transfer
|
|
1077
|
+
* @summary Create Outbound Transfer (TRADE)
|
|
1078
1078
|
* @param {CreateOutboundTransferRequest} requestParameters Request parameters.
|
|
1079
1079
|
* @returns {Promise<RestApiResponse<CreateOutboundTransferResponse>>}
|
|
1080
1080
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1081
1081
|
* @memberof TransferApi
|
|
1082
|
-
* @see {@link https://developers.binance.com/en/
|
|
1082
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-outbound-transfer Binance API Documentation}
|
|
1083
1083
|
*/
|
|
1084
1084
|
async createOutboundTransfer(requestParameters) {
|
|
1085
1085
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.createOutboundTransfer(requestParameters?.walletId, requestParameters?.walletAddress, requestParameters?.fromTokenAmount, requestParameters?.accountType, requestParameters?.sourceBiz, requestParameters?.fromToken, requestParameters?.toToken, requestParameters?.chainId);
|
|
@@ -1092,12 +1092,12 @@ var TransferApi = class {
|
|
|
1092
1092
|
*
|
|
1093
1093
|
* Security Type: USER_DATA
|
|
1094
1094
|
*
|
|
1095
|
-
* @summary Query Transfer List
|
|
1095
|
+
* @summary Query Transfer List (USER_DATA)
|
|
1096
1096
|
* @param {QueryTransferListRequest} requestParameters Request parameters.
|
|
1097
1097
|
* @returns {Promise<RestApiResponse<QueryTransferListResponse>>}
|
|
1098
1098
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1099
1099
|
* @memberof TransferApi
|
|
1100
|
-
* @see {@link https://developers.binance.com/en/
|
|
1100
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-list Binance API Documentation}
|
|
1101
1101
|
*/
|
|
1102
1102
|
async queryTransferList(requestParameters) {
|
|
1103
1103
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryTransferList(requestParameters?.walletAddress, requestParameters?.startDate, requestParameters?.endDate, requestParameters?.tokenSymbol, requestParameters?.direction, requestParameters?.offset, requestParameters?.limit, requestParameters?.recvWindow);
|
|
@@ -1112,12 +1112,12 @@ var TransferApi = class {
|
|
|
1112
1112
|
*
|
|
1113
1113
|
* Security Type: USER_DATA
|
|
1114
1114
|
*
|
|
1115
|
-
* @summary Query Transfer Status
|
|
1115
|
+
* @summary Query Transfer Status (USER_DATA)
|
|
1116
1116
|
* @param {QueryTransferStatusRequest} requestParameters Request parameters.
|
|
1117
1117
|
* @returns {Promise<RestApiResponse<QueryTransferStatusResponse>>}
|
|
1118
1118
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1119
1119
|
* @memberof TransferApi
|
|
1120
|
-
* @see {@link https://developers.binance.com/en/
|
|
1120
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-status Binance API Documentation}
|
|
1121
1121
|
*/
|
|
1122
1122
|
async queryTransferStatus(requestParameters) {
|
|
1123
1123
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryTransferStatus(requestParameters?.transferId, requestParameters?.recvWindow);
|
|
@@ -1252,12 +1252,12 @@ var WalletApi = class {
|
|
|
1252
1252
|
*
|
|
1253
1253
|
* Security Type: USER_DATA
|
|
1254
1254
|
*
|
|
1255
|
-
* @summary Get Portfolio
|
|
1255
|
+
* @summary Get Portfolio (USER_DATA)
|
|
1256
1256
|
* @param {GetPortfolioRequest} requestParameters Request parameters.
|
|
1257
1257
|
* @returns {Promise<RestApiResponse<GetPortfolioResponse>>}
|
|
1258
1258
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1259
1259
|
* @memberof WalletApi
|
|
1260
|
-
* @see {@link https://developers.binance.com/en/
|
|
1260
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-portfolio Binance API Documentation}
|
|
1261
1261
|
*/
|
|
1262
1262
|
async getPortfolio(requestParameters) {
|
|
1263
1263
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getPortfolio(requestParameters?.walletAddress, requestParameters?.tokenId, requestParameters?.marketId, requestParameters?.marketTopicId, requestParameters?.activeOnly, requestParameters?.recvWindow);
|
|
@@ -1270,12 +1270,12 @@ var WalletApi = class {
|
|
|
1270
1270
|
*
|
|
1271
1271
|
* Security Type: USER_DATA
|
|
1272
1272
|
*
|
|
1273
|
-
* @summary Get Quota Status
|
|
1273
|
+
* @summary Get Quota Status (USER_DATA)
|
|
1274
1274
|
* @param {GetQuotaStatusRequest} requestParameters Request parameters.
|
|
1275
1275
|
* @returns {Promise<RestApiResponse<GetQuotaStatusResponse>>}
|
|
1276
1276
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1277
1277
|
* @memberof WalletApi
|
|
1278
|
-
* @see {@link https://developers.binance.com/en/
|
|
1278
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-quota-status Binance API Documentation}
|
|
1279
1279
|
*/
|
|
1280
1280
|
async getQuotaStatus(requestParameters = {}) {
|
|
1281
1281
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getQuotaStatus(requestParameters?.recvWindow);
|
|
@@ -1288,12 +1288,12 @@ var WalletApi = class {
|
|
|
1288
1288
|
*
|
|
1289
1289
|
* Security Type: USER_DATA
|
|
1290
1290
|
*
|
|
1291
|
-
* @summary List Prediction Wallets
|
|
1291
|
+
* @summary List Prediction Wallets (USER_DATA)
|
|
1292
1292
|
* @param {ListPredictionWalletsRequest} requestParameters Request parameters.
|
|
1293
1293
|
* @returns {Promise<RestApiResponse<ListPredictionWalletsResponse>>}
|
|
1294
1294
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1295
1295
|
* @memberof WalletApi
|
|
1296
|
-
* @see {@link https://developers.binance.com/en/
|
|
1296
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#list-prediction-wallets Binance API Documentation}
|
|
1297
1297
|
*/
|
|
1298
1298
|
async listPredictionWallets(requestParameters = {}) {
|
|
1299
1299
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.listPredictionWallets(requestParameters?.recvWindow);
|
|
@@ -1306,12 +1306,12 @@ var WalletApi = class {
|
|
|
1306
1306
|
*
|
|
1307
1307
|
* Security Type: USER_DATA
|
|
1308
1308
|
*
|
|
1309
|
-
* @summary Query Payment Option Balances
|
|
1309
|
+
* @summary Query Payment Option Balances (USER_DATA)
|
|
1310
1310
|
* @param {QueryPaymentOptionBalancesRequest} requestParameters Request parameters.
|
|
1311
1311
|
* @returns {Promise<RestApiResponse<QueryPaymentOptionBalancesResponse>>}
|
|
1312
1312
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1313
1313
|
* @memberof WalletApi
|
|
1314
|
-
* @see {@link https://developers.binance.com/en/
|
|
1314
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#query-payment-option-balances Binance API Documentation}
|
|
1315
1315
|
*/
|
|
1316
1316
|
async queryPaymentOptionBalances(requestParameters = {}) {
|
|
1317
1317
|
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryPaymentOptionBalances(requestParameters?.recvWindow);
|
|
@@ -1377,7 +1377,7 @@ var RestAPI = class {
|
|
|
1377
1377
|
*
|
|
1378
1378
|
* @returns {Promise<RestApiResponse<GetMarketDetailResponse>>}
|
|
1379
1379
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1380
|
-
* @see {@link https://developers.binance.com/en/
|
|
1380
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#get-market-detail Binance API Documentation}
|
|
1381
1381
|
*/
|
|
1382
1382
|
getMarketDetail(requestParameters) {
|
|
1383
1383
|
return this.marketDataApi.getMarketDetail(requestParameters);
|
|
@@ -1391,7 +1391,7 @@ var RestAPI = class {
|
|
|
1391
1391
|
*
|
|
1392
1392
|
* @returns {Promise<RestApiResponse<ListPredictionCategoriesResponse>>}
|
|
1393
1393
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1394
|
-
* @see {@link https://developers.binance.com/en/
|
|
1394
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-categories Binance API Documentation}
|
|
1395
1395
|
*/
|
|
1396
1396
|
listPredictionCategories() {
|
|
1397
1397
|
return this.marketDataApi.listPredictionCategories();
|
|
@@ -1406,7 +1406,7 @@ var RestAPI = class {
|
|
|
1406
1406
|
*
|
|
1407
1407
|
* @returns {Promise<RestApiResponse<ListPredictionMarketsResponse>>}
|
|
1408
1408
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1409
|
-
* @see {@link https://developers.binance.com/en/
|
|
1409
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#list-prediction-markets Binance API Documentation}
|
|
1410
1410
|
*/
|
|
1411
1411
|
listPredictionMarkets(requestParameters = {}) {
|
|
1412
1412
|
return this.marketDataApi.listPredictionMarkets(requestParameters);
|
|
@@ -1421,7 +1421,7 @@ var RestAPI = class {
|
|
|
1421
1421
|
*
|
|
1422
1422
|
* @returns {Promise<RestApiResponse<MarketSearchResponse>>}
|
|
1423
1423
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1424
|
-
* @see {@link https://developers.binance.com/en/
|
|
1424
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#market-search Binance API Documentation}
|
|
1425
1425
|
*/
|
|
1426
1426
|
marketSearch(requestParameters) {
|
|
1427
1427
|
return this.marketDataApi.marketSearch(requestParameters);
|
|
@@ -1436,7 +1436,7 @@ var RestAPI = class {
|
|
|
1436
1436
|
*
|
|
1437
1437
|
* @returns {Promise<RestApiResponse<QueryLastTradePriceResponse>>}
|
|
1438
1438
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1439
|
-
* @see {@link https://developers.binance.com/en/
|
|
1439
|
+
* @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}
|
|
1440
1440
|
*/
|
|
1441
1441
|
queryLastTradePrice(requestParameters) {
|
|
1442
1442
|
return this.marketDataApi.queryLastTradePrice(requestParameters);
|
|
@@ -1451,7 +1451,7 @@ var RestAPI = class {
|
|
|
1451
1451
|
*
|
|
1452
1452
|
* @returns {Promise<RestApiResponse<QueryOrderBookResponse>>}
|
|
1453
1453
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1454
|
-
* @see {@link https://developers.binance.com/en/
|
|
1454
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/market-data#query-order-book Binance API Documentation}
|
|
1455
1455
|
*/
|
|
1456
1456
|
queryOrderBook(requestParameters) {
|
|
1457
1457
|
return this.marketDataApi.queryOrderBook(requestParameters);
|
|
@@ -1463,12 +1463,12 @@ var RestAPI = class {
|
|
|
1463
1463
|
*
|
|
1464
1464
|
* Security Type: USER_DATA
|
|
1465
1465
|
*
|
|
1466
|
-
* @summary Get Position by Token
|
|
1466
|
+
* @summary Get Position by Token (USER_DATA)
|
|
1467
1467
|
* @param {GetPositionByTokenRequest} requestParameters Request parameters.
|
|
1468
1468
|
*
|
|
1469
1469
|
* @returns {Promise<RestApiResponse<GetPositionByTokenResponse>>}
|
|
1470
1470
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1471
|
-
* @see {@link https://developers.binance.com/en/
|
|
1471
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#get-position-by-token Binance API Documentation}
|
|
1472
1472
|
*/
|
|
1473
1473
|
getPositionByToken(requestParameters) {
|
|
1474
1474
|
return this.positionApi.getPositionByToken(requestParameters);
|
|
@@ -1480,12 +1480,12 @@ var RestAPI = class {
|
|
|
1480
1480
|
*
|
|
1481
1481
|
* Security Type: USER_DATA
|
|
1482
1482
|
*
|
|
1483
|
-
* @summary Query PnL
|
|
1483
|
+
* @summary Query PnL (USER_DATA)
|
|
1484
1484
|
* @param {QueryPnLRequest} requestParameters Request parameters.
|
|
1485
1485
|
*
|
|
1486
1486
|
* @returns {Promise<RestApiResponse<QueryPnLResponse>>}
|
|
1487
1487
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1488
|
-
* @see {@link https://developers.binance.com/en/
|
|
1488
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-pn-l Binance API Documentation}
|
|
1489
1489
|
*/
|
|
1490
1490
|
queryPnL(requestParameters) {
|
|
1491
1491
|
return this.positionApi.queryPnL(requestParameters);
|
|
@@ -1497,12 +1497,12 @@ var RestAPI = class {
|
|
|
1497
1497
|
*
|
|
1498
1498
|
* Security Type: USER_DATA
|
|
1499
1499
|
*
|
|
1500
|
-
* @summary Query Positions
|
|
1500
|
+
* @summary Query Positions (USER_DATA)
|
|
1501
1501
|
* @param {QueryPositionsRequest} requestParameters Request parameters.
|
|
1502
1502
|
*
|
|
1503
1503
|
* @returns {Promise<RestApiResponse<QueryPositionsResponse>>}
|
|
1504
1504
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1505
|
-
* @see {@link https://developers.binance.com/en/
|
|
1505
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions Binance API Documentation}
|
|
1506
1506
|
*/
|
|
1507
1507
|
queryPositions(requestParameters) {
|
|
1508
1508
|
return this.positionApi.queryPositions(requestParameters);
|
|
@@ -1514,12 +1514,12 @@ var RestAPI = class {
|
|
|
1514
1514
|
*
|
|
1515
1515
|
* Security Type: USER_DATA
|
|
1516
1516
|
*
|
|
1517
|
-
* @summary Query Positions by Filter
|
|
1517
|
+
* @summary Query Positions by Filter (USER_DATA)
|
|
1518
1518
|
* @param {QueryPositionsByFilterRequest} requestParameters Request parameters.
|
|
1519
1519
|
*
|
|
1520
1520
|
* @returns {Promise<RestApiResponse<QueryPositionsByFilterResponse>>}
|
|
1521
1521
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1522
|
-
* @see {@link https://developers.binance.com/en/
|
|
1522
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-positions-by-filter Binance API Documentation}
|
|
1523
1523
|
*/
|
|
1524
1524
|
queryPositionsByFilter(requestParameters = {}) {
|
|
1525
1525
|
return this.positionApi.queryPositionsByFilter(requestParameters);
|
|
@@ -1531,12 +1531,12 @@ var RestAPI = class {
|
|
|
1531
1531
|
*
|
|
1532
1532
|
* Security Type: USER_DATA
|
|
1533
1533
|
*
|
|
1534
|
-
* @summary Query Settled Position History
|
|
1534
|
+
* @summary Query Settled Position History (USER_DATA)
|
|
1535
1535
|
* @param {QuerySettledPositionHistoryRequest} requestParameters Request parameters.
|
|
1536
1536
|
*
|
|
1537
1537
|
* @returns {Promise<RestApiResponse<QuerySettledPositionHistoryResponse>>}
|
|
1538
1538
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1539
|
-
* @see {@link https://developers.binance.com/en/
|
|
1539
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/position#query-settled-position-history Binance API Documentation}
|
|
1540
1540
|
*/
|
|
1541
1541
|
querySettledPositionHistory(requestParameters) {
|
|
1542
1542
|
return this.positionApi.querySettledPositionHistory(requestParameters);
|
|
@@ -1548,12 +1548,12 @@ var RestAPI = class {
|
|
|
1548
1548
|
*
|
|
1549
1549
|
* Security Type: TRADE
|
|
1550
1550
|
*
|
|
1551
|
-
* @summary Batch Redeem
|
|
1551
|
+
* @summary Batch Redeem (TRADE)
|
|
1552
1552
|
* @param {BatchRedeemRequest} requestParameters Request parameters.
|
|
1553
1553
|
*
|
|
1554
1554
|
* @returns {Promise<RestApiResponse<BatchRedeemResponse>>}
|
|
1555
1555
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1556
|
-
* @see {@link https://developers.binance.com/en/
|
|
1556
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#batch-redeem Binance API Documentation}
|
|
1557
1557
|
*/
|
|
1558
1558
|
batchRedeem(requestParameters) {
|
|
1559
1559
|
return this.redeemApi.batchRedeem(requestParameters);
|
|
@@ -1575,12 +1575,12 @@ var RestAPI = class {
|
|
|
1575
1575
|
* | `FAILED` | Transaction failed |
|
|
1576
1576
|
* | `NOT_FOUND` | Transaction hash not found |
|
|
1577
1577
|
*
|
|
1578
|
-
* @summary Get Redeem Status
|
|
1578
|
+
* @summary Get Redeem Status (USER_DATA)
|
|
1579
1579
|
* @param {GetRedeemStatusRequest} requestParameters Request parameters.
|
|
1580
1580
|
*
|
|
1581
1581
|
* @returns {Promise<RestApiResponse<GetRedeemStatusResponse>>}
|
|
1582
1582
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1583
|
-
* @see {@link https://developers.binance.com/en/
|
|
1583
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/redeem#get-redeem-status Binance API Documentation}
|
|
1584
1584
|
*/
|
|
1585
1585
|
getRedeemStatus(requestParameters) {
|
|
1586
1586
|
return this.redeemApi.getRedeemStatus(requestParameters);
|
|
@@ -1604,12 +1604,12 @@ var RestAPI = class {
|
|
|
1604
1604
|
* - Use dot notation for nested list fields: `cancelInfoList[0].orderId`, `cancelInfoList[1].orderId`, etc.
|
|
1605
1605
|
* - `vendor` does not need to be supplied. The server automatically sets the correct vendor (`predict_fun`) for every item in the batch.
|
|
1606
1606
|
*
|
|
1607
|
-
* @summary Batch Cancel Orders
|
|
1607
|
+
* @summary Batch Cancel Orders (TRADE)
|
|
1608
1608
|
* @param {BatchCancelOrdersRequest} requestParameters Request parameters.
|
|
1609
1609
|
*
|
|
1610
1610
|
* @returns {Promise<RestApiResponse<BatchCancelOrdersResponse>>}
|
|
1611
1611
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1612
|
-
* @see {@link https://developers.binance.com/en/
|
|
1612
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#batch-cancel-orders Binance API Documentation}
|
|
1613
1613
|
*/
|
|
1614
1614
|
batchCancelOrders(requestParameters) {
|
|
1615
1615
|
return this.tradeApi.batchCancelOrders(requestParameters);
|
|
@@ -1625,12 +1625,12 @@ var RestAPI = class {
|
|
|
1625
1625
|
* - `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.
|
|
1626
1626
|
* - **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.
|
|
1627
1627
|
*
|
|
1628
|
-
* @summary Get Quote
|
|
1628
|
+
* @summary Get Quote (TRADE)
|
|
1629
1629
|
* @param {GetQuoteRequest} requestParameters Request parameters.
|
|
1630
1630
|
*
|
|
1631
1631
|
* @returns {Promise<RestApiResponse<GetQuoteResponse>>}
|
|
1632
1632
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1633
|
-
* @see {@link https://developers.binance.com/en/
|
|
1633
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#get-quote Binance API Documentation}
|
|
1634
1634
|
*/
|
|
1635
1635
|
getQuote(requestParameters) {
|
|
1636
1636
|
return this.tradeApi.getQuote(requestParameters);
|
|
@@ -1650,12 +1650,12 @@ var RestAPI = class {
|
|
|
1650
1650
|
* | `MARKET` | Must be `FOK` | Not required |
|
|
1651
1651
|
* | `LIMIT` | Must be `GTC` | Required, must be > 0 |
|
|
1652
1652
|
*
|
|
1653
|
-
* @summary Place Order
|
|
1653
|
+
* @summary Place Order (TRADE)
|
|
1654
1654
|
* @param {PlaceOrderRequest} requestParameters Request parameters.
|
|
1655
1655
|
*
|
|
1656
1656
|
* @returns {Promise<RestApiResponse<PlaceOrderResponse>>}
|
|
1657
1657
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1658
|
-
* @see {@link https://developers.binance.com/en/
|
|
1658
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#place-order Binance API Documentation}
|
|
1659
1659
|
*/
|
|
1660
1660
|
placeOrder(requestParameters) {
|
|
1661
1661
|
return this.tradeApi.placeOrder(requestParameters);
|
|
@@ -1667,12 +1667,12 @@ var RestAPI = class {
|
|
|
1667
1667
|
*
|
|
1668
1668
|
* Security Type: USER_DATA
|
|
1669
1669
|
*
|
|
1670
|
-
* @summary Query Active Orders
|
|
1670
|
+
* @summary Query Active Orders (USER_DATA)
|
|
1671
1671
|
* @param {QueryActiveOrdersRequest} requestParameters Request parameters.
|
|
1672
1672
|
*
|
|
1673
1673
|
* @returns {Promise<RestApiResponse<QueryActiveOrdersResponse>>}
|
|
1674
1674
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1675
|
-
* @see {@link https://developers.binance.com/en/
|
|
1675
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-active-orders Binance API Documentation}
|
|
1676
1676
|
*/
|
|
1677
1677
|
queryActiveOrders(requestParameters) {
|
|
1678
1678
|
return this.tradeApi.queryActiveOrders(requestParameters);
|
|
@@ -1684,12 +1684,12 @@ var RestAPI = class {
|
|
|
1684
1684
|
*
|
|
1685
1685
|
* Security Type: USER_DATA
|
|
1686
1686
|
*
|
|
1687
|
-
* @summary Query Order History
|
|
1687
|
+
* @summary Query Order History (USER_DATA)
|
|
1688
1688
|
* @param {QueryOrderHistoryRequest} requestParameters Request parameters.
|
|
1689
1689
|
*
|
|
1690
1690
|
* @returns {Promise<RestApiResponse<QueryOrderHistoryResponse>>}
|
|
1691
1691
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1692
|
-
* @see {@link https://developers.binance.com/en/
|
|
1692
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/trade#query-order-history Binance API Documentation}
|
|
1693
1693
|
*/
|
|
1694
1694
|
queryOrderHistory(requestParameters) {
|
|
1695
1695
|
return this.tradeApi.queryOrderHistory(requestParameters);
|
|
@@ -1703,12 +1703,12 @@ var RestAPI = class {
|
|
|
1703
1703
|
*
|
|
1704
1704
|
* Security Type: TRADE
|
|
1705
1705
|
*
|
|
1706
|
-
* @summary Create Inbound Transfer
|
|
1706
|
+
* @summary Create Inbound Transfer (TRADE)
|
|
1707
1707
|
* @param {CreateInboundTransferRequest} requestParameters Request parameters.
|
|
1708
1708
|
*
|
|
1709
1709
|
* @returns {Promise<RestApiResponse<CreateInboundTransferResponse>>}
|
|
1710
1710
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1711
|
-
* @see {@link https://developers.binance.com/en/
|
|
1711
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-inbound-transfer Binance API Documentation}
|
|
1712
1712
|
*/
|
|
1713
1713
|
createInboundTransfer(requestParameters) {
|
|
1714
1714
|
return this.transferApi.createInboundTransfer(requestParameters);
|
|
@@ -1720,12 +1720,12 @@ var RestAPI = class {
|
|
|
1720
1720
|
*
|
|
1721
1721
|
* Security Type: TRADE
|
|
1722
1722
|
*
|
|
1723
|
-
* @summary Create Outbound Transfer
|
|
1723
|
+
* @summary Create Outbound Transfer (TRADE)
|
|
1724
1724
|
* @param {CreateOutboundTransferRequest} requestParameters Request parameters.
|
|
1725
1725
|
*
|
|
1726
1726
|
* @returns {Promise<RestApiResponse<CreateOutboundTransferResponse>>}
|
|
1727
1727
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1728
|
-
* @see {@link https://developers.binance.com/en/
|
|
1728
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#create-outbound-transfer Binance API Documentation}
|
|
1729
1729
|
*/
|
|
1730
1730
|
createOutboundTransfer(requestParameters) {
|
|
1731
1731
|
return this.transferApi.createOutboundTransfer(requestParameters);
|
|
@@ -1737,12 +1737,12 @@ var RestAPI = class {
|
|
|
1737
1737
|
*
|
|
1738
1738
|
* Security Type: USER_DATA
|
|
1739
1739
|
*
|
|
1740
|
-
* @summary Query Transfer List
|
|
1740
|
+
* @summary Query Transfer List (USER_DATA)
|
|
1741
1741
|
* @param {QueryTransferListRequest} requestParameters Request parameters.
|
|
1742
1742
|
*
|
|
1743
1743
|
* @returns {Promise<RestApiResponse<QueryTransferListResponse>>}
|
|
1744
1744
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1745
|
-
* @see {@link https://developers.binance.com/en/
|
|
1745
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-list Binance API Documentation}
|
|
1746
1746
|
*/
|
|
1747
1747
|
queryTransferList(requestParameters) {
|
|
1748
1748
|
return this.transferApi.queryTransferList(requestParameters);
|
|
@@ -1756,12 +1756,12 @@ var RestAPI = class {
|
|
|
1756
1756
|
*
|
|
1757
1757
|
* Security Type: USER_DATA
|
|
1758
1758
|
*
|
|
1759
|
-
* @summary Query Transfer Status
|
|
1759
|
+
* @summary Query Transfer Status (USER_DATA)
|
|
1760
1760
|
* @param {QueryTransferStatusRequest} requestParameters Request parameters.
|
|
1761
1761
|
*
|
|
1762
1762
|
* @returns {Promise<RestApiResponse<QueryTransferStatusResponse>>}
|
|
1763
1763
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1764
|
-
* @see {@link https://developers.binance.com/en/
|
|
1764
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/transfer#query-transfer-status Binance API Documentation}
|
|
1765
1765
|
*/
|
|
1766
1766
|
queryTransferStatus(requestParameters) {
|
|
1767
1767
|
return this.transferApi.queryTransferStatus(requestParameters);
|
|
@@ -1773,12 +1773,12 @@ var RestAPI = class {
|
|
|
1773
1773
|
*
|
|
1774
1774
|
* Security Type: USER_DATA
|
|
1775
1775
|
*
|
|
1776
|
-
* @summary Get Portfolio
|
|
1776
|
+
* @summary Get Portfolio (USER_DATA)
|
|
1777
1777
|
* @param {GetPortfolioRequest} requestParameters Request parameters.
|
|
1778
1778
|
*
|
|
1779
1779
|
* @returns {Promise<RestApiResponse<GetPortfolioResponse>>}
|
|
1780
1780
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1781
|
-
* @see {@link https://developers.binance.com/en/
|
|
1781
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-portfolio Binance API Documentation}
|
|
1782
1782
|
*/
|
|
1783
1783
|
getPortfolio(requestParameters) {
|
|
1784
1784
|
return this.walletApi.getPortfolio(requestParameters);
|
|
@@ -1790,12 +1790,12 @@ var RestAPI = class {
|
|
|
1790
1790
|
*
|
|
1791
1791
|
* Security Type: USER_DATA
|
|
1792
1792
|
*
|
|
1793
|
-
* @summary Get Quota Status
|
|
1793
|
+
* @summary Get Quota Status (USER_DATA)
|
|
1794
1794
|
* @param {GetQuotaStatusRequest} requestParameters Request parameters.
|
|
1795
1795
|
*
|
|
1796
1796
|
* @returns {Promise<RestApiResponse<GetQuotaStatusResponse>>}
|
|
1797
1797
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1798
|
-
* @see {@link https://developers.binance.com/en/
|
|
1798
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#get-quota-status Binance API Documentation}
|
|
1799
1799
|
*/
|
|
1800
1800
|
getQuotaStatus(requestParameters = {}) {
|
|
1801
1801
|
return this.walletApi.getQuotaStatus(requestParameters);
|
|
@@ -1807,12 +1807,12 @@ var RestAPI = class {
|
|
|
1807
1807
|
*
|
|
1808
1808
|
* Security Type: USER_DATA
|
|
1809
1809
|
*
|
|
1810
|
-
* @summary List Prediction Wallets
|
|
1810
|
+
* @summary List Prediction Wallets (USER_DATA)
|
|
1811
1811
|
* @param {ListPredictionWalletsRequest} requestParameters Request parameters.
|
|
1812
1812
|
*
|
|
1813
1813
|
* @returns {Promise<RestApiResponse<ListPredictionWalletsResponse>>}
|
|
1814
1814
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1815
|
-
* @see {@link https://developers.binance.com/en/
|
|
1815
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#list-prediction-wallets Binance API Documentation}
|
|
1816
1816
|
*/
|
|
1817
1817
|
listPredictionWallets(requestParameters = {}) {
|
|
1818
1818
|
return this.walletApi.listPredictionWallets(requestParameters);
|
|
@@ -1824,12 +1824,12 @@ var RestAPI = class {
|
|
|
1824
1824
|
*
|
|
1825
1825
|
* Security Type: USER_DATA
|
|
1826
1826
|
*
|
|
1827
|
-
* @summary Query Payment Option Balances
|
|
1827
|
+
* @summary Query Payment Option Balances (USER_DATA)
|
|
1828
1828
|
* @param {QueryPaymentOptionBalancesRequest} requestParameters Request parameters.
|
|
1829
1829
|
*
|
|
1830
1830
|
* @returns {Promise<RestApiResponse<QueryPaymentOptionBalancesResponse>>}
|
|
1831
1831
|
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
1832
|
-
* @see {@link https://developers.binance.com/en/
|
|
1832
|
+
* @see {@link https://developers.binance.com/en/docs/catalog/web3-wallet-prediction-trading/api/rest-api/wallet#query-payment-option-balances Binance API Documentation}
|
|
1833
1833
|
*/
|
|
1834
1834
|
queryPaymentOptionBalances(requestParameters = {}) {
|
|
1835
1835
|
return this.walletApi.queryPaymentOptionBalances(requestParameters);
|