-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (35 loc) · 1.4 KB
/
Copy path.env.example
File metadata and controls
42 lines (35 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# LongBridge Platform - Required Environment Variables
# ── Runtime Target (REQUIRED) ──
# 优先使用 QSL_RUNTIME_TARGET_JSON(跨平台共享),否则使用 RUNTIME_TARGET_JSON
RUNTIME_TARGET_JSON={"platform_id":"longbridge","strategy_profile":"soxl_soxx_trend_income","execution_mode":"live","account_scope":"HK","dry_run_only":true}
# ── LongBridge Account ──
ACCOUNT_PREFIX=DEFAULT
ACCOUNT_REGION=DEFAULT
LONGPORT_SECRET_NAME=longport_token_hk
# ── Market ──
LONGBRIDGE_MARKET=US
LONGBRIDGE_MARKET_CALENDAR=NASDAQ
LONGBRIDGE_SYMBOL_SUFFIX=.US
LONGBRIDGE_TRADING_CURRENCY=USD
# ── Notification ──
# QSL_GLOBAL_TELEGRAM_CHAT_ID 和 QSL_NOTIFY_LANG 是跨平台共享的 QSL_ 前缀变量,
# 设置后会覆盖 GLOBAL_TELEGRAM_CHAT_ID 和 NOTIFY_LANG。
TELEGRAM_TOKEN=<from-secret-manager>
GLOBAL_TELEGRAM_CHAT_ID=
QSL_GLOBAL_TELEGRAM_CHAT_ID=
NOTIFY_LANG=zh
QSL_NOTIFY_LANG=
# ── Execution Control ──
LONGBRIDGE_DRY_RUN_ONLY=false
LONGBRIDGE_SAFE_HAVEN_CASH_SUBSTITUTE_THRESHOLD_USD=1000.0
LONGBRIDGE_MIN_RESERVED_CASH_USD=0.0
LONGBRIDGE_MIN_ORDER_NOTIONAL_USD=100.0
# ── Order Execution ──
LIMIT_SELL_DISCOUNT=0.02
LIMIT_BUY_PREMIUM=0.02
ORDER_POLL_INTERVAL_SEC=5
ORDER_POLL_MAX_ATTEMPTS=36
# ── Execution Report ──
EXECUTION_REPORT_OUTPUT_DIR=/tmp/quant_runtime_reports
EXECUTION_REPORT_GCS_URI=gs://your-bucket/execution-reports
QSL_EXECUTION_REPORT_GCS_URI=