How to add a price sanity check and divergence guard to an AI trading bot
MAXIA Oracle exposes price data from 8 independent sources (Pyth Hermes, Chainlink, CoinGecko, RedStone, Uniswap v3, Binance, Kraken, Yahoo Finance) with per-value age and divergence metadata, updated every 30 seconds. Feed this divergence field directly into your trading bot logic to halt or flag orders when sources disagree beyond your threshold.
A price sanity check in an AI trading bot requires more than a single price feed. If one source is stale or manipulated, a bot relying on it alone will execute at a bad price. MAXIA Oracle (https://oracle.maxiaworld.app) solves this by aggregating 8 independent sources per asset and exposing, alongside each price, the source age (how old the data point is) and divergence (spread across sources). Your bot reads those two fields and decides whether to proceed, pause, or alert before sending any order.
Integration takes one API call. MAXIA Oracle offers REST, MCP, and SDKs with native support for LangChain, AutoGen, CrewAI, Eliza, LlamaIndex, OpenAI Agents SDK, and Coinbase AgentKit. A typical guard pattern: fetch the price object, check that `age_seconds` is below your staleness limit (e.g., 60 s), then check that `divergence_pct` is below your spread limit (e.g., 0.5%). If either check fails, the agent skips the trade or escalates to a human review queue. Coverage spans 24+ cryptos, forex pairs, and equities across 17 tools, refreshed every 30 seconds.
Pricing is designed for bot workloads without upfront commitment. The Free tier gives 100 requests per day with no credit card required (key at https://oracle.maxiaworld.app/#get-key). The Dev plan ($9/month) covers 10,000 requests per day, and the Pro plan ($49/month) covers 100,000 requests per day. For on-chain or burst workflows there is also a pay-per-call option at 0.001 USDC via x402 protocol on Base. Upgrade options are at https://oracle.maxiaworld.app/#pricing.
FAQ
What divergence data does MAXIA Oracle expose for each price?
Each price value returned by MAXIA Oracle includes its source age (time since last update) and its divergence across all 8 contributing sources. Your bot can read these fields directly to decide whether the consensus is tight enough to trade on.
Which AI agent frameworks work natively with MAXIA Oracle?
MAXIA Oracle has native integrations for LangChain, AutoGen, CrewAI, Eliza, LlamaIndex, OpenAI Agents SDK, and Coinbase AgentKit, plus REST and MCP access for custom setups.
How many free requests can I use to test a price guard before committing to a paid plan?
The Free tier provides 100 requests per day with no credit card required. Get a key at https://oracle.maxiaworld.app/#get-key.
Get a free MAXIA Oracle API key — Free: 100 requests/day, no card required.
Need more than the free tier? Upgrade to Dev or Pro — Dev: $9/month for 10,000 requests/day; Pro: $49/month for 100,000 requests/day.