bittrex-node
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -8,2 +8,6 @@ Change Log | ||
## [1.2.1](https://github.com/AndrewBarba/bittrex-node/releases/tag/1.2.1) | ||
1. Parse order `Closed` date | ||
## [1.2.0](https://github.com/AndrewBarba/bittrex-node/releases/tag/1.2.0) | ||
@@ -10,0 +14,0 @@ |
{ | ||
"name": "bittrex-node", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Bittrex API client for Node.js", | ||
@@ -5,0 +5,0 @@ "author": "Andrew Barba <abarba.77@gmail.com>", |
@@ -61,2 +61,3 @@ # bittrex-node | ||
await client.withdraw('BTC', { quantity: 1.2, address: 'abcde' }) | ||
await client.order('30594e6e-ba54-4914-96f3-5b9d5de2468e') | ||
await client.orderHistory('BTC-ETH') | ||
@@ -63,0 +64,0 @@ await client.withdrawalHistory('BTC') |
@@ -237,3 +237,3 @@ const axios = require('axios') | ||
const result = await this.request('get', '/account/getorder', { params }) | ||
return this.parseDates([result], ['Opened'])[0] | ||
return this.parseDates([result], ['Opened', 'Closed'])[0] | ||
} | ||
@@ -331,2 +331,3 @@ | ||
for (const key of keys) { | ||
if (!result[key]) continue | ||
result[key] = new Date(`${result[key]}Z`) | ||
@@ -333,0 +334,0 @@ } |
18106
431
66