Skip to main content

LlamaIndex tool wrappers for MAXIA Oracle — multi-source price feeds for AI agents. Data feed only.

Project description

llama-index-tools-maxia-oracle

LlamaIndex (llama-index-core 0.11+) tool wrappers for MAXIA Oracle — multi-source crypto and equity price feeds for AI agents.

Data feed only. Not investment advice. No custody. No KYC.

Install

pip install llama-index-tools-maxia-oracle

Depends on maxia-oracle (the Python SDK) and llama-index-core>=0.11.

Quick start

from llama_index.llms.openai import OpenAI
from llama_index.core.agent import ReActAgent

from llama_index_tools_maxia_oracle import get_all_tools

tools = get_all_tools(api_key="mxo_xxxxxxxx...")
# or rely on MAXIA_ORACLE_API_KEY env var:
# tools = get_all_tools()

llm = OpenAI(model="gpt-4o-mini")
agent = ReActAgent.from_tools(tools, llm=llm, verbose=True)
agent.chat("What is BTC trading at right now?")

Tools

All 17 tools are FunctionTool instances, one per SDK method:

Tool name SDK method
maxia_oracle_get_price price(symbol)
maxia_oracle_get_prices_batch prices_batch(symbols)
maxia_oracle_get_sources_status sources()
maxia_oracle_get_cache_stats cache_stats()
maxia_oracle_get_confidence confidence(symbol)
maxia_oracle_list_supported_symbols list_symbols()
maxia_oracle_get_chainlink_onchain chainlink_onchain(symbol, chain)
maxia_oracle_health_check health()
maxia_oracle_get_redstone redstone(symbol)
maxia_oracle_get_pyth_solana pyth_solana(symbol)
maxia_oracle_get_twap twap(symbol, chain, window_s)
maxia_oracle_get_price_context price_context(symbol)
maxia_oracle_get_metadata metadata(symbol)
maxia_oracle_get_price_history price_history(symbol, range)
maxia_oracle_create_alert create_alert(...)
maxia_oracle_list_alerts list_alerts()
maxia_oracle_delete_alert delete_alert(alert_id)

Configuration

Variable Purpose
MAXIA_ORACLE_API_KEY The mxo_-prefixed key from POST /api/register
MAXIA_ORACLE_BASE_URL Override backend URL (default https://oracle.maxiaworld.app)

Non-goals

Read-only data feed: no order routing, no swap, no custody, no KYC, no tokenized securities, no yield execution.

License

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_maxia_oracle-0.2.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_tools_maxia_oracle-0.2.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_maxia_oracle-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1baf23415b16d655e440f51de23f6defe6cd76b097fb044ca57941ccc59f137b
MD5 bf7819af861a2c3e95de9054a5cc6d59
BLAKE2b-256 1327f70811de86d70050e6b47ed0549482b12a3fd1de12868cdc4eb8ba4abb0e

See more details on using hashes here.

File details

Details for the file llama_index_tools_maxia_oracle-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_maxia_oracle-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61c40ee61eabd55caed1b036545d894ae7b90114fe5d4901c52c5490c09c4e76
MD5 71843668b721c97f654aa37c88e602ec
BLAKE2b-256 1b61ef38b02407e2f9e5a66e4087c23be3f8281416d1fee9075081626c4f3eda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page