Files
hermes_weatherbot/data/markets/sao-paulo_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.2 KiB
JSON

{
"city": "sao-paulo",
"city_name": "Sao Paulo",
"date": "2026-04-19",
"unit": "C",
"station": "SBGR",
"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:42.322054+00:00",
"horizon": "D+1",
"hours_left": 29.4,
"ecmwf": 26.7,
"hrrr": null,
"metar": null,
"best": 26.7,
"best_source": "ecmwf"
},
{
"ts": "2026-04-18T07:36:39.712047+00:00",
"horizon": "D+1",
"hours_left": 28.4,
"ecmwf": 26.7,
"hrrr": null,
"metar": null,
"best": 26.7,
"best_source": "ecmwf"
}
],
"market_snapshots": [
{
"ts": "2026-04-18T06:34:42.322054+00:00",
"top_bucket": "27.0-27.0C",
"top_price": 0.38
},
{
"ts": "2026-04-18T07:36:39.712047+00:00",
"top_bucket": "27.0-27.0C",
"top_price": 0.37
}
],
"all_outcomes": [
{
"question": "Will the highest temperature in Sao Paulo be 23°C or below on April 19?",
"market_id": "2003656",
"range": [
-999.0,
23.0
],
"bid": 0.004,
"ask": 0.996,
"price": 0.004,
"spread": 0.992,
"volume": 1642.0
},
{
"question": "Will the highest temperature in Sao Paulo be 24°C on April 19?",
"market_id": "2003657",
"range": [
24.0,
24.0
],
"bid": 0.003,
"ask": 0.997,
"price": 0.003,
"spread": 0.994,
"volume": 2186.0
},
{
"question": "Will the highest temperature in Sao Paulo be 25°C on April 19?",
"market_id": "2003658",
"range": [
25.0,
25.0
],
"bid": 0.018,
"ask": 0.982,
"price": 0.018,
"spread": 0.964,
"volume": 940.0
},
{
"question": "Will the highest temperature in Sao Paulo be 26°C on April 19?",
"market_id": "2003659",
"range": [
26.0,
26.0
],
"bid": 0.115,
"ask": 0.885,
"price": 0.115,
"spread": 0.77,
"volume": 375.0
},
{
"question": "Will the highest temperature in Sao Paulo be 27°C on April 19?",
"market_id": "2003660",
"range": [
27.0,
27.0
],
"bid": 0.37,
"ask": 0.63,
"price": 0.37,
"spread": 0.26,
"volume": 740.0
},
{
"question": "Will the highest temperature in Sao Paulo be 28°C on April 19?",
"market_id": "2003661",
"range": [
28.0,
28.0
],
"bid": 0.335,
"ask": 0.665,
"price": 0.335,
"spread": 0.33,
"volume": 950.0
},
{
"question": "Will the highest temperature in Sao Paulo be 29°C on April 19?",
"market_id": "2003662",
"range": [
29.0,
29.0
],
"bid": 0.155,
"ask": 0.845,
"price": 0.155,
"spread": 0.69,
"volume": 1050.0
},
{
"question": "Will the highest temperature in Sao Paulo be 30°C on April 19?",
"market_id": "2003663",
"range": [
30.0,
30.0
],
"bid": 0.0255,
"ask": 0.9745,
"price": 0.0255,
"spread": 0.949,
"volume": 485.0
},
{
"question": "Will the highest temperature in Sao Paulo be 31°C on April 19?",
"market_id": "2003664",
"range": [
31.0,
31.0
],
"bid": 0.016,
"ask": 0.984,
"price": 0.016,
"spread": 0.968,
"volume": 499.0
},
{
"question": "Will the highest temperature in Sao Paulo be 32°C on April 19?",
"market_id": "2003665",
"range": [
32.0,
32.0
],
"bid": 0.0055,
"ask": 0.9945,
"price": 0.0055,
"spread": 0.989,
"volume": 510.0
},
{
"question": "Will the highest temperature in Sao Paulo be 33°C or higher on April 19?",
"market_id": "2003666",
"range": [
33.0,
999.0
],
"bid": 0.006,
"ask": 0.994,
"price": 0.006,
"spread": 0.988,
"volume": 546.0
}
],
"created_at": "2026-04-18T06:34:44.840611+00:00"
}