UNPKG

@binance/spot

Version:

Official Binance Spot Connector - A lightweight library that provides a convenient interface to Binance's Spot REST API, WebSocket API and WebSocket Streams.

2,152 lines (2,150 loc) 933 kB
import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketAPI, ConfigurationWebsocketStreams, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, SPOT_REST_API_PROD_URL, SPOT_REST_API_TESTNET_URL, SPOT_WS_API_PROD_URL, SPOT_WS_API_TESTNET_URL, SPOT_WS_STREAMS_PROD_URL, SPOT_WS_STREAMS_TESTNET_URL, ServerError, TimeUnit, TimeUnit as TimeUnit$1, TooManyRequestsError, UnauthorizedError, WebsocketAPIBase, WebsocketApiResponse, WebsocketSendMsgOptions, WebsocketStream, WebsocketStreamsBase } from "@binance/common"; //#region rolldown:runtime //#endregion //#region src/rest-api/types/account-commission-response-discount.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountCommissionResponseDiscount */ interface AccountCommissionResponseDiscount { /** * * @type {boolean} * @memberof AccountCommissionResponseDiscount */ enabledForAccount?: boolean; /** * * @type {boolean} * @memberof AccountCommissionResponseDiscount */ enabledForSymbol?: boolean; /** * * @type {string} * @memberof AccountCommissionResponseDiscount */ discountAsset?: string; /** * * @type {string} * @memberof AccountCommissionResponseDiscount */ discount?: string; } //#endregion //#region src/rest-api/types/account-commission-response-special-commission.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountCommissionResponseSpecialCommission */ interface AccountCommissionResponseSpecialCommission { /** * * @type {string} * @memberof AccountCommissionResponseSpecialCommission */ maker?: string; /** * * @type {string} * @memberof AccountCommissionResponseSpecialCommission */ taker?: string; /** * * @type {string} * @memberof AccountCommissionResponseSpecialCommission */ buyer?: string; /** * * @type {string} * @memberof AccountCommissionResponseSpecialCommission */ seller?: string; } //#endregion //#region src/rest-api/types/account-commission-response-standard-commission.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountCommissionResponseStandardCommission */ interface AccountCommissionResponseStandardCommission { /** * * @type {string} * @memberof AccountCommissionResponseStandardCommission */ maker?: string; /** * * @type {string} * @memberof AccountCommissionResponseStandardCommission */ taker?: string; /** * * @type {string} * @memberof AccountCommissionResponseStandardCommission */ buyer?: string; /** * * @type {string} * @memberof AccountCommissionResponseStandardCommission */ seller?: string; } //#endregion //#region src/rest-api/types/account-commission-response-tax-commission.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountCommissionResponseTaxCommission */ interface AccountCommissionResponseTaxCommission { /** * * @type {string} * @memberof AccountCommissionResponseTaxCommission */ maker?: string; /** * * @type {string} * @memberof AccountCommissionResponseTaxCommission */ taker?: string; /** * * @type {string} * @memberof AccountCommissionResponseTaxCommission */ buyer?: string; /** * * @type {string} * @memberof AccountCommissionResponseTaxCommission */ seller?: string; } //#endregion //#region src/rest-api/types/account-commission-response.d.ts /** * * @export * @interface AccountCommissionResponse */ interface AccountCommissionResponse$1 { /** * * @type {string} * @memberof AccountCommissionResponse */ symbol?: string; /** * * @type {AccountCommissionResponseStandardCommission} * @memberof AccountCommissionResponse */ standardCommission?: AccountCommissionResponseStandardCommission; /** * * @type {AccountCommissionResponseSpecialCommission} * @memberof AccountCommissionResponse */ specialCommission?: AccountCommissionResponseSpecialCommission; /** * * @type {AccountCommissionResponseTaxCommission} * @memberof AccountCommissionResponse */ taxCommission?: AccountCommissionResponseTaxCommission; /** * * @type {AccountCommissionResponseDiscount} * @memberof AccountCommissionResponse */ discount?: AccountCommissionResponseDiscount; } //#endregion //#region src/rest-api/types/agg-trades-response-inner.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AggTradesResponseInner */ interface AggTradesResponseInner { /** * * @type {number | bigint} * @memberof AggTradesResponseInner */ a?: number | bigint; /** * * @type {string} * @memberof AggTradesResponseInner */ p?: string; /** * * @type {string} * @memberof AggTradesResponseInner */ q?: string; /** * * @type {number | bigint} * @memberof AggTradesResponseInner */ f?: number | bigint; /** * * @type {number | bigint} * @memberof AggTradesResponseInner */ l?: number | bigint; /** * * @type {number | bigint} * @memberof AggTradesResponseInner */ T?: number | bigint; /** * * @type {boolean} * @memberof AggTradesResponseInner */ m?: boolean; /** * * @type {boolean} * @memberof AggTradesResponseInner */ M?: boolean; } //#endregion //#region src/rest-api/types/agg-trades-response.d.ts /** * * @export * @interface AggTradesResponse */ interface AggTradesResponse extends Array<AggTradesResponseInner> {} //#endregion //#region src/rest-api/types/all-order-list-response-inner-orders-inner.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AllOrderListResponseInnerOrdersInner */ interface AllOrderListResponseInnerOrdersInner { /** * * @type {string} * @memberof AllOrderListResponseInnerOrdersInner */ symbol?: string; /** * * @type {number | bigint} * @memberof AllOrderListResponseInnerOrdersInner */ orderId?: number | bigint; /** * * @type {string} * @memberof AllOrderListResponseInnerOrdersInner */ clientOrderId?: string; } //#endregion //#region src/rest-api/types/all-order-list-response-inner.d.ts /** * * @export * @interface AllOrderListResponseInner */ interface AllOrderListResponseInner { /** * * @type {number | bigint} * @memberof AllOrderListResponseInner */ orderListId?: number | bigint; /** * * @type {string} * @memberof AllOrderListResponseInner */ contingencyType?: string; /** * * @type {string} * @memberof AllOrderListResponseInner */ listStatusType?: string; /** * * @type {string} * @memberof AllOrderListResponseInner */ listOrderStatus?: string; /** * * @type {string} * @memberof AllOrderListResponseInner */ listClientOrderId?: string; /** * * @type {number | bigint} * @memberof AllOrderListResponseInner */ transactionTime?: number | bigint; /** * * @type {string} * @memberof AllOrderListResponseInner */ symbol?: string; /** * * @type {Array<AllOrderListResponseInnerOrdersInner>} * @memberof AllOrderListResponseInner */ orders?: Array<AllOrderListResponseInnerOrdersInner>; } //#endregion //#region src/rest-api/types/all-order-list-response.d.ts /** * * @export * @interface AllOrderListResponse */ interface AllOrderListResponse extends Array<AllOrderListResponseInner> {} //#endregion //#region src/rest-api/types/all-orders-response-inner.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AllOrdersResponseInner */ interface AllOrdersResponseInner { /** * * @type {string} * @memberof AllOrdersResponseInner */ symbol?: string; /** * * @type {number | bigint} * @memberof AllOrdersResponseInner */ orderId?: number | bigint; /** * * @type {number | bigint} * @memberof AllOrdersResponseInner */ orderListId?: number | bigint; /** * * @type {string} * @memberof AllOrdersResponseInner */ clientOrderId?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ price?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ origQty?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ executedQty?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ cummulativeQuoteQty?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ status?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ timeInForce?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ type?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ side?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ stopPrice?: string; /** * * @type {string} * @memberof AllOrdersResponseInner */ icebergQty?: string; /** * * @type {number | bigint} * @memberof AllOrdersResponseInner */ time?: number | bigint; /** * * @type {number | bigint} * @memberof AllOrdersResponseInner */ updateTime?: number | bigint; /** * * @type {boolean} * @memberof AllOrdersResponseInner */ isWorking?: boolean; /** * * @type {string} * @memberof AllOrdersResponseInner */ origQuoteOrderQty?: string; /** * * @type {number | bigint} * @memberof AllOrdersResponseInner */ workingTime?: number | bigint; /** * * @type {string} * @memberof AllOrdersResponseInner */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/all-orders-response.d.ts /** * * @export * @interface AllOrdersResponse */ interface AllOrdersResponse$1 extends Array<AllOrdersResponseInner> {} //#endregion //#region src/rest-api/types/max-asset-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxAssetFilter */ interface MaxAssetFilter$2 { /** * * @type {string} * @memberof MaxAssetFilter */ filterType?: string; /** * * @type {number} * @memberof MaxAssetFilter */ qtyExponent?: number; /** * * @type {string} * @memberof MaxAssetFilter */ limit?: string; /** * * @type {string} * @memberof MaxAssetFilter */ asset?: string; } //#endregion //#region src/rest-api/types/asset-filters.d.ts /** * @type AssetFilters * @export */ type AssetFilters$2 = { filterType: 'MAX_ASSET'; } & MaxAssetFilter$2; //#endregion //#region src/rest-api/types/avg-price-response.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AvgPriceResponse */ interface AvgPriceResponse$2 { /** * * @type {number | bigint} * @memberof AvgPriceResponse */ mins?: number | bigint; /** * * @type {string} * @memberof AvgPriceResponse */ price?: string; /** * * @type {number | bigint} * @memberof AvgPriceResponse */ closeTime?: number | bigint; } //#endregion //#region src/rest-api/types/delete-open-orders-response-inner.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DeleteOpenOrdersResponseInner */ interface DeleteOpenOrdersResponseInner { /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ symbol?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ origClientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOpenOrdersResponseInner */ orderId?: number | bigint; /** * * @type {number | bigint} * @memberof DeleteOpenOrdersResponseInner */ orderListId?: number | bigint; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ clientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOpenOrdersResponseInner */ transactTime?: number | bigint; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ price?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ origQty?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ executedQty?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ origQuoteOrderQty?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ cummulativeQuoteQty?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ status?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ timeInForce?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ type?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ side?: string; /** * * @type {string} * @memberof DeleteOpenOrdersResponseInner */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/delete-open-orders-response.d.ts /** * * @export * @interface DeleteOpenOrdersResponse */ interface DeleteOpenOrdersResponse extends Array<DeleteOpenOrdersResponseInner> {} //#endregion //#region src/rest-api/types/delete-order-list-response-order-reports-inner.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DeleteOrderListResponseOrderReportsInner */ interface DeleteOrderListResponseOrderReportsInner { /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ symbol?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ origClientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOrderListResponseOrderReportsInner */ orderId?: number | bigint; /** * * @type {number | bigint} * @memberof DeleteOrderListResponseOrderReportsInner */ orderListId?: number | bigint; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ clientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOrderListResponseOrderReportsInner */ transactTime?: number | bigint; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ price?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ origQty?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ executedQty?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ origQuoteOrderQty?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ cummulativeQuoteQty?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ status?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ timeInForce?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ type?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ side?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ stopPrice?: string; /** * * @type {string} * @memberof DeleteOrderListResponseOrderReportsInner */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/delete-order-list-response-orders-inner.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DeleteOrderListResponseOrdersInner */ interface DeleteOrderListResponseOrdersInner { /** * * @type {string} * @memberof DeleteOrderListResponseOrdersInner */ symbol?: string; /** * * @type {number | bigint} * @memberof DeleteOrderListResponseOrdersInner */ orderId?: number | bigint; /** * * @type {string} * @memberof DeleteOrderListResponseOrdersInner */ clientOrderId?: string; } //#endregion //#region src/rest-api/types/delete-order-list-response.d.ts /** * * @export * @interface DeleteOrderListResponse */ interface DeleteOrderListResponse { /** * * @type {number | bigint} * @memberof DeleteOrderListResponse */ orderListId?: number | bigint; /** * * @type {string} * @memberof DeleteOrderListResponse */ contingencyType?: string; /** * * @type {string} * @memberof DeleteOrderListResponse */ listStatusType?: string; /** * * @type {string} * @memberof DeleteOrderListResponse */ listOrderStatus?: string; /** * * @type {string} * @memberof DeleteOrderListResponse */ listClientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOrderListResponse */ transactionTime?: number | bigint; /** * * @type {string} * @memberof DeleteOrderListResponse */ symbol?: string; /** * * @type {Array<DeleteOrderListResponseOrdersInner>} * @memberof DeleteOrderListResponse */ orders?: Array<DeleteOrderListResponseOrdersInner>; /** * * @type {Array<DeleteOrderListResponseOrderReportsInner>} * @memberof DeleteOrderListResponse */ orderReports?: Array<DeleteOrderListResponseOrderReportsInner>; } //#endregion //#region src/rest-api/types/delete-order-response.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DeleteOrderResponse */ interface DeleteOrderResponse { /** * * @type {string} * @memberof DeleteOrderResponse */ symbol?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ origClientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOrderResponse */ orderId?: number | bigint; /** * * @type {number | bigint} * @memberof DeleteOrderResponse */ orderListId?: number | bigint; /** * * @type {string} * @memberof DeleteOrderResponse */ clientOrderId?: string; /** * * @type {number | bigint} * @memberof DeleteOrderResponse */ transactTime?: number | bigint; /** * * @type {string} * @memberof DeleteOrderResponse */ price?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ origQty?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ executedQty?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ origQuoteOrderQty?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ cummulativeQuoteQty?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ status?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ timeInForce?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ type?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ side?: string; /** * * @type {string} * @memberof DeleteOrderResponse */ selfTradePreventionMode?: string; } //#endregion //#region src/rest-api/types/depth-response.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DepthResponse */ interface DepthResponse$1 { /** * * @type {number | bigint} * @memberof DepthResponse */ lastUpdateId?: number | bigint; /** * * @type {Array<Array<string>>} * @memberof DepthResponse */ bids?: Array<Array<string>>; /** * * @type {Array<Array<string>>} * @memberof DepthResponse */ asks?: Array<Array<string>>; } //#endregion //#region src/rest-api/types/exchange-max-num-algo-orders-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ExchangeMaxNumAlgoOrdersFilter */ interface ExchangeMaxNumAlgoOrdersFilter$2 { /** * * @type {string} * @memberof ExchangeMaxNumAlgoOrdersFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof ExchangeMaxNumAlgoOrdersFilter */ maxNumAlgoOrders?: number | bigint; } //#endregion //#region src/rest-api/types/exchange-max-num-iceberg-orders-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ExchangeMaxNumIcebergOrdersFilter */ interface ExchangeMaxNumIcebergOrdersFilter$2 { /** * * @type {string} * @memberof ExchangeMaxNumIcebergOrdersFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof ExchangeMaxNumIcebergOrdersFilter */ maxNumIcebergOrders?: number | bigint; } //#endregion //#region src/rest-api/types/exchange-max-num-order-lists-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ExchangeMaxNumOrderListsFilter */ interface ExchangeMaxNumOrderListsFilter$2 { /** * * @type {string} * @memberof ExchangeMaxNumOrderListsFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof ExchangeMaxNumOrderListsFilter */ maxNumOrderLists?: number | bigint; } //#endregion //#region src/rest-api/types/exchange-max-num-orders-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ExchangeMaxNumOrdersFilter */ interface ExchangeMaxNumOrdersFilter$2 { /** * * @type {string} * @memberof ExchangeMaxNumOrdersFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof ExchangeMaxNumOrdersFilter */ maxNumOrders?: number | bigint; } //#endregion //#region src/rest-api/types/exchange-filters.d.ts /** * @type ExchangeFilters * @export */ type ExchangeFilters$2 = ({ filterType: 'EXCHANGE_MAX_NUM_ALGO_ORDERS'; } & ExchangeMaxNumAlgoOrdersFilter$2) | ({ filterType: 'EXCHANGE_MAX_NUM_ICEBERG_ORDERS'; } & ExchangeMaxNumIcebergOrdersFilter$2) | ({ filterType: 'EXCHANGE_MAX_NUM_ORDERS'; } & ExchangeMaxNumOrdersFilter$2) | ({ filterType: 'EXCHANGE_MAX_NUM_ORDER_LISTS'; } & ExchangeMaxNumOrderListsFilter$2); //#endregion //#region src/rest-api/types/iceberg-parts-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface IcebergPartsFilter */ interface IcebergPartsFilter$2 { /** * * @type {string} * @memberof IcebergPartsFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof IcebergPartsFilter */ limit?: number | bigint; } //#endregion //#region src/rest-api/types/lot-size-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LotSizeFilter */ interface LotSizeFilter$2 { /** * * @type {string} * @memberof LotSizeFilter */ filterType?: string; /** * * @type {number} * @memberof LotSizeFilter */ qtyExponent?: number; /** * * @type {string} * @memberof LotSizeFilter */ minQty?: string; /** * * @type {string} * @memberof LotSizeFilter */ maxQty?: string; /** * * @type {string} * @memberof LotSizeFilter */ stepSize?: string; } //#endregion //#region src/rest-api/types/market-lot-size-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MarketLotSizeFilter */ interface MarketLotSizeFilter$2 { /** * * @type {string} * @memberof MarketLotSizeFilter */ filterType?: string; /** * * @type {number} * @memberof MarketLotSizeFilter */ qtyExponent?: number; /** * * @type {string} * @memberof MarketLotSizeFilter */ minQty?: string; /** * * @type {string} * @memberof MarketLotSizeFilter */ maxQty?: string; /** * * @type {string} * @memberof MarketLotSizeFilter */ stepSize?: string; } //#endregion //#region src/rest-api/types/max-num-algo-orders-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxNumAlgoOrdersFilter */ interface MaxNumAlgoOrdersFilter$2 { /** * * @type {string} * @memberof MaxNumAlgoOrdersFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof MaxNumAlgoOrdersFilter */ maxNumAlgoOrders?: number | bigint; } //#endregion //#region src/rest-api/types/max-num-iceberg-orders-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxNumIcebergOrdersFilter */ interface MaxNumIcebergOrdersFilter$2 { /** * * @type {string} * @memberof MaxNumIcebergOrdersFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof MaxNumIcebergOrdersFilter */ maxNumIcebergOrders?: number | bigint; } //#endregion //#region src/rest-api/types/max-num-order-amends-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxNumOrderAmendsFilter */ interface MaxNumOrderAmendsFilter$2 { /** * * @type {string} * @memberof MaxNumOrderAmendsFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof MaxNumOrderAmendsFilter */ maxNumOrderAmends?: number | bigint; } //#endregion //#region src/rest-api/types/max-num-order-lists-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxNumOrderListsFilter */ interface MaxNumOrderListsFilter$2 { /** * * @type {string} * @memberof MaxNumOrderListsFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof MaxNumOrderListsFilter */ maxNumOrderLists?: number | bigint; } //#endregion //#region src/rest-api/types/max-num-orders-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxNumOrdersFilter */ interface MaxNumOrdersFilter$2 { /** * * @type {string} * @memberof MaxNumOrdersFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof MaxNumOrdersFilter */ maxNumOrders?: number | bigint; } //#endregion //#region src/rest-api/types/max-position-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MaxPositionFilter */ interface MaxPositionFilter$2 { /** * * @type {string} * @memberof MaxPositionFilter */ filterType?: string; /** * * @type {number} * @memberof MaxPositionFilter */ qtyExponent?: number; /** * * @type {string} * @memberof MaxPositionFilter */ maxPosition?: string; } //#endregion //#region src/rest-api/types/min-notional-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface MinNotionalFilter */ interface MinNotionalFilter$2 { /** * * @type {string} * @memberof MinNotionalFilter */ filterType?: string; /** * * @type {number} * @memberof MinNotionalFilter */ priceExponent?: number; /** * * @type {string} * @memberof MinNotionalFilter */ minNotional?: string; /** * * @type {boolean} * @memberof MinNotionalFilter */ applyToMarket?: boolean; /** * * @type {number} * @memberof MinNotionalFilter */ avgPriceMins?: number; } //#endregion //#region src/rest-api/types/notional-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface NotionalFilter */ interface NotionalFilter$2 { /** * * @type {string} * @memberof NotionalFilter */ filterType?: string; /** * * @type {number} * @memberof NotionalFilter */ priceExponent?: number; /** * * @type {string} * @memberof NotionalFilter */ minNotional?: string; /** * * @type {boolean} * @memberof NotionalFilter */ applyMinToMarket?: boolean; /** * * @type {string} * @memberof NotionalFilter */ maxNotional?: string; /** * * @type {boolean} * @memberof NotionalFilter */ applyMaxToMarket?: boolean; /** * * @type {number} * @memberof NotionalFilter */ avgPriceMins?: number; } //#endregion //#region src/rest-api/types/percent-price-by-side-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PercentPriceBySideFilter */ interface PercentPriceBySideFilter$2 { /** * * @type {string} * @memberof PercentPriceBySideFilter */ filterType?: string; /** * * @type {number} * @memberof PercentPriceBySideFilter */ multiplierExponent?: number; /** * * @type {string} * @memberof PercentPriceBySideFilter */ bidMultiplierUp?: string; /** * * @type {string} * @memberof PercentPriceBySideFilter */ bidMultiplierDown?: string; /** * * @type {string} * @memberof PercentPriceBySideFilter */ askMultiplierUp?: string; /** * * @type {string} * @memberof PercentPriceBySideFilter */ askMultiplierDown?: string; /** * * @type {number} * @memberof PercentPriceBySideFilter */ avgPriceMins?: number; } //#endregion //#region src/rest-api/types/percent-price-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PercentPriceFilter */ interface PercentPriceFilter$2 { /** * * @type {string} * @memberof PercentPriceFilter */ filterType?: string; /** * * @type {number} * @memberof PercentPriceFilter */ multiplierExponent?: number; /** * * @type {string} * @memberof PercentPriceFilter */ multiplierUp?: string; /** * * @type {string} * @memberof PercentPriceFilter */ multiplierDown?: string; /** * * @type {number} * @memberof PercentPriceFilter */ avgPriceMins?: number; } //#endregion //#region src/rest-api/types/price-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PriceFilter */ interface PriceFilter$2 { /** * * @type {string} * @memberof PriceFilter */ filterType?: string; /** * * @type {number} * @memberof PriceFilter */ priceExponent?: number; /** * * @type {string} * @memberof PriceFilter */ minPrice?: string; /** * * @type {string} * @memberof PriceFilter */ maxPrice?: string; /** * * @type {string} * @memberof PriceFilter */ tickSize?: string; } //#endregion //#region src/rest-api/types/tplus-sell-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TPlusSellFilter */ interface TPlusSellFilter$2 { /** * * @type {string} * @memberof TPlusSellFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof TPlusSellFilter */ endTime?: number | bigint; } //#endregion //#region src/rest-api/types/trailing-delta-filter.d.ts /** * Binance Spot REST API * * OpenAPI Specifications for the Binance Spot REST API * * API documents: * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md) * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information) * * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TrailingDeltaFilter */ interface TrailingDeltaFilter$2 { /** * * @type {string} * @memberof TrailingDeltaFilter */ filterType?: string; /** * * @type {number | bigint} * @memberof TrailingDeltaFilter */ minTrailingAboveDelta?: number | bi