Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nolim1t/independentreserve
- Owner: nolim1t
- Created: 2015-03-03T09:28:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T09:32:37.000Z (almost 9 years ago)
- Last Synced: 2024-10-28T14:16:40.759Z (20 days ago)
- Topics: bitcoin, exchanges, independentreserve-api, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/nl-independentreserve
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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; '
```