coinbasepro.pl - interact with GDAX / Coinbase Pro
version 0.021
Example:
% cat ~/.coinbasepro [coinbasepro] api_key = YOURKEYHERE api_secret = YOURSECRETHERE api_passphrase = YOURPASSPHRASEHERE % ./bin/coinbasepro.pl coinbasepro.pl (top|buy|sell|products|accounts|orders|ticker|trades|fills|cancel|cancelall) [--verbose] [--dryrun] [--product=BTC-USD] [--price=N] [--size=N] [--cancel]: shows data from GDAX/Coinbase Pro for example: coinbasepro.pl ticker --product=BTC-USD or coinbasepro.pl products coinbasepro.pl: allowed actions: (top|buy|sell|products|accounts|orders|ticker|trades|fills|cancel|cancelall) coinbasepro.pl: first param is action to perform % ./bin/coinbasepro.pl ticker coinbasepro.pl: ticker: BTC-USD: price: 6401.530000 (bid: 6440.57, ask 6440.58), volume 2443.32 (trade_id 11111111) 2018-10-20T18:36:18.288000Z % ./bin/coinbasepro.pl ticker --product ETH-USD coinbasepro.pl: ticker: ETH-USD: price: 203.230000 (bid: 204.23, ask 204.24), volume 38369.91 (trade_id 2222222) 2018-10-20T18:38:08.859000Z % ./bin/coinbasepro.pl accounts coinbasepro.pl: account: $556 coinbasepro.pl: account: 0.0000ETC coinbasepro.pl: account: 0.1000BTC coinbasepro.pl: account: 0.0000LTC coinbasepro.pl: account: 0.0000ETH coinbasepro.pl: account: 0.0000BCH % ./bin/coinbasepro.pl products coinbasepro.pl: products: ETH-BTC ETH-USD LTC-BTC LTC-USD ETH-EUR LTC-EUR BCH-USD BCH-BTC BCH-EUR BTC-USD BTC-GBP BTC-EUR ETC-USD ETC-EUR ETC-BTC ZRX-EUR ZRX-USD ZRX-BTC % ./bin/coinbasepro.pl sell -price 6401.66 -size 0.01 coinbasepro.pl: sell: initiating limit sell of 0.01 BTC-USD at 6401.66 Are you sure you want to sell 0.01 of BTC-USD at 6401.66? (Yes/No) No coinbasepro.pl: Not selling % ./bin/coinbasepro.pl buy -price 6401.66 -size 0.01 coinbasepro.pl: buy: initiating limit buy of 0.01 BTC-USD at 6401.66 Are you sure you want to buy 0.01 of BTC-USD at 6401.66? (Yes/No) No coinbasepro.pl: Not buying
Josh Rabinowitz <joshr>
This software is copyright (c) 2018 by Josh Rabinowitz
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Finance::CoinbasePro::API::CLI::Value, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::CoinbasePro::API::CLI::Value
CPAN shell
perl -MCPAN -e shell install Finance::CoinbasePro::API::CLI::Value
For more information on module installation, please visit the detailed CPAN module installation guide.