fix inflation series
Browse files
tools.py
CHANGED
|
@@ -213,7 +213,7 @@ def get_cetes_rate(term_days: int, date: str | None = None) -> str:
|
|
| 213 |
|
| 214 |
@tool("get_mensual_inflation_mexico")
|
| 215 |
def get_mensual_inflation_mexico(date: str | None = None) -> str:
|
| 216 |
-
URL = "https://www.banxico.org.mx/SieAPIRest/service/v1/series/
|
| 217 |
headers = {
|
| 218 |
"Bmx-Token": BANXICO_TOKEN,
|
| 219 |
"Content-Type": "application/json",
|
|
@@ -246,7 +246,7 @@ def get_mensual_inflation_mexico(date: str | None = None) -> str:
|
|
| 246 |
|
| 247 |
@tool("get_inflation_mexico")
|
| 248 |
def get_inflation_mexico(date: str | None = None) -> str:
|
| 249 |
-
URL = "https://www.banxico.org.mx/SieAPIRest/service/v1/series/
|
| 250 |
headers = {
|
| 251 |
"Bmx-Token": BANXICO_TOKEN,
|
| 252 |
"Content-Type": "application/json",
|
|
@@ -804,6 +804,7 @@ def get_fundamental_analysis(ticker: str) -> str:
|
|
| 804 |
f"RECOMMENDATION: {recommendation} — {rationale}."
|
| 805 |
)
|
| 806 |
|
|
|
|
| 807 |
@tool("respond_to_greeting")
|
| 808 |
def respond_to_greeting() -> str:
|
| 809 |
return "Hello! I'm a financial data agent. How can I assist you today?"
|
|
|
|
| 213 |
|
| 214 |
@tool("get_mensual_inflation_mexico")
|
| 215 |
def get_mensual_inflation_mexico(date: str | None = None) -> str:
|
| 216 |
+
URL = "https://www.banxico.org.mx/SieAPIRest/service/v1/series/SP30577/datos"
|
| 217 |
headers = {
|
| 218 |
"Bmx-Token": BANXICO_TOKEN,
|
| 219 |
"Content-Type": "application/json",
|
|
|
|
| 246 |
|
| 247 |
@tool("get_inflation_mexico")
|
| 248 |
def get_inflation_mexico(date: str | None = None) -> str:
|
| 249 |
+
URL = "https://www.banxico.org.mx/SieAPIRest/service/v1/series/SP30578/datos"
|
| 250 |
headers = {
|
| 251 |
"Bmx-Token": BANXICO_TOKEN,
|
| 252 |
"Content-Type": "application/json",
|
|
|
|
| 804 |
f"RECOMMENDATION: {recommendation} — {rationale}."
|
| 805 |
)
|
| 806 |
|
| 807 |
+
|
| 808 |
@tool("respond_to_greeting")
|
| 809 |
def respond_to_greeting() -> str:
|
| 810 |
return "Hello! I'm a financial data agent. How can I assist you today?"
|