-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
104 lines (93 loc) · 2.06 KB
/
types.ts
File metadata and controls
104 lines (93 loc) · 2.06 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
export interface CoinData {
id: string;
symbol: string;
name: string;
price: number;
change24h: number;
volume: string;
marketCap: string;
history: { time: string; price: number }[];
description: string;
image?: string;
high24h?: number;
low24h?: number;
rank?: number;
}
export interface TrendingCoin {
id: string;
name: string;
symbol: string;
market_cap_rank: number;
thumb: string; // URL to small image
price_btc: number;
}
export interface FundingRound {
id: string; // unique key
date: string;
name: string;
round: string;
amount: string;
rawAmount: number; // For sorting
investors: string[]; // Changed to array for better rendering
leadInvestors: string[];
valuation: string;
category: string;
description: string;
link?: string; // Project link
}
export interface IntelEntity {
id: string;
name: string;
type: 'Exchange' | 'Fund' | 'Whale' | 'Defi Protocol';
label: string;
balanceUsd: string;
pnl24h: number;
tags: string[];
}
export interface IntelTransaction {
id: string;
time: string;
fromAddress: string;
fromLabel?: string;
toAddress: string;
toLabel?: string;
tokenSymbol: string;
tokenAmount: number;
valueUsd: number;
hash: string;
}
export enum MessageRole {
USER = 'user',
MODEL = 'model'
}
export interface TrendAnalysisResult {
sentimentScore: number; // 0 to 100
trend: 'Bullish' | 'Bearish' | 'Neutral';
confidence: number;
supportLevels: number[];
resistanceLevels: number[];
keyNarrative: string;
actionableInsight: string;
}
export interface ChatMessage {
id: string;
role: MessageRole;
text: string;
isThinking?: boolean;
trendResult?: TrendAnalysisResult; // Optional field for structured analysis
}
export interface AnalysisConfig {
coinId: string;
context: string;
}
export type LanguageCode = 'zh-TW' | 'en' | 'ru' | 'ko' | 'fr' | 'id';
export type ThemeId = 'dark' | 'light' | 'midnight' | 'ocean' | 'sunset';
export interface Theme {
id: ThemeId;
name: string;
colors: {
bg: string;
card: string;
primary: string;
}
}