Skip to content

nolim1t/IndependentReserve

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Packages

No packages published

Languages