Files
hermes_weatherbot/data/markets/toronto_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": "toronto",
"city_name": "Toronto",
"date": "2026-04-18",
"unit": "C",
"station": "CYYZ",
"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:39.006007+00:00",
"horizon": "D+0",
"hours_left": 5.4,
"ecmwf": 17.8,
"hrrr": null,
"metar": 9.0,
"best": 17.8,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:36:35.440708+00:00",
"horizon": "D+0",
"hours_left": 4.4,
"ecmwf": 17.8,
"hrrr": null,
"metar": 8.0,
"best": 17.8,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:39.006007+00:00",
"top_bucket": "18.0-18.0C",
"top_price": 0.265
},
{
"ts": "2026-04-18T07:36:35.440708+00:00",
"top_bucket": "18.0-18.0C",
"top_price": 0.26
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Toronto be 11°C or below on April 18?",
"market_id": "1996344",
"range": [
-999.0,
11.0
],
"bid": 0.0025,
"ask": 0.9975,
"price": 0.0025,
"spread": 0.995,
"volume": 8832.0
},
{
"question": "Will the highest temperature in Toronto be 12°C on April 18?",
"market_id": "1996345",
"range": [
12.0,
12.0
],
"bid": 0.0015,
"ask": 0.9985,
"price": 0.0015,
"spread": 0.997,
"volume": 3214.0
},
{
"question": "Will the highest temperature in Toronto be 13°C on April 18?",
"market_id": "1996346",
"range": [
13.0,
13.0
],
"bid": 0.0015,
"ask": 0.9985,
"price": 0.0015,
"spread": 0.997,
"volume": 2105.0
},
{
"question": "Will the highest temperature in Toronto be 14°C on April 18?",
"market_id": "1996347",
"range": [
14.0,
14.0
],
"bid": 0.0125,
"ask": 0.9875,
"price": 0.0125,
"spread": 0.975,
"volume": 3999.0
},
{
"question": "Will the highest temperature in Toronto be 15°C on April 18?",
"market_id": "1996348",
"range": [
15.0,
15.0
],
"bid": 0.008,
"ask": 0.992,
"price": 0.008,
"spread": 0.984,
"volume": 3848.0
},
{
"question": "Will the highest temperature in Toronto be 16°C on April 18?",
"market_id": "1996349",
"range": [
16.0,
16.0
],
"bid": 0.082,
"ask": 0.918,
"price": 0.082,
"spread": 0.836,
"volume": 4755.0
},
{
"question": "Will the highest temperature in Toronto be 17°C on April 18?",
"market_id": "1996350",
"range": [
17.0,
17.0
],
"bid": 0.19,
"ask": 0.81,
"price": 0.19,
"spread": 0.62,
"volume": 4026.0
},
{
"question": "Will the highest temperature in Toronto be 18°C on April 18?",
"market_id": "1996351",
"range": [
18.0,
18.0
],
"bid": 0.26,
"ask": 0.74,
"price": 0.26,
"spread": 0.48,
"volume": 4187.0
},
{
"question": "Will the highest temperature in Toronto be 19°C on April 18?",
"market_id": "1996352",
"range": [
19.0,
19.0
],
"bid": 0.235,
"ask": 0.765,
"price": 0.235,
"spread": 0.53,
"volume": 2109.0
},
{
"question": "Will the highest temperature in Toronto be 20°C on April 18?",
"market_id": "1996353",
"range": [
20.0,
20.0
],
"bid": 0.052,
"ask": 0.948,
"price": 0.052,
"spread": 0.896,
"volume": 4046.0
},
{
"question": "Will the highest temperature in Toronto be 21°C or higher on April 18?",
"market_id": "1996354",
"range": [
21.0,
999.0
],
"bid": 0.03,
"ask": 0.97,
"price": 0.03,
"spread": 0.94,
"volume": 5276.0
}
],
"created_at": "2026-04-18T06:34:41.044833+00:00"
}