andreas-glaser / poloniex-php-client
An efficient poloniex rest api client, built on top of guzzle
Installs: 8 440
Dependents: 1
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 4
Open Issues: 0
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 auto-updated.
Last update: 2023-11-05 01:47:00 UTC
README
An efficient poloniex rest api client, built on top of guzzle
Requirements
- PHP 7.x
- Composer Dependency Manager
- Poloniex account (optional, but required for trading)
Installation
composer require andreas-glaser/poloniex-php-client dev-master
Usage
<?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);