Skip to content

jkosmetos/php-bittrex-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-bittrex-api

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

Releases

No releases published

Packages

No packages published

Languages