{"openapi":"3.1.0","info":{"title":"QDII Lens API","description":"\nQDII Lens 只读数据 API：美国50、纳指100、标普500 相关场内 ETF 的收盘参考溢价与净值溢价，\n场外 QDII 的申购状态与限额，以及公告与状态变更。\n\n**数据约定**\n- 未知值返回 `null`，不用 0 代替。\n- 参考溢价只用同一时点的收盘价与 IOPV 计算；净值溢价只用同一估值日的价格与净值。\n- 每个响应都带 `meta.as_of`（数据时点）与 `meta.is_mock`（是否演示数据）；报价与规则带来源与新鲜度。\n- 申购状态以基金公告为准，代销渠道未核实时 `channel.verified` 为 `false`。\n\n数据仅供参考，不构成投资建议。\n","version":"1.0.0"},"paths":{"/v1/health":{"get":{"tags":["系统"],"summary":"服务健康状态","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/indices":{"get":{"tags":["基金"],"summary":"指数列表","operationId":"indices_v1_indices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_IndexInfo__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds":{"get":{"tags":["基金"],"summary":"基金目录","operationId":"funds_v1_funds_get","parameters":[{"name":"index","in":"query","required":false,"schema":{"anyOf":[{"enum":["nasdaq-100","sp-500","us-50"],"type":"string"},{"type":"null"}],"description":"按跟踪指数筛选","title":"Index"},"description":"按跟踪指数筛选"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["etf","otc"],"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_FundProfile__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}":{"get":{"tags":["基金"],"summary":"基金详情","operationId":"fund_detail_v1_funds__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_FundDetail_"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}/quote":{"get":{"tags":["基金"],"summary":"场内 ETF 最新收盘快照与参考溢价","operationId":"fund_quote_v1_funds__code__quote_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_EtfQuote_"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}/nav":{"get":{"tags":["基金"],"summary":"最新单位净值","operationId":"fund_nav_v1_funds__code__nav_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_NavSnapshot_"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}/nav-history":{"get":{"tags":["基金"],"summary":"单位净值历史","operationId":"nav_history_v1_funds__code__nav_history_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_NavHistoryPoint__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}/premium-history":{"get":{"tags":["基金"],"summary":"折溢价历史（参考溢价与净值溢价分列）","operationId":"premium_history_v1_funds__code__premium_history_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"},{"name":"range","in":"query","required":false,"schema":{"enum":["1m","3m","6m","1y","all"],"type":"string","default":"all","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_PremiumHistoryPoint__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}/subscription":{"get":{"tags":["基金"],"summary":"申购、赎回、定投、一级市场申赎与交易状态","operationId":"subscription_v1_funds__code__subscription_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_SubscriptionRule__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/funds/{code}/events":{"get":{"tags":["基金"],"summary":"公告与状态变更","operationId":"fund_events_v1_funds__code__events_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{6}$","description":"6 位份额代码","examples":["159696"],"title":"Code"},"description":"6 位份额代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_FundEvent__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/rankings/premiums":{"get":{"tags":["榜单"],"summary":"场内 ETF 溢价榜","operationId":"rankings_premiums_v1_rankings_premiums_get","parameters":[{"name":"index","in":"query","required":false,"schema":{"anyOf":[{"enum":["nasdaq-100","sp-500","us-50"],"type":"string"},{"type":"null"}],"description":"按跟踪指数筛选","title":"Index"},"description":"按跟踪指数筛选"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_EtfRankingRow__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/rankings/subscriptions":{"get":{"tags":["榜单"],"summary":"场外 QDII 申购状态榜","operationId":"rankings_subscriptions_v1_rankings_subscriptions_get","parameters":[{"name":"index","in":"query","required":false,"schema":{"anyOf":[{"enum":["nasdaq-100","sp-500","us-50"],"type":"string"},{"type":"null"}],"description":"按跟踪指数筛选","title":"Index"},"description":"按跟踪指数筛选"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_OtcRankingRow__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/events":{"get":{"tags":["变更"],"summary":"公告与状态变更（按公告日期倒序，无公告日期时按首次发现时间）","operationId":"events_v1_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"排除的事件类型，逗号分隔","examples":["premium_risk_notice"],"title":"Exclude"},"description":"排除的事件类型，逗号分隔"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_FundEvent__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/stats/overview":{"get":{"tags":["榜单"],"summary":"首页概览统计","operationId":"overview_v1_stats_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OverviewStats_"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/stats/premium-movers":{"get":{"tags":["榜单"],"summary":"溢价较上一交易日变化最大的场内 ETF","operationId":"premium_movers_v1_stats_premium_movers_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_PremiumMovers_"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/indices/{slug}/premium-trend":{"get":{"tags":["榜单"],"summary":"同指数场内 ETF 参考溢价中位数","operationId":"premium_trend_v1_indices__slug__premium_trend_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"enum":["nasdaq-100","sp-500","us-50"],"type":"string","title":"Slug"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":750,"minimum":1,"default":90,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_IndexPremiumTrendPoint__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/indices/{slug}/benchmark":{"get":{"tags":["榜单"],"summary":"指数的海外同指数 ETF 日收盘价；没有同类 ETF 时 data 为 null","operationId":"index_benchmark_v1_indices__slug__benchmark_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"enum":["nasdaq-100","sp-500","us-50"],"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Union_IndexBenchmark__NoneType__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/compare":{"get":{"tags":["基金"],"summary":"基金对比（最多 4 只）","operationId":"compare_v1_compare_get","parameters":[{"name":"codes","in":"query","required":true,"schema":{"type":"string","description":"逗号分隔，最多 4 个","examples":["159696,270042"],"title":"Codes"},"description":"逗号分隔，最多 4 个"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_FundDetail__"}}}},"404":{"description":"未收录或不适用","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"参数不合法","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ApiResponse_EtfQuote_":{"properties":{"data":{"$ref":"#/components/schemas/EtfQuote"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[EtfQuote]"},"ApiResponse_FundDetail_":{"properties":{"data":{"$ref":"#/components/schemas/FundDetail"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[FundDetail]"},"ApiResponse_NavSnapshot_":{"properties":{"data":{"$ref":"#/components/schemas/NavSnapshot"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[NavSnapshot]"},"ApiResponse_OverviewStats_":{"properties":{"data":{"$ref":"#/components/schemas/OverviewStats"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[OverviewStats]"},"ApiResponse_PremiumMovers_":{"properties":{"data":{"$ref":"#/components/schemas/PremiumMovers"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[PremiumMovers]"},"ApiResponse_Union_IndexBenchmark__NoneType__":{"properties":{"data":{"anyOf":[{"$ref":"#/components/schemas/IndexBenchmark"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[Union[IndexBenchmark, NoneType]]"},"ApiResponse_list_EtfRankingRow__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EtfRankingRow"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[EtfRankingRow]]"},"ApiResponse_list_FundDetail__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FundDetail"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[FundDetail]]"},"ApiResponse_list_FundEvent__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FundEvent"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[FundEvent]]"},"ApiResponse_list_FundProfile__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FundProfile"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[FundProfile]]"},"ApiResponse_list_IndexInfo__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/IndexInfo"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[IndexInfo]]"},"ApiResponse_list_IndexPremiumTrendPoint__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/IndexPremiumTrendPoint"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[IndexPremiumTrendPoint]]"},"ApiResponse_list_NavHistoryPoint__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/NavHistoryPoint"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[NavHistoryPoint]]"},"ApiResponse_list_OtcRankingRow__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OtcRankingRow"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[OtcRankingRow]]"},"ApiResponse_list_PremiumHistoryPoint__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PremiumHistoryPoint"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[PremiumHistoryPoint]]"},"ApiResponse_list_SubscriptionRule__":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SubscriptionRule"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["data","meta"],"title":"ApiResponse[list[SubscriptionRule]]"},"BenchmarkPoint":{"properties":{"trading_date":{"type":"string","format":"date","title":"Trading Date"},"close":{"type":"number","title":"Close"}},"additionalProperties":false,"type":"object","required":["trading_date","close"],"title":"BenchmarkPoint"},"Channel":{"properties":{"channel_id":{"type":"string","title":"Channel Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["direct","distributor","exchange"],"title":"Type"},"verified":{"type":"boolean","title":"Verified"}},"additionalProperties":false,"type":"object","required":["channel_id","name","type","verified"],"title":"Channel"},"ErrorBody":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"ErrorBody"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"additionalProperties":false,"type":"object","required":["error"],"title":"ErrorResponse"},"EtfQuote":{"properties":{"code":{"type":"string","title":"Code"},"price_basis":{"type":"string","enum":["close","intraday"],"title":"Price Basis"},"trading_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Trading Date"},"market_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Price"},"market_price_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Market Price Time"},"prev_close":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Prev Close"},"price_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Change Pct"},"iopv":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Iopv"},"iopv_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Iopv Time"},"indicative_premium_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Indicative Premium Pct"},"nav":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nav"},"nav_valuation_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Nav Valuation Date"},"nav_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nav Published At"},"nav_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nav Observed At"},"official_nav_premium_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Official Nav Premium Pct"},"turnover_cny":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Turnover Cny"},"trading_status":{"type":"string","enum":["trading","halted","unknown"],"title":"Trading Status"},"freshness_status":{"type":"string","enum":["fresh","delayed","stale","unavailable","disputed"],"title":"Freshness Status"},"data_delay_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Data Delay Minutes"},"quality_flags":{"items":{"type":"string","enum":["iopv_missing","price_iopv_time_mismatch","nav_lagged","trading_halted","source_conflict","market_data_unavailable"]},"type":"array","title":"Quality Flags"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["code","price_basis","trading_date","market_price","market_price_time","prev_close","price_change_pct","iopv","iopv_time","indicative_premium_pct","nav","nav_valuation_date","nav_published_at","nav_observed_at","official_nav_premium_pct","turnover_cny","trading_status","freshness_status","data_delay_minutes","quality_flags","source"],"title":"EtfQuote"},"EtfRankingRow":{"properties":{"fund":{"$ref":"#/components/schemas/FundProfile"},"quote":{"$ref":"#/components/schemas/EtfQuote"},"rules":{"items":{"$ref":"#/components/schemas/SubscriptionRule"},"type":"array","title":"Rules"}},"additionalProperties":false,"type":"object","required":["fund","quote","rules"],"title":"EtfRankingRow"},"FeeTier":{"properties":{"basis":{"type":"string","enum":["amount","holding_days"],"title":"Basis"},"lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lower"},"upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Upper"},"rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Pct"},"per_order":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Per Order"},"unit":{"anyOf":[{"type":"string","enum":["CNY","USD"]},{"type":"null"}],"title":"Unit"}},"additionalProperties":false,"type":"object","required":["basis","lower","upper","rate_pct","per_order","unit"],"title":"FeeTier"},"FundDetail":{"properties":{"fund":{"$ref":"#/components/schemas/FundProfile"},"quote":{"anyOf":[{"$ref":"#/components/schemas/EtfQuote"},{"type":"null"}]},"nav":{"$ref":"#/components/schemas/NavSnapshot"},"rules":{"items":{"$ref":"#/components/schemas/SubscriptionRule"},"type":"array","title":"Rules"},"events":{"items":{"$ref":"#/components/schemas/FundEvent"},"type":"array","title":"Events"}},"additionalProperties":false,"type":"object","required":["fund","quote","nav","rules","events"],"title":"FundDetail"},"FundEvent":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"fund_name":{"type":"string","title":"Fund Name"},"event_type":{"type":"string","enum":["subscription_suspended","subscription_resumed","limit_changed","trading_halt","trading_resumed","premium_risk_notice","data_revision"],"title":"Event Type"},"title":{"type":"string","title":"Title"},"old_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Value"},"new_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Value"},"effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"detected_at":{"type":"string","format":"date-time","title":"Detected At"},"backfill":{"type":"boolean","title":"Backfill"},"announcement_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Announcement Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","code","fund_name","event_type","title","old_value","new_value","effective_at","published_at","detected_at","backfill","announcement_url","source"],"title":"FundEvent"},"FundFee":{"properties":{"fee_type":{"type":"string","enum":["management","custody","subscription","redemption","sales_service"],"title":"Fee Type"},"rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Pct"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"tiers":{"items":{"$ref":"#/components/schemas/FeeTier"},"type":"array","title":"Tiers"}},"additionalProperties":false,"type":"object","required":["fee_type","rate_pct","note","tiers"],"title":"FundFee"},"FundProfile":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"full_name":{"type":"string","title":"Full Name"},"kind":{"type":"string","enum":["etf","otc"],"title":"Kind"},"index":{"type":"string","enum":["nasdaq-100","sp-500","us-50"],"title":"Index"},"manager":{"type":"string","title":"Manager"},"custodian":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custodian"},"exchange":{"anyOf":[{"type":"string","enum":["SSE","SZSE"]},{"type":"null"}],"title":"Exchange"},"share_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Class"},"currency":{"type":"string","enum":["CNY","USD"],"title":"Currency"},"inception_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Inception Date"},"aum_cny":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aum Cny"},"aum_as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Aum As Of"},"fees":{"items":{"$ref":"#/components/schemas/FundFee"},"type":"array","title":"Fees"},"related_codes":{"items":{"type":"string"},"type":"array","title":"Related Codes"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["code","name","full_name","kind","index","manager","custodian","exchange","share_class","currency","inception_date","aum_cny","aum_as_of","fees","related_codes","source"],"title":"FundProfile"},"Health":{"properties":{"status":{"type":"string","enum":["ok","degraded"],"title":"Status"},"database":{"type":"boolean","title":"Database"},"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"},"is_mock":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mock"}},"additionalProperties":false,"type":"object","required":["status","database","as_of","is_mock"],"title":"Health"},"IndexBenchmark":{"properties":{"index":{"type":"string","enum":["nasdaq-100","sp-500","us-50"],"title":"Index"},"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"currency":{"type":"string","const":"USD","title":"Currency"},"adjusted":{"type":"boolean","title":"Adjusted"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}]},"points":{"items":{"$ref":"#/components/schemas/BenchmarkPoint"},"type":"array","title":"Points"}},"additionalProperties":false,"type":"object","required":["index","symbol","name","currency","adjusted","source","points"],"title":"IndexBenchmark","description":"在美股上市、跟踪同一指数的对照 ETF（纳指100：QQQ；标普500：SPY）的日收盘价。\n\n美国50目前没有美股上市的同指数 ETF，该端点返回 null。"},"IndexInfo":{"properties":{"slug":{"type":"string","enum":["nasdaq-100","sp-500","us-50"],"title":"Slug"},"name":{"type":"string","title":"Name"},"name_en":{"type":"string","title":"Name En"},"currency":{"type":"string","enum":["CNY","USD"],"title":"Currency"}},"additionalProperties":false,"type":"object","required":["slug","name","name_en","currency"],"title":"IndexInfo"},"IndexPremiumTrendPoint":{"properties":{"trading_date":{"type":"string","format":"date","title":"Trading Date"},"median_indicative_premium_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Indicative Premium Pct"},"sample_size":{"type":"integer","title":"Sample Size"},"median_official_nav_premium_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Official Nav Premium Pct"},"official_sample_size":{"type":"integer","title":"Official Sample Size"}},"additionalProperties":false,"type":"object","required":["trading_date","median_indicative_premium_pct","sample_size","median_official_nav_premium_pct","official_sample_size"],"title":"IndexPremiumTrendPoint"},"NavHistoryPoint":{"properties":{"valuation_date":{"type":"string","format":"date","title":"Valuation Date"},"nav":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nav"}},"additionalProperties":false,"type":"object","required":["valuation_date","nav"],"title":"NavHistoryPoint"},"NavSnapshot":{"properties":{"code":{"type":"string","title":"Code"},"nav":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nav"},"nav_valuation_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Nav Valuation Date"},"nav_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nav Published At"},"nav_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nav Observed At"},"daily_change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Change Pct"},"freshness_status":{"type":"string","enum":["fresh","delayed","stale","unavailable","disputed"],"title":"Freshness Status"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["code","nav","nav_valuation_date","nav_published_at","nav_observed_at","daily_change_pct","freshness_status","source"],"title":"NavSnapshot"},"OtcRankingRow":{"properties":{"fund":{"$ref":"#/components/schemas/FundProfile"},"nav":{"$ref":"#/components/schemas/NavSnapshot"},"rules":{"items":{"$ref":"#/components/schemas/SubscriptionRule"},"type":"array","title":"Rules"}},"additionalProperties":false,"type":"object","required":["fund","nav","rules"],"title":"OtcRankingRow"},"OverviewStats":{"properties":{"covered_funds":{"type":"integer","title":"Covered Funds"},"covered_etf":{"type":"integer","title":"Covered Etf"},"covered_otc":{"type":"integer","title":"Covered Otc"},"high_premium_etf":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"High Premium Etf"},"high_premium_threshold_pct":{"type":"number","title":"High Premium Threshold Pct"},"open_otc":{"type":"integer","title":"Open Otc"},"limited_otc":{"type":"integer","title":"Limited Otc"},"changes_24h":{"type":"integer","title":"Changes 24H"}},"additionalProperties":false,"type":"object","required":["covered_funds","covered_etf","covered_otc","high_premium_etf","high_premium_threshold_pct","open_otc","limited_otc","changes_24h"],"title":"OverviewStats"},"PremiumHistoryPoint":{"properties":{"trading_date":{"type":"string","format":"date","title":"Trading Date"},"close_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Close Price"},"indicative_premium_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Indicative Premium Pct"},"official_nav_premium_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Official Nav Premium Pct"},"nav_valuation_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Nav Valuation Date"},"quality_status":{"type":"string","enum":["fresh","delayed","stale","unavailable","disputed"],"title":"Quality Status"}},"additionalProperties":false,"type":"object","required":["trading_date","close_price","indicative_premium_pct","official_nav_premium_pct","nav_valuation_date","quality_status"],"title":"PremiumHistoryPoint"},"PremiumMover":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"index":{"type":"string","enum":["nasdaq-100","sp-500","us-50"],"title":"Index"},"trading_date":{"type":"string","format":"date","title":"Trading Date"},"prev_trading_date":{"type":"string","format":"date","title":"Prev Trading Date"},"premium_pct":{"type":"number","title":"Premium Pct"},"prev_premium_pct":{"type":"number","title":"Prev Premium Pct"},"change_pct_points":{"type":"number","title":"Change Pct Points"}},"additionalProperties":false,"type":"object","required":["code","name","index","trading_date","prev_trading_date","premium_pct","prev_premium_pct","change_pct_points"],"title":"PremiumMover"},"PremiumMovers":{"properties":{"basis":{"type":"string","enum":["indicative","official"],"title":"Basis"},"trading_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Trading Date"},"movers":{"items":{"$ref":"#/components/schemas/PremiumMover"},"type":"array","title":"Movers"}},"additionalProperties":false,"type":"object","required":["basis","trading_date","movers"],"title":"PremiumMovers"},"ResponseMeta":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"is_mock":{"type":"boolean","title":"Is Mock"},"disclaimer":{"type":"string","title":"Disclaimer"}},"additionalProperties":false,"type":"object","required":["as_of","is_mock","disclaimer"],"title":"ResponseMeta"},"SourceRef":{"properties":{"source_id":{"type":"string","title":"Source Id"},"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"additionalProperties":false,"type":"object","required":["source_id","name","url"],"title":"SourceRef"},"SubscriptionLimit":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"unit":{"type":"string","enum":["CNY","USD","shares"],"title":"Unit"},"period":{"type":"string","enum":["per_day","per_order"],"title":"Period"}},"additionalProperties":false,"type":"object","required":["amount","unit","period"],"title":"SubscriptionLimit"},"SubscriptionRule":{"properties":{"action":{"type":"string","enum":["subscribe","redeem","recurring_invest","convert_in","etf_create","etf_redeem","exchange_trade"],"title":"Action"},"channel":{"$ref":"#/components/schemas/Channel"},"status":{"type":"string","enum":["open","limited","suspended","unknown"],"title":"Status"},"limit":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionLimit"},{"type":"null"}]},"effective_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective From"},"detected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Detected At"},"announcement_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Announcement Title"},"announcement_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Announcement Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["action","channel","status","limit","effective_from","detected_at","announcement_title","announcement_url","source"],"title":"SubscriptionRule"}}}}