candleview 2.0.3 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -5
- package/dist/index.d.ts +28 -2
- package/dist/index.js +30 -270
- package/dist/index.mjs +5103 -6492
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ const App = () => {
|
|
|
50
50
|
|
|
51
51
|
# AI Features
|
|
52
52
|
|
|
53
|
-
<img src="./assets/ai/ai-data-analysis.png" alt="CandleView AI" width="100%">
|
|
53
|
+
<img src="./assets/ai/ai-data-analysis-2.png" alt="CandleView AI" width="100%">
|
|
54
54
|
|
|
55
55
|
## Supported Brands
|
|
56
56
|
|
|
@@ -205,22 +205,22 @@ The system integrates the following SDKs:
|
|
|
205
205
|
aiconfigs={[
|
|
206
206
|
// Simultaneously configure different models from multiple AI brands.
|
|
207
207
|
{
|
|
208
|
-
|
|
208
|
+
proxyUrl: "http://0.0.0.0/api",
|
|
209
209
|
brand: "aliyun",
|
|
210
210
|
model: "qwen-turbo",
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
|
|
213
|
+
proxyUrl: "http://0.0.0.0/api",
|
|
214
214
|
brand: "aliyun",
|
|
215
215
|
model: "qwen-omni",
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
|
|
218
|
+
proxyUrl: "http://0.0.0.0/api",
|
|
219
219
|
brand: "deepseek",
|
|
220
220
|
model: "gpt-4",
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
|
|
223
|
+
proxyUrl: "http://0.0.0.0/api",
|
|
224
224
|
brand: "openai",
|
|
225
225
|
model: "gpt-3.5-turbo",
|
|
226
226
|
},
|
|
@@ -228,6 +228,14 @@ The system integrates the following SDKs:
|
|
|
228
228
|
/>
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
+
## Proxy Interface Standard
|
|
232
|
+
|
|
233
|
+
### 💡 Services that must be implemented in the domain configured by proxyUrl.
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
/analyzeOHLCV - A service specifically designed for processing OHLCV data.
|
|
237
|
+
```
|
|
238
|
+
|
|
231
239
|
# 💻 Command System
|
|
232
240
|
|
|
233
241
|
<img src="./assets/command-system.png" width="100%">
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare enum AIBrandType {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare interface AIConfig {
|
|
13
|
-
|
|
13
|
+
proxyUrl: string;
|
|
14
14
|
brand: string;
|
|
15
15
|
model: string;
|
|
16
16
|
maxAnalyzeData?: number;
|
|
@@ -61,6 +61,7 @@ declare class CandleView extends default_2.Component<CandleViewProps, CandleView
|
|
|
61
61
|
componentDidMount(): void;
|
|
62
62
|
componentDidUpdate(prevProps: CandleViewProps, prevState: CandleViewState): void;
|
|
63
63
|
componentWillUnmount(): void;
|
|
64
|
+
private isIncrementalDataUpdate;
|
|
64
65
|
private handleTerminalResizeMouseDown;
|
|
65
66
|
private handleTerminalMouseMove;
|
|
66
67
|
private handleTerminalMouseUp;
|
|
@@ -149,7 +150,6 @@ declare interface CandleViewProps {
|
|
|
149
150
|
timeframe?: string;
|
|
150
151
|
timezone?: string;
|
|
151
152
|
data?: ICandleViewDataPoint[];
|
|
152
|
-
url?: string;
|
|
153
153
|
ai?: boolean;
|
|
154
154
|
aiconfigs?: AIConfig[];
|
|
155
155
|
terminal?: boolean;
|
|
@@ -300,6 +300,32 @@ declare interface I18n {
|
|
|
300
300
|
adx: string;
|
|
301
301
|
obv: string;
|
|
302
302
|
};
|
|
303
|
+
mainIndicators: {
|
|
304
|
+
ma: string;
|
|
305
|
+
ema: string;
|
|
306
|
+
bollinger: string;
|
|
307
|
+
ichimoku: string;
|
|
308
|
+
donchian: string;
|
|
309
|
+
envelope: string;
|
|
310
|
+
vwap: string;
|
|
311
|
+
};
|
|
312
|
+
mainChartMaps: {
|
|
313
|
+
heatmap: string;
|
|
314
|
+
marketProfile: string;
|
|
315
|
+
};
|
|
316
|
+
subChartIndicatorName: {
|
|
317
|
+
rsi: string;
|
|
318
|
+
macd: string;
|
|
319
|
+
volume: string;
|
|
320
|
+
sar: string;
|
|
321
|
+
kdj: string;
|
|
322
|
+
atr: string;
|
|
323
|
+
stochastic: string;
|
|
324
|
+
cci: string;
|
|
325
|
+
bbwidth: string;
|
|
326
|
+
adx: string;
|
|
327
|
+
obv: string;
|
|
328
|
+
};
|
|
303
329
|
modal: {
|
|
304
330
|
parameterSettings: string;
|
|
305
331
|
parameterName: string;
|