Project

btcturk

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple ruby library to interface with BTCTurk API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

BTCTurk Gem Version

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

btcturk

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

  1. Fork it ( http://github.com/krmbzds/btcturk/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request