Coder Social home page Coder Social logo

alfagen / gera Goto Github PK

View Code? Open in Web Editor NEW

This project forked from finfex/gera

1.0 1.0 0.0 645 KB

Currency rates generator

Home Page: http://gera.finfex.tech

License: GNU General Public License v3.0

Ruby 81.98% JavaScript 0.84% CSS 0.62% HTML 2.35% Slim 14.21%

gera's Introduction

Gera

Build Status

Multiple rates generator for crypto changers and markets.

Осуществляет

  • Регулярный (ежесекундный) сбор и хранение курсов (ExternalRate) из внешних источников (RateSource)
  • Построение и хранение матрицы базовых курсов (CurrencyRate) для поддерживаемых валют из курсов внешних истичников (ExternalRate) на основе установленного метода расчета (CurrencyRateMode) автоматически или через кросс-курсы.
  • Построение и хранение матрицы конечных курсов (DirectionRate) для поддерживаемых платежных сервисов (PaymentSystem) с установленной комиссией (ExchangeRate)
  • Регулярная группировка базовых и конечных курсов в N-минутные отрезки со свечками для истории (CurrencyRateHistoryInterval и DirectionRateHistoryInterval)
  • Регулярная очистка матриц ежесекундных курсов (за сутки накапливается несколько гигабайт)

Installation

Add this line to your application's Gemfile:

gem 'gera'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gera

Configuration

Add ./config/initializers/gera.rb with this content:

Gera.configure do |config|
  config.cross_pairs = { kzt: :rub, eur: :rub }
end

Supported external sources of basic rates

  • EXMO, Russian Central Bank, Bitfinex, Manual

Supported currencies

  • RUB, USD, BTC, LTC, ETH, DSH, KZT, XRP, ETC, XMR, BCH, EUR, NEO, ZEC

Database

SQL tables diagram - https://github.com/finfex/gera/blob/master/doc/erd.pdf

TODO

  • move Authority to application level
  • Remove STI from RateSource

Contributing

  • Fork
  • Create Pull Request

License

The gem is available as open source under the terms of the GPLv3.

gera's People

Contributors

dapi avatar m1ndg8mer avatar anaumov avatar

Stargazers

Volodymyr Iarovyi avatar

Watchers

James Cloos 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.