0.0
No release in over a year
Coin Exchange Parser(CEP) is a functional exchange calculation class which converts received json data from coinbase.com and uses it as a class method.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.5.1
~> 0.1.1
~> 0.3.1
 Project Readme

CEP COINBASE

Coin Exchange Parser(CEP) is a functional exchange calculation class which converts json data received from coinbase.com and uses it as a class method.

Installation

gem install cep_coinbase

Usage Example

require 'cep_coinbase'
c = CEP_COINBASE.new(currency_type: 'ETH')
c.fetch   # fetch values from coinbase.com
c.process # process fetched json values

c.usd     # ETH-USD value
c.try     # ETH-TRY value
c.btc     # ETH-BTC value
c.nocoin  # If nocoin not exists in exchange list this line will throw error

c.exchanges # show all available exchange values with currency values
c.exchanges.keys # all available exchange pairs for currency

c.exchanges['USD'] # ETH-USD value
c.exchanges['TRY'] # ETH-TRY value
c.exchanges['BTC'] # ETH-BTC value
c.exchanges['NOCOIN']  # If NOCOIN not exists in exchange list this line will return nil value