---
title: "TradeX (formerly PokePerps)"
url: "https://ankush.one/projects/2026.pokeperps/"
description: "A perpetual futures exchange for trading Pokemon card prices on Solana. Started as PokePerps, was renamed TradeX in February 2026, and was shut down a few weeks later."
author: "Ankush Singh"
date: 2026-02-16
lastmod: 2026-10-13
tags: ["solana","defi","ai-agents"]
status: "archived"
website: "https://tradex.cards"
links:
  - {"archived":false,"label":"Website","url":"https://tradex.cards"}
  - {"archived":false,"label":"API Docs","url":"https://tradex.cards/docs"}
  - {"archived":false,"label":"MCP Server","url":"https://www.npmjs.com/package/@tradexcards/mcp"}
  - {"archived":false,"label":"Audit report","url":"https://tradex.cards/audit-032026.pdf"}
  - {"archived":false,"label":"GitHub","url":"https://github.com/tradexcards"}
---

# TradeX (formerly PokePerps)

Links:

- [Website](https://tradex.cards)
- [API Docs](https://tradex.cards/docs)
- [MCP Server](https://www.npmjs.com/package/@tradexcards/mcp)
- [Audit report](https://tradex.cards/audit-032026.pdf)
- [GitHub](https://github.com/tradexcards)

TradeX (it started life as PokePerps) let you go long or short on Pokemon card prices with up to 20x leverage. Prices were scraped from TCGPlayer every 30 seconds and published on-chain via a keeper oracle. All trading was non-custodial, with positions, margin and settlement handled entirely by the on-chain program.

I renamed it TradeX on 22 February 2026, moved it to tradex.cards and its own GitHub org, and redeployed the program to a fresh mainnet address the next day. An independent auditor, calc1f4r, then spent about eight days on the whole Solana program and found 1 high, 5 medium and 6 low severity issues. I fixed all of them on 4 March, with one follow-up the next day, and cut max leverage from 50x to 20x at the same time. The [audit report](https://tradex.cards/audit-032026.pdf) is public.

I stopped working on it in March 2026 and the backend is offline now, so you can no longer trade on it. The program, the audit and the write-up below are what's left.

## How It Works

```text
TCGPlayer.com                    Solana Blockchain
(card prices)                    (settlement layer)
      |                                |
      | scrape every 30s               |
      v                                v
+----------+    publish prices    +--------------+
| Backend  | ------------------> |   On-Chain   |
| (Elysia) |                     |   Program    |
|          | <------------------ |              |
|          |    read state       | (positions)  |
+----+-----+                     +--------------+
     | REST + WebSocket                 ^
     v                                  | sign txs
+----------+                            |
| Frontend | ---------------------------+
| (React)  |   Phantom wallet
+----------+
```

The backend scraped TCGPlayer marketplace data and published price updates on-chain. The Solana program (Rust + [Pinocchio](https://github.com/anza-xyz/pinocchio)) handled all the trading logic: opening and closing positions, margin calculations, liquidations and settlement. The frontend connected through Phantom for signing.

## AI Agent Integration

TradeX shipped an [MCP server](https://www.npmjs.com/package/@tradexcards/mcp) so Claude and other AI agents could trade programmatically. It was set up like this (it won't work now that the backend is gone):

```bash
# Claude Code (read-only)
claude mcp add tradex -- npx -y @tradexcards/mcp

# With trade execution
claude mcp add tradex -e TRADEX_KEYPAIR=/path/to/keypair.json -- npx -y @tradexcards/mcp
```

There was also a [SKILL.md](https://tradex.cards/SKILL.md) and an [llms.txt](https://tradex.cards/llms.txt) for agents that preferred fetching instructions directly.

## Tech Stack

| Component            | Technology                         |
| -------------------- | ---------------------------------- |
| **On-chain program** | Rust + Pinocchio (Solana)          |
| **Backend**          | TypeScript + Elysia + SQLite       |
| **Frontend**         | React 19 + Tailwind v4 + shadcn/ui |
| **Wallet**           | Phantom Connect                    |
| **Runtime**          | Bun                                |
| **AI integration**   | MCP server (`@tradexcards/mcp`)    |

## Program Addresses

| Network | Program ID                                     |
| ------- | ---------------------------------------------- |
| Mainnet | `TRDXCHHWWZdQXxkGFJxek1KU2hn19687xztNBy99Ca1` |
| Mainnet (PokePerps, old) | `8hH5CWo14R5QhaFUuXpxJytchS6NgrhRLHASyVeriEvN` |
| Devnet  | `AzYLMDPsNDvzb8ShhVzNWBVv6k9ogCKpqdjWMhnkATdz` |

At the end of March 2026 a friend, [internettrashh](https://github.com/internettrashh), built an autonomous trading agent on top of TradeX, and we entered it together in Protocol Labs' PL_Genesis hackathon ([repo](https://github.com/ankushKun/pl-hackathon)).
