TraderAI
AI Chart AnalysisLive ChartDashboardAll tools
Pricing
PRO
Developer API
Upgrade to Pro
Sign InCreate Account
TraderAI/Developer API

Developer API

Ship trading features in an afternoon, not a quarter

The same engine that powers TraderAI, as an API: send candles, get indicators, patterns, backtests, volatility ranges and AI chart reads back. Works with any language, and with AI agents through MCP.

Get a free API keyDeveloper API documentationOpenAPI spec

Same numbers as the chart

Versioned, independently tested formulas with explicit warm-up. Every response names its formula version.

AI chart analysis

Send a screenshot, get trend, patterns, key levels and a validated plan. Not a probability of profit, and never financial advice.

Built for AI agents

A Model Context Protocol endpoint exposes every tool to Claude, Cursor and other agents with the same key, limits and credits.

Pay only for success

Invalid requests cost nothing and failed calls are refunded automatically. Prepaid plans and packs: no overage invoices.

Simple plans, metered in credits

Each call costs credits from your plan first, then from prepaid packs. When both run out the API answers 402 - you are never billed after the fact.

Prepaid access: monthly = 30 days, yearly = twelve 30-day cycles (360 days). Renew manually. Top-up credits never expire.

Developer API has its own Free, Starter, Builder and Scale plans, separate from TraderAI trading and Crypto Hub plans. Start with Free and compare the published limits before buying API access.

Free

$0

For prototypes and side projects. Email verification required.

  • 1,000 credits per month
  • 10 requests per minute
  • 1 API keys
  • AI endpoints from Builder

Starter

$19/month

For live apps that need indicators, patterns and backtests.

  • 50,000 credits every 30 days
  • 60 requests per minute
  • 3 API keys
  • 2 parallel requests
  • AI endpoints from Builder
Choose Starter
Most popular

Builder

$49/month

Everything in Starter, plus AI chart analysis.

  • 250,000 credits every 30 days
  • 300 requests per minute
  • 10 API keys
  • 4 parallel requests
  • AI chart analysis included
Choose Builder

Scale

$149/month

Highest limits for busy platforms and AI agents.

  • 1,500,000 credits every 30 days
  • 1,200 requests per minute
  • 25 API keys
  • 8 parallel requests
  • AI chart analysis included
Choose Scale

Credit packs

Top up when you need a burst. Pack credits are used after your plan allowance and do not expire while your account exists.

  • 100,000 credits

    $15

  • 500,000 credits

    $60

  • 2,000,000 credits

    $200

Need more?

Higher limits, dedicated support and custom terms for teams and platforms. Talk to us.

Contact us

Quickstart

Choose your integration

REST, GraphQL, JSON-RPC and MCP use the same API key, permissions and credits. Batch supports up to 10 operations. SSE returns a task result; Socket.IO supports calls over WebSocket. Neither provides a live price feed.

GraphQL SDL
  1. 1Create a key in the console. It is shown once - store it as a secret.
  2. 2Send it as "Authorization: Bearer <key>" from your server (never from a browser).
  3. 3Read meta.creditsCharged and the X-RateLimit headers to budget your calls.

Use it from an AI agent (MCP)

Add this server to any MCP client that supports streamable HTTP. Tools are filtered to what your plan and key scopes allow.

Errors and limits

Errors return a stable code in "message" and a readable detail in "error". 401 bad key, 402 out of credits, 403 plan or scope, 429 rate limit (see Retry-After), 503 upstream unavailable (refunded).

curl
curl -X POST https://traderai.cloud/api/v1/open/risk/position-size \
  -H "Authorization: Bearer $TRADERAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"accountBalance":10000,"riskPercent":1,"entryPrice":100,"stopLossPrice":95,"takeProfitPrice":110}'

Endpoints

Credits are charged per unit of work. AI endpoints are always priced to cover the model cost.

Compute

  • POST/open/indicators/compute

    Compute up to 10 technical indicators over candles you send. 1 credit per indicator per 1,000 candles.

    Credits: 1

    From plan: Free

  • POST/open/patterns/detect

    Detect candlestick and chart patterns on closed candles you send (the last bar is treated as forming).

    Credits: 2

    From plan: Free

  • POST/open/risk/position-size

    Position size and reward/risk from balance, risk %, entry, stop and optional target. Pure maths.

    Credits: 1

    From plan: Free

  • POST/open/volatility/forecast

    GARCH(1,1) next-bar expected move (68% / 95% ranges) from candles you send. Forecasts size, never direction.

    Credits: 2

    From plan: Free

  • POST/open/analogs/search

    Find the most similar past windows to the latest closed window and what followed (1/5/20 bars). Not a prediction.

    Credits: 10

    From plan: Starter

  • POST/open/backtest/run

    Run a rule-based strategy over candles you send with fees, slippage and next-bar-open fills. 25 credits per 5,000 candles.

    Credits: 25

    From plan: Starter

Analytics

  • GET/open/track-record/patterns

    Officially recorded candlestick-pattern outcomes (win rate vs market baseline) per pattern.

    Credits: 1

    From plan: Free

  • GET/open/track-record/volatility

    Officially recorded volatility-forecast calibration (share of moves inside the 68% / 95% bands).

    Credits: 1

    From plan: Free

AI

  • POST/open/ai/chart-analysis

    Vision AI analysis of a chart screenshot you send: trend, patterns, key levels and a validated trade plan when the chart supports one.

    Credits: 500min. covers AI cost

    From plan: Builder

Frequently asked questions

Can I resell the data I get?

Results computed from candles you send are yours to use in your product. Raw third-party market data is only offered where its licence allows redistribution; those endpoints are marked and may be unavailable.

What happens when I run out of credits?

Calls return 402 until the next 30-day cycle or until you buy a credit pack. Nothing is billed automatically.

Is the AI analysis financial advice?

No. It is a technical reading of a chart. The setup score measures setup quality, not the chance of profit. Show this to your users.

Can I upgrade or extend early?

Yes. Renewing the same plan adds time to the current end. Upgrading starts now and converts your unused time into extra days. Downgrades wait until the current plan ends.

Does TraderAI Pro include API access?

Developer API has its own Free, Starter, Builder and Scale plans, separate from TraderAI trading and Crypto Hub plans. Start with Free and compare the published limits before buying API access.