Skip to main content
A provider is a FinanceProvider subclass that declares which capabilities it serves and returns the normalized dataclasses from agno.tools.finance. FinanceTools registers only the tools the provider declares, serializes the dataclasses to JSON, and turns any FinanceProviderError into a clean {"error": ...} payload for the model.
custom_provider.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

Save the code above as custom_provider.py, then run:
Full source: cookbook/91_tools/finance/06_custom_provider.py