/** * @test */ public function shouldReturnReserve() { $client = new BitreserveClient(); $this->assertInstanceOf('Bitreserve\\Model\\Reserve', $client->getReserve()); }
<?php require_once 'vendor/autoload.php'; use Bitreserve\BitreserveClient as Client; // Initialize the client. In this case, we don't need an // AUTHORIZATION_TOKEN because the Ticker endpoint is public. $client = new Client(); // Get the reserve summary of all the obligations and assets within it. $statistics = $client->getReserve()->getStatistics(); print_r($statistics); // Get the reserve ledger $pager = $client->getReserve()->getLedger(); print_r($pager->getNext()); // Get latest transactions $pager = $client->getReserve()->getTransactions(); print_r($pager->getNext());