ReactJS 组件
iC Candle 提供面向 TradingView Charting Library 的 React 浮层。你在自有许可证下托管图表库,在应用中初始化图表,并将实时的 IChartingLibraryWidget 实例传入组件。
| 包 | 版本 | 用途 |
|---|---|---|
| ReactJS 组件 | 0.1.5 | 一体化图表浮层 — 扫描器、结果 iframe、形态追踪、新闻同步 |
该包:
- 以 ESM 与 CommonJS 发布,样式在运行时打包并注入(无需单独导入 CSS)。
- 需要 React 18+(
react、react-dom为 peer 依赖)。 - 需要作为静态资源提供的 TradingView Charting Library 构建(不包含在 npm 包中)。
ReactJS 组件 通过嵌入式结果应用认证(iccandle_token)。
前提条件
- 在应用中安装 React 18+。
- 获取并托管 TradingView Charting Library(例如放在 public 目录的
/charting_library/)。
开始使用
阅读 ReactJS 组件介绍,了解安装、快速开始,以及扫描器弹窗、结果 iframe 与图表同步概览。