Spaces:
Sleeping

PERDYPTO commited on
Commit
a581948
·
verified ·
1 Parent(s): 45f8f2e

Delete models.py

Browse files
Files changed (1) hide show
  1. models.py +0 -91
models.py DELETED
@@ -1,91 +0,0 @@
1
- from datetime import datetime
2
- from typing import Optional, List
3
- from pydantic import BaseModel, ConfigDict, Field
4
-
5
-
6
- class CompactCandle(BaseModel):
7
- model_config = ConfigDict(from_attributes=True)
8
-
9
- t: str
10
- o: float
11
- h: float
12
- l: float
13
- c: float
14
- v: float
15
-
16
-
17
- class TAAnalysisResult(BaseModel):
18
- model_config = ConfigDict(from_attributes=True)
19
-
20
- coin_id: str
21
- symbol: str
22
- trend: str
23
- confidence: float
24
- analysis_summary: str
25
- ai_reasoning: str
26
- rsi_signal: str
27
- macd_signal_dir: str
28
- price_vs_bb: str
29
- higher_tf_trend: Optional[str] = None
30
- higher_tf_confidence: Optional[float] = None
31
- higher_tf_rsi_signal: Optional[str] = None
32
- higher_tf_macd_signal_dir: Optional[str] = None
33
- higher_tf_price_vs_bb: Optional[str] = None
34
-
35
-
36
- class NewsSummary(BaseModel):
37
- model_config = ConfigDict(from_attributes=True)
38
-
39
- coin_id: str
40
- symbol: str
41
- overall_sentiment: str
42
- bullish_count: int
43
- bearish_count: int
44
- neutral_count: int
45
- summary: str
46
-
47
-
48
- class ReasoningRequest(BaseModel):
49
- model_config = ConfigDict(from_attributes=True)
50
-
51
- coin_id: str
52
- symbol: str
53
- name: str
54
- current_price: float
55
- price_change_24h: float
56
- volume_24h: float
57
- ta_result: TAAnalysisResult
58
- news_summary: NewsSummary
59
- raw_candles_1m: List[CompactCandle] = Field(default_factory=list)
60
- raw_candles_1h: List[CompactCandle] = Field(default_factory=list)
61
-
62
-
63
- class PredictionOutput(BaseModel):
64
- model_config = ConfigDict(from_attributes=True)
65
-
66
- predicted_1m: Optional[float]
67
- predicted_15m: float
68
- predicted_1h: float
69
- confidence_score: float
70
- reasoning: str
71
- ta_summary: str
72
- news_summary: str
73
-
74
-
75
- class ReasoningResponse(BaseModel):
76
- model_config = ConfigDict(from_attributes=True, protected_namespaces=())
77
-
78
- coin_id: str
79
- symbol: str
80
- name: str
81
- price_at_prediction: float
82
- prediction: PredictionOutput
83
- model_used: str
84
- reasoning_time_ms: int
85
-
86
-
87
- class ErrorResponse(BaseModel):
88
- model_config = ConfigDict(from_attributes=True)
89
-
90
- error: str
91
- detail: Optional[str]