2017 © Pedro Peláez
 

library independentreserve

API for independentreserve.com.

image

elliotchance/independentreserve

API for independentreserve.com.

  • Sunday, May 6, 2018
  • by chancey
  • Repository
  • 1 Watchers
  • 2 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 5 Open issues
  • 9 Versions
  • 5 % Grown

The README.md

IndependentReserve

Build Status Scrutinizer Code Quality Coverage Status Latest Stable Version Total Downloads License, (*1)

PHP API for independentreserve.com, (*2)

Installation

Using composer:, (*3)

composer require elliotchance/independentreserve

Public APIs

All public APIs are supported, and do not need authentication:, (*4)

use IndependentReserve\PublicClient;
use IndependentReserve\Currency;

$client = new PublicClient();
$marketSummary = $client->getMarketSummary(Currency::XBT, Currency::USD);
printf('%s: %s USD',
    $marketSummary->getCreatedTimestamp()->format('r'),
    $marketSummary->getDayAveragePrice()
);

// Fri, 26 Dec 2014 05:03:34 +0000: 323.21 USD

View all of the public APIs at https://www.independentreserve.com/API#public, (*5)

Private APIs

All private APIs are available. You must use your API key and secret to access them:, (*6)

use IndependentReserve\PrivateClient;
use IndependentReserve\Currency;

$client = new PrivateClient('api_key', 'api_secret');
$address = $client->getBitcoinDepositAddress();
echo $address->getBitcoinAddress();

// 12a7FbBzSGvJd36wNesAxAksLXMWm4oLUJ

View all of the private APIs at https://www.independentreserve.com/API#private, (*7)

All of the public API methods are accessible through the PrivateClient as well:, (*8)

$client = new PrivateClient('api_key', 'api_secret');
$marketSummary = $client->getMarketSummary(Currency::XBT, Currency::USD);

Paging Results

Some of the APIs return their results as paged calls (25 items at a time), you do not need to worry about this because these APIs use elliotchance/iterator which will handle all the paged requests for you on demand, you may use all results as an active array:, (*9)

$client = new PrivateClient('api_key', 'api_secret');
$openOrders = $client->getOpenOrders();

echo count($openOrders);
// 452

var_dump($openOrders[135]); // 136th order

foreach ($openOrders as $order) {
    // ...
}

The Versions

06/05 2018

dev-master

9999999-dev https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

06/05 2018

v1.1.5

1.1.5.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

24/04 2018

v1.1.4

1.1.4.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

06/02 2018

v1.1.3

1.1.3.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

05/02 2018

v1.1.2

1.1.2.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

04/08 2015

v1.1.1

1.1.1.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

03/01 2015

dev-minor-cleanup

dev-minor-cleanup https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

01/01 2015

v1.1

1.1.0.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xbt

26/12 2014

v1.0

1.0.0.0 https://github.com/elliotchance/independentreserve

API for independentreserve.com.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elliot Chance

bitcoin independentreserve independent reserve xtc