Files
hermes_weatherbot/data/markets/lucknow_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": "lucknow",
"city_name": "Lucknow",
"date": "2026-04-18",
"unit": "C",
"station": "VILK",
"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:32.279705+00:00",
"horizon": "D+0",
"hours_left": 5.4,
"ecmwf": 41.2,
"hrrr": null,
"metar": 38.0,
"best": 41.2,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:36:27.765171+00:00",
"horizon": "D+0",
"hours_left": 4.4,
"ecmwf": 41.2,
"hrrr": null,
"metar": 38.0,
"best": 41.2,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:32.279705+00:00",
"top_bucket": "41.0-41.0C",
"top_price": 0.68
},
{
"ts": "2026-04-18T07:36:27.765171+00:00",
"top_bucket": "41.0-41.0C",
"top_price": 0.505
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Lucknow be 39°C or below on April 18?",
"market_id": "1996444",
"range": [
-999.0,
39.0
],
"bid": 0.0505,
"ask": 0.9495,
"price": 0.0505,
"spread": 0.899,
"volume": 6142.0
},
{
"question": "Will the highest temperature in Lucknow be 40°C on April 18?",
"market_id": "1996445",
"range": [
40.0,
40.0
],
"bid": 0.27,
"ask": 0.73,
"price": 0.27,
"spread": 0.46,
"volume": 3788.0
},
{
"question": "Will the highest temperature in Lucknow be 41°C on April 18?",
"market_id": "1996446",
"range": [
41.0,
41.0
],
"bid": 0.505,
"ask": 0.495,
"price": 0.505,
"spread": -0.01,
"volume": 2996.0
},
{
"question": "Will the highest temperature in Lucknow be 42°C on April 18?",
"market_id": "1996447",
"range": [
42.0,
42.0
],
"bid": 0.04,
"ask": 0.96,
"price": 0.04,
"spread": 0.92,
"volume": 2967.0
},
{
"question": "Will the highest temperature in Lucknow be 43°C on April 18?",
"market_id": "1996448",
"range": [
43.0,
43.0
],
"bid": 0.033,
"ask": 0.967,
"price": 0.033,
"spread": 0.934,
"volume": 2922.0
},
{
"question": "Will the highest temperature in Lucknow be 44°C on April 18?",
"market_id": "1996449",
"range": [
44.0,
44.0
],
"bid": 0.0015,
"ask": 0.9985,
"price": 0.0015,
"spread": 0.997,
"volume": 2332.0
},
{
"question": "Will the highest temperature in Lucknow be 45°C on April 18?",
"market_id": "1996450",
"range": [
45.0,
45.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 1913.0
},
{
"question": "Will the highest temperature in Lucknow be 46°C on April 18?",
"market_id": "1996451",
"range": [
46.0,
46.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 1662.0
},
{
"question": "Will the highest temperature in Lucknow be 47°C on April 18?",
"market_id": "1996452",
"range": [
47.0,
47.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 2156.0
},
{
"question": "Will the highest temperature in Lucknow be 48°C on April 18?",
"market_id": "1996453",
"range": [
48.0,
48.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 1197.0
},
{
"question": "Will the highest temperature in Lucknow be 49°C or higher on April 18?",
"market_id": "1996454",
"range": [
49.0,
999.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 1735.0
}
],
"created_at": "2026-04-18T06:34:34.211475+00:00"
}