Recurring buy of bitcoin via the GDAX API
- You will need an account with GDAX, with API credentials. To be safe, only give your API credentials "trade" permissions.
- You will need to be able to run NodeJS 8.0+
- Enough USD in your GDAX account.
- Clone this repository
- Run
npm install
oryarn
- You may need to register for Coinbase to access GDAX
- Create GDAX sandbox API keys with "trade" permissions at https://public.sandbox.gdax.com/settings/api/
- Create GDAX API keys with "trade" permissions at https://www.gdax.com/settings/api
- In your
.env
, fill out the sandbox API keys, secret, and passphrase. See.env.example
for an example. - The default frequency in
config.json
is set atnumberOfDays
to7
so you may want to change thedaysBetweenOrders
inapp.js
to something like3000
to see a market order filled every 3 seconds - You may need to first deposit USD in your GDAX sandbox account by using the UI and clicking Deposit and then choosing an amount from the Coinbase account source
- In directory of the cloned repository of this project, run
node app.js
- Explain how to use Up to deploy
This project is licensed under the MIT License - see the LICENSE.md file for details