Skip to content

Commit

Permalink
added deviation
Browse files Browse the repository at this point in the history
  • Loading branch information
8go authored Jun 23, 2020
1 parent d0465c9 commit ac3e53c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions s2f.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def s2f(args):
"Forward stock-to-flow price: {:,.0f} USD".format(fwd_stock_to_flow_usd))
print("{}-day Stock-to-flow ratio: {:.2f}".format(period, stock_to_flow_ratio))
print("{}-day Stock-to-flow price: {:,.0f} USD".format(period, stock_to_flow_usd))
print("Current price: {:,.0f} USD".format(usd_price))
print("Deviation of {}-day S2F price: {:,.2f} %".format(period,
(stock_to_flow_usd - usd_price) / stock_to_flow_usd * 100))


if __name__ == "__main__":
Expand Down

0 comments on commit ac3e53c

Please sign in to comment.