Weather Fi
Sign in
Agent trading · simulation

Built for programs that trade the weather

Weather Fi can be traded by a program as easily as by a person. Give an agent its own key, its own budget and its own limits, and it reads the markets and the futures board, asks for a quote and places orders - through a REST API or, for a model that speaks the Model Context Protocol, an MCP server. Every order can carry the worst price it accepts and an id that makes a retry safe.

Simulation only: every balance, price and payout is virtual sUSDT. Nothing here is real money and nothing can be withdrawn.

Its own account

An agent starts with nothing. You move sUSDT from your balance into its account, and that is the most it can lose. Move it back whenever you like; what the agent holds and earns stays separate from your own portfolio.

Limits you set

Which products it may trade, the most one order may spend, the most a day's buys may spend, and when the key expires. A key can be read-only. Change any of it, replace the key or revoke the agent at once, from this page.

Orders a program can trust

A limit price is checked in the same transaction as the fill, so a price that moved does not cost more than agreed. A clientOrderId is executed at most once. Every order, filled or refused, is in a log with its reason.

No program of your own? Put the agent on autopilot

Give an agent a strategy and Weather Fi runs it: it buys where the market's price stands away from the model figure, sells when the gap closes, and keeps inside the agent's limits. Set the rules, preview a pass, and watch the record.

Set up an autopilot →

Your agents

Up to 5 at a time. A key is shown once, when it is made.

Reading your agents…

Quick start

  1. Make an agent above, move some sUSDT into it and copy its key (wfa_...).
  2. Send the key as Authorization: Bearer wfa_... on every request to https://weatherfi.io/api/agent/v1.
  3. Read /account first: it returns the balance and what is left of the limits.
  4. List /markets or /futures, price an order with /quote, then post it to /orders.
curl -H "Authorization: Bearer $WF_KEY" https://weatherfi.io/api/agent/v1/account

curl -H "Authorization: Bearer $WF_KEY" "https://weatherfi.io/api/agent/v1/markets?type=station-day&closesWithinHours=24&limit=5"
curl -X POST https://weatherfi.io/api/agent/v1/orders \
  -H "Authorization: Bearer $WF_KEY" -H "Content-Type: application/json" \
  -d '{"product":"futures","id":"HDD-KJFK-26W48","side":"LONG","spend":50,"limitPrice":0.55,"clientOrderId":"run-2026-11-17-01"}'

The answer to an order is { "ok": true, "order": { "status": "filled", "fill": { "shares", "amount", "avgPrice", "priceAfter" }, "balanceAfter" } }, or { "ok": false, "error": { "code", "message", "retryable" } } with a matching HTTP status. Add "dryRun": true to run every check and get the quote without trading.

MCP server

The same functions as tools, at https://weatherfi.io/api/agent/mcp (Streamable HTTP, stateless). A client lists the tools without a key; calling one needs the agent key in the Authorization header. A tool that fails answers with the same code and message as the REST API, so the model can decide what to do next.

{
  "mcpServers": {
    "weatherfi": {
      "type": "http",
      "url": "https://weatherfi.io/api/agent/mcp",
      "headers": {
        "Authorization": "Bearer wfa_..."
      }
    }
  }
}

Tools: get_account, list_markets, get_market, list_futures, get_contract, quote_order, place_order, list_positions, list_orders.

Reference

Machine-readable: discovery document · OpenAPI 3.1 · llms.txt

EndpointMCP toolWhat it does
GET /accountget_accountThe agent's balance in virtual sUSDT, its permissions, its per-order limit, and what is left of today's spending limit.
GET /marketslist_marketsYes/no weather markets. By default the ones open for trading, soonest to close first. Each row has the condition, the YES and NO prices (each share pays 1 sUSDT if right), the closing time and how it settles.
GET /markets/{id}get_marketOne market with the market maker's state (LMSR: qYes, qNo, b - enough to price any order locally) and the agent's own position in it.
GET /futureslist_futuresWeather index futures (heating, cooling and growing degree days at one station over a week or a month) and the simulated real-asset futures that follow them. A LONG share pays (final value - lo) / (hi - lo) sUSDT, held to 0..1; a SHORT share pays the rest of 1. Each row has the band, the LONG and SHORT prices, the value the price implies and Weather Fi's model figure.
GET /futures/{symbol}get_contractOne contract by symbol or id, with the market maker's state, open interest and the agent's own position.
POST /quotequote_orderWhat an order would cost or return right now: shares, average price, and the price after it. Nothing is placed. The price moves with every trade, so a quote is not a promise - use limitPrice on the order.
POST /ordersplace_orderBuy or sell against the market maker. Fills at once, in full, or not at all. Send limitPrice to bound the price and clientOrderId to make a retry safe. dryRun checks and quotes without trading.
GET /positionslist_positionsEverything the agent holds in markets and futures, with what each position is worth at the current price, plus balance and equity.
GET /orderslist_ordersThe agent's orders, newest first, filled or refused, each with its fill or the reason it was refused. source says who placed it: key (this API) or autopilot (a strategy the owner switched on for the agent, which trades the same account).
Conventions
response
- Success: { "ok": true, ... }. Failure: { "ok": false, "error": { "code", "message", "retryable", ... } } with a matching HTTP status.
money
- sUSDT, virtual, to two decimals.
prices
- Per share, between 0 and 1. A share pays at most 1 sUSDT, so a price is also the implied probability (markets) or the position inside the band (futures).
time
- ISO 8601, UTC.
temperature
- Degrees Celsius in every field, even where the site shows Fahrenheit.
orders
- Market orders against an automated market maker (LMSR): filled at once and in full, or refused. There is no order book and no resting order.
limitPrice
- Worst average price per share you accept, checked in the same transaction as the fill.
idempotency
- Send clientOrderId (or an Idempotency-Key header) on any order you might retry: one id is executed at most once.
paging
- markets: offset / nextOffset. orders: before / nextBefore.
Limits
Requests
- 300 per 60 s for reads and quotes, 60 per 60 s for orders, per key. Over it: 429 with retryAfter.
Per order
- 250 sUSDT unless you set another figure (up to 100,000).
Per day
- 2,000 sUSDT of buys per UTC day unless you set another figure. Sales are never held back.
Budget
- the balance of the agent's own account.
Products
- prediction markets and futures. Temperature ladders and insurance are not in the agent API yet.
Error codes
INVALID_REQUEST
The request is malformed; the message says which field. Do not retry unchanged.
UNAUTHENTICATED
No key, or a key we do not know.
KEY_REVOKED
The owner revoked this key.
KEY_EXPIRED
The key passed its expiry.
READ_ONLY_KEY
The key may read but not trade.
PRODUCT_NOT_ALLOWED
The key may not trade this product.
NOT_FOUND
No such market, contract or order.
MARKET_CLOSED
Trading is closed on this market or contract.
INSUFFICIENT_BALANCE
The agent account does not hold enough sUSDT. Its owner funds it.
NOT_ENOUGH_SHARES
The agent holds fewer shares than the sale asks for.
LIMIT_PRICE
The fill would be worse than limitPrice; nothing traded. Re-quote and decide again.
ORDER_LIMIT
spend is above the key's per-order limit (maxOrder).
DAILY_LIMIT
The key's buys have reached its daily limit; the error says when it resets (00:00 UTC).
DUPLICATE_IN_PROGRESS
An order with this clientOrderId is still executing. Retry shortly with the same id.
IDEMPOTENCY_MISMATCH
This clientOrderId was used for a different order. Use a new id.
TIMED_OUT
An earlier request with this clientOrderId ended before the trade ran; it was not executed. Use a new id.
ORDER_REJECTED
The order was refused for the reason in the message.
RATE_LIMITED
Too many requests; wait retryAfter seconds.
TEMPORARILY_UNAVAILABLE
Could not execute just now; nothing traded. Retry with the same clientOrderId.
NOT_ENABLED
Agent trading is not switched on.
INTERNAL
A failure on our side.

Market prices, contract terms and the model figures in these responses are Weather Fi's own. Weather readings and forecasts are not served here: they come from the Weather Market oracle (https://weathermarket.io), which has its own API and MCP server for agents.

Operating an activity that requires a licence under Korean gambling law without holding one is prohibited by the terms.

How each product is priced and settled: rules. Site: https://weatherfi.io.