Introducing the litecoin_tools gem

The current version of the Litecoin tools gem can tell you the number of Litecoins in your digital wallet, as well as fetching the most recent Litecoin prices.

Example

require 'litecoin_tools'

lt = LitecoinRPC.new('http://username:password@127.0.0.1:9332') 
p lt.getbalance # this outputs the balance
#=> 0.0

# Example for a BTCe Priceticker:

LitecoinTickers::BTCe.ltcusd
#=> {:high=>31.8, :low=>28.88, :avg=>30.34, :vol=>11141976.56828, :vol_cur=>371040.69801, :last=>30, :buy=>30, :sell=>29.896, :updated=>1387016139, :server_time=>1387016139} 

Tags:
Source:
1559hrs.txt
Published:
14-12-2013 15:59