Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 

README.md

IndependentReserve

Gem Version

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

require "nl-independentreserve"
i = IndependentReserve.new
puts i.private_GetOpenOrders({:pageIndex => 1, :pageSize => 50})

Example 2

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

require "nl-independentreserve"
i = IndependentReserve.new
puts i.public_GetOrderBook

Shell commands

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; '

About

Ruby library for interfacing with the IndependentReserve API

Topics

Resources

Packages

No packages published

Languages