Skip to content

A simple wrapper to seamlessly communicate with the Bittrex API

License

Notifications You must be signed in to change notification settings

Jasonkoolman/laravel-bittrex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Bittrex

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.

About

A simple wrapper to seamlessly communicate with the Bittrex API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages