paramsobject可选
业务参数,契约按 endpoint 选择;请勿再次嵌套 params。
get_bond_chart: {"type":"object","properties":{"market":{"enum":["GLOBAL"],"type":"string","description":"市场代码,固定为 GLOBAL(债券);可省略,默认 GLOBAL。"},"symbol":{"type":"string","description":"单个证券、基金、债券、期权或 IPO 代码。"},"symbols":{"type":"array","items":{"type":"string"},"description":"批量代码列表,例如 [\"00700.hk\", \"AAPL.us\"];"},"bondType":{"enum":["history","trend","yield_kline","yield_trend","treasury_yield"],"type":"string","description":"bondType 取值:history、trend、yield_kline、yield_trend、treasury_yield。"},"type":{"type":"integer","description":"收益率 K 线类型;yield_kline 组合必填,整数枚举由 接口 定义。"}},"required":["bondType"],"allOf":[{"if":{"properties":{"bondType":{"const":"history"}},"required":["bondType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"bondType":{"const":"trend"}},"required":["bondType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"bondType":{"const":"yield_kline"}},"required":["bondType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"bondType":{"const":"yield_trend"}},"required":["bondType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"bondType":{"const":"yield_kline"}},"required":["bondType"]},"then":{"required":["type"]}}]}
get_bond_rankings: {"type":"object","properties":{"market":{"enum":["GLOBAL"],"type":"string","description":"市场代码,固定为 GLOBAL(债券);可省略,默认 GLOBAL。"},"symbol":{"type":"string","description":"单个证券、基金、债券、期权或 IPO 代码。"},"symbols":{"type":"array","items":{"type":"string"},"description":"批量代码列表,例如 [\"00700.hk\", \"AAPL.us\"];"},"bondType":{"enum":["rank","rank_simple","etf_rank"],"type":"string","description":"bondType 取值:rank、rank_simple、etf_rank。"}},"required":["bondType"]}
get_bond_trading_status: {"type":"object","properties":{"market":{"enum":["GLOBAL"],"type":"string","description":"市场代码,固定为 GLOBAL(债券);可省略,默认 GLOBAL。"},"symbol":{"default":"US91282CHZ77","type":"string","description":"单个证券、基金、债券、期权或 IPO 代码。"},"symbols":{"type":"array","items":{"type":"string"},"description":"批量代码列表,例如 [\"00700.hk\", \"AAPL.us\"];"},"bondType":{"enum":["bond","yield"],"type":"string","description":"bondType 取值:bond、yield。"}},"required":["bondType"]}
get_bond_yield: {"type":"object","properties":{"market":{"enum":["GLOBAL"],"type":"string","description":"市场代码,固定为 GLOBAL(债券);可省略,默认 GLOBAL。"},"symbol":{"type":"string","description":"单个证券、基金、债券、期权或 IPO 代码。"},"symbols":{"type":"array","items":{"type":"string"},"description":"批量代码列表,例如 [\"00700.hk\", \"AAPL.us\"];"},"bondType":{"enum":["codes","snapshot","kline","trend"],"type":"string","description":"bondType 取值:codes、snapshot、kline、trend。"},"type":{"type":"integer","description":"收益率 K 线类型;kline 组合必填,整数枚举由 接口 定义。"}},"required":["bondType"],"allOf":[{"if":{"properties":{"bondType":{"const":"kline"}},"required":["bondType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"bondType":{"const":"trend"}},"required":["bondType"]},"then":{"required":["symbol"]}},{"if":{"properties":{"bondType":{"const":"kline"}},"required":["bondType"]},"then":{"required":["type"]}}]}