Project

bitso

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby API for use with bitso.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10.6
~> 2.0.1
~> 4.2.0
>= 3.3.0

Runtime

>= 4.2.3
~> 1.8.0
 Project Readme

Bitso Ruby GEM

This is the official client library for the Bitso API v2. We provide an intuitive, stable interface to integrate Bitso into your Ruby project.

Installation

Add this line to your application's Gemfile:

gem 'bitso'

Then execute:

bundle install

Or install it yourself as:

gem install bitso

Authentication

Create API Key

More info at: https://bitso.com/api_setup

Setup

require 'bitso'
client = Bitso.new(CLIENT, API_KEY, API_SECRET)

Our API returns Floats by default. However, we recommend you override this option and use BigDecimals instead to avoid loss of precision. In order to do this, you can pass the precise: true parameter to the Bitso client:

require 'bitso'
client = Bitso.new(CLIENT, API_KEY, API_SECRET, precise: true)

Usage

=======

Ticker

The Bitso ticker. Returns last, high, low, volume, bid and ask

client.ticker
client.ticker.low     # => "3500.17"

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