paramsobject可选
业务参数,契约按 endpoint 选择;请勿再次嵌套 params。
get_quote: {"type":"object","properties":{"market":{"enum":["HK","US","CN","JP","GLOBAL"],"type":"string","description":"市场代码:HK(港股)、US(美股)、CN(A股/沪深市场)、JP(日股)、GLOBAL(债券)。"},"assetType":{"enum":["stock","bond"],"default":"stock","type":"string","description":"资产类型。 当前实际组合仅支持 stock 和 bond;etf/index/warrant 请使用对应专用接口。"},"symbols":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string"},"description":"证券代码列表,例如 [\"00700.hk\"]、[\"AAPL.us\"]、[\"000100.sz\"]、[\"6758.jp\"]、[\"US91282CHZ77\"]。"},"symbol":{"type":"string","description":"若同时传 symbols 和 symbol,优先使用 symbols。"},"quoteType":{"enum":["basic","extended"],"default":"basic","type":"string","description":"行情类型:basic=基础快照,extended=扩展行情。"},"timeMode":{"enum":[0,1],"default":0,"type":"integer","description":"时间模式:0=实时,1=延时。 默认 0。"},"fields":{"type":"array","items":{"type":"string","enum":["snapshot","order","trade"]},"description":"仅 US stock basic:行情字段,snapshot=快照数据,order=挂单数据,trade=逐笔数据;不传时默认传递 [snapshot, order, trade]。"},"sessionId":{"enum":[-1,1,-2],"type":"integer","description":"仅 US stock basic:请求值 -1=盘前,1=盘中,-2=盘后;返回字段还可能出现 3=数据修正。 不传时不向发送,由按当前时段处理。"}},"required":["market"],"allOf":[{"if":{"properties":{"market":{"const":"HK"},"assetType":{"const":"stock"},"quoteType":{"const":"basic"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"HK"},"assetType":{"const":"stock"},"quoteType":{"const":"extended"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"US"},"assetType":{"const":"stock"},"quoteType":{"const":"basic"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"US"},"assetType":{"const":"stock"},"quoteType":{"const":"extended"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"CN"},"assetType":{"const":"stock"},"quoteType":{"const":"basic"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"CN"},"assetType":{"const":"stock"},"quoteType":{"const":"extended"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"JP"},"assetType":{"const":"stock"},"quoteType":{"const":"basic"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}},{"if":{"properties":{"market":{"const":"JP"},"assetType":{"const":"stock"},"quoteType":{"const":"extended"}},"required":["market","assetType","quoteType"]},"then":{"required":["symbols"]}}]}
get_security_profile: {"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。"},"symbols":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"},"description":"证券代码列表,最多 50 个。"},"date":{"type":"string","description":"HK index 的查询日期,格式 YYYY-MM-DD;省略时使用今天。"},"indexSeries":{"enum":["C","H","S","T"],"type":"string","description":"HK index 可选系列:C=中证、H=恒生、S=标普、T=总回报;省略时自动查询全部系列。 代码示例:000065、CES120。"}},"required":["market","symbols"]}
search_security: {"type":"object","properties":{"market":{"enum":["HK","US","CN","JP","ALL"],"type":"string","description":"市场代码:HK(港股)、US(美股)、CN(A股/沪深市场)、JP(日股)、ALL(跨市场搜索)。"},"assetType":{"enum":["all","stock","etf","index","warrant","bond"],"default":"all","type":"string","description":"资产类型,默认 all。 基金查询请使用 fund_data 工具集。"},"keyword":{"type":"string","description":"可选关键词。 JP 会在列表结果上做本地过滤;HK index 使用指数列表后本地过滤。 market=ALL 时必填。"},"date":{"type":"string","description":"HK index 的查询日期,格式 YYYY-MM-DD;省略时使用今天。"},"indexSeries":{"enum":["C","H","S","T"],"type":"string","description":"HK index 可选系列:C=中证、H=恒生、S=标普、T=总回报;省略时合并全部四个系列。 代码示例:000065、CES120。"},"limit":{"default":20,"minimum":1,"maximum":100,"type":"number","description":"返回数量,默认 20,最大 100。"},"marketBoard":{"enum":["Q","G","S","N","A","P","Z","V"],"type":"string","description":"美股交易所筛选,仅 market=US 或 ALL 时有效。 Q=Nasdaq全球精选市场,G=Nasdaq全球市场,S=Nasdaq资本市场,N=NYSE纽约交易所,A=NYSE MKT/AMEX,P=NYSE Arca,Z=BATS,V=IEX。"}},"required":["market"],"allOf":[{"if":{"properties":{"market":{"const":"ALL"}},"required":["market"]},"then":{"required":["keyword"]}}]}