lamassu-coinmate
v1.3.1
Published
Lamassu Coinmate plugin
Downloads
12
Readme
lamassu-coinmate
Lamassu plugin for CoinMate.io exchange. This plugin provides all of the "ticker", "trader", and "wallet" functionalities by using CoinMate services.
Testing
Prior to deploying the plugin in your Lamassu machine, you can verify that all functions are working with the following procedure:
- Open
test/mockConfig.template.json
file, and input your Coinmate credentials there (key, secret and clientId). For wallet testing also setdest_address
to a bitcoin address to send the testing withdrawal to. - Make sure to check on CoinMate API page:
- [x] Trading enabled,
- [x] Withdrawals for fast withdrawals directly from CoinMate exchange
- Rename
mockConfig.template.json
tomockConfig.json
, - Type this into your terminal:
npm update # in case you cloned via git
npm test
NOTE: The tests depend on your account having 5 EUR of available balance (both in EUR and BTC) for trade and will attempt to withdraw 0.001 BTC to the specified address.
Installation
To install the module, go to your lamassu-machine folder and install lamassu-coinmate via npm:
cd /usr/local/lib/node_modules/lamassu-server/
npm install lamassu-coinmate
Next, execute setup:
node_modules/lamassu-coinmate/setup
You will be asked to provide your CoinMate API ID, keys and fiat currency (currently, "EUR" and "CZK" are supported). This will configure lamassu-server to use CoinMate for ticker and trading. The price will be ---.-- in admin panel, this is normal. The script will set coinmate as provider for for ticker, trade and wallet. If you wish to use another plugin for some of the functions, you need to modify the setup script.
You should also execute lamassu-set-locale to change the fiat currency to EUR or CZK.
lamassu-set-locale EUR
Configuration
There are a few options you can configure in node_modules/lamassu-coinmate/config.js
:
TRADE_INSTANT_ORDERS
set to 1 to trade using instant orders, or 0 for limit orders with spread specifiedFUDGE_FACTOR
controls the spread of price for buying in instant mode, and both buying and selling in limit mode.