2017 © Pedro Peláez
 

library laravel-okex

Okex API wrapper for Laravel

image

sadenergizer/laravel-okex

Okex API wrapper for Laravel

  • Wednesday, July 4, 2018
  • by Mirror4u
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-Okex

Start trading on Okex right away using your favorite PHP framework., (*1)

Installation

composer require sadenergizer/laravel-okex., (*2)

Add the service provider to your config/app.php:, (*3)

'providers' => [ Sadenergizer\Okex\OkexServiceProvider::class, ],, (*4)

...run php artisan vendor:publish to copy the config file., (*5)

Edit the config/okex.php or add Okex api and secret in your .env file, (*6)

OKEX_KEY={YOUR_API_KEY}
OKEX_SECRET={YOUR_API_SECRET}

Add the alias to your config/app.php:, (*7)

'aliases' => [
    'Okex' => Sadenergizer\Okex\Okex::class,
],

Usage

Please refer to the Api Documentation for more info!, (*8)

use Sadenergizer\Okex\Okex;

// public API methods
Okex::getTicker($symbol);
Okex::getDepth($symbol, $size);
Okex::getTrades($symbol, $since = null);
Okex::getCandlestickData($symbol, $type, $size, $since);

// private API methods
Okex::getUserInfo();
Okex::placeOrder($symbol, $type, $price, $amount);
Okex::getOrder($symbol, $id);
Okex::cancelOrder($symbol, $id);
Okex::getWalletInfo();

This package is provided as-is. Do with it what you want!, (*9)

The Versions

04/07 2018

dev-master

9999999-dev

Okex API wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Sad Energizer