A PHP implementation of the Bittrex API
- php: ^5.6 || ^7.0
- paragonie/random_compat: >=2
- guzzlehttp/guzzle: ^6.3
Using Composer
composer require jkosmetos/php-bittrex-api
The API KEY
and SECRET
can be obtained via your Bittrex profile, under Settings > Manage API Keys. For all available methods, consult the API documentation
$client = new Client();
$currencies = $client->getCurrencies();
var_dump($currencies);
$client = new Client('KEY', 'SECRET');
$balances = $client->getBalances();
var_dump($balances);
$client = new Client('KEY', 'SECRET');
$orders = $client->getOpenOrders(); // Optionally add a market ie: 'ETH-XRP'
var_dump($orders);
- More examples
- Unit tests
- Better documentation
- John Kosmetos - jkosmetos
This project is licensed under the MIT License - see the LICENSE file for details