Files
hermes_weatherbot/data/markets/singapore_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": "singapore",
"city_name": "Singapore",
"date": "2026-04-18",
"unit": "C",
"station": "WSSS",
"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:28.838426+00:00",
"horizon": "D+0",
"hours_left": 5.4,
"ecmwf": 31.0,
"hrrr": null,
"metar": 33.0,
"best": 31.0,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:36:22.669401+00:00",
"horizon": "D+0",
"hours_left": 4.4,
"ecmwf": 31.0,
"hrrr": null,
"metar": 32.0,
"best": 31.0,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:28.838426+00:00",
"top_bucket": "34.0-34.0C",
"top_price": 0.984
},
{
"ts": "2026-04-18T07:36:22.669401+00:00",
"top_bucket": "34.0-34.0C",
"top_price": 0.993
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Singapore be 25°C or below on April 18?",
"market_id": "1996510",
"range": [
-999.0,
25.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 1964.0
},
{
"question": "Will the highest temperature in Singapore be 26°C on April 18?",
"market_id": "1996511",
"range": [
26.0,
26.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 4591.0
},
{
"question": "Will the highest temperature in Singapore be 27°C on April 18?",
"market_id": "1996512",
"range": [
27.0,
27.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 2656.0
},
{
"question": "Will the highest temperature in Singapore be 28°C on April 18?",
"market_id": "1996513",
"range": [
28.0,
28.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 1851.0
},
{
"question": "Will the highest temperature in Singapore be 29°C on April 18?",
"market_id": "1996514",
"range": [
29.0,
29.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 6429.0
},
{
"question": "Will the highest temperature in Singapore be 30°C on April 18?",
"market_id": "1996515",
"range": [
30.0,
30.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 5431.0
},
{
"question": "Will the highest temperature in Singapore be 31°C on April 18?",
"market_id": "1996516",
"range": [
31.0,
31.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 8368.0
},
{
"question": "Will the highest temperature in Singapore be 32°C on April 18?",
"market_id": "1996517",
"range": [
32.0,
32.0
],
"bid": 0.0,
"ask": 1.0,
"price": 0.0,
"spread": 1.0,
"volume": 6974.0
},
{
"question": "Will the highest temperature in Singapore be 33°C on April 18?",
"market_id": "1996518",
"range": [
33.0,
33.0
],
"bid": 0.0005,
"ask": 0.9995,
"price": 0.0005,
"spread": 0.999,
"volume": 17077.0
},
{
"question": "Will the highest temperature in Singapore be 34°C on April 18?",
"market_id": "1996519",
"range": [
34.0,
34.0
],
"bid": 0.993,
"ask": 0.007,
"price": 0.993,
"spread": -0.986,
"volume": 11177.0
},
{
"question": "Will the highest temperature in Singapore be 35°C or higher on April 18?",
"market_id": "1996520",
"range": [
35.0,
999.0
],
"bid": 0.0145,
"ask": 0.9855,
"price": 0.0145,
"spread": 0.971,
"volume": 10796.0
}
],
"created_at": "2026-04-18T06:34:31.000900+00:00"
}