Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 1.3 KB

File metadata and controls

89 lines (56 loc) · 1.3 KB

RenEx CLI (RenHack)

Setup

To get started, clone this repository and type

npm install -g

Init

You can either setup the CLI to use your pre-existing keystore.json file by running:

renex load /path/to/your/keystore.json

Or you can setup the CLI to use your private key by running:

renex encrypt <private-key>

You will be prompted for a password to encrypt your private key after which the encrypted keystore will be stored in ~/.config/renex-cli/keystore.json.

Usage

Reading Balances

To read balances of a specific token:

renex balance <ETH/DGX/TUSD/REN/ZRX/OMG>

Depositing and Withdrawing

To deposit:

renex deposit <amount> <ETH/DGX/TUSD/REN/ZRX/OMG>

To withdraw:

renex withdraw <amount> <ETH/DGX/TUSD/REN/ZRX/OMG>

Opening Orders

To open buy orders:

renex buy <ETH/DGX/TUSD/REN/ZRX/OMG>

To open sell orders:

renex sell <ETH/DGX/TUSD/REN/ZRX/OMG>

You will be prompted by the CLI for further details required to open the order.

Listing Orders

To list previously opened orders:

renex list orders

Listing Balance Actions

To list previous balance actions:

renex list balance

Cancelling Orders

To cancel orders:

renex cancel <order-id>