cbpro-cli
v1.1.0
Published
Coinbase Pro CLI
Readme
cbpro-cli
The slimmest cli wrapper ever for coinbase-pro-node.
Installation
npm install -g cbpro-cliUsage
- Create a directory
.cbproin 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 getProductsAdvanced
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.
