Files
hermes_weatherbot/data/markets/london_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.2 KiB
JSON

{
"city": "london",
"city_name": "London",
"date": "2026-04-20",
"unit": "C",
"station": "EGLC",
"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:57.508115+00:00",
"horizon": "D+2",
"hours_left": 53.4,
"ecmwf": 13.0,
"hrrr": null,
"metar": null,
"best": 13.0,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:35:27.602435+00:00",
"horizon": "D+2",
"hours_left": 52.4,
"ecmwf": 13.0,
"hrrr": null,
"metar": null,
"best": 13.0,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:33:57.508115+00:00",
"top_bucket": "14.0-14.0C",
"top_price": 0.325
},
{
"ts": "2026-04-18T07:35:27.602435+00:00",
"top_bucket": "14.0-14.0C",
"top_price": 0.34
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in London be 8°C or below on April 20?",
"market_id": "2011046",
"range": [
-999.0,
8.0
],
"bid": 0.005,
"ask": 0.995,
"price": 0.005,
"spread": 0.99,
"volume": 271.0
},
{
"question": "Will the highest temperature in London be 9°C on April 20?",
"market_id": "2011047",
"range": [
9.0,
9.0
],
"bid": 0.007,
"ask": 0.993,
"price": 0.007,
"spread": 0.986,
"volume": 261.0
},
{
"question": "Will the highest temperature in London be 10°C on April 20?",
"market_id": "2011048",
"range": [
10.0,
10.0
],
"bid": 0.028,
"ask": 0.972,
"price": 0.028,
"spread": 0.944,
"volume": 237.0
},
{
"question": "Will the highest temperature in London be 11°C on April 20?",
"market_id": "2011049",
"range": [
11.0,
11.0
],
"bid": 0.0435,
"ask": 0.9565,
"price": 0.0435,
"spread": 0.913,
"volume": 553.0
},
{
"question": "Will the highest temperature in London be 12°C on April 20?",
"market_id": "2011050",
"range": [
12.0,
12.0
],
"bid": 0.17,
"ask": 0.83,
"price": 0.17,
"spread": 0.66,
"volume": 404.0
},
{
"question": "Will the highest temperature in London be 13°C on April 20?",
"market_id": "2011051",
"range": [
13.0,
13.0
],
"bid": 0.285,
"ask": 0.715,
"price": 0.285,
"spread": 0.43,
"volume": 114.0
},
{
"question": "Will the highest temperature in London be 14°C on April 20?",
"market_id": "2011052",
"range": [
14.0,
14.0
],
"bid": 0.34,
"ask": 0.66,
"price": 0.34,
"spread": 0.32,
"volume": 127.0
},
{
"question": "Will the highest temperature in London be 15°C on April 20?",
"market_id": "2011053",
"range": [
15.0,
15.0
],
"bid": 0.175,
"ask": 0.825,
"price": 0.175,
"spread": 0.65,
"volume": 246.0
},
{
"question": "Will the highest temperature in London be 16°C on April 20?",
"market_id": "2011054",
"range": [
16.0,
16.0
],
"bid": 0.06,
"ask": 0.94,
"price": 0.06,
"spread": 0.88,
"volume": 338.0
},
{
"question": "Will the highest temperature in London be 17°C on April 20?",
"market_id": "2011055",
"range": [
17.0,
17.0
],
"bid": 0.0115,
"ask": 0.9885,
"price": 0.0115,
"spread": 0.977,
"volume": 196.0
},
{
"question": "Will the highest temperature in London be 18°C or higher on April 20?",
"market_id": "2011056",
"range": [
18.0,
999.0
],
"bid": 0.0085,
"ask": 0.9915,
"price": 0.0085,
"spread": 0.983,
"volume": 237.0
}
],
"created_at": "2026-04-18T06:34:01.130229+00:00"
}