The slimmest cli wrapper ever for coinbase-pro-node.
npm install -g cbpro-cli
- Create a directory
.cbpro
in your home directory - In the directory create a file
config.env
CBPRO_KEY="{key}"
CBPRO_SECRET="{secret}"
CBPRO_PASSPHRASE="{passphrase}"
Replace the values inside the quotes. More about keys located here.
- Invoke
$ cbpro getProducts
The interface takes the first parameter as the exact name of the method to invoke on the AuthenticatedClient.
Any parameters after that are first parsed from json (if possible) and then applied to the function.
$ cbpro getAccount 32195173-0e1f-484b-8ded-465e6c46afc7
$ cbpro placeOrder '{"side": "sell", "price": "59000", "size": "1", "product_id": "BTC-USD"}'
For methods and parameters check coinbase-pro-node.