Cn Futures

v0.1.0
io.github.pipeworx-io/cn-futures Checked 2 days ago Published 19 days ago

China Futures MCP. Keyless.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cn_futures_daily

Daily settlement report for one China commodity futures product on one trading day: every contract's open, high, low, close, settlement, prior settlement, volume (lots), open interest and turnover, plus a main contract (highest open interest). Covers SHFE (rebar rb, gold au, silver ag, copper cu...), INE (crude sc, rubber nr...), ZCE (cotton CF, sugar SR, apples AP...) and GFEX (lithium carbonate lc, industrial silicon si...). A listed-but-dormant product (e.g. ZCE wheat WH) returns status "no_listed_activity" with an explanation, not an empty list. DCE (Dalian) is not available. Prices in CNY…

ParameterTypeDescription
product *stringExchange product code, case-insensitive: "rb" rebar, "au" gold, "ag" silver, "CF" cotton, "WH" wheat, "lc" lithium carbonate
datestringTrading day, YYYY-MM-DD or YYYYMMDD. Omit for the latest published day. Weekends and holidays have no file.
exchangestringOptional. Inferred from the product code when omitted.

cn_futures_products

List every product in one China futures exchange's daily report (SHFE, INE, ZCE or GFEX) for a trading day, ranked by open interest: contract count, total volume, total open interest, main contract and its settlement, and whether the product has any trading activity. Use to discover product codes before cn_futures_daily. Defaults to the latest published trading day.

ParameterTypeDescription
exchange *stringExchange to list
datestringTrading day, YYYY-MM-DD or YYYYMMDD. Omit for the latest published day.

cn_futures_warehouse_stocks

Shanghai Futures Exchange daily warehouse-receipt (warrant) stocks: gold and silver in kilograms, base metals, rebar, hot-rolled coil and other products in tonnes, with the day-over-day change and the per-warehouse breakdown. This is stock made into warrants for delivery, not total physical inventory. Pass a product code or name (au, ag, rb, copper...) for the full breakdown, or omit it for a one-line total per product. Defaults to the latest published report.

ParameterTypeDescription
datestringReport day, YYYY-MM-DD or YYYYMMDD. Omit for the latest published report.
productstringProduct code or name: "au" or "gold", "ag" or "silver", "rb", "cu"... Omit for every product's total.