Macro
This document provides API documentation for the macro tools.
get_current_time() -> str
Get the current time in ISO 8601 format.
Sample Response
Today is 2025-09-30T16:25:40.509118
Returns
str
: The current time in ISO 8601 format.
get_fred_series(series_id)
Get a FRED series by its ID.
Parameters
series_id
: The ID of the FRED series.
Returns
- The FRED series data.
search_fred_series(query)
Search for the most popular FRED series by keyword.
Parameters
query
: The keyword to search for.
Sample Response
{
"results": [
{
"id": "GDP",
"title": "Gross Domestic Product",
"frequency": "Quarterly",
"last_updated": "2025-09-25 07:48:01-05"
},
{
"id": "GDPC1",
"title": "Real Gross Domestic Product",
"frequency": "Quarterly",
"last_updated": "2025-09-25 07:48:01-05"
},
{
"id": "GFDEGDQ188S",
"title": "Federal Debt: Total Public Debt as Percent of Gross Domestic Product",
"frequency": "Quarterly",
"last_updated": "2025-09-25 07:58:02-05"
},
{
"id": "PAYEMS",
"title": "All Employees, Total Nonfarm",
"frequency": "Monthly",
"last_updated": "2025-09-05 07:53:01-05"
},
{
"id": "M2V",
"title": "Velocity of M2 Money Stock",
"frequency": "Quarterly",
"last_updated": "2025-09-25 07:53:01-05"
},
{
"id": "A939RX0Q048SBEA",
"title": "Real gross domestic product per capita",
"frequency": "Quarterly",
"last_updated": "2025-09-25 07:48:01-05"
}
]
}
Returns
- The search results for the FRED series.
cnbc_news_feed()
Get the latest breaking stock market news from CNBC.
Sample Response
{
"title": "Real Time Fed Rate Monitor: The most precise fed rate monitor based on CME Group 30-Day Fed Fund futures prices",
"description": "{\n \"current_fed_rate\": \" FED 4.25% Oct 29, 2025 \",\n \"predict\": [
{
\"meeting_time\": \"Oct 29, 2025 02:00PM ET\",
\"probabilities\": [
{
\"target_rate\": \"3.75 - 4.00\",
\"current_prob\": \"98.5%\"
},
{
\"target_rate\": \"4.00 - 4.25\",
\"current_prob\": \"1.5%\"
}
]
},
{
\"meeting_time\": \"Dec 10, 2025 02:00PM ET\",
\"probabilities\": [
{
\"target_rate\": \"3.50 - 3.75\",
\"current_prob\": \"75.2%\"
},
{
\"target_rate\": \"3.75 - 4.00\",
\"current_prob\": \"24.5%\"
},
{
\"target_rate\": \"4.00 - 4.25\",
\"current_prob\": \"0.3%\"
}
]
}
]
}",
"date": "2025-09-30"
}
Returns
- A list of news articles.