Project

btc38

0.0
No commit activity in last 3 years
No release in over 3 years
Provides a wrapper for btc38.com api.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
>= 0

Runtime

 Project Readme

Btc38

This gem provides a ruby wrapper to the btc38.com api: Link

Installation

Add this line to your application's Gemfile:

gem 'btc38'

And then execute:

$ bundle

Or install it yourself as:

$ gem install btc38

Usage

All methods provided by Btc38 are class methods.

For example, http://www.btc38.com/help/document/2581.html is written as Btc38.ticker

The Btc38 module accepts a setup block for configuration:

Btc38.setup do | config |
    config.key = 'my api key'
    config.secret = 'my secret token'
    config.uid = 'user id'
end

GET requests ( to public ) do not need authentication, and therefor do not need Btc38 to be configured.

POST requests ( to trading ) will need authentication, and you will have to have your own key and secret token.

Contributing

  1. Fork it
  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