-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
47 lines (41 loc) · 870 Bytes
/
types.ts
File metadata and controls
47 lines (41 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export interface TickerData {
rank: number;
ticker: string;
name: string;
mentions: number;
upvotes: number;
rank_24h_ago: number;
mentions_24h_ago: number;
}
export interface NewsItem {
title: string;
link: string;
pubDate: string;
sentiment?: {
overall: 'Positive' | 'Negative' | 'Neutral';
explanation: string;
impact: string;
};
}
export interface PortfolioHolding {
symbol: string;
shares: number;
buyPrice: number;
currentPrice: number;
}
export interface SiteLink {
name: string;
url: string;
favicon: string;
category: 'Research' | 'Broker' | 'Crypto' | 'News' | 'Tools';
}
export interface CorrelationData {
matrix: { [key: string]: { [key: string]: number } };
tickers: string[];
summary: string;
}
export interface StrategyResult {
code: string;
explanation: string;
logicCheck: string;
}