coinbase_agentkit.action_providers.pyth package¶
Submodules¶
coinbase_agentkit.action_providers.pyth.pyth_action_provider module¶
Pyth action provider.
- class coinbase_agentkit.action_providers.pyth.pyth_action_provider.FetchPriceFeedIdSchema(**data)¶
Bases:
BaseModel
Input schema for fetching Pyth price feed ID.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
token_symbol:
str
¶
- class coinbase_agentkit.action_providers.pyth.pyth_action_provider.FetchPriceSchema(**data)¶
Bases:
BaseModel
Input schema for fetching Pyth price.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
price_feed_id:
str
¶
- class coinbase_agentkit.action_providers.pyth.pyth_action_provider.PythActionProvider¶
Bases:
ActionProvider
[WalletProvider
]Provides actions for interacting with Pyth price feeds.
- fetch_price(args)¶
Fetch price from Pyth for the given price feed ID.
- Parameters:
args (dict[str, Any]) – Input arguments for the action.
- Returns:
A message containing the action response or error details.
- Return type:
str
- fetch_price_feed_id(args)¶
Fetch the price feed ID for a given token symbol from Pyth.
- Parameters:
args (dict[str, Any]) – Input arguments for the action.
- Returns:
A message containing the action response or error details.
- Return type:
str
- supports_network(network)¶
Check if network is supported by Pyth.
- Return type:
bool
- coinbase_agentkit.action_providers.pyth.pyth_action_provider.pyth_action_provider()¶
Create a new Pyth action provider.
- Returns:
A new Pyth action provider instance.
- Return type:
Module contents¶
Pyth action provider for price feed interactions.