dipcoin-cli 1.3.5 → 1.3.7
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 +5 -0
- package/dist/cli.cjs +36084 -16314
- package/dist/cli.cjs.map +1 -1
- package/dist/config/deployed/mainnet/main_contract.json +5 -2
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ The generated `~/.config/dipcoin/env` contains:
|
|
|
49
49
|
| `DIPCOIN_PRIVATE_KEY` | One of these | Sui private key (`suiprivkey1...`), supports ED25519/Secp256k1/Secp256r1 |
|
|
50
50
|
| `DIPCOIN_MNEMONIC` | is required | 12/15/18/21/24-word BIP39 mnemonic |
|
|
51
51
|
| `DIPCOIN_NETWORK` | No | `mainnet` or `testnet` (default: `mainnet`) |
|
|
52
|
+
| `DIPCOIN_RPC_URL` | No | Sui gRPC-Web endpoint (default: public fullnode `https://fullnode.<network>.sui.io:443`, rate-limited). JSON-RPC URLs are not supported |
|
|
52
53
|
|
|
53
54
|
If both are set, `DIPCOIN_PRIVATE_KEY` takes precedence. Manual editing is supported but discouraged — prefer the `setup` commands so format and permissions stay correct.
|
|
54
55
|
|
|
@@ -181,6 +182,10 @@ dipcoin-cli position tpsl <symbol> --side <buy|sell> --quantity <q> --leverage <
|
|
|
181
182
|
dipcoin-cli position tpsl <symbol> --side sell --quantity 0.01 --leverage 10 \
|
|
182
183
|
--tp-trigger 105000 --tp-type limit --tp-price 105000
|
|
183
184
|
|
|
185
|
+
# Set or edit TP/SL on a vault position. Existing plan IDs are discovered automatically.
|
|
186
|
+
dipcoin-cli position tpsl BTC --side sell --quantity 0.01 --leverage 10 \
|
|
187
|
+
--vault <vaultId> --tp-trigger 105000 --sl-trigger 90000
|
|
188
|
+
|
|
184
189
|
# Close positions — CLI figures out side & qty
|
|
185
190
|
dipcoin-cli position close BTC # close 100% of BTC position
|
|
186
191
|
dipcoin-cli position close BTC --percent 50 # close half
|