@dsh-ft/dsh-fft-paper-trading 0.7.0 → 0.7.2
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/lib/client.js +9 -1
- package/package.json +2 -5
- package/src/client/index.js +8 -0
- package/node_modules/@ftshare-lab/dsh-kline/CHANGELOG.md +0 -564
- package/node_modules/@ftshare-lab/dsh-kline/LICENSE +0 -21
- package/node_modules/@ftshare-lab/dsh-kline/PROVENANCE.md +0 -13
- package/node_modules/@ftshare-lab/dsh-kline/README.en.md +0 -265
- package/node_modules/@ftshare-lab/dsh-kline/README.md +0 -281
- package/node_modules/@ftshare-lab/dsh-kline/chart_service.py +0 -686
- package/node_modules/@ftshare-lab/dsh-kline/config/basic-symbols.json +0 -570
- package/node_modules/@ftshare-lab/dsh-kline/config/dsh-kline.patch.yml +0 -4
- package/node_modules/@ftshare-lab/dsh-kline/config/dsh-tool-catalog.json +0 -3783
- package/node_modules/@ftshare-lab/dsh-kline/cordis.patch.yml +0 -33
- package/node_modules/@ftshare-lab/dsh-kline/core/__init__.py +0 -0
- package/node_modules/@ftshare-lab/dsh-kline/core/adjustment.py +0 -16
- package/node_modules/@ftshare-lab/dsh-kline/core/calc.py +0 -683
- package/node_modules/@ftshare-lab/dsh-kline/core/rows.py +0 -228
- package/node_modules/@ftshare-lab/dsh-kline/core/ta_engine.py +0 -99
- package/node_modules/@ftshare-lab/dsh-kline/lib/candle-sequence.js +0 -15
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-adjustment.js +0 -7
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-annotations.js +0 -33
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-applications.js +0 -171
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-context.js +0 -164
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-observation.js +0 -241
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-service-status.js +0 -82
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-source-status.js +0 -39
- package/node_modules/@ftshare-lab/dsh-kline/lib/chart-sources.js +0 -349
- package/node_modules/@ftshare-lab/dsh-kline/lib/client.js +0 -15445
- package/node_modules/@ftshare-lab/dsh-kline/lib/drawing-feedback.js +0 -252
- package/node_modules/@ftshare-lab/dsh-kline/lib/fibonacci.js +0 -18
- package/node_modules/@ftshare-lab/dsh-kline/lib/ftshare-settings-bridge.js +0 -159
- package/node_modules/@ftshare-lab/dsh-kline/lib/index.js +0 -279
- package/node_modules/@ftshare-lab/dsh-kline/lib/labeled-polyline.js +0 -17
- package/node_modules/@ftshare-lab/dsh-kline/lib/price-bands.js +0 -55
- package/node_modules/@ftshare-lab/dsh-kline/lib/price-series.js +0 -47
- package/node_modules/@ftshare-lab/dsh-kline/lib/price-sticks.js +0 -32
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/candle-sequence.d.ts +0 -2
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-adjustment.d.ts +0 -2
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-annotations.d.ts +0 -4
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-applications.d.ts +0 -26
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-context.d.ts +0 -14
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-observation.d.ts +0 -8
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-service-status.d.ts +0 -22
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-source-status.d.ts +0 -47
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-sources.d.ts +0 -25
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/BetterSidebarTab.d.ts +0 -12
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ClassicShell.d.ts +0 -4
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/KlineContent.d.ts +0 -37
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/PaperKlinePanel.d.ts +0 -15
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/canvas-panel.d.ts +0 -33
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-apply.d.ts +0 -13
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-context.d.ts +0 -23
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-session-resolver.d.ts +0 -2
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/client-context.d.ts +0 -14
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/conversation.d.ts +0 -39
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/default-tab.d.ts +0 -3
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/embed.d.ts +0 -37
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/generated-view.d.ts +0 -2
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/horizontal-lines.d.ts +0 -1
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-services.d.ts +0 -55
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/index.d.ts +0 -4
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/mode-preferences.d.ts +0 -13
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-contract.d.ts +0 -52
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-register.d.ts +0 -46
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-services.d.ts +0 -45
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar.d.ts +0 -47
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/sidebar-integration.d.ts +0 -12
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ui-onboarding.d.ts +0 -13
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/version.d.ts +0 -1
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/drawing-feedback.d.ts +0 -5
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/fibonacci.d.ts +0 -5
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/ftshare-settings-bridge.d.ts +0 -50
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/index.d.ts +0 -26
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/labeled-polyline.d.ts +0 -11
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-bands.d.ts +0 -3
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-series.d.ts +0 -5
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-sticks.d.ts +0 -3
- package/node_modules/@ftshare-lab/dsh-kline/package.json +0 -136
- package/node_modules/@ftshare-lab/dsh-kline/requirements.txt +0 -6
- package/node_modules/@ftshare-lab/dsh-kline/scripts/bootstrap.sh +0 -5
- package/node_modules/@ftshare-lab/dsh-kline/scripts/dsh-bootstrap.mjs +0 -179
- package/node_modules/@ftshare-lab/dsh-kline/scripts/dsh-mcp-plugin.mjs +0 -27
- package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.mjs +0 -655
- package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.sh +0 -5
- package/node_modules/@ftshare-lab/dsh-kline/server.py +0 -1734
- package/node_modules/@ftshare-lab/dsh-kline/tools/__init__.py +0 -0
- package/node_modules/@ftshare-lab/dsh-kline/tools/annotations.py +0 -119
- package/node_modules/@ftshare-lab/dsh-kline/tools/baostock_source.py +0 -176
- package/node_modules/@ftshare-lab/dsh-kline/tools/calc.py +0 -39
- package/node_modules/@ftshare-lab/dsh-kline/tools/channel_candidates.py +0 -260
- package/node_modules/@ftshare-lab/dsh-kline/tools/channel_preview.py +0 -82
- package/node_modules/@ftshare-lab/dsh-kline/tools/channels.py +0 -104
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_applications.py +0 -204
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_context.py +0 -186
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_edits.py +0 -345
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_functions.py +0 -466
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_indicators.py +0 -63
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_measurements.py +0 -84
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_source_status.py +0 -32
- package/node_modules/@ftshare-lab/dsh-kline/tools/chart_sources.py +0 -31
- package/node_modules/@ftshare-lab/dsh-kline/tools/draw.py +0 -394
- package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_feedback.py +0 -45
- package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_interaction.py +0 -117
- package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_verification.py +0 -141
- package/node_modules/@ftshare-lab/dsh-kline/tools/fetch.py +0 -4681
- package/node_modules/@ftshare-lab/dsh-kline/tools/fibonacci.py +0 -83
- package/node_modules/@ftshare-lab/dsh-kline/tools/foreign_daily.py +0 -185
- package/node_modules/@ftshare-lab/dsh-kline/tools/free_sources.py +0 -483
- package/node_modules/@ftshare-lab/dsh-kline/tools/lines.py +0 -91
- package/node_modules/@ftshare-lab/dsh-kline/tools/pivots.py +0 -60
- package/node_modules/@ftshare-lab/dsh-kline/tools/polylines.py +0 -125
- package/node_modules/@ftshare-lab/dsh-kline/tools/price_bands.py +0 -165
- package/node_modules/@ftshare-lab/dsh-kline/tools/price_series.py +0 -162
- package/node_modules/@ftshare-lab/dsh-kline/tools/price_sticks.py +0 -114
- package/node_modules/@ftshare-lab/dsh-kline/tools/range_candidates.py +0 -170
- package/node_modules/@ftshare-lab/dsh-kline/tools/rectangles.py +0 -76
- package/node_modules/@ftshare-lab/dsh-kline/tools/regression_channels.py +0 -87
- package/node_modules/@ftshare-lab/dsh-kline/tools/ta_functions.py +0 -228
- package/node_modules/@ftshare-lab/dsh-kline/tools/trend_lines.py +0 -106
- package/node_modules/@ftshare-lab/dsh-kline/tools/watchlist.py +0 -149
- package/node_modules/@ftshare-lab/dsh-kline/view/ft-logo.jpg +0 -0
- package/node_modules/@ftshare-lab/dsh-kline/view/vendor/klinecharts.min.js +0 -7
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { type KlineHostProps } from './embed';
|
|
2
|
-
export interface ChartSession {
|
|
3
|
-
ok: true;
|
|
4
|
-
session: string;
|
|
5
|
-
symbol?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
published_at: number;
|
|
8
|
-
recovery?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface ChartIdentity {
|
|
11
|
-
symbol?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function standaloneChartSession(conversationId?: string): string;
|
|
15
|
-
export declare function standaloneWorkspaceScope(conversationId?: string): string;
|
|
16
|
-
export declare function isSymbolLikeName(value: string | undefined, symbol: string | undefined): boolean;
|
|
17
|
-
declare global {
|
|
18
|
-
interface Window {
|
|
19
|
-
klinecharts?: any;
|
|
20
|
-
__dshKlineVendorPromise?: Promise<any>;
|
|
21
|
-
__dshKlineVwapRegistered?: boolean;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export declare function NativeKlineApp({ session, conversationId, ownerConversationId, visible, onIdentity }: {
|
|
25
|
-
session: ChartSession;
|
|
26
|
-
conversationId: string;
|
|
27
|
-
ownerConversationId?: string;
|
|
28
|
-
visible?: boolean;
|
|
29
|
-
onIdentity: (symbol?: string, name?: string) => void;
|
|
30
|
-
}): import("react").JSX.Element;
|
|
31
|
-
export type { KlineChrome, KlineHostProps, KlineEmbedApi } from './embed';
|
|
32
|
-
export declare function StandaloneKlineApp({ conversationId, ownerConversationId, visible, onIdentity, embedded, chrome, theme, symbol, name }: {
|
|
33
|
-
conversationId: string;
|
|
34
|
-
ownerConversationId?: string;
|
|
35
|
-
visible?: boolean;
|
|
36
|
-
onIdentity: (symbol?: string, name?: string) => void;
|
|
37
|
-
} & KlineHostProps): import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ClientContext } from './host-services';
|
|
2
|
-
/**
|
|
3
|
-
* Embeddable K-line workspace for the paper-trading panel.
|
|
4
|
-
*
|
|
5
|
-
* The host declares the `paperTrading.kline` slot and passes the selected
|
|
6
|
-
* symbol plus an identity callback. dsh_kline owns the chart, its data source
|
|
7
|
-
* and the in-chart search; selecting an instrument there updates the paper
|
|
8
|
-
* ticket through `onIdentity`.
|
|
9
|
-
*/
|
|
10
|
-
export declare function PaperKlinePanel({ symbol, onIdentity }: {
|
|
11
|
-
symbol?: string;
|
|
12
|
-
onIdentity?: (symbol?: string, name?: string) => void;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
14
|
-
/** Fill the paper-trading chart slot, only when the host declares it. */
|
|
15
|
-
export declare function registerPaperTradingHost(ctx: ClientContext): void;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ClientContext } from './host-services';
|
|
2
|
-
/** Panel type registered into a host that provides the free-canvas `canvas` service. */
|
|
3
|
-
export declare const KLINE_CANVAS_TYPE = "ft.kline.chart";
|
|
4
|
-
/** The transparent per-instance data the canvas hands to a panel body. */
|
|
5
|
-
interface CanvasPanelInstance {
|
|
6
|
-
id: string;
|
|
7
|
-
typeId: string;
|
|
8
|
-
title: string;
|
|
9
|
-
}
|
|
10
|
-
/** Only the public owner props this panel consumes. */
|
|
11
|
-
export interface CanvasPanelOwner {
|
|
12
|
-
instance?: CanvasPanelInstance;
|
|
13
|
-
publish(channel: string, value: unknown): void;
|
|
14
|
-
resolve(channel: string): unknown;
|
|
15
|
-
read(channel: string): unknown;
|
|
16
|
-
/** Host day/night, when the canvas is new enough to expose it. */
|
|
17
|
-
colorScheme?(): 'light' | 'dark';
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* One chart panel on the free canvas.
|
|
21
|
-
*
|
|
22
|
-
* The canvas hands over its public owner props only, so this component never
|
|
23
|
-
* imports the canvas implementation: the selected instrument arrives on the
|
|
24
|
-
* `instrument` channel and the chart's own selection is published back on the
|
|
25
|
-
* same channel. The chart body is the very component the sidebar tab renders,
|
|
26
|
-
* which is what keeps the two visually identical.
|
|
27
|
-
*/
|
|
28
|
-
export declare function KlineCanvasPanel({ owner }: {
|
|
29
|
-
owner?: CanvasPanelOwner;
|
|
30
|
-
}): import("react").JSX.Element | null;
|
|
31
|
-
/** Register the chart panel type and its body, only when the host has a canvas. */
|
|
32
|
-
export declare function registerCanvasHost(ctx: ClientContext): void;
|
|
33
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface Options {
|
|
2
|
-
conversationId?: string;
|
|
3
|
-
viewId: string;
|
|
4
|
-
capture: () => any;
|
|
5
|
-
isActive: () => boolean;
|
|
6
|
-
apply: (payload: any, token: string) => any;
|
|
7
|
-
confirm?: (token: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function createChartApplyController(options: Options): {
|
|
10
|
-
consume(command: any, publication: any): any;
|
|
11
|
-
confirm(ack: any): void;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const CONTEXT_PUBLICATION_TIMEOUT_MS = 8000;
|
|
2
|
-
interface Options {
|
|
3
|
-
conversationId?: string;
|
|
4
|
-
capture: () => any;
|
|
5
|
-
isActive: () => boolean;
|
|
6
|
-
transport?: (body: any, signal?: AbortSignal) => Promise<any>;
|
|
7
|
-
viewId?: string;
|
|
8
|
-
publicationTimeoutMs?: number;
|
|
9
|
-
apply?: (payload: any, token: string) => any;
|
|
10
|
-
confirm?: (token: string) => void;
|
|
11
|
-
feedback?: () => any;
|
|
12
|
-
captureSource?: () => any;
|
|
13
|
-
bindSource?: (token: string, previous: string | null) => void;
|
|
14
|
-
confirmSource?: (token: string, confirmed: boolean) => void;
|
|
15
|
-
onSourceStatus?: (status: any) => void;
|
|
16
|
-
onPublished?: (publication: any) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare function createChartContextPublisher(options: Options): {
|
|
19
|
-
notify(): void;
|
|
20
|
-
retrySource(): void;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Sessions } from './conversation';
|
|
2
|
-
/**
|
|
3
|
-
* The client context `apply` receives (only the members this plugin uses).
|
|
4
|
-
*
|
|
5
|
-
* Kept in its own module so host adapters can name the context without
|
|
6
|
-
* importing the plugin entry: this file has no runtime code, so it cannot
|
|
7
|
-
* create an import cycle.
|
|
8
|
-
*/
|
|
9
|
-
export interface ClientContext {
|
|
10
|
-
effect(callback: () => () => void, label?: string): void;
|
|
11
|
-
inject(deps: string[], callback: (ctx: ClientContext) => void): unknown;
|
|
12
|
-
get(name: string): unknown;
|
|
13
|
-
sessions: Sessions;
|
|
14
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface ChartReference {
|
|
2
|
-
session: string;
|
|
3
|
-
order: number;
|
|
4
|
-
recovery?: boolean;
|
|
5
|
-
recoverySourceSessions?: string[];
|
|
6
|
-
}
|
|
7
|
-
export interface Observable<T> {
|
|
8
|
-
getSnapshot(): T;
|
|
9
|
-
subscribe(listener: () => void): () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface ConversationSnapshot {
|
|
12
|
-
nodes?: readonly any[];
|
|
13
|
-
}
|
|
14
|
-
export interface SessionEventWindow {
|
|
15
|
-
entries: readonly {
|
|
16
|
-
type: string;
|
|
17
|
-
event: any;
|
|
18
|
-
}[];
|
|
19
|
-
}
|
|
20
|
-
export interface SessionListSnapshot {
|
|
21
|
-
current?: string;
|
|
22
|
-
byId?: Record<string, {
|
|
23
|
-
retainedBy?: {
|
|
24
|
-
mainView?: number;
|
|
25
|
-
};
|
|
26
|
-
}>;
|
|
27
|
-
}
|
|
28
|
-
export interface Sessions {
|
|
29
|
-
list: Observable<SessionListSnapshot>;
|
|
30
|
-
binding(id: string): {
|
|
31
|
-
session: Observable<ConversationSnapshot>;
|
|
32
|
-
eventSource?: Observable<SessionEventWindow>;
|
|
33
|
-
} | undefined;
|
|
34
|
-
}
|
|
35
|
-
/** Resolve one active conversation across the two public DSH session shapes. */
|
|
36
|
-
export declare function currentConversationId(snapshot: SessionListSnapshot): string | undefined;
|
|
37
|
-
export declare function latestChartFromEvents(entries: SessionEventWindow['entries']): ChartReference | undefined;
|
|
38
|
-
export declare function latestChart(nodes: readonly any[]): ChartReference | undefined;
|
|
39
|
-
export declare function chartStorageKey(conversationId: string): string;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The host-facing contract of the embeddable chart.
|
|
3
|
-
*
|
|
4
|
-
* Kept free of React and of the generated view so both the component and the
|
|
5
|
-
* tests can rely on it: the sidebar mount passes nothing, and every helper here
|
|
6
|
-
* is a no-op for the defaults.
|
|
7
|
-
*/
|
|
8
|
-
/** Chrome an embedded host keeps: the full workspace, the chart page only, or the chart page plus symbol search. */
|
|
9
|
-
export type KlineChrome = 'full' | 'chart' | 'chart-search';
|
|
10
|
-
/** Host options for a chart that lives inside a bounded panel (a canvas panel, a rail, a card). */
|
|
11
|
-
export interface KlineHostProps {
|
|
12
|
-
/** Bounded panel: anchor dialogs to the panel and lay the chart out for the panel height. */
|
|
13
|
-
embedded?: boolean;
|
|
14
|
-
/** Which workspace chrome to keep. Defaults to the full sidebar workspace. */
|
|
15
|
-
chrome?: KlineChrome;
|
|
16
|
-
/** Pin the palette instead of following the host document. */
|
|
17
|
-
theme?: 'dark' | 'light';
|
|
18
|
-
/** Follow an external instrument selection (the canvas `instrument` channel). */
|
|
19
|
-
symbol?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
}
|
|
22
|
-
/** The window-level bridge the view installs for an embedded mount. */
|
|
23
|
-
export interface KlineEmbedApi {
|
|
24
|
-
ready: Promise<unknown>;
|
|
25
|
-
openSymbol(symbol: string, name?: string): Promise<unknown>;
|
|
26
|
-
currentSymbol(): string;
|
|
27
|
-
setTheme(theme: 'dark' | 'light' | 'host'): void;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* The attributes an embedded host turns on. The sidebar passes the defaults and
|
|
31
|
-
* gets `{}` — no attribute, so none of the embedding CSS can ever match it.
|
|
32
|
-
*/
|
|
33
|
-
export declare function klineHostDataset({ embedded, chrome }?: Pick<KlineHostProps, 'embedded' | 'chrome'>): Record<string, string>;
|
|
34
|
-
/** Normalize host identities using the chart's input conventions, retaining the market. */
|
|
35
|
-
export declare function symbolKey(value: string | undefined): string;
|
|
36
|
-
/** Only an exact normalized identity is the same instrument; empty never matches. */
|
|
37
|
-
export declare function sameSymbol(left: string | undefined, right: string | undefined): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mergeHorizontalLineSnapshot(payload: any, saved: any): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { Sessions } from './conversation';
|
|
2
|
-
/**
|
|
3
|
-
* The client context `apply` receives — only the members this plugin uses.
|
|
4
|
-
*
|
|
5
|
-
* Host services are not part of the required surface: each host adapter enters
|
|
6
|
-
* them through an optional `ctx.inject([...])` child, so a host without canvas
|
|
7
|
-
* or slots loads the plugin exactly as before.
|
|
8
|
-
*/
|
|
9
|
-
export interface ClientContext {
|
|
10
|
-
effect(callback: () => () => void, label?: string): void;
|
|
11
|
-
inject(deps: string[], callback: (ctx: ClientContext & HostServices) => void): unknown;
|
|
12
|
-
get(name: string): unknown;
|
|
13
|
-
sessions: Sessions;
|
|
14
|
-
}
|
|
15
|
-
/** Host services a chart panel can be mounted into. */
|
|
16
|
-
export interface HostServices {
|
|
17
|
-
/** The host slot registry; canvas and paper-trading both render panels through it. */
|
|
18
|
-
slots?: SlotsService;
|
|
19
|
-
/** The free-canvas service, present only when the canvas plugin is loaded. */
|
|
20
|
-
canvas?: CanvasService;
|
|
21
|
-
}
|
|
22
|
-
/** The slice of the host `slots` service this plugin registers into. */
|
|
23
|
-
export interface SlotsService {
|
|
24
|
-
inject(name: string, factory: () => unknown): unknown;
|
|
25
|
-
register(options: {
|
|
26
|
-
name: string;
|
|
27
|
-
key?: string;
|
|
28
|
-
id?: string;
|
|
29
|
-
order?: number;
|
|
30
|
-
label?: string;
|
|
31
|
-
}, component: unknown): () => void;
|
|
32
|
-
}
|
|
33
|
-
/** The slice of the host free-canvas service this plugin registers into. */
|
|
34
|
-
export interface CanvasService {
|
|
35
|
-
registerType(descriptor: CanvasPanelType): () => void;
|
|
36
|
-
}
|
|
37
|
-
/** The panel type descriptor a canvas accepts. */
|
|
38
|
-
export interface CanvasPanelType {
|
|
39
|
-
typeId: string;
|
|
40
|
-
title?: string;
|
|
41
|
-
icon?: string;
|
|
42
|
-
category?: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
defaultSize?: {
|
|
45
|
-
w: number;
|
|
46
|
-
h: number;
|
|
47
|
-
};
|
|
48
|
-
singleton?: boolean;
|
|
49
|
-
order?: number;
|
|
50
|
-
channels?: {
|
|
51
|
-
publishes?: string[];
|
|
52
|
-
consumes?: string[];
|
|
53
|
-
provides?: string[];
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type DisplayMode = 'auto' | 'classic' | 'better-sidebar';
|
|
2
|
-
export declare const DISPLAY_MODE_KEY = "dsh-kline:display-mode:v1";
|
|
3
|
-
export declare const AUTO_OPEN_KEY = "dsh-kline:auto-open-after-analysis:v1";
|
|
4
|
-
export declare const UI_SEEN_KEY = "dsh-kline:ui-change-seen:v0.2.0";
|
|
5
|
-
export interface InterfaceState {
|
|
6
|
-
preference: DisplayMode;
|
|
7
|
-
mode: Exclude<DisplayMode, 'auto'>;
|
|
8
|
-
available: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const InterfaceContext: import("react").Context<InterfaceState>;
|
|
11
|
-
export declare function readDisplayMode(storage?: Storage): DisplayMode;
|
|
12
|
-
export declare function resolveDisplayMode(_preference: DisplayMode, available: boolean): InterfaceState['mode'];
|
|
13
|
-
export declare function readAutoOpen(storage?: Storage): boolean;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The static half of the native right-Sidebar integration.
|
|
3
|
-
*
|
|
4
|
-
* Kept free of JSX so the tests can import it directly: the registration itself
|
|
5
|
-
* needs a host context, but what this plugin contributes — the tab kind, the
|
|
6
|
-
* band it registers in, the chip title and the guide entry — is plain data.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Implementation identity of the tab type; also the key its body registers
|
|
10
|
-
* under. The host only requires it to be unique across every registration, and
|
|
11
|
-
* a package name is the natural value for a type shipped from another package.
|
|
12
|
-
*/
|
|
13
|
-
export declare const NATIVE_TAB_ID = "@ftshare-lab/dsh-kline";
|
|
14
|
-
/** One tab type as DSH's own right-Sidebar registry takes it (the members this plugin sets). */
|
|
15
|
-
export interface NativeSidebarTabDefinition {
|
|
16
|
-
/** Implementation identity, unique across registrations; the body seat dispatches by it. */
|
|
17
|
-
id: string;
|
|
18
|
-
/** Type discriminator — what `openTab` names and what every tab of this type is. */
|
|
19
|
-
kind: string;
|
|
20
|
-
/** Every opening of this type is one page per pane: the chart is a singleton. */
|
|
21
|
-
multiple?: boolean;
|
|
22
|
-
/** Keep a visited body mounted through hiding, Session changes and docking. */
|
|
23
|
-
keepMounted?: boolean;
|
|
24
|
-
/** `extension` is the band for a type shipped outside the product, which is this one. */
|
|
25
|
-
priority?: 'extension' | 'builtin' | 'fallback';
|
|
26
|
-
/** The chip text captured when a tab of this type opens. */
|
|
27
|
-
title: (address: string) => string;
|
|
28
|
-
/** Entry boxes the host's guide page offers for opening this type. */
|
|
29
|
-
guide?: readonly NativeSidebarGuideEntry[];
|
|
30
|
-
}
|
|
31
|
-
/** One guide entry: a capsule that opens this tab type when picked. */
|
|
32
|
-
export interface NativeSidebarGuideEntry {
|
|
33
|
-
id: string;
|
|
34
|
-
order: number;
|
|
35
|
-
title: () => string;
|
|
36
|
-
description?: () => string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The type definition this plugin contributes.
|
|
40
|
-
*
|
|
41
|
-
* A page type (no address `patterns`) is opened by kind, which is what the
|
|
42
|
-
* auto-open path does; the guide entry is how a person reaches the chart from
|
|
43
|
-
* the host's own add-tab page. Both keep the product label separate from the
|
|
44
|
-
* internal kind, exactly like the Better Sidebar title does.
|
|
45
|
-
*
|
|
46
|
-
* `keepMounted` matters for the chart: collapsing the right column or
|
|
47
|
-
* switching tabs must not tear the chart down, because the view keeps its
|
|
48
|
-
* own state (last instrument reference, zoom, drawings) that a remount loses.
|
|
49
|
-
*/
|
|
50
|
-
export declare function nativeTabDefinition(): NativeSidebarTabDefinition;
|
|
51
|
-
/** One line under the guide capsule: what picking it opens, in the host language. */
|
|
52
|
-
export declare function nativeTabDescription(locale?: string): string;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { SidebarRightService, SidebarRightTabsService, SlotsService } from './native-sidebar-services';
|
|
2
|
-
/**
|
|
3
|
-
* The native right-Sidebar registration, without React and without a host
|
|
4
|
-
* context: a pure function over the three host services, so the bootstrap
|
|
5
|
-
* policy (both stages, their teardown order, the deferred body seat) is
|
|
6
|
-
* testable with fakes.
|
|
7
|
-
*
|
|
8
|
-
* A DSH host that owns its right column publishes `sidebarRightTabs` (stage
|
|
9
|
-
* one — what the tab type is) and a keyed `sidebar.right.pane.tab` seat
|
|
10
|
-
* (stage two — the body), navigated by `sidebarRight`. A type without a body
|
|
11
|
-
* makes the host draw "nothing can view this", so the two stages are one unit
|
|
12
|
-
* and any failure backs the type out again.
|
|
13
|
-
*/
|
|
14
|
-
/** The seat a tab type's body registers under. */
|
|
15
|
-
export declare const BODY_SEAT = "sidebar.right.pane.tab";
|
|
16
|
-
/** The host services registration needs, all of them already resolved. */
|
|
17
|
-
export interface NativeTabHost {
|
|
18
|
-
readonly tabs: SidebarRightTabsService;
|
|
19
|
-
readonly navigation: SidebarRightService;
|
|
20
|
-
readonly slots: SlotsService;
|
|
21
|
-
}
|
|
22
|
-
/** What to register, and how the caller wants to hear about it. */
|
|
23
|
-
export interface NativeTabOptions {
|
|
24
|
-
/** The body component registered into the keyed seat. */
|
|
25
|
-
readonly body: unknown;
|
|
26
|
-
/** Business props the body receives; the framework adds its own standard share. */
|
|
27
|
-
readonly bodyProps?: (sessionId: string) => Record<string, unknown>;
|
|
28
|
-
/** Called whenever `available()` changes. */
|
|
29
|
-
readonly onChange?: () => void;
|
|
30
|
-
}
|
|
31
|
-
/** A live native tab: what the router asks, and how the auto-open path opens it. */
|
|
32
|
-
export interface NativeTabRegistration {
|
|
33
|
-
/** Both stages are in place: the tab can actually draw. */
|
|
34
|
-
available(): boolean;
|
|
35
|
-
/** Open (or reveal) the chart tab of the session on screen. */
|
|
36
|
-
open(): void;
|
|
37
|
-
/** Back both stages out. Idempotent, and every teardown is failure-isolated. */
|
|
38
|
-
dispose(): void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Register the chart as a tab type of the host's right column.
|
|
42
|
-
* @param host - the resolved host services.
|
|
43
|
-
* @param options - the body, its props, and the availability callback.
|
|
44
|
-
* @returns the registration, live until `dispose()`.
|
|
45
|
-
*/
|
|
46
|
-
export declare function registerNativeTab(host: NativeTabHost, options: NativeTabOptions): NativeTabRegistration;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Sessions } from './conversation';
|
|
2
|
-
import type { NativeSidebarTabDefinition } from './native-sidebar-contract';
|
|
3
|
-
/**
|
|
4
|
-
* The slices of the host services this plugin reaches for.
|
|
5
|
-
*
|
|
6
|
-
* Each slice names only the members used here, so a host that ships a
|
|
7
|
-
* compatible implementation works without this package depending on the
|
|
8
|
-
* host's client packages. The shapes follow DSH 0.2.1's public faces:
|
|
9
|
-
* `@deepseek-ai/dsh-client-ui-sidebar-right/client` (tab registry and
|
|
10
|
-
* navigation), and `@deepseek-ai/dsh-client-ui-slots` (the keyed seat).
|
|
11
|
-
*/
|
|
12
|
-
/** The right-Sidebar tab registry: stage one of a tab type's registration. */
|
|
13
|
-
export interface SidebarRightTabsService {
|
|
14
|
-
register(definition: NativeSidebarTabDefinition): () => void;
|
|
15
|
-
}
|
|
16
|
-
/** The right-Sidebar navigation face: how a page type is opened. */
|
|
17
|
-
export interface SidebarRightService {
|
|
18
|
-
openTab(kind: string, options?: {
|
|
19
|
-
params?: unknown;
|
|
20
|
-
}): void;
|
|
21
|
-
}
|
|
22
|
-
/** The host `slots` service, limited to the keyed body seat. */
|
|
23
|
-
export interface SlotsService {
|
|
24
|
-
inject(name: string, factory: () => unknown): unknown;
|
|
25
|
-
register(options: SlotsRegistration, component: unknown): () => void;
|
|
26
|
-
}
|
|
27
|
-
/** One keyed seat registration: the body that draws the tabs of `key`'s type. */
|
|
28
|
-
export interface SlotsRegistration {
|
|
29
|
-
name: string;
|
|
30
|
-
key?: string;
|
|
31
|
-
/** Business props for the body; the framework adds the standard share. */
|
|
32
|
-
inject?: (sessionId: string) => Record<string, unknown>;
|
|
33
|
-
}
|
|
34
|
-
/** The metadata hook the host seat binds into every tab body. */
|
|
35
|
-
export interface NativeTabInfo {
|
|
36
|
-
tab: {
|
|
37
|
-
readonly visible: boolean;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
/** What the body seat hands a registered body: its session and the props it needs. */
|
|
41
|
-
export interface NativeTabBodyProps {
|
|
42
|
-
readonly sessionId: string;
|
|
43
|
-
readonly sessions: Sessions;
|
|
44
|
-
readonly useTabInfo: () => NativeTabInfo;
|
|
45
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ClientContext } from './client-context';
|
|
2
|
-
import { type Sessions } from './conversation';
|
|
3
|
-
import type { NativeTabBodyProps } from './native-sidebar-services';
|
|
4
|
-
/**
|
|
5
|
-
* The chart as a tab of the host's own right column.
|
|
6
|
-
*
|
|
7
|
-
* The registration policy lives in `native-sidebar-register.ts`; this module
|
|
8
|
-
* owns the two things that need React or the client context: the tab body and
|
|
9
|
-
* the auto-open trigger. The body is the same chart the Better Sidebar tab
|
|
10
|
-
* draws, mounted against the tab's own conversation.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* One tab body: the chart of the tab's session.
|
|
14
|
-
*
|
|
15
|
-
* A registered tab can still be opened while the user chose Classic mode, or
|
|
16
|
-
* remain mounted while the host changes Sessions. Only the active conversation
|
|
17
|
-
* in Tab mode may publish a chart; otherwise show a harmless explanation.
|
|
18
|
-
* When that conversation owns the tab, visibility is passed through so a
|
|
19
|
-
* collapsed column does not discard the chart's viewport.
|
|
20
|
-
*/
|
|
21
|
-
export declare function NativeKlineTabBody({ sessionId, sessions, useTabInfo }: NativeTabBodyProps): import("react").JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* Auto-open lives in the tab's own session, exactly like the Better Sidebar
|
|
24
|
-
* path; the router decides whether this path is the active interface.
|
|
25
|
-
*/
|
|
26
|
-
export declare function NativeSidebarBridgeView({ bridge, sessions }: {
|
|
27
|
-
bridge: NativeSidebarBridge;
|
|
28
|
-
sessions: Sessions;
|
|
29
|
-
}): import("react").JSX.Element | null;
|
|
30
|
-
/** The host-facing handle the router polls to decide which interface to draw. */
|
|
31
|
-
export interface NativeSidebarBridge {
|
|
32
|
-
/** Both stages registered: the host can draw the chart tab. */
|
|
33
|
-
available(): boolean;
|
|
34
|
-
/** Open (or reveal) the chart tab of the session on screen. */
|
|
35
|
-
open(): void;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Register the chart tab into the host's native right Sidebar.
|
|
39
|
-
*
|
|
40
|
-
* Every host service is optional: a host without `sidebarRightTabs`,
|
|
41
|
-
* `sidebarRight` or `slots` keeps `available() === false` and the plugin's
|
|
42
|
-
* existing interfaces untouched.
|
|
43
|
-
* @param ctx - the client context to register on.
|
|
44
|
-
* @param onChange - called whenever availability changes, so the router repaints.
|
|
45
|
-
* @returns the handle the router and the auto-open path share.
|
|
46
|
-
*/
|
|
47
|
-
export declare function registerNativeSidebar(ctx: ClientContext, onChange: () => void): NativeSidebarBridge;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { BetterSidebarService } from 'dsh-better-sidebar';
|
|
2
|
-
export declare const KLINE_TAB_ID = "ftshare-kline:chart";
|
|
3
|
-
export declare const KLINE_TAB_TITLE_ZH = "\u975E\u51F8 K \u7EBF\u52A9\u624B";
|
|
4
|
-
export declare const KLINE_TAB_TITLE_EN = "FtAI K-Line";
|
|
5
|
-
export declare function klineTabTitle(locale?: string): string;
|
|
6
|
-
export declare function migrateKlineTabTitle(service: BetterSidebarService, tab: {
|
|
7
|
-
id: string;
|
|
8
|
-
type: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
}, sessionId?: string): void;
|
|
11
|
-
export declare function isSidebarUsable(service?: BetterSidebarService): boolean;
|
|
12
|
-
export declare function cleanClassicTabs(service: BetterSidebarService): () => void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const ONBOARDING_KEY = "dsh-kline:onboarding-version:v2";
|
|
2
|
-
export declare function hasPreviousUsage(storage: Storage): boolean;
|
|
3
|
-
export declare function captureOnboarding(storage?: Storage): void;
|
|
4
|
-
export declare function onboardingKind(storage?: Storage): 'upgrade' | 'none';
|
|
5
|
-
/**
|
|
6
|
-
* Only a returning user gets a one-time notice.
|
|
7
|
-
*
|
|
8
|
-
* A fresh install gets no dialog at all: the chart opens straight into its
|
|
9
|
-
* workspace, because the first-run welcome that used to pitch the FTShare key
|
|
10
|
-
* is gone.
|
|
11
|
-
*/
|
|
12
|
-
export declare function classifyOnboarding(storage: Storage, previousUsage: boolean): 'upgrade' | 'none';
|
|
13
|
-
export declare function acknowledgeOnboarding(storage?: Storage): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNewerStableVersion(candidate: string, current: string): boolean;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const FEEDBACK_KINDS: string[];
|
|
2
|
-
export declare const FEEDBACK_STATUSES: string[];
|
|
3
|
-
export declare const FEEDBACK_REASONS: string[];
|
|
4
|
-
export declare function sanitizeDrawingFeedback(raw: any, allowed: any[]): any;
|
|
5
|
-
export declare function collectDrawingFeedback(payload: any, context: any, chart: any, previous?: any[], phase?: string): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** Environment variable naming the bridge file for the Python MCP server. */
|
|
2
|
-
export declare const SETTINGS_CREDENTIAL_ENV = "DSH_KLINE_SETTINGS_KEY_FILE";
|
|
3
|
-
/** Directory, relative to the runtime directory, owned by the host bridge. */
|
|
4
|
-
export declare const CREDENTIAL_DIRECTORY = "credentials";
|
|
5
|
-
/**
|
|
6
|
-
* Structural view of the settings service this bridge depends on.
|
|
7
|
-
*
|
|
8
|
-
* Declared here instead of imported from the settings plugin so that a host
|
|
9
|
-
* without that plugin needs no dependency, type, or build edge on it.
|
|
10
|
-
*/
|
|
11
|
-
export interface FtshareApiKeySettings {
|
|
12
|
-
/** Current Key, `undefined` when nothing is configured. */
|
|
13
|
-
resolve(): Promise<string | undefined>;
|
|
14
|
-
/** Credential invalidation notification; returns an unsubscribe function. */
|
|
15
|
-
subscribe(listener: () => void): () => void;
|
|
16
|
-
}
|
|
17
|
-
/** Host service name published by the DSH FTShare settings plugin. */
|
|
18
|
-
export interface FtshareSettingsService {
|
|
19
|
-
readonly apiKey: FtshareApiKeySettings;
|
|
20
|
-
}
|
|
21
|
-
export interface FtshareSettingsBridgeOptions {
|
|
22
|
-
settings: FtshareSettingsService;
|
|
23
|
-
/** Runtime directory shared with the launcher and the MCP server. */
|
|
24
|
-
runtimeDirectory: string;
|
|
25
|
-
/** Owning DSH host process, matching the accompanying service locator. */
|
|
26
|
-
hostPid?: number;
|
|
27
|
-
/** Optional diagnostic sink; the bridge stays silent without one. */
|
|
28
|
-
warn?: (message: string) => void;
|
|
29
|
-
}
|
|
30
|
-
export interface FtshareSettingsBridge {
|
|
31
|
-
/** Stop following the credential and remove the published file. */
|
|
32
|
-
dispose(): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Path of the credential file published by the DSH host.
|
|
36
|
-
*
|
|
37
|
-
* The launcher mirrors this rule in `scripts/run-dsh-kline.mjs`; keeping the
|
|
38
|
-
* owner pid in the name means a file left behind by an earlier host can never
|
|
39
|
-
* be read by a later one.
|
|
40
|
-
*/
|
|
41
|
-
export declare function settingsCredentialFile(runtimeDirectory: string, hostPid: number): string;
|
|
42
|
-
/**
|
|
43
|
-
* Follow the settings credential until the returned bridge is disposed.
|
|
44
|
-
*
|
|
45
|
-
* The current Key is published immediately and re-published on every
|
|
46
|
-
* invalidation; clearing the Key removes the file. Failures are reported to
|
|
47
|
-
* `warn` and otherwise ignored: a credential convenience must never take the
|
|
48
|
-
* chart down.
|
|
49
|
-
*/
|
|
50
|
-
export declare function startFtshareSettingsBridge(options: FtshareSettingsBridgeOptions): FtshareSettingsBridge;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { type FtshareSettingsService } from './ftshare-settings-bridge.ts';
|
|
3
|
-
export declare const name = "dsh-kline-sidebar";
|
|
4
|
-
export declare const inject: string[];
|
|
5
|
-
interface WebServerContext {
|
|
6
|
-
effect(callback: () => () => void, label: string): void;
|
|
7
|
-
inject?(deps: string[], callback: (ctx: WebServerContext) => void): unknown;
|
|
8
|
-
systemPrompt?: {
|
|
9
|
-
context(input: {
|
|
10
|
-
name: string;
|
|
11
|
-
order: number;
|
|
12
|
-
text: (context: any) => string;
|
|
13
|
-
}): () => void;
|
|
14
|
-
};
|
|
15
|
-
ftshareSettings?: FtshareSettingsService;
|
|
16
|
-
webServer: {
|
|
17
|
-
register(route: {
|
|
18
|
-
kind: 'prefix';
|
|
19
|
-
path: string;
|
|
20
|
-
handler: (request: IncomingMessage, response: ServerResponse) => void | Promise<void>;
|
|
21
|
-
}): () => void;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare function apply(ctx: WebServerContext): void;
|
|
25
|
-
export declare function runtimeDirectory(env?: NodeJS.ProcessEnv): string;
|
|
26
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Canonical explicit labeled paths: no sorting, snapping or automatic waves. */
|
|
2
|
-
export interface LabeledPolylinePoint {
|
|
3
|
-
label: string;
|
|
4
|
-
time: number;
|
|
5
|
-
price: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function sanitizePolylinePoints(raw: any): LabeledPolylinePoint[];
|
|
8
|
-
export declare function polylineOverlayPoints(command: any): {
|
|
9
|
-
timestamp: number;
|
|
10
|
-
value: number;
|
|
11
|
-
}[];
|