dipcoin-cli 1.3.1 → 1.3.4
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 +10 -0
- package/dist/cli.cjs +657 -94
- package/dist/cli.cjs.map +1 -1
- package/dist/config/deployed/mainnet/main_contract.json +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -181,6 +181,16 @@ dipcoin-cli position tpsl <symbol> --side <buy|sell> --quantity <q> --leverage <
|
|
|
181
181
|
dipcoin-cli position tpsl <symbol> --side sell --quantity 0.01 --leverage 10 \
|
|
182
182
|
--tp-trigger 105000 --tp-type limit --tp-price 105000
|
|
183
183
|
|
|
184
|
+
# Close positions — CLI figures out side & qty
|
|
185
|
+
dipcoin-cli position close BTC # close 100% of BTC position
|
|
186
|
+
dipcoin-cli position close BTC --percent 50 # close half
|
|
187
|
+
dipcoin-cli position close-all # close every open position
|
|
188
|
+
dipcoin-cli position close-all --percent 50 # halve every open position
|
|
189
|
+
|
|
190
|
+
# Manual form is still supported (specify exact qty yourself):
|
|
191
|
+
dipcoin-cli trade sell BTC 0 10x --qty 0.01 --reduce-only # close 0.01 of a long
|
|
192
|
+
dipcoin-cli trade buy ETH 0 5x --qty 1 --reduce-only # close 1 of a short
|
|
193
|
+
|
|
184
194
|
# Margin operations (on-chain) — auto-prepends a fresh signed price update
|
|
185
195
|
dipcoin-cli position margin add <symbol> <amount>
|
|
186
196
|
dipcoin-cli position margin remove <symbol> <amount>
|