bfx-api-node-rest
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -480,3 +480,3 @@ <a name="RESTv2"></a> | ||
| --- | --- | --- | | ||
| symbol | <code>string</code> | <code>"tBTCUSD"</code> | | ||
| symbol | <code>string</code> | optional, omit/leave empty for all | | ||
| start | <code>number</code> | <code></code> | | ||
@@ -483,0 +483,0 @@ | end | <code>number</code> | <code></code> | |
@@ -788,3 +788,3 @@ 'use strict' | ||
/** | ||
* @param {string} symbol | ||
* @param {string} symbol - optional, omit/leave empty for all | ||
* @param {number} start | ||
@@ -797,4 +797,8 @@ * @param {number} end | ||
*/ | ||
fundingTrades (symbol = 'tBTCUSD', start = null, end = null, limit = null, cb) { | ||
return this._makeAuthRequest(`/auth/r/funding/trades/${symbol}/hist`, { | ||
fundingTrades (symbol = 'fBTC', start = 0, end = Date.now(), limit = null, cb) { | ||
const url = !_isEmpty(symbol) | ||
? `/auth/r/funding/trades/${symbol}/hist` | ||
: '/auth/r/funding/trades/hist' | ||
return this._makeAuthRequest(url, { | ||
start, end, limit | ||
@@ -801,0 +805,0 @@ }, cb, FundingTrade) |
{ | ||
"name": "bfx-api-node-rest", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Official Bitfinex REST v1 & v2 API interfaces", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
111829
2022