jkosmetos/php-bittrex-api

A PHP implementation of the Bittrex API

dev-master 2018-10-09 09:00 UTC

This package is not auto-updated.

Last update: 2024-10-08 11:37:57 UTC


README

A PHP implementation of the Bittrex API

Requirements

  • php: ^5.6 || ^7.0
  • paragonie/random_compat: >=2
  • guzzlehttp/guzzle: ^6.3

Installation

Using Composer

composer require jkosmetos/php-bittrex-api

Examples

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

Public Methods

$client = new Client();
$currencies = $client->getCurrencies();

var_dump($currencies);

Account Methods

$client = new Client('KEY', 'SECRET'); 
$balances = $client->getBalances();

var_dump($balances);

Market Methods

$client = new Client('KEY', 'SECRET'); 
$orders = $client->getOpenOrders(); // Optionally add a market ie: 'ETH-XRP'

var_dump($orders);

Coming soon

  • More examples
  • Unit tests
  • Better documentation

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details