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.9.17 to 0.9.18

63

index.d.ts

@@ -178,3 +178,3 @@ // tslint:disable:interface-name

candles(options: CandlesOptions): Promise<CandleChartResult[]>;
tradesHistory(options: { symbol: string, limit?: number, fromId?: number }): Promise<Trade[]>;
tradesHistory(options: { symbol: string, limit?: number, fromId?: number }): Promise<TradeResult[]>;
depositAddress(options: { asset: string }): Promise<DepositAddress>;

@@ -185,2 +185,20 @@ withdraw(options: { asset: string, address: string, amount: number; name?: string }): Promise<WithrawResponse>;

depositHistory(options: { asset: string, status?: number, startTime?: number, endTime?: number }): Promise<DepositHistoryResponse>;
futuresPing(): Promise<boolean>;
futuresTime(): Promise<number>;
futuresExchangeInfo(): Promise<ExchangeInfo>;
futuresBook(options: { symbol: string, limit?: number }): Promise<OrderBook>;
futuresCandles(options: CandlesOptions): Promise<CandleChartResult[]>;
futuresAggTrades(options?: { symbol: string, fromId?: string, startTime?: number, endTime?: number, limit?: number }): Promise<AggregatedTrade[]>;
futuresTrades(options: { symbol: string, limit?: number }): Promise<TradeResult[]>;
futuresDailyStats(options?: { symbol: string }): Promise<DailyStatsResult | DailyStatsResult[]>;
futuresPrices(): Promise<{ [index: string]: string }>;
futuresAllBookTickers(): Promise<{ [key: string]: Ticker }>;
futuresMarkPrice(): Promise<MarkPriceResult>;
futuresAllForceOrders(options?: { symbol?: string, startTime?: number, endTime?: number, limit?: number }): Promise<AllForceOrdersResult[]>;
futuresFundingRate(options: { symbol: string, startTime?: number, endTime?: number, limit?: number }): Promise<FundingRateResult[]>;
futuresOrder(options: NewOrder): Promise<Order>;
futuresCancelOrder(options: { symbol: string; orderId: number, useServerTime?: boolean }): Promise<CancelOrderResult>;
futuresOpenOrders(options: { symbol?: string, useServerTime?: boolean }): Promise<QueryOrderResult>;
futuresPositionRisk(options?: { recvWindow: number }): Promise<PositionRiskResult[]>;
}

@@ -691,2 +709,45 @@

}
export interface MarkPriceResult {
symbol: string;
markPrice: string;
lastFundingRate: string;
nextFundingTime: number;
time: number;
}
export interface AllForceOrdersResult {
symbol: string;
price: string;
origQty: string;
executedQty: string;
averagePrice: string;
status: string;
timeInForce: string;
type: string;
side: string;
time: number;
}
export interface FundingRateResult {
symbol: string;
fundingRate: string;
fundingTime: number;
time: number;
}
export interface PositionRiskResult {
entryPrice: string;
marginType: string;
isAutoAddMargin: string;
isolatedMargin: string;
leverage: string;
liquidationPrice: string;
markPrice: string;
maxNotionalValue: string;
positionAmt: string;
symbol: string;
unRealizedProfit: string;
positionSide: string;
}
}

2

package.json
{
"name": "binance-api-node",
"version": "0.9.17",
"version": "0.9.18",
"description": "A node API wrapper for Binance",

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

@@ -709,26 +709,2 @@ # binance-api-node [![build](https://img.shields.io/travis/Ashlar/binance-api-node/master.svg?style=flat-square)](https://travis-ci.org/Ashlar/binance-api-node) [![cover](https://img.shields.io/coveralls/Ashlar/binance-api-node.svg?style=flat-square)](https://coveralls.io/github/Ashlar/binance-api-node) [![bnb](https://img.shields.io/badge/binance-winner-yellow.svg?style=flat-square)](https://github.com/binance-exchange/binance-api-node)

#### futures avgPrice
Current average price for a symbol.
```js
console.log(await client.futuresAvgPrice({ symbol: 'ETHBTC' }))
```
| Param | Type | Required |
| ------ | ------ | -------- |
| symbol | String | true |
<details>
<summary>Output</summary>
```js
{
"mins": 5,
"price": "9.35751834"
}
```
</details>
#### futures prices

@@ -735,0 +711,0 @@

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