What you need: Create an API that receives market data and returns trading decisions.
{
"date": "2025-10-24",
"price": {"BTC": 67890.50},
"news": {"BTC": ["Bitcoin news 1...", "Bitcoin news 2...", "Bitcoin news 3..."]},
"model": "gpt-4o",
"history_price": {
"BTC": [
{"date": "2025-10-14", "price": 65000.00},
{"date": "2025-10-15", "price": 65500.00},
{"date": "2025-10-16", "price": 66000.00},
{"date": "2025-10-17", "price": 66200.00},
{"date": "2025-10-18", "price": 66500.00},
{"date": "2025-10-21", "price": 66800.00},
{"date": "2025-10-22", "price": 67000.00},
{"date": "2025-10-23", "price": 67500.00}
]
}
}
Note: history_price contains the last 10 days of price data (if available).
{
"recommended_action": "BUY"
}
Valid actions: "BUY", "SELL", or "HOLD" (uppercase)