An efficient poloniex rest api client, built on top of guzzle
- PHP 7.x
- Composer Dependency Manager
- Poloniex account (optional, but required for trading)
composer require andreas-glaser/poloniex-php-client dev-master
<?php
use AndreasGlaser\PPC\PPC;
$apiKey = 'YOUR_PRIVATE_API_KEY';
$apiSecret = 'YOUR_PRIVATE_API_SECRET';
/** @var PPC $pcc */
$pcc = new PPC($apiKey, $apiSecret);
$result = $pcc->buy('BTC_ETH', 0.034, 100, 1);
var_dump($result->decoded);