major update
This commit is contained in:
@@ -34,6 +34,16 @@ export interface SRLevelSummary {
|
||||
strength: number;
|
||||
}
|
||||
|
||||
// S/R Zone
|
||||
export interface SRZone {
|
||||
low: number;
|
||||
high: number;
|
||||
midpoint: number;
|
||||
strength: number;
|
||||
type: 'support' | 'resistance';
|
||||
level_count: number;
|
||||
}
|
||||
|
||||
// OHLCV
|
||||
export interface OHLCVBar {
|
||||
id: number;
|
||||
@@ -48,6 +58,28 @@ export interface OHLCVBar {
|
||||
}
|
||||
|
||||
// Scores
|
||||
export interface SubScore {
|
||||
name: string;
|
||||
score: number;
|
||||
weight: number;
|
||||
raw_value: number | string | null;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface ScoreBreakdown {
|
||||
sub_scores: SubScore[];
|
||||
formula: string;
|
||||
unavailable: { name: string; reason: string }[];
|
||||
}
|
||||
|
||||
export interface CompositeBreakdown {
|
||||
weights: Record<string, number>;
|
||||
available_dimensions: string[];
|
||||
missing_dimensions: string[];
|
||||
renormalized_weights: Record<string, number>;
|
||||
formula: string;
|
||||
}
|
||||
|
||||
export interface ScoreResponse {
|
||||
symbol: string;
|
||||
composite_score: number | null;
|
||||
@@ -56,6 +88,7 @@ export interface ScoreResponse {
|
||||
dimensions: DimensionScoreDetail[];
|
||||
missing_dimensions: string[];
|
||||
computed_at: string | null;
|
||||
composite_breakdown?: CompositeBreakdown;
|
||||
}
|
||||
|
||||
export interface DimensionScoreDetail {
|
||||
@@ -63,6 +96,7 @@ export interface DimensionScoreDetail {
|
||||
score: number;
|
||||
is_stale: boolean;
|
||||
computed_at: string | null;
|
||||
breakdown?: ScoreBreakdown;
|
||||
}
|
||||
|
||||
export interface RankingEntry {
|
||||
@@ -102,16 +136,25 @@ export interface SRLevel {
|
||||
export interface SRLevelResponse {
|
||||
symbol: string;
|
||||
levels: SRLevel[];
|
||||
zones: SRZone[];
|
||||
visible_levels: SRLevel[];
|
||||
count: number;
|
||||
}
|
||||
|
||||
// Sentiment
|
||||
export interface CitationItem {
|
||||
url: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export interface SentimentScore {
|
||||
id: number;
|
||||
classification: 'bullish' | 'bearish' | 'neutral';
|
||||
confidence: number;
|
||||
source: string;
|
||||
timestamp: string;
|
||||
reasoning: string;
|
||||
citations: CitationItem[];
|
||||
}
|
||||
|
||||
export interface SentimentResponse {
|
||||
@@ -130,6 +173,7 @@ export interface FundamentalResponse {
|
||||
earnings_surprise: number | null;
|
||||
market_cap: number | null;
|
||||
fetched_at: string | null;
|
||||
unavailable_fields: Record<string, string>;
|
||||
}
|
||||
|
||||
// Indicators
|
||||
|
||||
Reference in New Issue
Block a user