Skip to content
dsh-invest 文档
Esc
↑↓navigate↵open⌘Jpreview
On this page

VenueManifest 字段

一份 venue manifest 的全部字段、类型与必填性。

插件页:provider 配置字段。

插件页:provider 配置字段。

VenueManifest 是 provider 注册的唯一形状:一个身份加可选切面。字段定义来自 packages/dsh-invest/src/shared/invest/manifest.ts。

字段 类型 必填 说明
aliases readonly string[] 否 —
assetClass 'crypto' | 'equity' | 'etf' | 'fund' | 'index' | 'bond' | 'convertible' | 'future' | 'option' | 'fx' | 'macro' | 'prediction' 否 展示/筛股用;与 markets[].family 不是同一个轴。
defaultInstrument string 否 —
defaultMarket MarketKey 否 未限定市场时用哪个市场解析 VENUE:TICKER;缺省 = 唯一匹配(多匹配则 bad-args)。
description LocalizedText 否 —
display LocalizedText 是 —
dynamicScreen boolean 否 —
facets Facets 是 —
icon PluginIcon 否 —
id VenueId 是 —
links readonly PluginLink[] 否 —
marketType 'spot' | 'perp' | 'future' | 'option' | 'stock' | 'fx' 否 —
markets readonly MarketDecl[] 是 声明的市场;marketKey 不得重复。
order number 否 —
plugin string 否 提供它的 npm 包名(dsh-invest-provider-fmp 这类)。
requiresApiKey boolean 否 这条源是否需要宿主按工作区注入凭据(HistoryQuery.credentials)。

切面集合见 Facets:catalog / history / snapshot / stream / detail / quote / lake / execution。注册期校验规则见 packages/dsh-invest/src/shared/invest/validation.ts。

Was this page helpful?