Coder Social home page Coder Social logo

buy-bitcoin's Introduction

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

buy-bitcoin's People

Contributors

deviatefish avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

buy-bitcoin's Issues

Clarify what <amount> represents

Thanks DeviateFish :)

When you initially type:

buy-bitcoin

Usage:
buy-bitcoin
buys bitcoin via GDAX

Just a recommendation that should be clarified to designate what it represents when you type buy-bitcoin into terminal: is this in USD or BTC?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.