Skip to content

Commit

Permalink
Merge pull request #21 from ZIMkaRU/master
Browse files Browse the repository at this point in the history
Replace positions model from Positions to PositionHist
  • Loading branch information
f3rno authored Mar 7, 2019
2 parents c417159 + 6abad86 commit 68cdb01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/rest2.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const {
MarginInfo,
Order,
Position,
PositionHist,
Trade,
PublicTrade,
TradingTicker,
Expand Down Expand Up @@ -683,7 +682,7 @@ class RESTv2 {
positionsHistory (start = 0, end = Date.now(), limit = 50, cb) {
return this._makeAuthRequest('/auth/r/positions/hist', {
start, end, limit
}, cb, PositionHist)
}, cb, Position)
}

/**
Expand All @@ -698,7 +697,7 @@ class RESTv2 {
positionsAudit (id = [], start = 0, end = Date.now(), limit = 250, cb) {
return this._makeAuthRequest('/auth/r/positions/audit', {
id, start, end, limit
}, cb, PositionHist)
}, cb, Position)
}

/**
Expand Down Expand Up @@ -1076,7 +1075,7 @@ class RESTv2 {
*/
generateToken ({ ttl, scope, writePermission } = {}, cb) {
return this._makeAuthRequest('/auth/w/token', {
ttl, scope, writePermission,
ttl, scope, writePermission
}, cb)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-api-node-rest",
"version": "1.0.6",
"version": "1.0.7",
"description": "Official Bitfinex REST v1 & v2 API interfaces",
"engines": {
"node": ">=7"
Expand Down

0 comments on commit 68cdb01

Please sign in to comment.