Skip to content

Commit

Permalink
Docs, add date parser to endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Jul 26, 2018
1 parent 224a688 commit b2230cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bittrex-node",
"version": "1.0.1",
"version": "1.0.2",
"description": "Bittrex API client for Node.js",
"author": "Andrew Barba <[email protected]>",
"license": "MIT",
Expand Down
7 changes: 4 additions & 3 deletions src/bittrex-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class BittrexClient {
async marketSummary(market) {
if (!market) throw new Error('market is required')
let params = { market }
return this.request('get', '/public/getmarketsummary', { params })
let results = await this.request('get', '/public/getmarketsummary', { params })
return this.parseDates(results, ['TimeStamp', 'Created'])
}

/**
Expand Down Expand Up @@ -103,7 +104,7 @@ class BittrexClient {
*-------------------------------------------------------------------------*/

/**
* @method buy
* @method buyLimit
* @param {String} market
* @param {String|Number} options.quantity
* @param {String|Number} options.price
Expand Down Expand Up @@ -176,7 +177,7 @@ class BittrexClient {
}

/**
* @method balances
* @method balance
* @param {String} currency
* @return {Promise}
*/
Expand Down

0 comments on commit b2230cc

Please sign in to comment.