Skip to content

Instantly share code, notes, and snippets.

@ivank2139
Created April 5, 2020 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivank2139/1a0c2e5a7e4c3b101e4fdfd13ae56505 to your computer and use it in GitHub Desktop.
Save ivank2139/1a0c2e5a7e4c3b101e4fdfd13ae56505 to your computer and use it in GitHub Desktop.
A one line bash script tails the reports for the last 4 lines and outputs to the summary.txt file.
==> HistoryAnalysisBTC.txt <==
Sell Recommendation 0.07 Btc at price 9592.18, earn $669.88 on 2020-02-06
After trade, cash available $1480.27, Btc available 0.21, portfolio total $3489.92
Buy recommendations 9, Sale recommendations 15
==> HistoryAnalysisETH.txt <==
Buy recommendation 135.1 Eth at price 132.72, cost $17930.83 on 2019-12-17
After trade, cash available $53792.5, Eth available 613.96, portfolio total $135279.32
Buy recommendations 13, Sale recommendations 8
==> HistoryAnalysisGO.txt <==
Buy recommendation 23278.17 Go at price 0.01, cost $250 on 2020-03-09
After trade, cash available $750, Go available 23278.17, portfolio total $1000
Buy recommendations 1, Sale recommendations 0
==> HistoryAnalysisLTC.txt <==
Buy recommendation 10.41 Ltc at price 36.98, cost $385.05 on 2019-12-18
After trade, cash available $1155.15, Ltc available 111.29, portfolio total $5270.49
Buy recommendations 21, Sale recommendations 14
==> HistoryAnalysisNEXO.txt <==
Sell Recommendation 1286.03 Nexo at price 0.13, earn $165.79 on 2020-01-29
After trade, cash available $991.48, Nexo available 3858.08, portfolio total $1488.86
Buy recommendations 5, Sale recommendations 4
==> HistoryAnalysisOMG.txt <==
Buy recommendation 53.12 Omg at price 0.65, cost $34.74 on 2019-12-17
After trade, cash available $104.23, Omg available 457.89, portfolio total $403.73
Buy recommendations 9, Sale recommendations 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment