@eterna-hybrid-exchange/cli 0.1.0 → 0.1.2
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 +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,34 +5,34 @@ CLI for [Eterna Exchange](https://eterna.exchange) — execute AI trading strate
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx eterna --help
|
|
8
|
+
npx @eterna-hybrid-exchange/cli --help
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Or install globally:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install -g eterna
|
|
14
|
+
npm install -g @eterna-hybrid-exchange/cli
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
# Authenticate (opens browser or shows device code for SSH)
|
|
21
|
-
npx eterna login
|
|
21
|
+
npx @eterna-hybrid-exchange/cli login
|
|
22
22
|
|
|
23
23
|
# Execute a strategy file
|
|
24
|
-
npx eterna execute strategy.ts
|
|
24
|
+
npx @eterna-hybrid-exchange/cli execute strategy.ts
|
|
25
25
|
|
|
26
26
|
# Pipe code via stdin
|
|
27
|
-
echo 'const balance = await eterna.getBalance(); return balance;' | npx eterna execute -
|
|
27
|
+
echo 'const balance = await eterna.getBalance(); return balance;' | npx @eterna-hybrid-exchange/cli execute -
|
|
28
28
|
|
|
29
29
|
# Check balance and positions
|
|
30
|
-
npx eterna balance
|
|
31
|
-
npx eterna positions
|
|
30
|
+
npx @eterna-hybrid-exchange/cli balance
|
|
31
|
+
npx @eterna-hybrid-exchange/cli positions
|
|
32
32
|
|
|
33
33
|
# Browse the SDK
|
|
34
|
-
npx eterna sdk --search "place order"
|
|
35
|
-
npx eterna sdk --detail full
|
|
34
|
+
npx @eterna-hybrid-exchange/cli sdk --search "place order"
|
|
35
|
+
npx @eterna-hybrid-exchange/cli sdk --detail full
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Commands
|