Skip to content

ruby client for the mtgox.com bitcoin exchange api

License

Notifications You must be signed in to change notification settings

celsopitta/mtgox-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtgox-ruby

ruby api client for the mtgox.com bitcoin exchange

<img src=“https://secure.travis-ci.org/paulasmuth/mtgox-ruby.png” />

Installation

In your Gemfile

gem "mtgox-ruby", :git => "git://github.com/paulasmuth/mtgox-ruby.git"

or

gem install git://github.com/paulasmuth/mtgox-ruby.git

Usage

Get recent trades:

@mtgox_client = MtgoxClient.new	

most_recent_trade = @mtgox_client.recent_trades.first

most_recent_trade.buy?
  => true 

most_recent_trade.sell?
  => false

most_recent_trade.amount
  => 42

most_recent_trade.price
  => 5,23

most_recent_trade.order_id
  => 123123123123

About

ruby client for the mtgox.com bitcoin exchange api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published