@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,184 lines (2,141 loc) • 980 kB
text/typescript
import { RestApiResponse, ConfigurationRestAPI, TimeUnit, WebsocketApiResponse, WebsocketAPIBase, WebsocketSendMsgOptions, WebsocketStream, ConfigurationWebsocketAPI, WebsocketStreamsBase, ConfigurationWebsocketStreams } from '@binance/common';
export { BadRequestError, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, 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, TooManyRequestsError, UnauthorizedError } from '@binance/common';
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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;
}
/**
* 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 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;
}
/**
* 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}
* @memberof AggTradesResponseInner
*/
a?: number;
/**
*
* @type {string}
* @memberof AggTradesResponseInner
*/
p?: string;
/**
*
* @type {string}
* @memberof AggTradesResponseInner
*/
q?: string;
/**
*
* @type {number}
* @memberof AggTradesResponseInner
*/
f?: number;
/**
*
* @type {number}
* @memberof AggTradesResponseInner
*/
l?: number;
/**
*
* @type {number}
* @memberof AggTradesResponseInner
*/
T?: number;
/**
*
* @type {boolean}
* @memberof AggTradesResponseInner
*/
m?: boolean;
/**
*
* @type {boolean}
* @memberof AggTradesResponseInner
*/
M?: boolean;
}
/**
* 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 AggTradesResponse
*/
interface AggTradesResponse extends Array<AggTradesResponseInner> {
}
/**
* 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}
* @memberof AllOrderListResponseInnerOrdersInner
*/
orderId?: number;
/**
*
* @type {string}
* @memberof AllOrderListResponseInnerOrdersInner
*/
clientOrderId?: string;
}
/**
* 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 AllOrderListResponseInner
*/
interface AllOrderListResponseInner {
/**
*
* @type {number}
* @memberof AllOrderListResponseInner
*/
orderListId?: number;
/**
*
* @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}
* @memberof AllOrderListResponseInner
*/
transactionTime?: number;
/**
*
* @type {string}
* @memberof AllOrderListResponseInner
*/
symbol?: string;
/**
*
* @type {Array<AllOrderListResponseInnerOrdersInner>}
* @memberof AllOrderListResponseInner
*/
orders?: Array<AllOrderListResponseInnerOrdersInner>;
}
/**
* 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 AllOrderListResponse
*/
interface AllOrderListResponse extends Array<AllOrderListResponseInner> {
}
/**
* 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}
* @memberof AllOrdersResponseInner
*/
orderId?: number;
/**
*
* @type {number}
* @memberof AllOrdersResponseInner
*/
orderListId?: number;
/**
*
* @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}
* @memberof AllOrdersResponseInner
*/
time?: number;
/**
*
* @type {number}
* @memberof AllOrdersResponseInner
*/
updateTime?: number;
/**
*
* @type {boolean}
* @memberof AllOrdersResponseInner
*/
isWorking?: boolean;
/**
*
* @type {string}
* @memberof AllOrdersResponseInner
*/
origQuoteOrderQty?: string;
/**
*
* @type {number}
* @memberof AllOrdersResponseInner
*/
workingTime?: number;
/**
*
* @type {string}
* @memberof AllOrdersResponseInner
*/
selfTradePreventionMode?: string;
}
/**
* 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 AllOrdersResponse
*/
interface AllOrdersResponse$1 extends Array<AllOrdersResponseInner> {
}
/**
* 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}
* @memberof AvgPriceResponse
*/
mins?: number;
/**
*
* @type {string}
* @memberof AvgPriceResponse
*/
price?: string;
/**
*
* @type {number}
* @memberof AvgPriceResponse
*/
closeTime?: number;
}
/**
* 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}
* @memberof DeleteOpenOrdersResponseInner
*/
orderId?: number;
/**
*
* @type {number}
* @memberof DeleteOpenOrdersResponseInner
*/
orderListId?: number;
/**
*
* @type {string}
* @memberof DeleteOpenOrdersResponseInner
*/
clientOrderId?: string;
/**
*
* @type {number}
* @memberof DeleteOpenOrdersResponseInner
*/
transactTime?: number;
/**
*
* @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;
}
/**
* 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 DeleteOpenOrdersResponse
*/
interface DeleteOpenOrdersResponse extends Array<DeleteOpenOrdersResponseInner> {
}
/**
* 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}
* @memberof DeleteOrderListResponseOrderReportsInner
*/
orderId?: number;
/**
*
* @type {number}
* @memberof DeleteOrderListResponseOrderReportsInner
*/
orderListId?: number;
/**
*
* @type {string}
* @memberof DeleteOrderListResponseOrderReportsInner
*/
clientOrderId?: string;
/**
*
* @type {number}
* @memberof DeleteOrderListResponseOrderReportsInner
*/
transactTime?: number;
/**
*
* @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;
}
/**
* 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}
* @memberof DeleteOrderListResponseOrdersInner
*/
orderId?: number;
/**
*
* @type {string}
* @memberof DeleteOrderListResponseOrdersInner
*/
clientOrderId?: string;
}
/**
* 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 DeleteOrderListResponse
*/
interface DeleteOrderListResponse {
/**
*
* @type {number}
* @memberof DeleteOrderListResponse
*/
orderListId?: number;
/**
*
* @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}
* @memberof DeleteOrderListResponse
*/
transactionTime?: number;
/**
*
* @type {string}
* @memberof DeleteOrderListResponse
*/
symbol?: string;
/**
*
* @type {Array<DeleteOrderListResponseOrdersInner>}
* @memberof DeleteOrderListResponse
*/
orders?: Array<DeleteOrderListResponseOrdersInner>;
/**
*
* @type {Array<DeleteOrderListResponseOrderReportsInner>}
* @memberof DeleteOrderListResponse
*/
orderReports?: Array<DeleteOrderListResponseOrderReportsInner>;
}
/**
* 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}
* @memberof DeleteOrderResponse
*/
orderId?: number;
/**
*
* @type {number}
* @memberof DeleteOrderResponse
*/
orderListId?: number;
/**
*
* @type {string}
* @memberof DeleteOrderResponse
*/
clientOrderId?: string;
/**
*
* @type {number}
* @memberof DeleteOrderResponse
*/
transactTime?: number;
/**
*
* @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;
}
/**
* 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}
* @memberof DepthResponse
*/
lastUpdateId?: number;
/**
*
* @type {Array<Array<string>>}
* @memberof DepthResponse
*/
bids?: Array<Array<string>>;
/**
*
* @type {Array<Array<string>>}
* @memberof DepthResponse
*/
asks?: Array<Array<string>>;
}
/**
* 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 ExchangeFilters
*/
interface ExchangeFilters$2 {
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
filterType?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
minPrice?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
maxPrice?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
tickSize?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
multiplierUp?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
multiplierDown?: string;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
avgPriceMins?: number;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
bidMultiplierUp?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
bidMultiplierDown?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
askMultiplierUp?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
askMultiplierDown?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
minQty?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
maxQty?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
stepSize?: string;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
minNotional?: string;
/**
*
* @type {boolean}
* @memberof ExchangeFilters
*/
applyToMarket?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeFilters
*/
applyMinToMarket?: boolean;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
maxNotional?: string;
/**
*
* @type {boolean}
* @memberof ExchangeFilters
*/
applyMaxToMarket?: boolean;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
limit?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxNumOrders?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxNumAlgoOrders?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxNumIcebergOrders?: number;
/**
*
* @type {string}
* @memberof ExchangeFilters
*/
maxPosition?: string;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
minTrailingAboveDelta?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxTrailingAboveDelta?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
minTrailingBelowDelta?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxTrailingBelowDelta?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxNumOrderAmends?: number;
/**
*
* @type {number}
* @memberof ExchangeFilters
*/
maxNumOrderLists?: number;
}
/**
* 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 ExchangeInfoResponseSymbolsInner
*/
interface ExchangeInfoResponseSymbolsInner {
/**
*
* @type {string}
* @memberof ExchangeInfoResponseSymbolsInner
*/
symbol?: string;
/**
*
* @type {string}
* @memberof ExchangeInfoResponseSymbolsInner
*/
status?: string;
/**
*
* @type {string}
* @memberof ExchangeInfoResponseSymbolsInner
*/
baseAsset?: string;
/**
*
* @type {number}
* @memberof ExchangeInfoResponseSymbolsInner
*/
baseAssetPrecision?: number;
/**
*
* @type {string}
* @memberof ExchangeInfoResponseSymbolsInner
*/
quoteAsset?: string;
/**
*
* @type {number}
* @memberof ExchangeInfoResponseSymbolsInner
*/
quotePrecision?: number;
/**
*
* @type {number}
* @memberof ExchangeInfoResponseSymbolsInner
*/
quoteAssetPrecision?: number;
/**
*
* @type {number}
* @memberof ExchangeInfoResponseSymbolsInner
*/
baseCommissionPrecision?: number;
/**
*
* @type {number}
* @memberof ExchangeInfoResponseSymbolsInner
*/
quoteCommissionPrecision?: number;
/**
*
* @type {Array<string>}
* @memberof ExchangeInfoResponseSymbolsInner
*/
orderTypes?: Array<string>;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
icebergAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
ocoAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
otoAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
quoteOrderQtyMarketAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
allowTrailingStop?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
cancelReplaceAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
amendAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
pegInstructionsAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
isSpotTradingAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof ExchangeInfoResponseSymbolsInner
*/
isMarginTradingAllowed?: boolean;
/**
*
* @type {Array<ExchangeFilters>}
* @memberof ExchangeInfoResponseSymbolsInner
*/
filters?: Array<ExchangeFilters$2>;
/**
*
* @type {Array<string>}
* @memberof ExchangeInfoResponseSymbolsInner
*/
permissions?: Array<string>;
/**
*
* @type {Array<Array<string>>}
* @memberof ExchangeInfoResponseSymbolsInner
*/
permissionSets?: Array<Array<string>>;
/**
*
* @type {string}
* @memberof ExchangeInfoResponseSymbolsInner
*/
defaultSelfTradePreventionMode?: string;
/**
*
* @type {Array<string>}
* @memberof ExchangeInfoResponseSymbolsInner
*/
allowedSelfTradePreventionModes?: Array<string>;
}
/**
* 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 RateLimits
*/
interface RateLimits$2 {
/**
*
* @type {string}
* @memberof RateLimits
*/
rateLimitType?: string;
/**
*
* @type {string}
* @memberof RateLimits
*/
interval?: string;
/**
*
* @type {number}
* @memberof RateLimits
*/
intervalNum?: number;
/**
*
* @type {number}
* @memberof RateLimits
*/
limit?: number;
/**
*
* @type {number}
* @memberof RateLimits
*/
count?: number;
}
/**
* 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 ExchangeInfoResponse
*/
interface ExchangeInfoResponse$1 {
/**
*
* @type {string}
* @memberof ExchangeInfoResponse
*/
timezone?: string;
/**
*
* @type {number}
* @memberof ExchangeInfoResponse
*/
serverTime?: number;
/**
*
* @type {Array<RateLimits>}
* @memberof ExchangeInfoResponse
*/
rateLimits?: Array<RateLimits$2>;
/**
*
* @type {Array<ExchangeFilters>}
* @memberof ExchangeInfoResponse
*/
exchangeFilters?: Array<ExchangeFilters$2>;
/**
*
* @type {Array<ExchangeInfoResponseSymbolsInner>}
* @memberof ExchangeInfoResponse
*/
symbols?: Array<ExchangeInfoResponseSymbolsInner>;
}
/**
* 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 GetAccountResponseBalancesInner
*/
interface GetAccountResponseBalancesInner {
/**
*
* @type {string}
* @memberof GetAccountResponseBalancesInner
*/
asset?: string;
/**
*
* @type {string}
* @memberof GetAccountResponseBalancesInner
*/
free?: string;
/**
*
* @type {string}
* @memberof GetAccountResponseBalancesInner
*/
locked?: string;
}
/**
* 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 GetAccountResponseCommissionRates
*/
interface GetAccountResponseCommissionRates {
/**
*
* @type {string}
* @memberof GetAccountResponseCommissionRates
*/
maker?: string;
/**
*
* @type {string}
* @memberof GetAccountResponseCommissionRates
*/
taker?: string;
/**
*
* @type {string}
* @memberof GetAccountResponseCommissionRates
*/
buyer?: string;
/**
*
* @type {string}
* @memberof GetAccountResponseCommissionRates
*/
seller?: string;
}
/**
* 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 GetAccountResponse
*/
interface GetAccountResponse {
/**
*
* @type {number}
* @memberof GetAccountResponse
*/
makerCommission?: number;
/**
*
* @type {number}
* @memberof GetAccountResponse
*/
takerCommission?: number;
/**
*
* @type {number}
* @memberof GetAccountResponse
*/
buyerCommission?: number;
/**
*
* @type {number}
* @memberof GetAccountResponse
*/
sellerCommission?: number;
/**
*
* @type {GetAccountResponseCommissionRates}
* @memberof GetAccountResponse
*/
commissionRates?: GetAccountResponseCommissionRates;
/**
*
* @type {boolean}
* @memberof GetAccountResponse
*/
canTrade?: boolean;
/**
*
* @type {boolean}
* @memberof GetAccountResponse
*/
canWithdraw?: boolean;
/**
*
* @type {boolean}
* @memberof GetAccountResponse
*/
canDeposit?: boolean;
/**
*
* @type {boolean}
* @memberof GetAccountResponse
*/
brokered?: boolean;
/**
*
* @type {boolean}
* @memberof GetAccountResponse
*/
requireSelfTradePrevention?: boolean;
/**
*
* @type {boolean}
* @memberof GetAccountResponse
*/
preventSor?: boolean;
/**
*
* @type {number}
* @memberof GetAccountResponse
*/
updateTime?: number;
/**
*
* @type {string}
* @memberof GetAccountResponse
*/
accountType?: string;
/**
*
* @type {Array<GetAccountResponseBalancesInner>}
* @memberof GetAccountResponse
*/
balances?: Array<GetAccountResponseBalancesInner>;
/**
*
* @type {Array<string>}
* @memberof GetAccountResponse
*/
permissions?: Array<string>;
/**
*
* @type {number}
* @memberof GetAccountResponse
*/
uid?: number;
}
/**
* 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 GetOpenOrdersResponse
*/
interface GetOpenOrdersResponse extends Array<AllOrdersResponseInner> {
}
/**
* 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 GetOrderListResponseOrdersInner
*/
interface GetOrderListResponseOrdersInner {
/**
*
* @type {string}
* @memberof GetOrderListResponseOrdersInner
*/
symbol?: string;
/**
*
* @type {number}
* @memberof GetOrderListResponseOrdersInner
*/
orderId?: number;
/**
*
* @type {string}
* @memberof GetOrderListResponseOrdersInner
*/
clientOrderId?: string;
}
/**
* 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 GetOrderListResponse
*/
interface GetOrderListResponse {
/**
*
* @type {number}
* @memberof GetOrderListResponse
*/
orderListId?: number;
/**
*
* @type {string}
* @memberof GetOrderListResponse
*/
contingencyType?: string;
/**
*
* @type {string}
* @memberof GetOrderListResponse
*/
listStatusType?: string;
/**
*
* @type {string}
* @memberof GetOrderListResponse
*/
listOrderStatus?: string;
/**
*
* @type {string}
* @memberof GetOrderListResponse
*/
listClientOrderId?: string;
/**
*
* @type {number}
* @memberof GetOrderListResponse
*/
transactionTime?: number;
/**
*
* @type {string}
* @memberof GetOrderListResponse
*/
symbol?: string;
/**
*
* @type {Array<GetOrderListResponseOrdersInner>}
* @memberof GetOrderListResponse
*/
orders?: Array<GetOrderListResponseOrdersInner>;
}
/**
* 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 GetOrderResponse
*/
interface GetOrderResponse {
/**
*
* @type {string}
* @memberof GetOrderResponse
*/
symbol?: string;
/**
*
* @type {number}
* @memberof GetOrderResponse
*/
orderId?: number;
/**
*
* @type {number}
* @memberof GetOrderResponse
*/
orderListId?: number;
/**
*
* @type {string}
* @memberof GetOrderResponse
*/
clientOrderId?: string;
/**
*
* @type {string}
* @memberof GetOrderResponse
*/
price?: string;
/**
*
* @type {string}
* @memberof GetOrderResponse
*/
origQty?: string;
/**
*
* @type {string}
* @memberof GetOrderResp