Giter Club home page Giter Club logo

laravel-livecoin's Introduction

Laravel-Livecoin

Start trading on Livecoin right away using your favorite PHP framework.

Installation

composer require dvomaks/laravel-livecoin.

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

 'providers' => [
    Dvomaks\Livecoin\LivecoinServiceProvider::class,
 ],

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

Edit the config/livecoin.php or add Livecoin api and secret in your .env file

LIVECOIN_KEY={YOUR_API_KEY}
LIVECOIN_SECRET={YOUR_API_SECRET}

Add the alias to your config/app.php:

'aliases' => [
    'Livecoin' => Dvomaks\Livecoin\Livecoin::class,
],

Usage

Please refer to the Api Documentation for more info, or read the docblocks !

$params = array(...);

Public data documentation

Livecoin::exchangeTicker($params);
Livecoin::exchangeLastTrades($params);
Livecoin::exchangeOrderBook($params);
Livecoin::exchangeAllOrderBook($params);
Livecoin::exchangeMaxbidMinask($params);
Livecoin::exchangeRestrictions($params);
Livecoin::infoCoinInfo(); 

Private user data documentation

Livecoin::exchangeTrades($params);
Livecoin::exchangeClientOrders($params);
Livecoin::exchangeOrder($params);
Livecoin::paymentBalances($params);
Livecoin::paymentBalance($params);
Livecoin::paymentHistoryTransactions($params);
Livecoin::paymentHistorySize($params);
Livecoin::exchangeCommissions();
Livecoin::exchangeCommissionCommonInfo();

Open/cancel orders documentation

Livecoin::exchangeBuylimit($params);
Livecoin::exchangeSelllimit($params);
Livecoin::exchangeBuymarket($params);
Livecoin::exchangeSellmarket($params);
Livecoin::exchangeCancellimit($params);

Deposit and withdrawal documentation

Livecoin::paymentGetAddress($params);
Livecoin::paymentOutCoin($params);
Livecoin::paymentOutPayeer($params);
Livecoin::paymentOutCapitalist($params);
Livecoin::paymentOutAdvcah($params);
Livecoin::paymentOutCard($params);
Livecoin::paymentOutOkpay($params);
Livecoin::paymentOutPerfectmoney($params);

Vouchers documentation

Livecoin::paymentVoucherMake($params);
Livecoin::paymentVoucherAmount($params);
Livecoin::paymentVoucherRedeem($params);

Example

To retrieve information on the latest transactions for a specified currency pair.

use Dvomaks\Livecoin\Livecoin;

$data = Livecoin::exchangeLastTrades([
        'currencyPair'  => 'BTC/USD',
        'minutesOrHour' => 'true',
        'type'          => 'BUY',
    ]);
    
dd($data);

This package is provided as-is. Do with it what you want ! PR's will be looked into. I personally believe in freedom and equality, which is one of the reasons I'm in crypto. It's also the reason I'm sharing most of the reusable code I write.

If you're feeling generous, you can always leave a tip. Any satoshi will do. May the chain be with you. And may you be with the chain.

BTC 1NEXi3RS95ggjxFNeDpx6G76pRaJovYk2v

laravel-livecoin's People

Contributors

dvomaks avatar

Stargazers

Denis avatar  avatar

Watchers

James Cloos avatar Denis avatar  avatar

laravel-livecoin's Issues

Hey

Did you make this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.