Skip to content
/ cep Public

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.

License

Notifications You must be signed in to change notification settings

taiak/cep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages