rcwaterman commited on
Commit
b3f6413
1 Parent(s): 1baf6db

Fixing valuation tool

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def get_quarter(date:str) -> str:
81
  def calculate_percent_valuation(intrinsic_value:float, current_stock_price:float) -> float:
82
  """This tool can be used to calculate how overvalued or undervalued a stock is. It takes the calculated intrinsic value and the current stock price as arguments and returns the valuation percentage, in a format similar to '0.50' for 50%. The
83
  math performed by this function is (intrinsic_value-current_stock_price)/abs(intrinsic_value). The current stock price must be retrieved using the 'get_date' tool (to get the current date) and then using that date to access the 'polygon_aggregates' tool.
84
- A positive percentage indicates an overvalued stock and a negative percentage indicates an undervalued stock."""
85
  return (intrinsic_value-current_stock_price)/abs(intrinsic_value)
86
 
87
  @tool
 
81
  def calculate_percent_valuation(intrinsic_value:float, current_stock_price:float) -> float:
82
  """This tool can be used to calculate how overvalued or undervalued a stock is. It takes the calculated intrinsic value and the current stock price as arguments and returns the valuation percentage, in a format similar to '0.50' for 50%. The
83
  math performed by this function is (intrinsic_value-current_stock_price)/abs(intrinsic_value). The current stock price must be retrieved using the 'get_date' tool (to get the current date) and then using that date to access the 'polygon_aggregates' tool.
84
+ A positive percentage indicates an undervalued stock and a negative percentage indicates an overvalued stock."""
85
  return (intrinsic_value-current_stock_price)/abs(intrinsic_value)
86
 
87
  @tool