-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy path.env.example
More file actions
61 lines (52 loc) · 2.28 KB
/
.env.example
File metadata and controls
61 lines (52 loc) · 2.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ==================== 全局代理配置 ====================
# HTTP/HTTPS 代理(支持所有交易所:Backpack、Aster、Paradex、Lighter、APEX、StandX)
# 格式: http://USER:PASS@HOST:PORT 或 https://USER:PASS@HOST:PORT
# 若不需要代理,留空即可
HTTP_PROXY=
HTTPS_PROXY=
# Backpack Exchange
BACKPACK_KEY=your_backpack_api_key
BACKPACK_SECRET=your_backpack_secret_key
BASE_URL=https://api.backpack.work
# Aster Exchange
ASTER_API_KEY=your_aster_api_key
ASTER_SECRET_KEY=your_aster_secret_key
# Paradex Exchange (使用 Paradex 賬户認證)
# 需先登入 Paradex 使用 Paradex 地址與私鑰
PARADEX_PRIVATE_KEY=your_paradex_private_key
PARADEX_ACCOUNT_ADDRESS=your_paradex_account_address
PARADEX_BASE_URL=https://api.prod.paradex.trade/v1
# Lighter Exchange
LIGHTER_PRIVATE_KEY=your_private_key
LIGHTER_PUBLIC_KEY=your_public_key
LIGHTER_API_KEY_INDEX=your_API_key_index
LIGHTER_ADDRESS=<your_wallet_address (ignored if LIGHTER_ACCOUNT_INDEX is set)>
# 如果使用主賬户,直接將錢包地址填入 LIGHTER_ADDRESS 環境變量即可,無需查找 account_index
# 如果你需要使用子賬户,請按照以下步驟查找 account_index
# 請在瀏覽器中打開 https://mainnet.zklighter.elliot.ai/api/v1/account?by=l1_address&value=你的錢包地址
# 在返回結果中搜索 "account_index"手動查找並填寫對應的 account_index
LIGHTER_ACCOUNT_INDEX=
LIGHTER_BASE_URL=https://mainnet.zklighter.elliot.ai
# APEX Omni Exchange
APEX_API_KEY=your_apex_api_key
APEX_SECRET_KEY=your_apex_secret_key
APEX_PASSPHRASE=your_apex_passphrase
APEX_ZK_SEEDS=your_apex_zk_seeds
APEX_BASE_URL=https://omni.apex.exchange
# StandX Perps Exchange
# 需先在 StandX 生成 API Token (JWT) 與 Request Sign Key
STANDX_API_TOKEN=your_standx_api_token
STANDX_PRIVATE_KEY=your_standx_signing_key_base64
STANDX_BASE_URL=https://perps.standx.com
STANDX_WS_URL=wss://perps.standx.com/ws-stream/v1
# 可選:用於訂單回報關聯
STANDX_SESSION_ID=
# Optional Features
# ENABLE_DATABASE=1 # 啟用資料庫寫入 (預設0關閉)
# Web 服務器配置
# 主機地址(127.0.0.1 為僅本機訪問)
WEB_HOST=127.0.0.1
# Web 服務器端口號(如果端口被佔用,會自動在 5001-6000 範圍內尋找可用端口)
WEB_PORT=5000
# 調試模式(true 開啟,false 關閉)
WEB_DEBUG=false