Skip to content

Commit 9ceefd9

Browse files
danielJacobPlaster
authored andcommitted
new v2 endpoint for getting public pulse profile
1 parent c4b8bef commit 9ceefd9

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

lib/rest2.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,16 @@ class RESTv2 {
381381
return this._makePublicRequest(`/book/${symbol}/${prec}`, cb)
382382
}
383383

384+
/**
385+
* @param {string} nickname - i.e. Bitfinex
386+
* @param {Function} [cb] - callback
387+
* @returns {Promise} p
388+
* @see https://docs.bitfinex.com/reference#rest-public-pulse-profile
389+
*/
390+
publicPulseProfile (nickname = 'Bitfinex', cb) {
391+
return this._makePublicRequest(`/pulse/profile/${nickname}`, cb, PublicPulseProfile)
392+
}
393+
384394
/**
385395
* @param {Function} [cb] - callback
386396
* @returns {Promise} p
@@ -686,7 +696,7 @@ class RESTv2 {
686696
/**
687697
* @param {Function} [cb] - callback
688698
* @returns {Promise} p
689-
* @see https://docs.bitfinex.com/v2/reference#rest-auth-wallets
699+
* @see https://docs.bitfinex.com/reference#rest-auth-info-user
690700
*/
691701
userInfo (cb) {
692702
return this._makeAuthRequest('/auth/r/info/user', {}, cb, UserInfo)

0 commit comments

Comments
 (0)