binance-api-node
Advanced tools
Comparing version 0.10.6 to 0.10.7
@@ -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> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
110207
1886
1
1925