Files
hermes_weatherbot/data/markets/singapore_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": "singapore",
"city_name": "Singapore",
"date": "2026-04-20",
"unit": "C",
"station": "WSSS",
"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:34:28.838426+00:00",
"horizon": "D+2",
"hours_left": 53.4,
"ecmwf": 28.4,
"hrrr": null,
"metar": null,
"best": 28.4,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:36:22.669401+00:00",
"horizon": "D+2",
"hours_left": 52.4,
"ecmwf": 28.4,
"hrrr": null,
"metar": null,
"best": 28.4,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:28.838426+00:00",
"top_bucket": "32.0-999.0C",
"top_price": 0.605
},
{
"ts": "2026-04-18T07:36:22.669401+00:00",
"top_bucket": "32.0-999.0C",
"top_price": 0.6
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Singapore be 22°C or below on April 20?",
"market_id": "2011266",
"range": [
-999.0,
22.0
],
"bid": 0.0035,
"ask": 0.9965,
"price": 0.0035,
"spread": 0.993,
"volume": 320.0
},
{
"question": "Will the highest temperature in Singapore be 23°C on April 20?",
"market_id": "2011267",
"range": [
23.0,
23.0
],
"bid": 0.0055,
"ask": 0.9945,
"price": 0.0055,
"spread": 0.989,
"volume": 240.0
},
{
"question": "Will the highest temperature in Singapore be 24°C on April 20?",
"market_id": "2011268",
"range": [
24.0,
24.0
],
"bid": 0.0065,
"ask": 0.9935,
"price": 0.0065,
"spread": 0.987,
"volume": 190.0
},
{
"question": "Will the highest temperature in Singapore be 25°C on April 20?",
"market_id": "2011269",
"range": [
25.0,
25.0
],
"bid": 0.0095,
"ask": 0.9905,
"price": 0.0095,
"spread": 0.981,
"volume": 190.0
},
{
"question": "Will the highest temperature in Singapore be 26°C on April 20?",
"market_id": "2011270",
"range": [
26.0,
26.0
],
"bid": 0.0095,
"ask": 0.9905,
"price": 0.0095,
"spread": 0.981,
"volume": 170.0
},
{
"question": "Will the highest temperature in Singapore be 27°C on April 20?",
"market_id": "2011271",
"range": [
27.0,
27.0
],
"bid": 0.0055,
"ask": 0.9945,
"price": 0.0055,
"spread": 0.989,
"volume": 174.0
},
{
"question": "Will the highest temperature in Singapore be 28°C on April 20?",
"market_id": "2011272",
"range": [
28.0,
28.0
],
"bid": 0.025,
"ask": 0.975,
"price": 0.025,
"spread": 0.95,
"volume": 208.0
},
{
"question": "Will the highest temperature in Singapore be 29°C on April 20?",
"market_id": "2011273",
"range": [
29.0,
29.0
],
"bid": 0.0265,
"ask": 0.9735,
"price": 0.0265,
"spread": 0.947,
"volume": 345.0
},
{
"question": "Will the highest temperature in Singapore be 30°C on April 20?",
"market_id": "2011274",
"range": [
30.0,
30.0
],
"bid": 0.14,
"ask": 0.86,
"price": 0.14,
"spread": 0.72,
"volume": 39.0
},
{
"question": "Will the highest temperature in Singapore be 31°C on April 20?",
"market_id": "2011275",
"range": [
31.0,
31.0
],
"bid": 0.215,
"ask": 0.785,
"price": 0.215,
"spread": 0.57,
"volume": 5.0
},
{
"question": "Will the highest temperature in Singapore be 32°C or higher on April 20?",
"market_id": "2011276",
"range": [
32.0,
999.0
],
"bid": 0.6,
"ask": 0.4,
"price": 0.6,
"spread": -0.2,
"volume": 138.0
}
],
"created_at": "2026-04-18T06:34:31.831362+00:00"
}