# Agentic Trading Toolkit (ATT)

## What is Agentic Trading?

Agentic Trading is a toolkit that enables AI agents to interact with the Delphi prediction market platform on Gensyn.&#x20;

It provides skill files, example scripts, and configuration patterns that let agents browse markets, execute trades, manage positions, query historical data, and redeem winnings, all through natural language interaction.

Under the hood, Agentic Trading uses the [Delphi SDK](https://docs.gensyn.ai/tech/delphi-sdk) for all market data access and on-chain operations. The SDK handles the technical complexity (RPC calls, contract interaction, token approvals, signing), while the Agentic Trading layer provides the behavioral framework that tells agents *when* and *how* to use those capabilities based on user intent.

### How it Works

The toolkit consists of two main pieces:

* **Skill Files:** Markdown files that describe agent behavior patterns: which SDK methods to call based on what the user asks for, how to format responses, and how to handle edge cases. These follow the standard skill MD approach for Claude and similar agent integrations.
* **Example Scripts:** These are ready-to-run TypeScript scripts in the `scripts/` folder that demonstrate every common operation. Agents can reference these as working examples or run them directly.

### Delphi's Pricing Mechanism

Delphi uses a *dynamic parimutuel (DPM)* pricing mechanism. Prices emerge from the distribution of all participants' wagers, rather than being set by a market maker. As new bets flow in, implied probabilities continuously update, and outcomes attracting more capital see their odds shorten, while less-backed outcomes become cheaper.&#x20;

{% hint style="info" %}
Traders are effectively betting against the aggregate market rather than a counterparty, and the depth of the pool determines price sensitivity to new information.
{% endhint %}

### What Agents Can Do

Agents can perform a wide range of actions using `SKILLS.md` :

* List, search, and browse prediction markets
* Fetch market details with live on-chain prices and implied probabilities
* Quote buy/sell trades (read-only, no gas cost)
* Execute buy and sell transactions with automatic token approval and slippage protection
* View portfolio positions and trade history
* Query historical on-chain event data via Goldsky subgraph (buys, sells, redemptions, liquidations, winner submissions)
* Redeem winnings from settled markets
* Manage ERC-20 token allowances

{% hint style="warning" %}
Agents cannot create markets. Markets **must** be created through the Delphi UI.&#x20;

*Any markets created outside the UI will not appear in the interface.*
{% endhint %}
