Files
hermes_weatherbot/data/markets/ankara_2026-04-18.json
T
John Doe f19655cb08 Add Telegram notifications for trade signals and scan summaries
- Add requests + logging imports
- Add TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID to config
- Add send_telegram(), tg_signal(), tg_scan_summary() functions
- Configure SOCKS5h proxy (socks5h://127.0.0.1:6922) for Telegram API
- Send tg_signal() on order filled/failed in scan_and_trade()
- Send tg_scan_summary() after each scan cycle
- Update config.json with bot token and chat ID
2026-04-18 16:53:02 +08:00

194 lines
4.2 KiB
JSON

{
"city": "ankara",
"city_name": "Ankara",
"date": "2026-04-18",
"unit": "C",
"station": "LTAC",
"event_end_date": "2026-04-18T12:00:00Z",
"hours_at_discovery": 5.4,
"status": "open",
"position": null,
"actual_temp": null,
"resolved_outcome": null,
"pnl": null,
"forecast_snapshots": [
{
"ts": "2026-04-18T06:34:16.199277+00:00",
"horizon": "D+0",
"hours_left": 5.4,
"ecmwf": 13.0,
"hrrr": null,
"metar": 10.0,
"best": 13.0,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:35:45.355777+00:00",
"horizon": "D+0",
"hours_left": 4.4,
"ecmwf": 13.0,
"hrrr": null,
"metar": 10.0,
"best": 13.0,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:16.199277+00:00",
"top_bucket": "14.0-14.0C",
"top_price": 0.87
},
{
"ts": "2026-04-18T07:35:45.355777+00:00",
"top_bucket": "14.0-14.0C",
"top_price": 0.935
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Ankara be 12°C or below on April 18?",
"market_id": "1996422",
"range": [
-999.0,
12.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 10796.0
},
{
"question": "Will the highest temperature in Ankara be 13°C on April 18?",
"market_id": "1996423",
"range": [
13.0,
13.0
],
"bid": 0.005,
"ask": 0.995,
"price": 0.005,
"spread": 0.99,
"volume": 35499.0
},
{
"question": "Will the highest temperature in Ankara be 14°C on April 18?",
"market_id": "1996424",
"range": [
14.0,
14.0
],
"bid": 0.935,
"ask": 0.065,
"price": 0.935,
"spread": -0.87,
"volume": 6189.0
},
{
"question": "Will the highest temperature in Ankara be 15°C on April 18?",
"market_id": "1996425",
"range": [
15.0,
15.0
],
"bid": 0.075,
"ask": 0.925,
"price": 0.075,
"spread": 0.85,
"volume": 3845.0
},
{
"question": "Will the highest temperature in Ankara be 16°C on April 18?",
"market_id": "1996426",
"range": [
16.0,
16.0
],
"bid": 0.013,
"ask": 0.987,
"price": 0.013,
"spread": 0.974,
"volume": 5292.0
},
{
"question": "Will the highest temperature in Ankara be 17°C on April 18?",
"market_id": "1996427",
"range": [
17.0,
17.0
],
"bid": 0.008,
"ask": 0.992,
"price": 0.008,
"spread": 0.984,
"volume": 5279.0
},
{
"question": "Will the highest temperature in Ankara be 18°C on April 18?",
"market_id": "1996428",
"range": [
18.0,
18.0
],
"bid": 0.001,
"ask": 0.999,
"price": 0.001,
"spread": 0.998,
"volume": 3606.0
},
{
"question": "Will the highest temperature in Ankara be 19°C on April 18?",
"market_id": "1996429",
"range": [
19.0,
19.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 1758.0
},
{
"question": "Will the highest temperature in Ankara be 20°C on April 18?",
"market_id": "1996430",
"range": [
20.0,
20.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 4347.0
},
{
"question": "Will the highest temperature in Ankara be 21°C on April 18?",
"market_id": "1996431",
"range": [
21.0,
21.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 992.0
},
{
"question": "Will the highest temperature in Ankara be 22°C or higher on April 18?",
"market_id": "1996432",
"range": [
22.0,
999.0
],
"bid": 0.0015,
"ask": 0.9985,
"price": 0.0015,
"spread": 0.997,
"volume": 2153.0
}
],
"created_at": "2026-04-18T06:34:18.089657+00:00"
}