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.10.6 to 0.10.7

4

dist/http-client.js

@@ -325,4 +325,4 @@ "use strict";

},
prices: function prices() {
return pubCall('/api/v3/ticker/price').then(function (r) {
prices: function prices(payload) {
return pubCall('/api/v3/ticker/price', payload).then(function (r) {
return r.reduce(function (out, cur) {

@@ -329,0 +329,0 @@ return out[cur.symbol] = cur.price, out;

@@ -176,3 +176,5 @@ // tslint:disable:interface-name

ping(): Promise<boolean>
prices(): Promise<{ [index: string]: string }>
prices(options?: {
symbol?: string
}): Promise<{ [index: string]: string }>
avgPrice(options?: { symbol: string }): Promise<AvgPriceResult | AvgPriceResult[]>

@@ -179,0 +181,0 @@ time(): Promise<number>

{
"name": "binance-api-node",
"version": "0.10.6",
"version": "0.10.7",
"description": "A node API wrapper for Binance",

@@ -54,4 +54,5 @@ "main": "dist",

},
"author": "Balthazar Gronon <bgronon@gmail.com>",
"author": "Balthazar Gronon <git@balthazar.dev>",
"homepage": "https://github.com/Ashlar/binance-api-node",
"license": "MIT"
}

@@ -408,3 +408,3 @@ # 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/github/Ashlar/binance-api-node/master?style=flat-square)](https://coveralls.io/github/Ashlar/binance-api-node?branch=master) [![bnb](https://img.shields.io/badge/binance-winner-yellow.svg?style=flat-square)](https://github.com/binance-exchange/binance-api-node)

Latest price for all symbols.
Latest price for a symbol, not providing the symbol will return prices for all symbols.

@@ -415,2 +415,6 @@ ```js

| Param | Type | Required |
| ------ | ------ | -------- |
| symbol | String | false |
<details>

@@ -417,0 +421,0 @@ <summary>Output</summary>

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