- 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-18",
|
|
"unit": "C",
|
|
"station": "ZSPD",
|
|
"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:25.740032+00:00",
|
|
"horizon": "D+0",
|
|
"hours_left": 5.4,
|
|
"ecmwf": 19.3,
|
|
"hrrr": null,
|
|
"metar": 21.0,
|
|
"best": 19.3,
|
|
"best_source": "ecmwf"
|
|
},
|
|
{
|
|
"ts": "2026-04-18T07:36:11.273578+00:00",
|
|
"horizon": "D+0",
|
|
"hours_left": 4.4,
|
|
"ecmwf": 19.3,
|
|
"hrrr": null,
|
|
"metar": 20.0,
|
|
"best": 19.3,
|
|
"best_source": "ecmwf"
|
|
}
|
|
],
|
|
"market_snapshots": [
|
|
{
|
|
"ts": "2026-04-18T06:34:25.740032+00:00",
|
|
"top_bucket": "21.0-21.0C",
|
|
"top_price": 0.962
|
|
},
|
|
{
|
|
"ts": "2026-04-18T07:36:11.273578+00:00",
|
|
"top_bucket": "21.0-21.0C",
|
|
"top_price": 0.996
|
|
}
|
|
],
|
|
"all_outcomes": [
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 15°C or below on April 18?",
|
|
"market_id": "1996499",
|
|
"range": [
|
|
-999.0,
|
|
15.0
|
|
],
|
|
"bid": 0.0,
|
|
"ask": 1.0,
|
|
"price": 0.0,
|
|
"spread": 1.0,
|
|
"volume": 3641.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 16°C on April 18?",
|
|
"market_id": "1996500",
|
|
"range": [
|
|
16.0,
|
|
16.0
|
|
],
|
|
"bid": 0.0,
|
|
"ask": 1.0,
|
|
"price": 0.0,
|
|
"spread": 1.0,
|
|
"volume": 7946.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 17°C on April 18?",
|
|
"market_id": "1996501",
|
|
"range": [
|
|
17.0,
|
|
17.0
|
|
],
|
|
"bid": 0.0,
|
|
"ask": 1.0,
|
|
"price": 0.0,
|
|
"spread": 1.0,
|
|
"volume": 15455.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 18°C on April 18?",
|
|
"market_id": "1996502",
|
|
"range": [
|
|
18.0,
|
|
18.0
|
|
],
|
|
"bid": 0.0,
|
|
"ask": 1.0,
|
|
"price": 0.0,
|
|
"spread": 1.0,
|
|
"volume": 41739.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 19°C on April 18?",
|
|
"market_id": "1996503",
|
|
"range": [
|
|
19.0,
|
|
19.0
|
|
],
|
|
"bid": 0.0,
|
|
"ask": 1.0,
|
|
"price": 0.0,
|
|
"spread": 1.0,
|
|
"volume": 40119.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 20°C on April 18?",
|
|
"market_id": "1996504",
|
|
"range": [
|
|
20.0,
|
|
20.0
|
|
],
|
|
"bid": 0.0005,
|
|
"ask": 0.9995,
|
|
"price": 0.0005,
|
|
"spread": 0.999,
|
|
"volume": 45988.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 21°C on April 18?",
|
|
"market_id": "1996505",
|
|
"range": [
|
|
21.0,
|
|
21.0
|
|
],
|
|
"bid": 0.996,
|
|
"ask": 0.004,
|
|
"price": 0.996,
|
|
"spread": -0.992,
|
|
"volume": 45982.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 22°C on April 18?",
|
|
"market_id": "1996506",
|
|
"range": [
|
|
22.0,
|
|
22.0
|
|
],
|
|
"bid": 0.0035,
|
|
"ask": 0.9965,
|
|
"price": 0.0035,
|
|
"spread": 0.993,
|
|
"volume": 22381.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 23°C on April 18?",
|
|
"market_id": "1996507",
|
|
"range": [
|
|
23.0,
|
|
23.0
|
|
],
|
|
"bid": 0.0035,
|
|
"ask": 0.9965,
|
|
"price": 0.0035,
|
|
"spread": 0.993,
|
|
"volume": 14356.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 24°C on April 18?",
|
|
"market_id": "1996508",
|
|
"range": [
|
|
24.0,
|
|
24.0
|
|
],
|
|
"bid": 0.0005,
|
|
"ask": 0.9995,
|
|
"price": 0.0005,
|
|
"spread": 0.999,
|
|
"volume": 10518.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 25°C or higher on April 18?",
|
|
"market_id": "1996509",
|
|
"range": [
|
|
25.0,
|
|
999.0
|
|
],
|
|
"bid": 0.0005,
|
|
"ask": 0.9995,
|
|
"price": 0.0005,
|
|
"spread": 0.999,
|
|
"volume": 11306.0
|
|
}
|
|
],
|
|
"created_at": "2026-04-18T06:34:27.575987+00:00"
|
|
} |