2017 © Pedro Peláez
 

library bittrex-api

PHP client for the Bittrex API

image

codenix-sv/bittrex-api

PHP client for the Bittrex API

  • Thursday, March 15, 2018
  • by codenix-sv
  • Repository
  • 4 Watchers
  • 9 Stars
  • 269 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 6 Versions
  • 40 % Grown

The README.md

bittrex-api

Build Status Scrutinizer Code Quality Test Coverage Maintainability License: MIT Packagist, (*1)

A simple PHP wrapper for Bittrex API. Bittrex is the next generation crypto trading platform., (*2)

Requirements

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ composer require codenix-sv/bittrex-api

or add, (*5)

"codenix-sv/bittrex-api" : "^1.0"

to the require section of your application's composer.json file., (*6)

Basic usage

Example

use Codenixsv\BittrexApi\BittrexClient;

$client = new BittrexClient();
$client->setCredential('API_KEY', 'API_SECRET');

$data = $client->public()->getMarkets();

Available methods

Public API

Get the open and available trading markets

$data = $client->public()->getMarkets();

Get all supported currencies

$data = $client->public()->getCurrencies();

Get the current tick values for a market

$data = $client->public()->getTicker('BTC-LTC');

Get the last 24 hour summary of all active exchanges

$data = $client->public()->getMarketSummaries();

Get the last 24 hour summary of all active exchanges for a market

$data = $client->public()->getMarketSummary('BTC-LTC');

Get the orderbook for a given market

$data = $client->public()->getOrderBook('BTC-LTC');

Get latest trades that have occurred for a specific market

$data = $client->public()->getMarketHistory('BTC-LTC');

Market API

Place a buy order in a specific market

$data = $client->market()->buyLimit('BTC-LTC', 1.2, 1.3);

Place a sell order in a specific market

$data = $client->market()->sellLimit('BTC-LTC', 1.2, 1.3);

Cancel a buy or sell order

$data = $client->market()->cancel('251c48e7-95d4-d53f-ad76-a7c6547b74ca9');

Get all orders that you currently have opened

$data = $client->market()->getOpenOrders('BTC-LTC');

Account API

Get all balances from your account

$data = $client->account()->getBalances();

Get balance from your account for a specific currency

$data = $client->account()->getBalance('BTC');

Get or generate an address for a specific currency

$data = $client->account()->getDepositAddress('BTC');

Withdraw funds from your account

$data = $client->account()->withdraw('BTC', 20.40, 'EAC_ADDRESS');

Get a single order by uuid

$data = $client->account()->getOrder('251c48e7-95d4-d53f-ad76-a7c6547b74ca9');

Get order history

$data = $client->account()->getOrderHistory('BTC-LTC');

Get withdrawal history

$data = $client->account()->getWithdrawalHistory('BTC');

Get deposit history

$data = $client->account()->getDepositHistory('BTC');

Further Information

Please, check the Bittrex site documentation for further information about API., (*7)

License

codenix-sv/bittrex-api is released under the MIT License. See the bundled LICENSE for details., (*8)

The Versions

15/03 2018

dev-master

9999999-dev

PHP client for the Bittrex API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.1

 

The Development Requires

by Vladymyr Svyryd

bitcoin btc bittrex bittrex-api

19/02 2018

dev-strict_type

dev-strict_type

PHP client for the Bittrex API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.1

 

The Development Requires

by Vladymyr Svyryd

bitcoin btc bittrex bittrex-api

19/02 2018

dev-update_badges

dev-update_badges

PHP client for the Bittrex API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.1

 

The Development Requires

by Vladymyr Svyryd

bitcoin btc bittrex bittrex-api

07/12 2017

v0.2.0

0.2.0.0

PHP client for the Bittrex API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.1

 

The Development Requires

by Vladymyr Svyryd

bitcoin btc bittrex bittrex-api

03/12 2017

v0.1.0

0.1.0.0

PHP client for the Bittrex API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.1

 

The Development Requires

by Vladymyr Svyryd

bitcoin btc bittrex bittrex-api

03/12 2017

v0.1-alpha

0.1.0.0-alpha

PHP client for the Bittrex API

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.1

 

The Development Requires

by Vladymyr Svyryd

bitcoin btc bittrex bittrex-api