- 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
194 lines
4.2 KiB
JSON
194 lines
4.2 KiB
JSON
{
|
|
"city": "shanghai",
|
|
"city_name": "Shanghai",
|
|
"date": "2026-04-19",
|
|
"unit": "C",
|
|
"station": "ZSPD",
|
|
"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:25.740032+00:00",
|
|
"horizon": "D+1",
|
|
"hours_left": 29.4,
|
|
"ecmwf": 20.4,
|
|
"hrrr": null,
|
|
"metar": null,
|
|
"best": 20.4,
|
|
"best_source": "ecmwf"
|
|
},
|
|
{
|
|
"ts": "2026-04-18T07:36:11.273578+00:00",
|
|
"horizon": "D+1",
|
|
"hours_left": 28.4,
|
|
"ecmwf": 20.4,
|
|
"hrrr": null,
|
|
"metar": null,
|
|
"best": 20.4,
|
|
"best_source": "ecmwf"
|
|
}
|
|
],
|
|
"market_snapshots": [
|
|
{
|
|
"ts": "2026-04-18T06:34:25.740032+00:00",
|
|
"top_bucket": "21.0-21.0C",
|
|
"top_price": 0.335
|
|
},
|
|
{
|
|
"ts": "2026-04-18T07:36:11.273578+00:00",
|
|
"top_bucket": "21.0-21.0C",
|
|
"top_price": 0.345
|
|
}
|
|
],
|
|
"all_outcomes": [
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 17°C or below on April 19?",
|
|
"market_id": "2003843",
|
|
"range": [
|
|
-999.0,
|
|
17.0
|
|
],
|
|
"bid": 0.0035,
|
|
"ask": 0.9965,
|
|
"price": 0.0035,
|
|
"spread": 0.993,
|
|
"volume": 2452.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 18°C on April 19?",
|
|
"market_id": "2003844",
|
|
"range": [
|
|
18.0,
|
|
18.0
|
|
],
|
|
"bid": 0.007,
|
|
"ask": 0.993,
|
|
"price": 0.007,
|
|
"spread": 0.986,
|
|
"volume": 2900.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 19°C on April 19?",
|
|
"market_id": "2003845",
|
|
"range": [
|
|
19.0,
|
|
19.0
|
|
],
|
|
"bid": 0.026,
|
|
"ask": 0.974,
|
|
"price": 0.026,
|
|
"spread": 0.948,
|
|
"volume": 5123.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 20°C on April 19?",
|
|
"market_id": "2003846",
|
|
"range": [
|
|
20.0,
|
|
20.0
|
|
],
|
|
"bid": 0.105,
|
|
"ask": 0.895,
|
|
"price": 0.105,
|
|
"spread": 0.79,
|
|
"volume": 1799.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 21°C on April 19?",
|
|
"market_id": "2003847",
|
|
"range": [
|
|
21.0,
|
|
21.0
|
|
],
|
|
"bid": 0.345,
|
|
"ask": 0.655,
|
|
"price": 0.345,
|
|
"spread": 0.31,
|
|
"volume": 1081.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 22°C on April 19?",
|
|
"market_id": "2003848",
|
|
"range": [
|
|
22.0,
|
|
22.0
|
|
],
|
|
"bid": 0.34,
|
|
"ask": 0.66,
|
|
"price": 0.34,
|
|
"spread": 0.32,
|
|
"volume": 1790.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 23°C on April 19?",
|
|
"market_id": "2003849",
|
|
"range": [
|
|
23.0,
|
|
23.0
|
|
],
|
|
"bid": 0.165,
|
|
"ask": 0.835,
|
|
"price": 0.165,
|
|
"spread": 0.67,
|
|
"volume": 1678.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 24°C on April 19?",
|
|
"market_id": "2003850",
|
|
"range": [
|
|
24.0,
|
|
24.0
|
|
],
|
|
"bid": 0.032,
|
|
"ask": 0.968,
|
|
"price": 0.032,
|
|
"spread": 0.936,
|
|
"volume": 2090.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 25°C on April 19?",
|
|
"market_id": "2003851",
|
|
"range": [
|
|
25.0,
|
|
25.0
|
|
],
|
|
"bid": 0.009,
|
|
"ask": 0.991,
|
|
"price": 0.009,
|
|
"spread": 0.982,
|
|
"volume": 2333.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 26°C on April 19?",
|
|
"market_id": "2003852",
|
|
"range": [
|
|
26.0,
|
|
26.0
|
|
],
|
|
"bid": 0.0055,
|
|
"ask": 0.9945,
|
|
"price": 0.0055,
|
|
"spread": 0.989,
|
|
"volume": 828.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 27°C or higher on April 19?",
|
|
"market_id": "2003853",
|
|
"range": [
|
|
27.0,
|
|
999.0
|
|
],
|
|
"bid": 0.0055,
|
|
"ask": 0.9945,
|
|
"price": 0.0055,
|
|
"spread": 0.989,
|
|
"volume": 1606.0
|
|
}
|
|
],
|
|
"created_at": "2026-04-18T06:34:27.991288+00:00"
|
|
} |