• This repository has been archived on 18/Jul/2024
  • Stars
    star
    249
  • Rank 162,987 (Top 4 %)
  • Language
    JavaScript
  • Created over 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Self-hosted crypto and fiat currency rates service provider. MOEX, Currency-Api, ExchangeRate.host, Coinmarketcap, CryptoCompare and Coingecko.

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

It is own-hosted service run on your server, it stores all rates in local database, updated with refreshInterval frequency.

Features:

  • Collects rates from MOEX for fiat tickers
  • Collects rates from Currency-Api for fiat tickers
  • Collects rates from ExchangeRate (Currency-Api2) for fiat tickers
  • Collects rates from Coinmarketcap for crypto tickers
  • Collects rates from CryptoCompare for crypto tickers
  • Collects rates from Coingecko for crypto tickers
  • Own-hosted service
  • Reliable: uses different sources for one coin, and notifies about significant deviation
  • Minimum API calls. Free API keys fit.
  • Notifications in case of errors to Slack
  • Stores history on server, no need to make additional request
  • Easy setup, settings are in a config file
  • Provides RESTful API
  • It is fast; low hardware requirements
  • Open source
  • Free to use for any purposes

Installation

Requirements

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_cmc List of coins to fetch rates from Coinmarketcap
  • crypto_cmc_coinids List of Coinmarketcap Symbol-Id pairs like { "ADM": 3703 } to fetch rates from Coinmarketcap. Used when one coin symbol is used for different coins. Coin ids can be seen via /cryptocurrency/quotes/latest?slug=coinname request.
  • crypto_cc List of coins to fetch rates from Cryptocompare
  • crypto_cg List of coins to fetch rates from Coingecko. Better use crypto_cg_coinids.
  • crypto_cg_coinids <string, array> List of Coingecko coin Ids to fetch rates from Coingecko. Used when one coin symbol is used for different coins. Coin ids can be seen on https://api.coingecko.com/api/v3/coins/list.
  • 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/.
  • ccApiKey Cryptocompare API key. You must get yours at https://min-api.cryptocompare.com/.
  • cgApiKey No need for Coingecko API key. Leave it default.
  • port Port for providing InfoServices Rates API. It will be available at http://IP:port.
  • refreshInterval Refresh rate in minutes to fetch data from data sources. Note: often requests can lead to blocking of your API keys.
  • slack Token for Slack alerts for InfoService administrator. No alerts if not set.
  • adamant_notify ADM address to receive alerts for InfoService administrator. Recommended.
  • passPhrase The secret phrase for account you want to send alerts from. Obligatory in case of you set adamant_notify
  • node_ADM <string, array> List of nodes for API work, obligatorily in case of you set adamant_notify
  • log_level The software will use verbosity according to log_level. It can be none < error < warn < info < log.
  • 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.

More Repositories

1

adamant

ADAMANT Blockchain Node
JavaScript
728
star
2

ETH-transactions-storage

Indexer for Ethereum to get transaction list by ETH address
Python
610
star
3

adamant-im

ADAMANT Decentralized Messenger. Progressive Web Application (PWA)
Vue
583
star
4

adamant-tradebot

Free self-hosted market-making software for cryptocurrency projects and exchanges. Makes trade volume, maintains spread and liquidity/depth, set price range, and builds live-like dynamic order book.
JavaScript
541
star
5

adamant-coinoptimus

Free self-hosted cryptocurrency trade bot for non-professional traders
JavaScript
378
star
6

pool

ADAMANT Forging pool with Web interface
JavaScript
352
star
7

adamant-api-jsclient

ADAMANT Javascript API library
TypeScript
349
star
8

adamant-exchangebot

Crypto exchange bot for ADAMANT
JavaScript
345
star
9

adamant-console

Command-line utilities to work with ADAMANT blockchain
JavaScript
342
star
10

adamant-explorer

ADAMANT Blockchain Explorer
JavaScript
338
star
11

adamant-iOS

iOS native client for ADAMANT Decentralized Messenger
Swift
337
star
12

adamant-2fa

ADAMANT's Blockchain 2FA demo
JavaScript
335
star
13

adamant-notificationService

ADAMANT push Notification Service for iOS Messenger app
C#
324
star
14

AIPs

ADAMANT Improvement Proposal repository
HTML
288
star
15

adamant-wallets

Unified coin/token specification for wallets in ADAMANT apps
Vue
282
star
16

adamant-schema

Swagger schema for ADAMANT node
TypeScript
263
star
17

currencyinfo

Self-hosted crypto and fiat currency rates service provider. Combines MOEX, Currency-Api, ExchangeRate.host, Coinmarketcap, CryptoCompare, and Coingecko.
TypeScript
146
star
18

adamant-android

Android native client for ADAMANT Messenger
Java
28
star
19

adamant-fcm-notification-service

FCM push notification service for ADAMANT
Java
3
star
20

adamant-bountybot

Carry out bounty campaigns & crypto airdrops, with automatic task verifications and payouts. Bounty bots work in ADAMANT Messenger chats directly.
JavaScript
3
star
21

adamant-pool

ADAMANT Forging pool with Web interface
JavaScript
2
star
22

adamant-bet

Anonymous and Blockchain-proved betting on crypto rates
JavaScript
2
star
23

adamant-tradebot-dex

Free market-making software on decentralized exchanges (DEX) for cryptocurrency projects. Makes trade volume, manages liquidity, watches a token price. [In development]
1
star
24

adamant-watchbot

Watches ADAMANT blockchain transactions, notifies about specific ones, recoups fees
JavaScript
1
star
25

adamant-docker

ADAMANT node for Docker
Shell
1
star
26

adamant-trader

Advanced open-source cryptocurrency tradebot
1
star
27

ipfs-node

IPFS decentralized file storage and transfers
1
star