PHP code example of angelkurten / laravel-bittrex

1. Go to this page and download the library: Download angelkurten/laravel-bittrex library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

angelkurten / laravel-bittrex example snippets


'providers' => [
    AngelKurten\Bittrex\BittrexServiceProvider::class,
],

'aliases' => [
    'Bittrex' => Angelkurten\Bittrex\Bittrex::class,
],

use Angelkurten\Bittrex\Bittrex;

// public API methods
Bittrex::getMarkets();
Bittrex::getCurrencies();
Bittrex::getTicker($marker);
Bittrex::getMarketSummaries();
Bittrex::getMarketSummary($market);
Bittrex::getOrderBook($market, $type, $depth = 20);
Bittrex::getMarketHistory($market);

// Public API 2.0 methods
Bittrex::getValidChartDataTickIntervals();
Bittrex::getChartData($market, $tickInterval = 'hour');

// market API methods
Bittrex::buyLimit($market, $quantity, $rate);
Bittrex::sellLimit($market, $quantity, $rate);
Bittrex::cancelOrder($uuid);
Bittrex::getOpenOrders($market = null);

// account API methods
Bittrex::getBalances();
Bittrex::getBalance($currency);
Bittrex::getDepositAddress($currency);
Bittrex::withdraw($currency, $quantity, $address, $paymentId = null);
Bittrex::getOrder($uuid);
Bittrex::getOrderHistory($market = null);
Bittrex::getWithdrawalHistory($currency = null);
Bittrex::getDepositHistory($currency = null);

// For multiple accounts
Bittrex::setAuthKey($key);
Bittrex::setAuthSecret($secret);