@binance/derivatives-trading-options 10.0.0 → 11.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 +17 -15
- package/dist/index.d.ts +17 -15
- package/dist/index.js +193 -105
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +194 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2564,16 +2564,16 @@ interface PlaceMultipleOrdersOrdersParameterInner {
|
|
|
2564
2564
|
type?: PlaceMultipleOrdersOrdersParameterInnerTypeEnum;
|
|
2565
2565
|
/**
|
|
2566
2566
|
*
|
|
2567
|
-
* @type {
|
|
2567
|
+
* @type {string}
|
|
2568
2568
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2569
2569
|
*/
|
|
2570
|
-
quantity?:
|
|
2570
|
+
quantity?: string;
|
|
2571
2571
|
/**
|
|
2572
2572
|
*
|
|
2573
|
-
* @type {
|
|
2573
|
+
* @type {string}
|
|
2574
2574
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2575
2575
|
*/
|
|
2576
|
-
price?:
|
|
2576
|
+
price?: string;
|
|
2577
2577
|
/**
|
|
2578
2578
|
*
|
|
2579
2579
|
* @type {string}
|
|
@@ -2582,16 +2582,16 @@ interface PlaceMultipleOrdersOrdersParameterInner {
|
|
|
2582
2582
|
timeInForce?: PlaceMultipleOrdersOrdersParameterInnerTimeInForceEnum;
|
|
2583
2583
|
/**
|
|
2584
2584
|
*
|
|
2585
|
-
* @type {
|
|
2585
|
+
* @type {string}
|
|
2586
2586
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2587
2587
|
*/
|
|
2588
|
-
reduceOnly?:
|
|
2588
|
+
reduceOnly?: string;
|
|
2589
2589
|
/**
|
|
2590
2590
|
*
|
|
2591
|
-
* @type {
|
|
2591
|
+
* @type {string}
|
|
2592
2592
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2593
2593
|
*/
|
|
2594
|
-
postOnly?:
|
|
2594
|
+
postOnly?: string;
|
|
2595
2595
|
/**
|
|
2596
2596
|
*
|
|
2597
2597
|
* @type {string}
|
|
@@ -2606,10 +2606,10 @@ interface PlaceMultipleOrdersOrdersParameterInner {
|
|
|
2606
2606
|
clientOrderId?: string;
|
|
2607
2607
|
/**
|
|
2608
2608
|
*
|
|
2609
|
-
* @type {
|
|
2609
|
+
* @type {string}
|
|
2610
2610
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2611
2611
|
*/
|
|
2612
|
-
isMmp?:
|
|
2612
|
+
isMmp?: string;
|
|
2613
2613
|
}
|
|
2614
2614
|
declare const PlaceMultipleOrdersOrdersParameterInnerSideEnum: {
|
|
2615
2615
|
readonly BUY: "BUY";
|
|
@@ -6279,20 +6279,22 @@ declare class RestAPI {
|
|
|
6279
6279
|
* Generic function to send a request.
|
|
6280
6280
|
* @param endpoint - The API endpoint to call.
|
|
6281
6281
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6282
|
-
* @param
|
|
6282
|
+
* @param queryParams - Query parameters for the request.
|
|
6283
|
+
* @param bodyParams - Body parameters for the request.
|
|
6283
6284
|
*
|
|
6284
6285
|
* @returns A promise resolving to the response data object.
|
|
6285
6286
|
*/
|
|
6286
|
-
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6287
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6287
6288
|
/**
|
|
6288
6289
|
* Generic function to send a signed request.
|
|
6289
6290
|
* @param endpoint - The API endpoint to call.
|
|
6290
6291
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6291
|
-
* @param
|
|
6292
|
+
* @param queryParams - Query parameters for the request.
|
|
6293
|
+
* @param bodyParams - Body parameters for the request.
|
|
6292
6294
|
*
|
|
6293
6295
|
* @returns A promise resolving to the response data object.
|
|
6294
6296
|
*/
|
|
6295
|
-
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6297
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6296
6298
|
/**
|
|
6297
6299
|
* Query account funding flows.
|
|
6298
6300
|
*
|
|
@@ -9039,5 +9041,5 @@ declare class DerivativesTradingOptions {
|
|
|
9039
9041
|
constructor(config: ConfigurationDerivativesTradingOptions);
|
|
9040
9042
|
}
|
|
9041
9043
|
//#endregion
|
|
9042
|
-
export { BadRequestError, ConfigurationDerivativesTradingOptions, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DerivativesTradingOptions, index_d_exports as DerivativesTradingOptionsRestAPI, index_d_exports$1 as DerivativesTradingOptionsWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
9044
|
+
export { BadRequestError, type ConfigurationDerivativesTradingOptions, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DerivativesTradingOptions, index_d_exports as DerivativesTradingOptionsRestAPI, index_d_exports$1 as DerivativesTradingOptionsWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
9043
9045
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -2565,16 +2565,16 @@ interface PlaceMultipleOrdersOrdersParameterInner {
|
|
|
2565
2565
|
type?: PlaceMultipleOrdersOrdersParameterInnerTypeEnum;
|
|
2566
2566
|
/**
|
|
2567
2567
|
*
|
|
2568
|
-
* @type {
|
|
2568
|
+
* @type {string}
|
|
2569
2569
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2570
2570
|
*/
|
|
2571
|
-
quantity?:
|
|
2571
|
+
quantity?: string;
|
|
2572
2572
|
/**
|
|
2573
2573
|
*
|
|
2574
|
-
* @type {
|
|
2574
|
+
* @type {string}
|
|
2575
2575
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2576
2576
|
*/
|
|
2577
|
-
price?:
|
|
2577
|
+
price?: string;
|
|
2578
2578
|
/**
|
|
2579
2579
|
*
|
|
2580
2580
|
* @type {string}
|
|
@@ -2583,16 +2583,16 @@ interface PlaceMultipleOrdersOrdersParameterInner {
|
|
|
2583
2583
|
timeInForce?: PlaceMultipleOrdersOrdersParameterInnerTimeInForceEnum;
|
|
2584
2584
|
/**
|
|
2585
2585
|
*
|
|
2586
|
-
* @type {
|
|
2586
|
+
* @type {string}
|
|
2587
2587
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2588
2588
|
*/
|
|
2589
|
-
reduceOnly?:
|
|
2589
|
+
reduceOnly?: string;
|
|
2590
2590
|
/**
|
|
2591
2591
|
*
|
|
2592
|
-
* @type {
|
|
2592
|
+
* @type {string}
|
|
2593
2593
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2594
2594
|
*/
|
|
2595
|
-
postOnly?:
|
|
2595
|
+
postOnly?: string;
|
|
2596
2596
|
/**
|
|
2597
2597
|
*
|
|
2598
2598
|
* @type {string}
|
|
@@ -2607,10 +2607,10 @@ interface PlaceMultipleOrdersOrdersParameterInner {
|
|
|
2607
2607
|
clientOrderId?: string;
|
|
2608
2608
|
/**
|
|
2609
2609
|
*
|
|
2610
|
-
* @type {
|
|
2610
|
+
* @type {string}
|
|
2611
2611
|
* @memberof PlaceMultipleOrdersOrdersParameterInner
|
|
2612
2612
|
*/
|
|
2613
|
-
isMmp?:
|
|
2613
|
+
isMmp?: string;
|
|
2614
2614
|
}
|
|
2615
2615
|
declare const PlaceMultipleOrdersOrdersParameterInnerSideEnum: {
|
|
2616
2616
|
readonly BUY: "BUY";
|
|
@@ -6280,20 +6280,22 @@ declare class RestAPI {
|
|
|
6280
6280
|
* Generic function to send a request.
|
|
6281
6281
|
* @param endpoint - The API endpoint to call.
|
|
6282
6282
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6283
|
-
* @param
|
|
6283
|
+
* @param queryParams - Query parameters for the request.
|
|
6284
|
+
* @param bodyParams - Body parameters for the request.
|
|
6284
6285
|
*
|
|
6285
6286
|
* @returns A promise resolving to the response data object.
|
|
6286
6287
|
*/
|
|
6287
|
-
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6288
|
+
sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6288
6289
|
/**
|
|
6289
6290
|
* Generic function to send a signed request.
|
|
6290
6291
|
* @param endpoint - The API endpoint to call.
|
|
6291
6292
|
* @param method - HTTP method to use (GET, POST, DELETE, etc.).
|
|
6292
|
-
* @param
|
|
6293
|
+
* @param queryParams - Query parameters for the request.
|
|
6294
|
+
* @param bodyParams - Body parameters for the request.
|
|
6293
6295
|
*
|
|
6294
6296
|
* @returns A promise resolving to the response data object.
|
|
6295
6297
|
*/
|
|
6296
|
-
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH',
|
|
6298
|
+
sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
|
|
6297
6299
|
/**
|
|
6298
6300
|
* Query account funding flows.
|
|
6299
6301
|
*
|
|
@@ -9040,5 +9042,5 @@ declare class DerivativesTradingOptions {
|
|
|
9040
9042
|
constructor(config: ConfigurationDerivativesTradingOptions);
|
|
9041
9043
|
}
|
|
9042
9044
|
//#endregion
|
|
9043
|
-
export { BadRequestError, ConfigurationDerivativesTradingOptions, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DerivativesTradingOptions, index_d_exports as DerivativesTradingOptionsRestAPI, index_d_exports$1 as DerivativesTradingOptionsWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
9045
|
+
export { BadRequestError, type ConfigurationDerivativesTradingOptions, ConnectorClientError, DERIVATIVES_TRADING_OPTIONS_REST_API_PROD_URL, DERIVATIVES_TRADING_OPTIONS_WS_STREAMS_PROD_URL, DerivativesTradingOptions, index_d_exports as DerivativesTradingOptionsRestAPI, index_d_exports$1 as DerivativesTradingOptionsWebsocketStreams, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
|
|
9044
9046
|
//# sourceMappingURL=index.d.ts.map
|