andreas-glaser / kraken-php-client
An efficient kraken rest api client, built on top of guzzle
Installs: 75
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/andreas-glaser/kraken-php-client
Requires
- php: ^7
- andreas-glaser/php-helpers: ^1.1
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^5
- symfony/var-dumper: @stable
This package is not auto-updated.
Last update: 2020-01-24 16:38:04 UTC
README
An efficient kraken rest api client, built on top of guzzle
Requirements
- PHP 7.x
- Composer Dependency Manager
- Kraken account (optional, but required for trading)
Installation
composer require andreas-glaser/kraken-php-client dev-master
Usage
<?php use AndreasGlaser\KPC\KPC; $apiKey = 'YOUR_PRIVATE_API_KEY'; $apiSecret = 'YOUR_PRIVATE_API_SECRET'; /** @var KPC $kpc */ $kpc = new KPC($apiKey, $apiSecret); $result = $kpc->getTicker(['XBTUSD', 'ETHXBT']); var_dump($result->decoded);