Files
Hermes-Skills/trading/okx-auto-position/references/okx-contract-specs.md
T
Hermes Skills Manager 6770bc9b9d Initial commit: Hermes Agent skills collection
- Trading skills (OKX, dividend, lottery, quantitative)
- Creative skills (ASCII art, diagrams, video)
- Development skills (GitHub, debugging, TDD)
- Research skills (arXiv, blog monitoring)
- Productivity skills (email, documents, notes)
- MCP integration skills
- Custom user skills
2026-07-05 02:31:15 -04:00

46 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OKX 永续合约规格速查
常用交易对的合约面值和最小下单量。用于跟单方案的仓位计算。
## 查询方法
```python
import requests
proxies = {"http": "http://127.0.0.1:7890", "https": "http://127.0.0.1:7890"}
url = f"https://www.okx.com/api/v5/public/instruments?instType=SWAP&instId={sym}"
r = requests.get(url, proxies=proxies, timeout=10)
inst = r.json()['data'][0]
# ctVal = 每张合约面值(币), minSz = 最小下单量(张), lotSz = 步长(张)
```
## 常用交易对 (2026-07 更新)
| 币种 | instId | ctVal | minSz | 1张≈USDT | 说明 |
|------|--------|-------|-------|----------|------|
| ETH | ETH-USDT-SWAP | 0.1 ETH | 0.01 | ~170 | 麻吉大哥主做 |
| BTC | BTC-USDT-SWAP | 0.01 BTC | 0.01 | ~1,000 | |
| SOL | SOL-USDT-SWAP | 1 SOL | 0.1 | ~80 | 狙击手做空 |
| MU | MU-USDT-SWAP | 1 MU | 0.01 | ~970 | 熬鹰资本 |
| SKHYNIX | SKHYNIX-USDT-SWAP | 1 SKHYNIX | 0.001 | ~1,420 | 熬鹰资本 |
| SNDK | SNDK-USDT-SWAP | 1 SNDK | 0.001 | ~1,740 | 熬鹰资本 |
| HYPE | HYPE-USDT-SWAP | 1 HYPE | 0.01 | ~70 | 狙击手5912做空10x |
| MSTR | MSTR-USDT-SWAP | 1 MSTR | 0.01 | ~100 | 熬鹰资本(已平仓) |
## 仓位计算公式
```
名义值 = 张数 × ctVal × 当前价
保证金 = 名义值 / 杠杆
最小保证金 = minSz × ctVal × 当前价 / 杠杆
```
### 示例:ETH 25x
- 1张 = 0.1 ETH × $1,700 = $170 名义值
- 保证金 = $170 / 25 = $6.8
- 用户可用 $24 → 最多开 3 张 (0.3 ETH, 保证金 $20.4)
### 示例:MU 4x
- 最小 0.01张 = 0.01 MU × $970 = $9.7 名义值
- 保证金 = $9.7 / 4 = $2.4
- 用户可用 $24 → 最多开 0.1张 (10 MU, 保证金 $242) — 超出!
- 建议 0.01-0.02张 (保证金 $2.4-$4.8)