@okx_ai/okx-trade-cli 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # okx-trade-cli
1
+ [English](README.md) | [中文](README.zh-CN.md)
2
2
 
3
- ## English
3
+ # okx-trade-cli
4
4
 
5
5
  Command line tool for OKX. Supports market data, account queries, spot and swap
6
6
  trading, and configuration management.
@@ -49,56 +49,4 @@ okx spot place --instId BTC-USDT --side buy --ordType market --sz 100
49
49
  okx swap leverage --instId BTC-USDT-SWAP --lever 10 --mgnMode cross
50
50
  ```
51
51
 
52
- For more details, see the repository README.
53
-
54
- ---
55
-
56
- ## 中文
57
-
58
- OKX 命令行工具,支持行情、账户查询、现货与合约交易,以及配置管理。
59
-
60
- ### 安装
61
-
62
- ```bash
63
- npm install -g @okx_ai/okx-trade-cli
64
- ```
65
-
66
- ### 配置凭证
67
-
68
- 创建 `~/.okx/config.toml`:
69
-
70
- ```toml
71
- default_profile = "demo"
72
-
73
- [profiles.live]
74
- api_key = "your-live-api-key"
75
- secret_key = "your-live-secret-key"
76
- passphrase = "your-live-passphrase"
77
-
78
- [profiles.demo]
79
- api_key = "your-demo-api-key"
80
- secret_key = "your-demo-secret-key"
81
- passphrase = "your-demo-passphrase"
82
- demo = true
83
- ```
84
-
85
- ### 快速使用
86
-
87
- ```bash
88
- okx market ticker BTC-USDT
89
- okx market orderbook BTC-USDT --sz 5
90
- okx account balance
91
- okx spot orders
92
- okx swap positions
93
- ```
94
-
95
- ### 示例
96
-
97
- ```bash
98
- okx market candles BTC-USDT --bar 1H --limit 10
99
- okx account balance BTC,ETH
100
- okx spot place --instId BTC-USDT --side buy --ordType market --sz 100
101
- okx swap leverage --instId BTC-USDT-SWAP --lever 10 --mgnMode cross
102
- ```
103
-
104
- 更多说明请参考仓库根目录 README。
52
+ For more details, see the [repository README](../../README.md).
@@ -0,0 +1,51 @@
1
+ [English](README.md) | [中文](README.zh-CN.md)
2
+
3
+ # okx-trade-cli
4
+
5
+ OKX 命令行工具,支持行情、账户查询、现货与合约交易,以及配置管理。
6
+
7
+ ### 安装
8
+
9
+ ```bash
10
+ npm install -g @okx_ai/okx-trade-cli
11
+ ```
12
+
13
+ ### 配置凭证
14
+
15
+ 创建 `~/.okx/config.toml`:
16
+
17
+ ```toml
18
+ default_profile = "demo"
19
+
20
+ [profiles.live]
21
+ api_key = "your-live-api-key"
22
+ secret_key = "your-live-secret-key"
23
+ passphrase = "your-live-passphrase"
24
+
25
+ [profiles.demo]
26
+ api_key = "your-demo-api-key"
27
+ secret_key = "your-demo-secret-key"
28
+ passphrase = "your-demo-passphrase"
29
+ demo = true
30
+ ```
31
+
32
+ ### 快速使用
33
+
34
+ ```bash
35
+ okx market ticker BTC-USDT
36
+ okx market orderbook BTC-USDT --sz 5
37
+ okx account balance
38
+ okx spot orders
39
+ okx swap positions
40
+ ```
41
+
42
+ ### 示例
43
+
44
+ ```bash
45
+ okx market candles BTC-USDT --bar 1H --limit 10
46
+ okx account balance BTC,ETH
47
+ okx spot place --instId BTC-USDT --side buy --ordType market --sz 100
48
+ okx swap leverage --instId BTC-USDT-SWAP --lever 10 --mgnMode cross
49
+ ```
50
+
51
+ 更多说明请参考[仓库根目录 README](../../README.zh-CN.md)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okx_ai/okx-trade-cli",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "OKX CLI - Command line tool for OKX exchange",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,9 +23,6 @@
23
23
  "cli",
24
24
  "trading"
25
25
  ],
26
- "dependencies": {
27
- "smol-toml": "^1.3.4"
28
- },
29
26
  "devDependencies": {
30
27
  "@types/node": "^25.2.2",
31
28
  "c8": "^10.1.3",