@binance/margin-trading 10.0.2 → 10.1.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 CHANGED
@@ -8464,20 +8464,22 @@ declare class RestAPI {
8464
8464
  * Generic function to send a request.
8465
8465
  * @param endpoint - The API endpoint to call.
8466
8466
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
8467
- * @param params - Query parameters for the request.
8467
+ * @param queryParams - Query parameters for the request.
8468
+ * @param bodyParams - Body parameters for the request.
8468
8469
  *
8469
8470
  * @returns A promise resolving to the response data object.
8470
8471
  */
8471
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8472
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8472
8473
  /**
8473
8474
  * Generic function to send a signed request.
8474
8475
  * @param endpoint - The API endpoint to call.
8475
8476
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
8476
- * @param params - Query parameters for the request.
8477
+ * @param queryParams - Query parameters for the request.
8478
+ * @param bodyParams - Body parameters for the request.
8477
8479
  *
8478
8480
  * @returns A promise resolving to the response data object.
8479
8481
  */
8480
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8482
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8481
8483
  /**
8482
8484
  * Adjust cross margin max leverage
8483
8485
  *
package/dist/index.d.ts CHANGED
@@ -8466,20 +8466,22 @@ declare class RestAPI {
8466
8466
  * Generic function to send a request.
8467
8467
  * @param endpoint - The API endpoint to call.
8468
8468
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
8469
- * @param params - Query parameters for the request.
8469
+ * @param queryParams - Query parameters for the request.
8470
+ * @param bodyParams - Body parameters for the request.
8470
8471
  *
8471
8472
  * @returns A promise resolving to the response data object.
8472
8473
  */
8473
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8474
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8474
8475
  /**
8475
8476
  * Generic function to send a signed request.
8476
8477
  * @param endpoint - The API endpoint to call.
8477
8478
  * @param method - HTTP method to use (GET, POST, DELETE, etc.).
8478
- * @param params - Query parameters for the request.
8479
+ * @param queryParams - Query parameters for the request.
8480
+ * @param bodyParams - Body parameters for the request.
8479
8481
  *
8480
8482
  * @returns A promise resolving to the response data object.
8481
8483
  */
8482
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8484
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
8483
8485
  /**
8484
8486
  * Adjust cross margin max leverage
8485
8487
  *