Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.11.5 to 0.11.6

259

index.d.ts
// tslint:disable:interface-name
declare module 'binance-api-node' {
export default function(options?: {
export default function (options?: {
apiKey?: string

@@ -94,5 +94,5 @@ apiSecret?: string

address: string
addressTag: string
asset: string
success: boolean
tag: string
coin: string
url: string
}

@@ -102,4 +102,2 @@

id: string
msg: string
success: boolean
}

@@ -116,8 +114,11 @@

amount: number
asset: string
coin: string
network: string
address: string
txId: string
status: DepositStatus
addressTag?: string
transferType?: number
confirmTimes?: string
}[]
success: boolean
}

@@ -141,8 +142,10 @@

address: string
asset: string
coin: string
txId: string
applyTime: number
status: WithdrawStatus
network: string
transferType?: number
withdrawOrderId?: string
}[]
success: boolean
}

@@ -165,10 +168,10 @@

spotBNBBurn: boolean;
interestBNBBurn: boolean;
interestBNBBurn: boolean;
}
export interface SetBNBBurnOptions {
spotBNBBurn: boolean;
interestBNBBurn: boolean;
interestBNBBurn: boolean;
recvWindow?: number;
}
}

@@ -197,4 +200,4 @@ export interface AccountSnapshot {

export type GetOrderOcoOptions =
| { orderListId: number }
| { listClientOrderId: string }
| { orderListId: number }
| { listClientOrderId: string }

@@ -219,3 +222,3 @@ export interface GetInfo {

MAIN_CMFUTURE = 'MAIN_CMFUTURE',
MAIN_MARGIN = 'MAIN_MARGIN',
MAIN_MARGIN = 'MAIN_MARGIN',
MAIN_MINING = 'MAIN_MINING',

@@ -233,3 +236,3 @@ C2C_MAIN = 'C2C_MAIN',

MINING_UMFUTURE = 'MINING_UMFUTURE',
MINING_C2C = 'MINING_C2C'
MINING_C2C = 'MINING_C2C'
}

@@ -316,12 +319,12 @@

openOrders(options: { symbol?: string; recvWindow?: number; useServerTime?: boolean }): Promise<QueryOrderResult[]>
allOrders(options: {
symbol?: string;
orderId?: number;
startTime?: number;
endTime?: number;
limit?: number;
recvWindow?: number;
timestamp?: number;
useServerTime?: boolean
}): Promise<QueryOrderResult[]>
allOrders(options: {
symbol?: string;
orderId?: number;
startTime?: number;
endTime?: number;
limit?: number;
recvWindow?: number;
timestamp?: number;
useServerTime?: boolean
}): Promise<QueryOrderResult[]>
allOrdersOCO(options: {

@@ -342,8 +345,10 @@ timestamp: number

}): Promise<TradeResult[]>
depositAddress(options: { asset: string }): Promise<DepositAddress>
depositAddress(options: { coin: string }): Promise<DepositAddress>
withdraw(options: {
asset: string
coin: string
network?: string
address: string
amount: number
name?: string
transactionFeeFlag?: boolean
}): Promise<WithrawResponse>

@@ -360,12 +365,16 @@ assetDetail(): Promise<AssetDetail>

withdrawHistory(options: {
asset: string
coin: string
status?: number
startTime?: number
endTime?: number
offset?: number
limit?: number
}): Promise<WithdrawHistoryResponse>
depositHistory(options: {
asset: string
coin: string
status?: number
startTime?: number
endTime?: number
offset?: number
limit?: number
}): Promise<DepositHistoryResponse>

@@ -389,2 +398,9 @@ universalTransfer(options: UniversalTransfer): Promise<{ tranId: number }>

futuresTrades(options: { symbol: string; limit?: number }): Promise<TradeResult[]>
futuresUserTrades(options: {
symbol: string
startTime?: number
endTime?: number
fromId?: number
limit?: number
}): Promise<FuturesUserTradeResult[]>
futuresDailyStats(options?: { symbol: string }): Promise<DailyStatsResult | DailyStatsResult[]>

@@ -406,3 +422,3 @@ futuresPrices(): Promise<{ [index: string]: string }>

}): Promise<FundingRateResult[]>
futuresOrder(options: NewOrder): Promise<Order>
futuresOrder(options: NewFuturesOrder): Promise<FuturesOrder>
futuresCancelOrder(options: {

@@ -413,2 +429,9 @@ symbol: string

}): Promise<CancelOrderResult>
futuresGetOrder(options: {
symbol: string
orderId?: number
origClientOrderId?: string
recvWindow?: number,
timestamp?: number,
}): Promise<QueryFuturesOrderResult>
futuresOpenOrders(options: {

@@ -419,3 +442,3 @@ symbol?: string

futuresPositionRisk(options?: { recvWindow: number }): Promise<PositionRiskResult[]>
futuresLeverageBracket(options?: {
futuresLeverageBracket(options?: {
symbol?: string,

@@ -480,3 +503,3 @@ recvWindow: number

}): Promise<{ tranId: number }>
marginAccountInfo(options?: {recvWindow?: number}): Promise<IsolatedCrossAccount>
marginAccountInfo(options?: { recvWindow?: number }): Promise<IsolatedCrossAccount>
marginIsolatedAccount(options?: {

@@ -631,4 +654,4 @@ symbols?: string

export enum RateLimitInterval {
SECOND = 'SECOND',
MINUTE = 'MINUTE',
SECOND = 'SECOND',
MINUTE = 'MINUTE',
DAY = 'DAY'

@@ -646,3 +669,3 @@ }

EXCHANGE_MAX_NUM_ORDERS = 'EXCHANGE_MAX_NUM_ORDERS',
EXCHANGE_MAX_ALGO_ORDERS = 'EXCHANGE_MAX_ALGO_ORDERS'
EXCHANGE_MAX_ALGO_ORDERS = 'EXCHANGE_MAX_ALGO_ORDERS'
}

@@ -765,2 +788,22 @@

export interface NewFuturesOrder {
symbol: string
side: OrderSide
positionSide?: PositionSide
type: OrderType
quantity?: string
reduceOnly?: 'true' | 'false'
price?: number
timeInForce?: TimeInForce
newClientOrderId?: string
stopPrice?: number
closePosition?: 'true' | 'false'
activationPrice?: number
callbackRate?: number
workingType?: WorkingType
newOrderRespType?: NewOrderRespType
recvWindow?: number
timestamp?: number
}
export interface NewOcoOrder {

@@ -787,3 +830,3 @@ symbol: string

MARGIN_BUY = 'MARGIN_BUY',
AUTO_REPAY = 'AUTO_REPAY'
AUTO_REPAY = 'AUTO_REPAY'
}

@@ -822,7 +865,32 @@

export interface FuturesOrder {
clientOrderId: string,
cumQty: string,
cumQuote: string,
executedQty: string,
orderId: number,
avgPrice: string,
origQty: string,
price: string,
reduceOnly: boolean,
side: OrderSide,
positionSide: PositionSide,
status: OrderStatus,
stopPrice: string,
closePosition: boolean,
symbol: string,
timeInForce: TimeInForce,
type: OrderType,
origType: OrderType,
activatePrice: string,
priceRate: string,
updateTime: number,
workingType: WorkingType,
}
export enum ListOrderStatus {
EXECUTING ='EXECUTING',
EXECUTING = 'EXECUTING',
ALL_DONE = 'ALL_DONE',
REJECT = 'REJECT'
}
}

@@ -837,3 +905,3 @@ export enum ListStatusType {

CONTINGENCY_TYPE = 'OCO',
}
}

@@ -852,3 +920,2 @@ export interface OcoOrder {

export enum OrderSide {

@@ -870,11 +937,11 @@ BUY = 'BUY',

export enum OrderType {
LIMIT = 'LIMIT',
LIMIT_MAKER = 'LIMIT_MAKER',
MARKET = 'MARKET',
STOP = 'STOP',
STOP_MARKET ='STOP_MARKET',
STOP_LOSS_LIMIT = 'STOP_LOSS_LIMIT',
TAKE_PROFIT_LIMIT = 'TAKE_PROFIT_LIMIT',
TAKE_PROFIT_MARKET = 'TAKE_PROFIT_MARKET',
TRAILING_STOP_MARKET = 'TRAILING_STOP_MARKET'
LIMIT = 'LIMIT',
LIMIT_MAKER = 'LIMIT_MAKER',
MARKET = 'MARKET',
STOP = 'STOP',
STOP_MARKET = 'STOP_MARKET',
STOP_LOSS_LIMIT = 'STOP_LOSS_LIMIT',
TAKE_PROFIT_LIMIT = 'TAKE_PROFIT_LIMIT',
TAKE_PROFIT_MARKET = 'TAKE_PROFIT_MARKET',
TRAILING_STOP_MARKET = 'TRAILING_STOP_MARKET'
}

@@ -892,3 +959,3 @@

FOK = 'FOK'
}
}

@@ -911,6 +978,6 @@ export enum OrderRejectReason {

NEW = 'NEW',
CANCELED ='CANCELED',
REPLACED = 'REPLACED',
CANCELED = 'CANCELED',
REPLACED = 'REPLACED',
REJECTED = 'REJECTED',
TRADE = 'TRADE',
TRADE = 'TRADE',
EXPIRED = 'EXPIRED'

@@ -1123,2 +1190,19 @@ }

export interface FuturesUserTradeResult {
buyer: boolean
commission: string
commissionAsset: string
id: number
maker: boolean,
orderId: number
price: string
qty: string
quoteQty: string
realizedPnl: string
side: OrderSide
positionSide: PositionSide
symbol: string
time: number
}
export interface MyTrade {

@@ -1161,2 +1245,26 @@ id: number

export interface QueryFuturesOrderResult {
avgPrice: string
clientOrderId: string
cumQuote: string
executedQty: string
orderId: string
origQty: string
origType: OrderType
price: string
side: OrderSide
positionSide: PositionSide
status: OrderStatus
stopPrice: string
closePosition: boolean
symbol: string
time: number
timeInForce: TimeInForce
type: OrderType
activatePrice: string
priceRate: string
updateTime: number
workingType: WorkingType
}
export interface QueryOrderOcoResult {

@@ -1459,3 +1567,3 @@ orderListId: number

SPOT = 'SPOT',
ISOLATED_MARGIN ='ISOLATED_MARGIN'
ISOLATED_MARGIN = 'ISOLATED_MARGIN'
}

@@ -1510,2 +1618,39 @@

}
export interface GetFuturesOrder {
avgPrice: string
clientOrderId: string
cumQuote: string
executedQty: string
orderId: number
origQty: string
origType: OrderType
price: string
reduceOnly: boolean
side: OrderSide
positionSide: PositionSide
status: OrderStatus
stopPrice: string
closePosition: boolean
symbol: string
time: number
timeInForce: TimeInForce
type: OrderType
activatePrice: string
priceRate: string
updateTime: number
workingType: WorkingType
priceProtect: boolean
}
export enum PositionSide {
BOTH = 'BOTH',
SHORT = 'SHORT',
LONG = 'LONG'
}
export enum WorkingType {
MARK_PRICE = 'MARK_PRICE',
CONTRACT_PRICE = 'CONTRACT_PRICE'
}
}
{
"name": "binance-api-node",
"version": "0.11.5",
"version": "0.11.6",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc