Skip to content

Commit

Permalink
add exchange and symbol to result dump
Browse files Browse the repository at this point in the history
  • Loading branch information
enarjord committed Jun 20, 2021
1 parent d647f5f commit fa020f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def gain_conv(x):
return x * 100 - 100

lines = []
lines.append(f"exchange {result['exchange'] if 'exchange' in result else 'unknown'}")
lines.append(f"symbol {result['symbol'] if 'symbol' in result else 'unknown'}")
lines.append(f"gain percentage {round_dynamic(result['result']['gain'] * 100 - 100, 4)}%")
lines.append(f"average_daily_gain percentage {round_dynamic((result['result']['average_daily_gain'] - 1) * 100, 3)}%")
lines.append(f"closest_bkr percentage {round_dynamic(result['result']['closest_bkr'] * 100, 4)}%")
Expand Down

0 comments on commit fa020f3

Please sign in to comment.