{"openapi": "3.0.3", "info": {"title": "中碳交·全国碳市场 CEA 行情", "version": "1.0.0", "description": "查询全国碳市场 CEA 最近已公布收盘行情与盘中/最近交易日成交概况。数据来源为上海环境能源交易所，仅供参考，不构成投资建议。"}, "servers": [{"url": "https://mp.tanpancha.com"}], "paths": {"/s/quote.json": {"get": {"operationId": "getLatestCeaQuote", "summary": "查询全国碳市场 CEA 最新收盘行情", "description": "适用于“今日碳价、最新收盘价、开高低收、涨跌幅、成交量额、挂牌/大宗/竞价成交结构”等问题。收盘价为交易所官方口径，不等同于盘中最后一笔成交价。", "responses": {"200": {"description": "最新已发布交易日的客观行情", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/QuoteResponse"}}}}}}}, "/s/trade-live.json": {"get": {"operationId": "getCeaTradeOverview", "summary": "查询全国碳市场 CEA 实时或最近交易日成交概况", "description": "盘中仅返回挂牌协议连续竞价实时累计，并明确大宗协议盘后统计；非盘中返回最近已发布交易日全天总量和总额。", "responses": {"200": {"description": "盘中或最近交易日成交概况", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/TradeResponse"}}}}}}}}, "components": {"schemas": {"QuoteResponse": {"type": "object", "required": ["ok", "source", "disclaimer"], "properties": {"ok": {"type": "boolean"}, "trade_date": {"type": "string", "format": "date"}, "close_price": {"type": "number", "nullable": true}, "unit": {"type": "string", "example": "元/吨"}, "change_text": {"type": "string"}, "change_rate_pct": {"type": "number", "nullable": true}, "open_price": {"type": "number", "nullable": true}, "high_price": {"type": "number", "nullable": true}, "low_price": {"type": "number", "nullable": true}, "total_volume_wan_ton": {"type": "number", "nullable": true}, "total_amount_yi_yuan": {"type": "number", "nullable": true}, "breakdown": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string"}, "volume_wan_ton": {"type": "number", "nullable": true}}}}, "source": {"type": "string"}, "disclaimer": {"type": "string"}, "note": {"type": "string"}, "summary": {"type": "string"}}}, "TradeResponse": {"type": "object", "required": ["ok", "source", "disclaimer"], "properties": {"ok": {"type": "boolean"}, "trade_date": {"type": "string", "format": "date"}, "as_of": {"type": "string", "nullable": true}, "is_live": {"type": "boolean"}, "market_status": {"type": "string"}, "listed_volume_wan_ton": {"type": "number", "nullable": true}, "listed_amount_yi_yuan": {"type": "number", "nullable": true}, "total_volume_wan_ton": {"type": "number", "nullable": true}, "total_amount_yi_yuan": {"type": "number", "nullable": true}, "source": {"type": "string"}, "disclaimer": {"type": "string"}, "note": {"type": "string"}, "summary": {"type": "string"}}}}}}