# ftw.trade

> ftw.trade is a platform for building, testing and running trading systems on chain: typed sources feed Flowscript strategies and workflows, which trade project wallets on paper or live. These skills teach an AI agent to use it. Connect over MCP at https://ftw.trade/api/mcp (the same skills are its list_skills and get_skill tools).

## Skills

- [ftw-platform](https://ftw.trade/skills/ftw-platform): Start here for anything on ftw.trade. The mental model (sources feed metrics and Flowscript strategies, which drive actions on project wallets, on paper or live), the nouns and how they connect, how an agent connects, and which ftw skill to read next.
- [ftw-mcp](https://ftw.trade/skills/ftw-mcp): Connect an agent to ftw.trade's MCP server and use its tools well. Authentication (OAuth or an API token), live-trading consent, how calls are checked and refused, conventions shared by every tool, and the generated catalog of every tool by area.
  - [references/tools.md](https://ftw.trade/skills/ftw-mcp/references/tools.md)
- [ftw-projects](https://ftw.trade/skills/ftw-projects): Create and change ftw.trade projects. A project is one JSON document of wallets (in categories), market, mode, tabs and widgets, launches, liquidity positions and strategies; this covers writing it, templates, dashboards and custom charts, reading balances and P&L, and ending a project.
  - [references/project-guide.md](https://ftw.trade/skills/ftw-projects/references/project-guide.md)
- [ftw-dashboards](https://ftw.trade/skills/ftw-dashboards): Design great-looking ftw.trade dashboards purely in config, for a strategy, a vault or a whole project, that show at a glance how it is doing and can be shared by link. Covers the design rules, the layout grid, which chart answers which question, performance math in config (drawdown, returns since start, rolling Sharpe, monthly returns, daily P&L), headline stats cards, looks and themes, ready-made tab recipes as update_dashboard calls, and the check loop with check_dashboard. Use whenever you build, redesign or review a dashboard.
- [ftw-sources](https://ftw.trade/skills/ftw-sources): Feed data into ftw.trade. Index chains and pools, use shared market data and perps markets, and declare typed sources (TypeScript, pushed with a key, or a contract event decoded from logs), sum types, signals, and how strategies, workflows and scripts read them. Use when a system needs data it does not have yet.
- [ftw-flowscript](https://ftw.trade/skills/ftw-flowscript): Write Flowscript, ftw.trade's language for strategies and indicators. Program shape on ftw.trade, types and na, series, triggers, orders, tapes (sources and swaps), enums and match, phases, libraries, contract interfaces and the std modules, exact u256 integers, trained models (regression, SVM, k-NN), invariants (risk limits), and tests. Use whenever you write or read Flowscript.
  - [references/language.md](https://ftw.trade/skills/ftw-flowscript/references/language.md)
  - [references/modules.md](https://ftw.trade/skills/ftw-flowscript/references/modules.md)
- [ftw-strategies](https://ftw.trade/skills/ftw-strategies): Take a Flowscript strategy on ftw.trade from idea to a running deployment safely. Check, save, test, backtest and read the report, run on paper or a project's wallets, monitor and stop it, and the rules that keep funds safe. Use when writing, changing, backtesting or deploying a strategy.
  - [references/strategy-guide.md](https://ftw.trade/skills/ftw-strategies/references/strategy-guide.md)
- [ftw-ideas](https://ftw.trade/skills/ftw-ideas): Turn a trading idea someone shared (a post or thread on X, an article, a podcast or video with captions, or pasted text) into a Flowscript strategy on ftw.trade and backtest it. Read the link with read_link, pull out its rules, code them, test them on the market it names, and say plainly which rules were written down and which were assumed. Use when the person pastes a link or an idea and asks for a strategy from it.
- [ftw-protocols](https://ftw.trade/skills/ftw-protocols): The DeFi protocols a ftw.trade strategy uses directly (Aave, Spark, Compound, Kamino, Morpho, Fluid, Euler, Yearn, Gearbox, Jupiter Lend, Spark Savings, Maple, Sky, Ethena, Pendle, Derive) and the earn intents. How each works, how a strategy uses it from Flowscript, how to make a strategy on it pay more, and what the paper book leaves out. Use when a strategy lends, deposits in a vault, holds a fixed rate, trades options or routes by asset.
  - [references/aave.md](https://ftw.trade/skills/ftw-protocols/references/aave.md)
  - [references/aerodrome.md](https://ftw.trade/skills/ftw-protocols/references/aerodrome.md)
  - [references/clanker.md](https://ftw.trade/skills/ftw-protocols/references/clanker.md)
  - [references/compound.md](https://ftw.trade/skills/ftw-protocols/references/compound.md)
  - [references/cow.md](https://ftw.trade/skills/ftw-protocols/references/cow.md)
  - [references/derive.md](https://ftw.trade/skills/ftw-protocols/references/derive.md)
  - [references/earn.md](https://ftw.trade/skills/ftw-protocols/references/earn.md)
  - [references/ethena.md](https://ftw.trade/skills/ftw-protocols/references/ethena.md)
  - [references/euler.md](https://ftw.trade/skills/ftw-protocols/references/euler.md)
  - [references/flap.md](https://ftw.trade/skills/ftw-protocols/references/flap.md)
  - [references/fluid.md](https://ftw.trade/skills/ftw-protocols/references/fluid.md)
  - [references/gearbox.md](https://ftw.trade/skills/ftw-protocols/references/gearbox.md)
  - [references/jito.md](https://ftw.trade/skills/ftw-protocols/references/jito.md)
  - [references/jupiter.md](https://ftw.trade/skills/ftw-protocols/references/jupiter.md)
  - [references/jupiter_lend.md](https://ftw.trade/skills/ftw-protocols/references/jupiter_lend.md)
  - [references/kamino.md](https://ftw.trade/skills/ftw-protocols/references/kamino.md)
  - [references/kamino_earn.md](https://ftw.trade/skills/ftw-protocols/references/kamino_earn.md)
  - [references/kyberswap.md](https://ftw.trade/skills/ftw-protocols/references/kyberswap.md)
  - [references/launchlab.md](https://ftw.trade/skills/ftw-protocols/references/launchlab.md)
  - [references/maple.md](https://ftw.trade/skills/ftw-protocols/references/maple.md)
  - [references/marginfi.md](https://ftw.trade/skills/ftw-protocols/references/marginfi.md)
  - [references/metric_omm.md](https://ftw.trade/skills/ftw-protocols/references/metric_omm.md)
  - [references/morpho.md](https://ftw.trade/skills/ftw-protocols/references/morpho.md)
  - [references/pendle.md](https://ftw.trade/skills/ftw-protocols/references/pendle.md)
  - [references/pons.md](https://ftw.trade/skills/ftw-protocols/references/pons.md)
  - [references/pumpfun.md](https://ftw.trade/skills/ftw-protocols/references/pumpfun.md)
  - [references/pumpswap.md](https://ftw.trade/skills/ftw-protocols/references/pumpswap.md)
  - [references/sky.md](https://ftw.trade/skills/ftw-protocols/references/sky.md)
  - [references/spark.md](https://ftw.trade/skills/ftw-protocols/references/spark.md)
  - [references/spark_savings.md](https://ftw.trade/skills/ftw-protocols/references/spark_savings.md)
  - [references/uniswap.md](https://ftw.trade/skills/ftw-protocols/references/uniswap.md)
  - [references/virtuals.md](https://ftw.trade/skills/ftw-protocols/references/virtuals.md)
  - [references/yearn.md](https://ftw.trade/skills/ftw-protocols/references/yearn.md)
  - [references/zora.md](https://ftw.trade/skills/ftw-protocols/references/zora.md)
- [ftw-workflows](https://ftw.trade/skills/ftw-workflows): Build ftw.trade workflows, the server-side sequences that trade a project's wallets. Triggers (manual, price, launch, signal, a strategy metric, new launches as a sniper), step kinds (swap, order, wait, watch, strategy and stages, flowscript, pool, perp, deposit, withdraw, bridge), typed outputs and expressions, arming and control, sniper backtests, and launch workflows. Also when to use a built-in action versus a TypeScript script.
- [ftw-scripts](https://ftw.trade/skills/ftw-scripts): Write hosted TypeScript scripts for ftw.trade with @ftw/sdk. Automations (triggers, policy, wallet handles, ctx), typed sources that poll an API, signals, secrets, versions and deploys, logs and emitted rows, limits, and when a script is the right tool instead of Flowscript or a workflow step.
  - [references/automation-guide.md](https://ftw.trade/skills/ftw-scripts/references/automation-guide.md)
  - [references/sdk.md](https://ftw.trade/skills/ftw-scripts/references/sdk.md)
- [ftw-wallets-and-funds](https://ftw.trade/skills/ftw-wallets-and-funds): Handle money on ftw.trade. Project, account and main wallets, paper versus live and the live-trading consent, funding and returning funds, sweeping, moving funds between chains by the best bridge route (Relay, Circle CCTP), perps on Hyperliquid and Lighter (testnet and mainnet), strategy vaults (making one from a paper run or a hand-traded paper or live project, raising for it, investing and redeeming at its dealings, upgrading its strategy), and wallet warming. Use before anything that moves funds.
  - [references/chains.md](https://ftw.trade/skills/ftw-wallets-and-funds/references/chains.md)
- [ftw-recipes](https://ftw.trade/skills/ftw-recipes): Build common trading systems on ftw.trade end to end, as sequences of MCP calls. A backtested strategy trading project wallets, buying on a pushed signal, deciding on a contract event, a TypeScript signal agent, accumulate-then-take-profit stages, a spot position hedged on a perp, a sniper, a dashboard, a yield router across lenders, a funding trade on a perp, a strategy fund, and finding why a strategy has not traded. Use when asked to build something whole rather than one part.
- [ftw-chart-terminal](https://ftw.trade/skills/ftw-chart-terminal): Work the ftw.trade trading terminal (charts.ftw.trade/trade) as its assistant. Read the charted market, place and close paper orders, set exits, report holdings and trades, write and test perp strategies, find funding pairs and portfolios, run and watch them, and keep real money behind the person's press. Use for any ask on the trade page.
  - [references/pairs-and-portfolios.md](https://ftw.trade/skills/ftw-chart-terminal/references/pairs-and-portfolios.md)
  - [references/strategies.md](https://ftw.trade/skills/ftw-chart-terminal/references/strategies.md)

Start with ftw-platform. Each skill is a SKILL.md with front matter, so it can be copied into any agent that loads skills.
