Skip to content

Commit d1ab9c8

Browse files
Daniel1984JacobPlaster
authored andcommitted
rest2.js new publicPulseHistory function
1 parent 3fd52ea commit d1ab9c8

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

lib/rest2.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,17 @@ class RESTv2 {
393393
return this._makePublicRequest(`/pulse/profile/${nickname}`, cb, PublicPulseProfile)
394394
}
395395

396+
/**
397+
* @param {string} limit - Number of records (Max: 100)
398+
* @param {string} end - Millisecond start time
399+
* @param {Function} [cb] - callback
400+
* @returns {Promise} p
401+
* @see https://docs.bitfinex.com/reference#rest-public-pulse-hist
402+
*/
403+
publicPulseHistory (limit, end, cb) {
404+
return this._makePublicRequest(`/pulse/hist?limit=${limit}&end=${end}`, cb, PulseMessage)
405+
}
406+
396407
/**
397408
* @param {Function} [cb] - callback
398409
* @returns {Promise} p
@@ -978,10 +989,10 @@ class RESTv2 {
978989
}
979990

980991
/**
981-
* @param {number} [start] - query start
982-
* @param {number} [end] - query end
983-
* @param {number} [limit] - query limit
984-
* @param {Function} [cb] - callback
992+
* @param {number} [start] - query start
993+
* @param {number} [end] - query end
994+
* @param {number} [limit] - query limit
995+
* @param {Function} [cb] - callback
985996
* @returns {Promise} p
986997
* @see https://docs.bitfinex.com/v2/reference#rest-auth-audit-hist
987998
*/

0 commit comments

Comments
 (0)