- 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-20",
|
|
"unit": "C",
|
|
"station": "ZSPD",
|
|
"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:25.740032+00:00",
|
|
"horizon": "D+2",
|
|
"hours_left": 53.4,
|
|
"ecmwf": 20.6,
|
|
"hrrr": null,
|
|
"metar": null,
|
|
"best": 20.6,
|
|
"best_source": "ecmwf"
|
|
},
|
|
{
|
|
"ts": "2026-04-18T07:36:11.273578+00:00",
|
|
"horizon": "D+2",
|
|
"hours_left": 52.4,
|
|
"ecmwf": 20.6,
|
|
"hrrr": null,
|
|
"metar": null,
|
|
"best": 20.6,
|
|
"best_source": "ecmwf"
|
|
}
|
|
],
|
|
"market_snapshots": [
|
|
{
|
|
"ts": "2026-04-18T06:34:25.740032+00:00",
|
|
"top_bucket": "20.0-20.0C",
|
|
"top_price": 0.32
|
|
},
|
|
{
|
|
"ts": "2026-04-18T07:36:11.273578+00:00",
|
|
"top_bucket": "20.0-20.0C",
|
|
"top_price": 0.33
|
|
}
|
|
],
|
|
"all_outcomes": [
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 12°C or below on April 20?",
|
|
"market_id": "2011255",
|
|
"range": [
|
|
-999.0,
|
|
12.0
|
|
],
|
|
"bid": 0.0065,
|
|
"ask": 0.9935,
|
|
"price": 0.0065,
|
|
"spread": 0.987,
|
|
"volume": 204.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 13°C on April 20?",
|
|
"market_id": "2011256",
|
|
"range": [
|
|
13.0,
|
|
13.0
|
|
],
|
|
"bid": 0.007,
|
|
"ask": 0.993,
|
|
"price": 0.007,
|
|
"spread": 0.986,
|
|
"volume": 182.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 14°C on April 20?",
|
|
"market_id": "2011257",
|
|
"range": [
|
|
14.0,
|
|
14.0
|
|
],
|
|
"bid": 0.0065,
|
|
"ask": 0.9935,
|
|
"price": 0.0065,
|
|
"spread": 0.987,
|
|
"volume": 261.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 15°C on April 20?",
|
|
"market_id": "2011258",
|
|
"range": [
|
|
15.0,
|
|
15.0
|
|
],
|
|
"bid": 0.015,
|
|
"ask": 0.985,
|
|
"price": 0.015,
|
|
"spread": 0.97,
|
|
"volume": 125.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 16°C on April 20?",
|
|
"market_id": "2011259",
|
|
"range": [
|
|
16.0,
|
|
16.0
|
|
],
|
|
"bid": 0.035,
|
|
"ask": 0.965,
|
|
"price": 0.035,
|
|
"spread": 0.93,
|
|
"volume": 198.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 17°C on April 20?",
|
|
"market_id": "2011260",
|
|
"range": [
|
|
17.0,
|
|
17.0
|
|
],
|
|
"bid": 0.045,
|
|
"ask": 0.955,
|
|
"price": 0.045,
|
|
"spread": 0.91,
|
|
"volume": 741.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 18°C on April 20?",
|
|
"market_id": "2011261",
|
|
"range": [
|
|
18.0,
|
|
18.0
|
|
],
|
|
"bid": 0.15,
|
|
"ask": 0.85,
|
|
"price": 0.15,
|
|
"spread": 0.7,
|
|
"volume": 320.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 19°C on April 20?",
|
|
"market_id": "2011262",
|
|
"range": [
|
|
19.0,
|
|
19.0
|
|
],
|
|
"bid": 0.255,
|
|
"ask": 0.745,
|
|
"price": 0.255,
|
|
"spread": 0.49,
|
|
"volume": 54.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 20°C on April 20?",
|
|
"market_id": "2011263",
|
|
"range": [
|
|
20.0,
|
|
20.0
|
|
],
|
|
"bid": 0.33,
|
|
"ask": 0.67,
|
|
"price": 0.33,
|
|
"spread": 0.34,
|
|
"volume": 41.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 21°C on April 20?",
|
|
"market_id": "2011264",
|
|
"range": [
|
|
21.0,
|
|
21.0
|
|
],
|
|
"bid": 0.16,
|
|
"ask": 0.84,
|
|
"price": 0.16,
|
|
"spread": 0.68,
|
|
"volume": 51.0
|
|
},
|
|
{
|
|
"question": "Will the highest temperature in Shanghai be 22°C or higher on April 20?",
|
|
"market_id": "2011265",
|
|
"range": [
|
|
22.0,
|
|
999.0
|
|
],
|
|
"bid": 0.16,
|
|
"ask": 0.84,
|
|
"price": 0.16,
|
|
"spread": 0.68,
|
|
"volume": 107.0
|
|
}
|
|
],
|
|
"created_at": "2026-04-18T06:34:28.411810+00:00"
|
|
} |