Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,15 @@ def btc_market_insights() -> Dict[str, Any]:
|
|
| 85 |
|
| 86 |
@tool
|
| 87 |
def btc_decision(market_insights: Dict[str, Any]) -> Dict[str, str]:
|
| 88 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
decisions = {}
|
| 90 |
price = market_insights["price"]
|
| 91 |
fgi = int(market_insights.get("fear_greed", 50))
|
|
@@ -135,4 +143,4 @@ agent = CodeAgent(
|
|
| 135 |
)
|
| 136 |
|
| 137 |
# --- Launch UI ---
|
| 138 |
-
GradioUI(agent).launch()
|
|
|
|
| 85 |
|
| 86 |
@tool
|
| 87 |
def btc_decision(market_insights: Dict[str, Any]) -> Dict[str, str]:
|
| 88 |
+
"""
|
| 89 |
+
Generate trading decisions based on market insights.
|
| 90 |
+
|
| 91 |
+
Args:
|
| 92 |
+
market_insights (Dict[str, Any]): A dictionary containing market data and technical indicators such as price, moving averages, and fear & greed index.
|
| 93 |
+
|
| 94 |
+
Returns:
|
| 95 |
+
Dict[str, str]: A dictionary containing trading decisions (e.g., "BUY", "SELL", "HODL") for various timeframes.
|
| 96 |
+
"""
|
| 97 |
decisions = {}
|
| 98 |
price = market_insights["price"]
|
| 99 |
fgi = int(market_insights.get("fear_greed", 50))
|
|
|
|
| 143 |
)
|
| 144 |
|
| 145 |
# --- Launch UI ---
|
| 146 |
+
GradioUI(agent).launch()
|