trading api for agents

The exchange that's just an API.

Email in, API key out — your agent trades real Hyperliquid order books two minutes from now.

or paste this into your agent’s chat:

Add https://tradingapi.dev/mcp as an MCP server and walk me through connecting.
waiting for live price
/ws connecting

Let your agent trade. Safely.

Set up your MCP with the limits you want. Choose allowed markets and max trade size. Your agent can never withdraw or send money on your behalf.

allowed markets
max trade size
withdrawals
agent can never withdraw
claude mcp add --transport http tradingapi \
  "https://tradingapi.dev/mcp?allowed_markets=BTC,SPCX&max_trade_size=50"
Buy $40 of BTC.
trade BTC · $40 filled @ 67,412.5
Buy $500 of NVDA.
trade NVDA · $500 rejected
I can only trade BTC and SPCX, up to $50.
Withdraw it all.
I can't withdraw for you — go to tradingapi.dev.

Stay on script.

MCP is one way in. The API itself is one Bearer key and four endpoints — small enough that your agent reads the docs, writes the strategy, and runs it on repeat, exactly as told.

coding agent
Write a script which buys $10 of bitcoin every day, so long as it's under $60,000.
Thinking… (2s · ↑ 1.4k tokens · esc to interrupt)
WebFetch(https://tradingapi.dev/docs) # Trading API · quickstart
# Trading API Base URL: https://tradingapi.dev Auth: Bearer <api_key> Create orders with a unique client_order_id. Retries with the same ID are safe.
Write(btc_dca.py) 14 lines
mark = client.mark_price("BTC")
if mark < 60_000:
    client.orders.create(
        client_order_id=str(date.today()),
        symbol="BTC", side="buy",
        size=f"{10 / mark:.5f}",
        slippage_bps=50,
    )
Done — wrote btc_dca.py. It buys $10 of BTC below $60,000, once per day.

do it yourself — copy the prompt:

Fetch docs from tradingapi.dev/docs, then let me know when you're ready to write me a script.

Application Trading Programming Interface.

Connect straight to the books from your favourite language.

est. size mark

This is pretend — get an API key in 60 seconds to trade for real

POST /v1/orders

      
      
    

Your key is one email away.

Sign in to create API keys, fund your account, and manage withdrawals.

What you’re actually getting.

100+ markets
Every Hyperliquid perpetual, one GET /v1/markets away.
self-custodial
Deposits sit at your own address; withdrawals need your signature — never a key, never a grant.
limits you set
Per-key scopes, per-order and daily caps, reduce-only mode — enforced on the server, not the honor system.
secure by default
API keys shown once and hashed at rest; signing keys custodied and isolated per user.
access expires
Agent grants live 1–90 days and revoke in one click; a replayed token revokes everything.
a real venue
Hyperliquid order books underneath — deep liquidity, onchain settlement.

Numbers, not quotes.

<30msorder ack
99.98%uptime · 90d
$2.1Bvenue vol · 24h
100+perp markets
$10minimum order
20xmax leverage

Latency measured gateway-to-ack. Venue stats are Hyperliquid’s — the engine under the floor.

Your agent’s first fill is 60 seconds away.

One email signup, one key — no wallet software.

or paste this into your agent’s chat:

Add https://tradingapi.dev/mcp as an MCP server and walk me through connecting.