paramsobject可选
业务参数,契约按 endpoint 选择;请勿再次嵌套 params。
get_mini_trend: {"type":"object","properties":{"market":{"enum":["JP"],"default":"JP","type":"string","description":"市场代码,固定为 JP(日股);可省略,默认 JP。"},"symbols":{"minItems":1,"type":"array","items":{"type":"string"},"description":"日股证券代码列表,可批量查询,例如 [\"6758.jp\", \"7203.jp\"]。"},"timeMode":{"enum":[0,1],"default":0,"type":"number","description":"时间模式:0=实时,1=延时。"}},"required":["symbols"]}
get_orderbook: {"type":"object","properties":{"market":{"enum":["HK","US","CN","JP","GLOBAL"],"type":"string","description":"市场代码:HK(港股)、US(美股)、CN(A股/沪深市场)、JP(日股)、GLOBAL(债券)。"},"assetType":{"enum":["stock","etf","index","bond"],"default":"stock","type":"string","description":"资产类型,默认 stock。 HK 支持 stock/etf/index/bond;其他市场按接口能力选择。"},"symbol":{"type":"string","description":"证券代码,例如 00700.hk、AAPL.us、600519.sh、6758.jp。"}},"required":["market","symbol"]}
get_trade_statistics: {"type":"object","properties":{"market":{"enum":["HK","US","CN","JP"],"type":"string","description":"市场代码:HK(港股)、US(美股)、CN(A股/沪深市场)、JP(日股)。"},"symbol":{"type":"string","description":"证券代码,例如 6758.jp;JP 成交统计总览必填。"},"symbols":{"type":"array","items":{"type":"string"},"description":"批量代码列表,例如 [\"00700.hk\", \"AAPL.us\"];"},"statisticsType":{"enum":["overview","detail"],"type":"string","description":"statisticsType 取值:overview=成交统计总览,detail=成交统计明细。"},"type":{"enum":[0,1,2,3,4],"default":4,"type":"number","description":"成交方向:0=主买,1=主卖,2=中性盘,3=主买和主卖,4=全部。 默认 4。"},"date":{"type":"string","description":"查询日期,格式 YYYY-MM-DD。 JP 成交统计总览省略时查询日本当地当天;非交易日可能无数据。 HK 明细可能返回之前交易日的数据,以记录 date 为准,日期不符时附告警。"},"sortField":{"enum":["price","volume"],"type":"string","description":"明细排序字段,detail 必填:price=统计价位,volume=成交量。"},"sortType":{"enum":[0,1],"default":1,"type":"integer","description":"明细排序方式:0=升序,1=降序,默认 1。"},"pageNum":{"default":1,"minimum":1,"maximum":100000,"type":"integer","description":"detail 页码,从 1 开始,最大 100000。 越界返回 PAGE_OUT_OF_RANGE;核验失败返回 PAGE_EMPTY_UNCONFIRMED。"},"pageSize":{"default":20,"minimum":1,"maximum":200,"type":"integer","description":"detail 每页数量,默认 20,最大 200,建议 20~50。 返回完整页,超出响应预算时报 RESPONSE_TOO_LARGE;缩小页大小后从第一页重新分页。"},"sessionId":{"enum":[-1,1,-2],"default":1,"type":"number","description":"美股交易时段:-1=盘前,1=盘中,-2=盘后。"}},"required":["market","statisticsType"],"allOf":[{"if":{"properties":{"market":{"const":"HK"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"HK"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"US"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"US"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"CN"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"CN"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"JP"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"JP"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"market":{"const":"HK"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["date"]}},{"if":{"properties":{"market":{"const":"HK"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["date"]}},{"if":{"properties":{"market":{"const":"US"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["date"]}},{"if":{"properties":{"market":{"const":"US"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["date"]}},{"if":{"properties":{"market":{"const":"CN"},"statisticsType":{"const":"overview"}},"required":["market","statisticsType"]},"then":{"required":["date"]}},{"if":{"properties":{"market":{"const":"CN"},"statisticsType":{"const":"detail"}},"required":["market","statisticsType"]},"then":{"required":["date"]}},{"if":{"properties":{"statisticsType":{"const":"detail"}},"required":["statisticsType"]},"then":{"required":["sortField"]}}]}
get_trades: {"type":"object","properties":{"market":{"enum":["HK","US","CN","JP"],"type":"string","description":"市场代码:HK(港股)、US(美股)、CN(A股/沪深市场)、JP(日股)。"},"assetType":{"enum":["stock","etf","index"],"default":"stock","type":"string","description":"资产类型,默认 stock;bond 不支持。"},"symbol":{"type":"string","description":"证券代码,例如 00700.hk、AAPL.us、600519.sh、6758.jp。"},"time":{"type":"string","description":"查询时间,格式 YYYY-MM-DD HH:mm:ss,例如 2026-07-28 09:30:00;market=JP 时必填。"},"startTime":{"type":"string","description":"开始时间,格式 YYYY-MM-DD HH:mm:ss,例如 2026-07-28 09:30:00。"},"endTime":{"type":"string","description":"结束时间,格式 YYYY-MM-DD HH:mm:ss,例如 2026-07-28 16:00:00。"},"pageNum":{"default":1,"minimum":1,"maximum":100000,"type":"number","description":"页码,从 1 开始,默认 1。"},"pageSize":{"default":20,"minimum":1,"maximum":200,"type":"number","description":"单页数量,默认 20,最大 200。"},"orderMode":{"enum":[0,1],"default":0,"type":"number","description":"逐笔成交排序/翻页方向:0=查询指定时间之前的数据,1=查询指定时间之后的数据。 默认 0。"},"tickerId":{"type":"number","description":"逐笔游标 ID,部分市场需要。"},"sessionId":{"enum":[-1,1,-2],"default":1,"type":"number","description":"美股交易时段:-1=盘前,1=盘中,-2=盘后。 默认 1。"}},"required":["market","symbol"],"allOf":[{"if":{"properties":{"market":{"const":"JP"}},"required":["market"]},"then":{"required":["time"]}}]}