Skip to content

Commit

Permalink
Merge pull request #3 from vreyesd/patch-1
Browse files Browse the repository at this point in the history
add /account/getorder endpoint
  • Loading branch information
AndrewBarba authored Nov 27, 2018
2 parents 351c635 + 54d2f2d commit 1fed55f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/bittrex-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,18 @@ class BittrexClient {
let results = await this.request('get', '/account/getorderhistory', { params })
return this.parseDates(results, ['TimeStamp', 'Closed'])
}

/**
* @method order
* @param {String} uuid
* @return {Promise}
*/
async order(uuid) {
if (!uuid) throw new Error('uuid is required')
let params = { uuid }
let results = await this.request('get', '/account/getorder', { params })
return this.parseDates(results, ['Opened'])
}

/**
* @method withdrawalHistory
Expand Down

0 comments on commit 1fed55f

Please sign in to comment.