0.7.4 • Published 6 years ago

buy-bitcoin v0.7.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

buy-bitcoin

Buys bitcoin via the Coinbase Pro API.

Setup

  • npm install -g buy-bitcoin
  • Generate a Coinbase Pro Api key
  • buy-bitcoin --init
  • Fill in config.json with your API key details
  • buy-bitcoin <amount>

Usage

buy-bitcoin <usd amount>

This simply places a market buy against the BTC-USD pair, purchasing the specified amount of Bitcoin at the current market price.

Applications

Weekly buy:

Schedule a weekly buy with cron! Use the below to buy $100 in Bitcoin every Monday morning at 9:00 AM:

0 9 * * 1 buy-bitcoin 100

Random buy:

Buy whenever! Just run buy-bitcoin 50 to buy $50 of Bitcoin right now.

Change Log

  • v0.7.4
    • Updates to match GDAX -> Coinbase Pro name change
    • Basically, swap out api.gdax.com with api.pro.coinbase.com
  • v0.7.3
    • Added changelog and tweaked reporting slightly
  • v0.7.2
    • Add timestamps to log message
  • v0.7.1
    • README fix -- correct usage
  • v0.7.0
    • First public version
    • Documentation and configuration changes
  • v0.6.0
    • Prototype
0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago