Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nolim1t/independentreserve

Ruby library for interfacing with the IndependentReserve API
https://github.com/nolim1t/independentreserve

bitcoin exchanges independentreserve-api ruby

Last synced: 2 days ago
JSON representation

Ruby library for interfacing with the IndependentReserve API

Awesome Lists containing this project

README

        

# IndependentReserve
[![Gem Version](https://badge.fury.io/rb/nl-independentreserve.svg)](https://badge.fury.io/rb/nl-independentreserve)

## About
Ruby gem for interfacing with the IndependentReserve API (https://www.independentreserve.com/Api)

## Installing
* gem install httparty
* gem install nl-independentreserve

## Environment Variables
* ir_access_key
* ir_access_secret

## Usage Examples:
### Example 1
```ruby
require "nl-independentreserve"
i = IndependentReserve.new
puts i.private_GetOpenOrders({:pageIndex => 1, :pageSize => 50})
```

### Example 2
```ruby
require "nl-independentreserve"
i = IndependentReserve.new({:primaryCurrency => "XBT", :secondaryCurrency => "USD"})
puts i.private_GetOpenOrders({:pageIndex => 1, :pageSize => 50})
puts i.public_GetOrderBook
```

### Example 3 Get open order book
```ruby
require "nl-independentreserve"
i = IndependentReserve.new
puts i.public_GetOrderBook
```

### Shell commands
```bash
ruby -e 'require "nl-independentreserve"; i = IndependentReserve.new({:primaryCurrency => "XBT", :secondaryCurrency => "USD"}); puts i.private_GetOpenOrders({:pageIndex => 1, :pageSize => 50}); '

ruby -e 'require "nl-independentreserve"; i = IndependentReserve.new({:primaryCurrency => "XBT", :secondaryCurrency => "USD"}); puts i.public_GetOrderBook; '
```