Files
hermes_weatherbot/data/markets/chicago_2026-04-20.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.3 KiB
JSON

{
"city": "chicago",
"city_name": "Chicago",
"date": "2026-04-20",
"unit": "F",
"station": "KORD",
"event_end_date": "2026-04-20T12:00:00Z",
"hours_at_discovery": 53.4,
"status": "open",
"position": null,
"actual_temp": null,
"resolved_outcome": null,
"pnl": null,
"forecast_snapshots": [
{
"ts": "2026-04-18T06:33:33.876961+00:00",
"horizon": "D+2",
"hours_left": 53.4,
"ecmwf": 50,
"hrrr": 57,
"metar": null,
"best": 57,
"best_source": "hrrr"
},
{
"ts": "2026-04-18T07:35:02.766600+00:00",
"horizon": "D+2",
"hours_left": 52.4,
"ecmwf": 50,
"hrrr": 57,
"metar": null,
"best": 57,
"best_source": "hrrr"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:33:33.876961+00:00",
"top_bucket": "-999.0-55.0F",
"top_price": 0.745
},
{
"ts": "2026-04-18T07:35:02.766600+00:00",
"top_bucket": "-999.0-55.0F",
"top_price": 0.735
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Chicago be 55°F or below on April 20?",
"market_id": "2011167",
"range": [
-999.0,
55.0
],
"bid": 0.735,
"ask": 0.265,
"price": 0.735,
"spread": -0.47,
"volume": 219.0
},
{
"question": "Will the highest temperature in Chicago be between 56-57°F on April 20?",
"market_id": "2011168",
"range": [
56.0,
57.0
],
"bid": 0.105,
"ask": 0.895,
"price": 0.105,
"spread": 0.79,
"volume": 318.0
},
{
"question": "Will the highest temperature in Chicago be between 58-59°F on April 20?",
"market_id": "2011169",
"range": [
58.0,
59.0
],
"bid": 0.09,
"ask": 0.91,
"price": 0.09,
"spread": 0.82,
"volume": 80.0
},
{
"question": "Will the highest temperature in Chicago be between 60-61°F on April 20?",
"market_id": "2011170",
"range": [
60.0,
61.0
],
"bid": 0.0465,
"ask": 0.9535,
"price": 0.0465,
"spread": 0.907,
"volume": 308.0
},
{
"question": "Will the highest temperature in Chicago be between 62-63°F on April 20?",
"market_id": "2011171",
"range": [
62.0,
63.0
],
"bid": 0.0245,
"ask": 0.9755,
"price": 0.0245,
"spread": 0.951,
"volume": 327.0
},
{
"question": "Will the highest temperature in Chicago be between 64-65°F on April 20?",
"market_id": "2011172",
"range": [
64.0,
65.0
],
"bid": 0.0075,
"ask": 0.9925,
"price": 0.0075,
"spread": 0.985,
"volume": 267.0
},
{
"question": "Will the highest temperature in Chicago be between 66-67°F on April 20?",
"market_id": "2011173",
"range": [
66.0,
67.0
],
"bid": 0.006,
"ask": 0.994,
"price": 0.006,
"spread": 0.988,
"volume": 290.0
},
{
"question": "Will the highest temperature in Chicago be between 68-69°F on April 20?",
"market_id": "2011174",
"range": [
68.0,
69.0
],
"bid": 0.0065,
"ask": 0.9935,
"price": 0.0065,
"spread": 0.987,
"volume": 434.0
},
{
"question": "Will the highest temperature in Chicago be between 70-71°F on April 20?",
"market_id": "2011175",
"range": [
70.0,
71.0
],
"bid": 0.006,
"ask": 0.994,
"price": 0.006,
"spread": 0.988,
"volume": 233.0
},
{
"question": "Will the highest temperature in Chicago be between 72-73°F on April 20?",
"market_id": "2011176",
"range": [
72.0,
73.0
],
"bid": 0.006,
"ask": 0.994,
"price": 0.006,
"spread": 0.988,
"volume": 228.0
},
{
"question": "Will the highest temperature in Chicago be 74°F or higher on April 20?",
"market_id": "2011177",
"range": [
74.0,
999.0
],
"bid": 0.0055,
"ask": 0.9945,
"price": 0.0055,
"spread": 0.989,
"volume": 232.0
}
],
"created_at": "2026-04-18T06:33:38.007412+00:00"
}