Skip to content

Commit

Permalink
feat(*): adds option to hide missing coins
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored and benmarten committed Dec 28, 2017
1 parent 0de2b1f commit 3fd1b9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"options": {
"targetValueUsd": 50000,
"rebalanceDeltaPct": 1.0,
"minValueBtc": 0.0001
"minValueBtc": 0.0001,
"hideMissingCoins": false
},
"outputFile": false
}
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ async function refreshPortfolio() {
}
}

await Portfolio.addMissingCoins()
if (!settings.options.hideMissingCoins) {
await Portfolio.addMissingCoins()
}
Portfolio.trim()

Portfolio.removeCoin('USDT')
Expand Down

0 comments on commit 3fd1b9c

Please sign in to comment.