koolm / laravel-bittrex
A simple wrapper to seamlessly communicate with the Bittrex API
1.0.0
2018-06-11 18:55 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- laravel/framework: >=5.5
This package is not auto-updated.
Last update: 2024-12-05 23:10:29 UTC
README
Communicate with the Bittrex API.
Configuration
Publish the default configuration:
php artisan vendor:publish --provider="Koolm\Bittrex\BittrexServiceProvider"
Add your Bittrex client credentials to the environment variables:
BITTREX_KEY=key
BITTREX_SECRET=secret
Usage
use Koolm\Bittrex\Facades\Bittrex;
// Public API
Bittrex::getMarkets();
Bittrex::getCurrencies();
Bittrex::getTicker($market);
Bittrex::getMarketSummaries();
Bittrex::getMarketSummary($market);
Bittrex::getOrderBook($market, $type);
Bittrex::getMarketHistory($market);
// Market API
Bittrex::buyLimit($market, $quantity, $rate);
Bittrex::sellLimit($market, $quantity, $rate);
Bittrex::cancelOrder($uuid);
Bittrex::getOpenOrders($market);
// Account API
Bittrex::getBalances();
Bittrex::getBalance($currency);
Bittrex::getDepositAddress($currency);
Bittrex::withdraw($currency, $quantity, $address, $paymentid);
Bittrex::getOrder($uuid);
Bittrex::getOrderHistory($market);
Bittrex::getWithdrawalHistory($currency);
Bittrex::getDepositHistory($currency);
See https://bittrex.com/Home/Api for the documentation.