signulls / poloniex-php-sdk
Poloniex REST API Client
1.0.15
2019-03-19 15:17 UTC
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.3
- predis/predis: ^1.1
- psr/log: ^1.1
- symfony/property-access: ^4.2
- symfony/property-info: ^4.2
- symfony/serializer: ^4.2
Requires (Dev)
- codacy/coverage: ^1.4
- mockery/mockery: ^1.2
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2022-08-21 20:28:46 UTC
README
This repository provides PHP client for Poloniex API.
Prerequisites
- PHP 7.2 or later
- Redis (for tracking your requests to Poloniex API Endpoint)
Installation
Setup this repository with Composer, just add the following to your composer.json:
"require": { "signulls/poloniex-php-sdk": "^1.0" }
Or, of course, you can use command line like a boss:
composer require signulls/poloniex-php-sdk
This library is available on Packagist.
Basic usage
Create Poloniex client
// or any other implementation of CallHistoryInterface $callHistoryManager = new RedisCallHistory($redis); $poloniexClient = new PoloniexClient($callHistoryManager);
Make calls to public API
$serializer = new Serializer(); // Symfony based serializer $publicApi = new PublicApi($poloniexClient, $serializer); $ticker = $publicApi->returnTicker();
Make calls to Trade API
$tradingApi = new TradingApi($poloniexClient, $serializer, false); $tradingApi->setApiKey(new ApiKey('key', 'secret')); $balances = $tradingApi->returnBalances();
Versioning
For transparency into our release cycle and in striving to maintain backward compatibility, project is maintained under the Semantic Versioning guidelines. Sometimes we screw up, but we'll adhere to those rules whenever possible.
Creator
Chasovskih Grisha chasovskihgrisha@gmail.com