FOR AI AGENTS

Trade Polymarket and Hyperliquid with your AI agent.

One Slay API key trades both venues. Slay's server enforces your limits, not the prompt. Your agent plans each trade and waits for your yes.

Read https://www.slay.money/skill.md and set me up on Slay. Plan a strategy and wait for my approval before the first trade.

Works with Claude Code, Codex and Cursor. Any agent that can read a web page or add an MCP server can use it.

01

Paste

Paste the line into your agent. It reads the setup guide and starts.

02

Turn on API trading with your limits

Create a key at slay.money/api/keys. Set a per-order and a daily limit. Slay's server enforces both.

03

Approve the plan

Your agent shows the market, side, price, size, cost and most you can lose. You say yes.

THE API KEY

What the key can and cannot do.

It can: Read markets, books and quotes. No key needed.

It cannot: Withdraw money. The trade API has no withdraw endpoint.

It can: Place and cancel orders on Polymarket and Hyperliquid, inside your limits.

It cannot: Go over your per-order or daily limit. Slay answers 403.

It can: Read your account, positions and open orders.

It cannot: Trade while API trading is off, or place or cancel with a read-only key.

It can: Trade on both venues with one key.

It cannot: Show your trading key. No endpoint returns it.

It can: Be stopped at once: revoke the key, or Slay pauses all API trading.

It cannot: Place a main-account buy more than 5 cents above the middle of the book, or in a market whose spread is over 10 cents.

The table covers main-account orders. The simple API wallet endpoints (/api/trade/buy and /sell) also check your per-order and daily limits, and take an optional max price.

LIMITS

Limits Slay's server enforces.

These checks run on Slay's server for every order, whatever calls it. A prompt cannot switch them off.

  • Per-order cap

    A bigger order returns 403. The default is $100. You can set up to $10,000.

  • Daily cap

    Counted per UTC day. The default is $500. You can set up to $50,000.

  • Price check

    On main-account orders: no buy more than 5 cents above the book's middle, no sell more than 5 cents below. A book with a spread over 10 cents is refused.

  • Retry safety

    A clientOrderId or externalId returns the first order's answer. A retry never places a second order.

  • Both venues, one key

    Slay reads both order books and sends each order to the better fill. Only full fills count.

  • Read-only keys

    Tick Read only when you create the key. That key can read the account but cannot place or cancel orders.

  • Kill switch

    Slay can pause all API trading at once. Revoking a key stops it within a minute.

AN ILLUSTRATION

One trade, start to finish.

This is an illustration, not a recording. The prices and numbers are made up.

You: Set me up on Slay. Keep each trade under $20.

Agent: I read the setup guide. Create a key on slay.money/api/keys, turn on API trading, and set a $20 per-order limit. I will check the account when you are done.

Agent: Plan: buy $10 of Up in the Bitcoin 5-minute market. Venue: Polymarket, the better fill. Price: about 51c. Shares: about 19.6. Cost with fees: $10.00. Most you can lose: $10.00. Approve?

You: Yes.

Agent: Filled. Status: filled. The order went to Polymarket at 51.0c. Ask the agent for your account to see the balance and open orders.

WHAT YOUR AGENT READS

Six pages, all public.

  • /skill.md

    The setup guide and trading rules, as an Agent Skill.

  • /llms.txt

    A short index of Slay's pages for AI tools.

  • /api

    The API reference: every endpoint, field and error.

  • /api/openapi.json

    The same reference as machine-readable OpenAPI.

  • /ai/facts.md

    Dated facts with sources: fees, regions, custody.

  • /api/mcp

    The MCP server: market, quote, order and account tools.

Prefer MCP? Add the server once:
claude mcp add --transport http slay https://www.slay.money/api/mcp --header "Authorization: Bearer <key>"
FACTS

The short version.

Dated and sourced in /ai/facts.md.

What Slay is
One app for prediction markets on Polymarket and Hyperliquid HIP-4. One Slay API key trades both.
Routing
For a market on both venues, Slay reads both books and sends each order to the venue with the better fill.
Custody: main account
Orders are signed by Slay's server with a trading key approved on your own Hyperliquid and Polymarket accounts. Slay's code signs only orders and cancels with it.
Custody: API wallet
/api/trade/buy and /api/trade/sell use a wallet Slay holds for your account. It sends money only into orders, as Slay's fee, or back to your own account on that venue.
Fees
Slay's fee is 0.15% per trade, or 0.135% if a friend invited you. Buying on Hyperliquid is free. Selling there pays Slay's fee plus Hyperliquid's. Quotes show the exact amounts.
Restricted regions
Polymarket is blocked in Iran, Syria, Cuba, North Korea and parts of Ukraine (Crimea, Donetsk, Luhansk). In a list of other countries, including the US, the UK and some Canadian provinces, you can sell on Polymarket but not buy. Check Hyperliquid's own rules for your region.

Questions

Where is my money held?

In your own Hyperliquid and Polymarket accounts for the main-account endpoints. For the API wallet, Slay holds the wallet for your account. The facts block above names the exact rules.

Can the agent withdraw my money?

The trade API has no withdraw endpoint. Withdrawals happen in the Slay app, under your control.

What stops a runaway agent?

Your per-order and daily limits, the price check, read-only keys, revoking the key, and Slay's own pause switch. All run on Slay's server, not in the prompt.

Can I practise first?

Yes. The simple buy endpoint takes paper: true and trades with $1,000 of practice money on the live books.

Which agents work with this?

Any agent that can read a web page or add an MCP server. The setup guide is at /skill.md.

Where is it not available?

In the restricted regions above. Your agent must stop there and tell you.

Start with the one line.
Your agent plans first. You approve the first trade.
Back to the line