πŸ’»-CLI Docs
opendex-cli is the command line interface that handles much of the basic interaction with a running opendexd instance. If opendexd is installed globally, it can be launched from any directory. In the recommended opendex-docker setup, it can be used from within the opendexd ctl shell.
To get a list of up-to-date commands, run:
1
opendex-cli --help
Copied!
Calling any one of the listed commands with the --help flag will output additional instructions for that particular command.
Examples for commands:
1
# Manually connect to another opendexd instance (has to be running the same network: simnet/testnet/mainnet)
2
$ opendex-cli connect 025[email protected]1.opendex.network:8885
3
​
4
# Places a new limit order BUYING 10 LTC for a price of 0.0079 BTC per LTC
5
$ opendex-cli buy 10 LTC/BTC 0.0079
6
​
7
# Places a new limit order SELLING 5 LTC for the best market price
8
$ opendex-cli sell 5 LTC/BTC market
Copied!
By default, the CLI output is formatted and abbreviated. Append -j to any of the CLI calls to receive the full output in JSON format.
Last modified 1mo ago
Copy link