Files
hermes_weatherbot/data/markets/tokyo_2026-04-19.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.1 KiB
JSON

{
"city": "tokyo",
"city_name": "Tokyo",
"date": "2026-04-19",
"unit": "C",
"station": "RJTT",
"event_end_date": "2026-04-19T12:00:00Z",
"hours_at_discovery": 29.4,
"status": "open",
"position": null,
"actual_temp": null,
"resolved_outcome": null,
"pnl": null,
"forecast_snapshots": [
{
"ts": "2026-04-18T06:34:22.441395+00:00",
"horizon": "D+1",
"hours_left": 29.4,
"ecmwf": 21.7,
"hrrr": null,
"metar": null,
"best": 21.7,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:36:06.328891+00:00",
"horizon": "D+1",
"hours_left": 28.4,
"ecmwf": 21.7,
"hrrr": null,
"metar": null,
"best": 21.7,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:22.441395+00:00",
"top_bucket": "24.0-24.0C",
"top_price": 0.395
},
{
"ts": "2026-04-18T07:36:06.328891+00:00",
"top_bucket": "24.0-24.0C",
"top_price": 0.4
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Tokyo be 16°C or below on April 19?",
"market_id": "2003821",
"range": [
-999.0,
16.0
],
"bid": 0.0025,
"ask": 0.9975,
"price": 0.0025,
"spread": 0.995,
"volume": 1663.0
},
{
"question": "Will the highest temperature in Tokyo be 17°C on April 19?",
"market_id": "2003822",
"range": [
17.0,
17.0
],
"bid": 0.0025,
"ask": 0.9975,
"price": 0.0025,
"spread": 0.995,
"volume": 1296.0
},
{
"question": "Will the highest temperature in Tokyo be 18°C on April 19?",
"market_id": "2003823",
"range": [
18.0,
18.0
],
"bid": 0.0035,
"ask": 0.9965,
"price": 0.0035,
"spread": 0.993,
"volume": 1599.0
},
{
"question": "Will the highest temperature in Tokyo be 19°C on April 19?",
"market_id": "2003824",
"range": [
19.0,
19.0
],
"bid": 0.005,
"ask": 0.995,
"price": 0.005,
"spread": 0.99,
"volume": 549.0
},
{
"question": "Will the highest temperature in Tokyo be 20°C on April 19?",
"market_id": "2003825",
"range": [
20.0,
20.0
],
"bid": 0.008,
"ask": 0.992,
"price": 0.008,
"spread": 0.984,
"volume": 1204.0
},
{
"question": "Will the highest temperature in Tokyo be 21°C on April 19?",
"market_id": "2003826",
"range": [
21.0,
21.0
],
"bid": 0.007,
"ask": 0.993,
"price": 0.007,
"spread": 0.986,
"volume": 1583.0
},
{
"question": "Will the highest temperature in Tokyo be 22°C on April 19?",
"market_id": "2003827",
"range": [
22.0,
22.0
],
"bid": 0.095,
"ask": 0.905,
"price": 0.095,
"spread": 0.81,
"volume": 2074.0
},
{
"question": "Will the highest temperature in Tokyo be 23°C on April 19?",
"market_id": "2003828",
"range": [
23.0,
23.0
],
"bid": 0.305,
"ask": 0.695,
"price": 0.305,
"spread": 0.39,
"volume": 722.0
},
{
"question": "Will the highest temperature in Tokyo be 24°C on April 19?",
"market_id": "2003829",
"range": [
24.0,
24.0
],
"bid": 0.4,
"ask": 0.6,
"price": 0.4,
"spread": 0.2,
"volume": 1323.0
},
{
"question": "Will the highest temperature in Tokyo be 25°C on April 19?",
"market_id": "2003830",
"range": [
25.0,
25.0
],
"bid": 0.175,
"ask": 0.825,
"price": 0.175,
"spread": 0.65,
"volume": 736.0
},
{
"question": "Will the highest temperature in Tokyo be 26°C or higher on April 19?",
"market_id": "2003831",
"range": [
26.0,
999.0
],
"bid": 0.06,
"ask": 0.94,
"price": 0.06,
"spread": 0.88,
"volume": 1654.0
}
],
"created_at": "2026-04-18T06:34:24.836914+00:00"
}