npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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:

  1. Open test/mockConfig.template.json file, and input your Coinmate credentials there (key, secret and clientId). For wallet testing also set dest_address to a bitcoin address to send the testing withdrawal to.
  2. Make sure to check on CoinMate API page:
  • [x] Trading enabled,
  • [x] Withdrawals for fast withdrawals directly from CoinMate exchange
  1. Rename mockConfig.template.json to mockConfig.json,
  2. 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 specified
  • FUDGE_FACTOR controls the spread of price for buying in instant mode, and both buying and selling in limit mode.