Skip to content

Commit 3fd52ea

Browse files
Daniel1984JacobPlaster
authored andcommitted
new deletePulse function, version bump, docs and changelog update
1 parent a92b83d commit 3fd52ea

10 files changed

Lines changed: 293 additions & 13 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 3.0.14
2+
- RESTv2: add private deletePulse function
3+
14
# 3.0.13
25
- RESTv2: add inactiveSymbols endpoint
36

docs/RESTv1.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/RESTv2.html

Lines changed: 255 additions & 2 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/rest1.js.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/rest2.js.html

Lines changed: 13 additions & 2 deletions
Large diffs are not rendered by default.

lib/rest2.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,17 @@ class RESTv2 {
14411441
addPulse (params, cb) {
14421442
return this._makeAuthRequest('/auth/w/pulse/add', params, cb, PulseMessage)
14431443
}
1444+
1445+
/**
1446+
* @param {object} params - parameters
1447+
* @param {string} params.pid - pulse id
1448+
* @param {Function} [cb] - callback
1449+
* @returns {Promise} p
1450+
* @see https://docs.bitfinex.com/reference#rest-auth-pulse-del
1451+
*/
1452+
deletePulse (params, cb) {
1453+
return this._makeAuthRequest('/auth/w/pulse/del', params, cb)
1454+
}
14441455
}
14451456

14461457
RESTv2.url = API_URL

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bfx-api-node-rest",
3-
"version": "3.0.13",
3+
"version": "3.0.14",
44
"description": "Official Bitfinex REST v1 & v2 API interfaces",
55
"engines": {
66
"node": ">=8.3.0"
@@ -47,7 +47,7 @@
4747
"babel-plugin-transform-object-rest-spread": "^6.26.0",
4848
"babel-plugin-transform-regenerator": "^6.26.0",
4949
"babel-preset-env": "^1.7.0",
50-
"bfx-api-mock-srv": "^1.0.8",
50+
"bfx-api-mock-srv": "^1.0.9",
5151
"chai": "^4.2.0",
5252
"docdash": "^1.2.0",
5353
"eslint": "^6.8.0",

test/lib/rest-2-integration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ describe('RESTv2 integration (mock server) tests', () => {
138138
['derivsPositionCollateralSet', 'derivs_pos_col_set.symbol.collateral', ['symbol', 'collateral']],
139139
['performance'],
140140
['calcAvailableBalance', 'calc.sym.dir.rate.type', ['sym', 'dir', 'rate', 'type']],
141-
['addPulse', 'add_pulse.title.content', [{ title: 'title', content: 'content' }]]
141+
['addPulse', 'add_pulse.title.content', [{ title: 'title', content: 'content' }]],
142+
['deletePulse', 'delete_pulse.pid', [{ pid: 'pid' }]]
142143
]
143144

144145
methods.forEach((m) => {

test/lib/rest-2-unit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ describe('RESTv2', () => {
7373
testMethod('ledgers', '/auth/r/ledgers/USD/hist', false, 'USD')
7474
testMethod('publicPulseProfile', '/pulse/profile/Bitfinex', true, 'Bitfinex')
7575
testMethod('addPulse', '/auth/w/pulse/add', false)
76+
testMethod('deletePulse', '/auth/w/pulse/del', false)
7677
})
7778
})

0 commit comments

Comments
 (0)