GithubHelp home page GithubHelp logo

marceluphd / adamant-currencyinfo-services Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamant-im/adamant-currencyinfo-services

0.0 1.0 0.0 41 KB

Currencies rates provider

JavaScript 100.00%

adamant-currencyinfo-services's Introduction

ADAMANT InfoServices is a crypto and fiat currency rates service provider. It collects rates from MOEX and Coinmarketcap, calculates cross-rates, and provides information via API.

Installation

Requirements

  • Ubuntu 16 / Ubuntu 18 (other OS had not been tested)
  • NodeJS v 8+ (already installed if you have a node on your machine)
  • MongoDB (installation instructions)

Setup

su - adamant
git clone https://github.com/Adamant-im/adamant-currencyinfo-services
cd ./adamant-currencyinfo-services
npm i

Pre-launch tuning

nano config.json

Parameters:

  • crypto List of coins to fetch rates from Coincarketcap
  • fiat List of fiat pairs and their codes to fetch from MOEX
  • baseCoins List of coins to calculate all available pairs using crypto and fiat
  • cmcApiKey Coinmarketcap API key. You must get yours at https://coinmarketcap.com/api/.
  • port Port for providing InfoServices Rates API. It will be available at http://IP:port.
  • refreshInterval Refresh rate in minutes to fetch data from MOEX and Coinmarketcap. Note: often requests can lead to blocking of your API keys.
  • Launching

    You can start ADAMANT InfoServices with node app command, but it is recommended to use process manager:

    pm2 start --name info-service app.js 
    

    Add info-service to cron:

    crontab -e
    

    Add string:

    @reboot cd /home/adamant/adamant-currencyinfo-services && pm2 start --name info-service app.js
    

    Usage

    To test InfoServices successfully installed, try to open link http://IP:36668/get?coin=ADM in web browser.

    For usage see InfoServices API documentation.

adamant-currencyinfo-services's People

Contributors

adamant-al avatar bobbjedi avatar test-btc avatar zyuhel avatar

Watchers

 avatar

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.