A simple ruby library to interface with BTCTurk API.
Also includes an executable for easy commandline access.
Installation
Add this line to your application's Gemfile:
gem 'btcturk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install btcturk
Usage
Commandline
As a Ruby Module
require 'btcturk'
BTCTurk::ticker
=> {"high"=>1290.0,
"last"=>1275.0,
"timestamp"=>1395551544.0,
"bid"=>1275.0,
"volume"=>20.81,
"low"=>1253.03,
"ask"=>1279.98}
List all open orders:
BTCTurk::orderbook
List all trades:
BTCTurk::trades
List all trades after a specific trade-id:
BTCTurk::trades_since('532ded923ab47520bc5841d9')
See your balance:
BTCTurk::balance
See your open orders:
BTCTurk::orders
See your transaction history:
BTCTurk::transactions
Contributing
- Fork it ( http://github.com/krmbzds/btcturk/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request