Skip to main content

OpenAI Agents SDK tools for MAXIA Oracle — multi-source crypto price feeds.

Project description

openai-agents-maxia-oracle

OpenAI Agents SDK tools for MAXIA Oracle — multi-source crypto price feeds for AI agents.

Install

pip install openai-agents-maxia-oracle

Usage

import os
from agents import Agent, Runner
from openai_agents_maxia_oracle import get_price, get_price_context, get_batch_prices

os.environ["MAXIA_API_KEY"] = "mxo_..."  # or set in env

agent = Agent(
    name="crypto-assistant",
    instructions="Use MAXIA Oracle to answer price questions accurately.",
    tools=[get_price, get_price_context, get_batch_prices],
)

result = Runner.run_sync(agent, "What is ETH trading at right now?")
print(result.final_output)

Get a free API key (100 req/day, no email): oracle.maxiaworld.app

Tools

Tool Description
get_price Multi-source median price (8 sources: Pyth, Chainlink, RedStone, Binance, Kraken…)
get_price_context Price + confidence score + anomaly flag
get_batch_prices Prices for up to 50 symbols in one request

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

openai_agents_maxia_oracle-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

openai_agents_maxia_oracle-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file openai_agents_maxia_oracle-0.1.0.tar.gz.

File metadata

File hashes

Hashes for openai_agents_maxia_oracle-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da194795531cfc0448441efb43513cc4542ee8400ebdcfb908c04c7d26a11d87
MD5 03eb5f5a9250276e40aa5df851cd0362
BLAKE2b-256 e727b7a15897e51711ae5b39fbde067e6f0020786fc15d4ceb911d4bbdfd1b82

See more details on using hashes here.

File details

Details for the file openai_agents_maxia_oracle-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openai_agents_maxia_oracle-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33809b0ba357cfd8803adcd843f6fdd4ed6bd9c78db7d8f3bee643b6e05c8d7f
MD5 cd643561d2a9fc40cfc04e3c07267940
BLAKE2b-256 e19c7da1846f57e2a53ce18f39ae42a3f9f1f549f77635a20ba97576c1068e84

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