Skip to content

Repository files navigation

Luno API Build Status

This PHP package provides a wrapper for the Luno API.

Installation

composer require "luno/luno-php"

Authentication

Please visit the Settings page to generate an API key.

Example usage

$client = newLuno\Client();
$client->setAuth("api_key_id", "api_key_secret");
$req = newLuno\Request\GetOrderBook();
$req->setPair("XBTZAR");
try {
$res = $client->getOrderBook($req);
echo"Found " . count($res->getBids()) . " bid(s)";
} catch (Luno\Error$e) {
echo$e->message();
}

License

MIT

About

PHP SDK for the Luno API

Topics

Resources

Contributing

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages