Skip to content

Commit c090c5f

Browse files
committed
fix: 修正 README 中关于代币数量的说明,确保用户理解参数含义
1 parent f8e9937 commit c090c5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ update_leverage("BTC", 10, cross_margin=True)
224224
```
225225

226226
⚠️ **重要**`size` 参数是**代币数量**,不是美元金额!
227-
- ✅ 正确:`market_open_position("SOL", "buy", 0.133)` # 0.133 个 SOL 代币
227+
228+
- ✅ 正确:`market_open_position("SOL", "buy", 0.133)` # 0.133 个 SOL 代币
228229
- ❌ 错误:`market_open_position("SOL", "buy", 20.0)` 误以为是 $20
229230

230231
使用 `calculate_token_amount_from_dollars()` 将美元转换为代币数量。

0 commit comments

Comments
 (0)