Skip to content

Commit 9af0d00

Browse files
committed
Merge branch 'release/1.8.1'
2 parents 98af08b + ee2aa59 commit 9af0d00

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="1.8.1"></a>
2+
## [1.8.1](https://github.com/benmarten/CryptoETF/compare/1.8.0...1.8.1) (2018-01-27)
3+
4+
5+
### Bug Fixes
6+
7+
* **integrations/bitgrail:** fix bitgrail api url ([2d59631](https://github.com/benmarten/CryptoETF/commit/2d59631))
8+
9+
10+
111
<a name="1.8.0"></a>
212
# [1.8.0](https://github.com/benmarten/CryptoETF/compare/1.7.0...1.8.0) (2018-01-22)
313

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"dependencies": {
3-
"babel-preset-es2015": "^6.24.1",
43
"binance": "^1.1.0",
54
"bitfinex": "^1.0.3",
65
"coinbase": "^2.0.6",
@@ -32,5 +31,5 @@
3231
"testLocal": "./node_modules/.bin/nyc mocha --require babel-core/register test/**/*.js test/**/**/*.js",
3332
"test": "NODE_ENV=test npm run testLocal"
3433
},
35-
"version": "1.8.0"
34+
"version": "1.8.1"
3635
}

src/model/integrations/BinanceWallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class BinanceWallet extends AbstractWallet {
2222
for (let index in balances) {
2323
let data = balances[index]
2424
let symbol = data.asset
25-
let amount = data.free
25+
let amount = Number(data.free) + Number(data.locked)
2626

2727
result.push(new Coin(symbol, amount, 'Binance'))
2828
}

src/model/integrations/BitgrailWallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class BitgrailWallet extends AbstractWallet {
1717
}
1818
let options = {
1919
method: 'POST',
20-
uri: 'https://bitgrail.com/api/v1/balances',
20+
uri: 'https://api.bitgrail.com/v1/balances',
2121
form: params,
2222
json: true,
2323
headers: {

0 commit comments

Comments
 (0)