PredictAsiaX API Docs

Weather Markets

Open a YES/NO market on one station, one day and one number: the highest temperature, the lowest temperature or the total rainfall. Every market settles from the station's own official publication. The title, rules and settlement parameters are generated from the station catalog, so the same question always maps to the same market.

Stations and sources

SourceStationsMetricsUnitsFirst read after the day ends
Hong Kong Observatory, Weather and Radiation Level Report (RYES)27 in Hong KongHighest and lowest temperature at all 27; rainfall at the Observatory headquarters°C, mm30 min
data.gov.sg real-time readings (National Environment Agency)17 in SingaporeHighest and lowest temperature, rainfall°C, mm30 min
Japan Meteorological Agency daily observation table11 in JapanHighest and lowest temperature, rainfall°C, mm2 h
US National Weather Service Daily Climate Report (CLI)7 in the USHighest and lowest temperature, rainfall°F, in1 h, then the final report issued the following morning
Airport METAR and SPECI reports (aviationweather.gov)40 airports across AsiaHighest and lowest temperature°C75 min
Central Weather Administration (Taiwan) open data: daily station statistics and daily rainfall31 in TaiwanHighest and lowest temperature, rainfall°C, mm3 h

The full list, with each station's id, local UTC offset and supported metrics, is returned by GET /v1/weather/stations. Filter with provider (hko, sg, jma, nws, metar, cwa) or country (ISO 3166-1 alpha-2, for example JP).

Open a market

POST /v1/weather/markets with an API key that has builder:apps:write.

curl -X POST https://api.predictasiax.com/v1/weather/markets \
  -H "Authorization: Bearer $PAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"station_id":"hko:HKO","metric":"temp_max","comparator":"above","threshold":30,"date":"2027-05-01","deposit_amount":1000}'
FieldMeaning
station_idAn id from the station catalog, for example jma:47662 (Tokyo).
metrictemp_max, temp_min or precip_total. The station must publish it.
comparatorabove (>), at_or_above (≥), below (<) or at_or_below (≤).
thresholdIn the station's unit. At most 1 decimal place, or 2 for rainfall in inches. Temperature within −50..55 °C or −60..130 °F; rainfall 0 or more.
dateYYYY-MM-DD, the station's local calendar day. The day must end at least 1 hour from now and at most a year ahead.
deposit_amountCreator deposit locked from your balance when the market is opened, under the same rules as other creator markets. A request without enough deposit is refused with DEPOSIT_REQUIRED, and detail.required gives the minimum.

The market id is derived from the spec (for example wx-hko-hko-tmax-20270501-gt-300). The first caller opens the market and locks the deposit; the response is 201 with created: true. Anyone who sends the same spec afterwards gets the existing market with 200 and created: false, and nothing is charged. The response carries the title, the full rules, trading_closes_at, the source and the attribution text.

Limit: 30 create requests per minute per account. New markets are listed under the Weather category.

How a market settles

Data attribution

Endpoints

MethodPathAuth
GET/v1/weather/stationsNone required
POST/v1/weather/marketsAPI key with builder:apps:write

Spec version 2.7.63 · Last updated 2026-11-29