Kahyna API and MCP server for prediction markets
Kahyna has a Data API at https://kahyna.com/api/v1/data and an MCP server at https://kahyna.com/api/v1/mcp, so your code or MCP clients such as Claude can read the wallets Kahyna follows, their records, where they agree and Kahyna’s own track record, with a key from your account page sent as a Bearer token or an X-API-Key header. A free key reads the track record, 10 requests a week; a paid Pro subscription opens the wallets, their records, the Following list, positions and convergence, 100 a week, and Max, not on sale yet, will carry 10,000. A new account’s free days of Pro do not raise a key’s allowance, and responses never include a wallet address or a venue price.
Get a key
Sign in, open your account page and create a key. It needs a confirmed email, and it is shown once, so copy it then. Send it on every request as Authorization: Bearer khy_…, or as X-API-Key: khy_…. The shell examples below read it from KAHYNA_API_KEY, so set that first (export KAHYNA_API_KEY=khy_…) and it never lands in your shell history. Revoke a key there at any time.
Your weekly allowance
The allowance resets every Monday at 00:00 UTC. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. A refused request (no key, a Pro endpoint on a free key, a bad parameter) costs nothing. See Pro.
A new account’s free days of Pro open the site, not the API: a key stays on the Free allowance until the account subscribes.
Endpoints
Endpoints are under https://kahyna.com/api/v1/data and answer JSON in the same envelope as the rest of Kahyna. All are GET except following a wallet (PUT) and unfollowing it (DELETE).
| Path | Plan | What it returns |
|---|---|---|
/wallets | Pro | The wallets we follow, ranked: settled bets, win rate, how far each beat the odds, P&L and return on money staked. One row per wallet and desk.
|
/wallets/{wallet_id} | Pro | One wallet in full: its record, its desks, its last ten results, typical hold, profit factor, how much of its profit came from one bet, and its $100-a-bet curve. |
/track-record | Free | Kahyna’s own public record: calls logged, settled calls won and lost, and the win rate over them, losses included. |
/usage | Free, not charged | This week’s allowance: used, remaining, and when it resets. Reading it costs nothing. |
/wallets/{wallet_id}/positions | Pro | What one wallet holds now: market, side, its average entry price and the share of its open book. |
/convergence | Pro | Markets several followed wallets hold together: the side most are on, how strongly they agree, what each side’s shares pay if it wins and the price they paid, and Kahyna’s probability where it has one.
|
/following | Pro | The wallets this account follows, newest first, each with its main desk’s record and how many positions it is live in where we track that. |
PUT /following/{wallet_id} | Pro | Follow a wallet. Following one already on the list changes nothing. An account follows at most 50. |
DELETE /following/{wallet_id} | Pro | Stop following a wallet. Not an error if it was not on the list. |
/following/positions | Pro | What the followed wallets hold now: market, wallet, side, average entry price and share of that wallet’s open book. |
/activity | Pro | The newest trades of the verified wallets, or of your list: market, outcome, shares, average fill price and money, with the wallet’s record. The last 12 hours, newest first.
|
An example
curl -H "Authorization: Bearer $KAHYNA_API_KEY" \
"https://kahyna.com/api/v1/data/wallets?sort=evidence&limit=2"{
"data_mode": "production",
"as_of": "2026-09-26T16:00:00+00:00",
"ttl_s": 0,
"data": {
"sort": "evidence", "desk": null, "limit": 2, "offset": 0, "next_offset": 2,
"wallets": [
{ "wallet_id": "5f1c09a2b7e84d3c", "label": "0x4a467cd9", "desk": "sports",
"settled_bets": 212, "wins": 151, "win_rate": 0.7123,
"beats_odds_pts": 18.4, "pnl_usd": 21155.0, "staked_usd": 38000.0,
"return_on_capital": 0.5567 }
]
}
}Errors
Errors are application/problem+json with a title and a plain explanation.
401No key, an unknown key or a revoked one. Nothing is charged.402A Pro endpoint called with a free key. Nothing is charged.404We do not hold that wallet in full, or the id is not one we issued.409Your list is full: unfollow a wallet to follow another. Nothing is charged.422A parameter outside what the endpoint takes. Nothing is charged.429This week’s allowance is used. Retry-After says when it comes back.
MCP, for AI assistants
The same reads are MCP tools at https://kahyna.com/api/v1/mcp, with the same key and the same allowance: one tool call is one request. Connecting and listing the tools need no key and cost nothing; every tool call needs one. In Claude Code:
claude mcp add --transport http kahyna https://kahyna.com/api/v1/mcp \
--header "Authorization: Bearer $KAHYNA_API_KEY"In Claude Desktop, through mcp-remote:
{
"mcpServers": {
"kahyna": {
"command": "npx",
"args": ["mcp-remote", "https://kahyna.com/api/v1/mcp",
"--header", "Authorization: Bearer khy_YOUR_KEY"]
}
}
}list_walletsThe ranked wallets (Pro)get_walletOne wallet in full (Pro)get_track_recordKahyna’s public recordget_wallet_positionsWhat a wallet holds now (Pro)get_convergenceWhere wallets agree (Pro)list_followed_walletsThe wallets on your list (Pro)follow_walletAdd a wallet to your list (Pro)unfollow_walletRemove a wallet from your list (Pro)get_followed_positionsWhat your wallets hold now (Pro)get_wallet_activityThe newest trades of the wallets we follow (Pro)
What the data is, and is not
- Kahyna’s own analytics, computed from public on-chain trades and our own models.
- No wallet address, ever: a wallet is an opaque
wallet_idand a 10-character label. - No venue prices, bids or asks. Those belong to the venues.
- Records and estimates, not advice. Past results do not promise future ones.
Questions people ask
Can I use Kahyna with ChatGPT or Claude?
Kahyna works with MCP clients such as Claude: its MCP server at https://kahyna.com/api/v1/mcp takes an API key from your account page, sent as a Bearer token or an X-API-Key header, kahyna.com/developers shows the setup for Claude Code and Claude Desktop, and any MCP-capable assistant that can send that key can use it. A free key reads Kahyna’s track record, 10 requests a week. Pro opens the wallets Kahyna follows, 100 a week, with a paid subscription only: a new account’s free days of Pro do not raise a key’s allowance.