This article is for our legacy version, discontinued in 2017 and incompatible with new machines.
Please use the latest setup instructions if you've recently received a machine.
This is a resource for existing operators still on the old generation platform.
Coinbase Exchange is a US-based bitcoin trading exchange, now available for integration with USD machines. When using our plugin, the machine will pull from Coinbase's ticker source and instantly convert fiat to bitcoin within your Coinbase Exchange account with each purchase at the machine.
For security reasons, you will need to every so often transfer the bitcoin balance from your exchange account to your machine's hot wallet, as this is not performed automatically.
You'll need a Coinbase account: https://www.coinbase.com/signup
Log into Coinbase Exchange and select the API link from the menu: http://exchange.coinbase.com/settings. When creating the key, only enable 'Trade' and 'View' permissions, not 'Transfer'.
For the module, you'll need to know the:
- API Key
- API Secret
- Password (entered during API key creation)
Run these three commands individually:
cd /usr/lib/node_modules/lamassu-server/ npm install lamassu-coinbase@latest node node_modules/lamassu-coinbase/setup
Then enter each value, hitting Enter. The
Password field will intentionally remain blank when pasting.
Test by conducting a transaction and verifying the trading history of your Coinbase Exchange account.
For now, Coinbase is configured solely through your server, rather than admin. Thus, within the admin, the exchange panel will show as 'Active' but lack credentials. The setup script above is what informs the server of the correct credentials and can be used again if these change. To disable trading at any time, run
Also, the current price within the admin will show as
---.--. The machine will display the correct rate from Coinbase (plus your commission).
If you change your commission rate in the admin, this may reset the price source. To place the ticker back onto Coinbase, run:
curl -#o ~/coinbase-ticker.json https://gist.githubusercontent.com/naconner/53ec8c979eced9d402ad/raw/b13caf9a935edbaa13c59ef05edd01acb93dec65/coinbase-ticker.json && lamassu-update-config ~/coinbase-ticker.json
We value your feedback and experience with the module. Please let us know at email@example.com.