New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

htunlogic/laravel-poloniex

Poloniex API wrapper for Laravel
1,672 15
Install
composer require htunlogic/laravel-poloniex
Latest Version:v1.1.2
PHP:>=7.0.0
Laravel:5
License:MIT
Last Updated:May 4, 2017
Links: GitHub  ·  Packagist
Maintainer: htunlogic

Installation

Require this package in your project with composer require htunlogic/laravel-poloniex.

Add the service provider to your config/app.php:

'providers' => [

    Htunlogic\Poloniex\PoloniexServiceProvider::class,
    
],

...run php artisan vendor:publish to copy the config file.

Edit the config/poloniex.php or add Poloniex api and secret in your .env file

POLONIEX_KEY={YOUR_API_KEY}
POLONIEX_SECRET={YOUR_API_SECRET}

Optionally you can add alias to your config/app.php:

'aliases' => [
           
    'Poloniex' => Htunlogic\Poloniex\Poloniex::class,
           
],

Usage examples:

use Htunlogic\Poloniex\Poloniex;
Poloniex::getBalanceFor('BTC');
Poloniex::getOpenOrders('BTC_XMR');
Poloniex::getMyTradeHistory('BTC_XMR');
Poloniex::buy('BTC_XMR', 0.013, 1, 'postOnly');
Poloniex::sell('BTC_XMR', 0.013, 1, 'postOnly');
Poloniex::cancelOrder('BTC_XMR', 123);
Poloniex::withdraw('BTC', 1, '14PJdqimDkCqWCH1oXy4sVV6nwweqXYDjt');
Poloniex::getTradeHistory('BTC_XMR');
Poloniex::getOrderBook('BTC_XMR');
Poloniex::getVolumeFor('BTC_XMR');
Poloniex::getTradingPairs();
Poloniex::getTicker("BTC_XMR");
Poloniex::getBalances();
Poloniex::getVolume();
Poloniex::getTickers();

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

665,354,487 9,703
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released PHP Laravel License
v1.1.2 >=7.0.0 >=5.3 MIT
v1.1.1 >=7.0.0 >=5.3 MIT
v1.1 >=7.0.0 >=5.3 MIT
v1.0 MIT