Giter Club home page Giter Club logo

coinbase-pro's Introduction

Coinbase Pro API Laravel Library

This is the client library for the Coinbase Pro API. We provide an intuitive, stable interface to integrate Coinbase Pro into your Laravel project.

Installation

Install the library using Composer. Please read the Composer Documentation if you are unfamiliar with Composer or dependency managers in general.

composer require gbanina/coinbase-pro

Once installed, if you are not using automatic package discovery, then you need to register the Gbanina\CoinbasePro\CoinbaseProServiceProvider in your config/app.php.

    'providers' => [
            Gbanina\CoinbasePro\CoinbaseProServiceProvider::class,
        ],

You can also optionally alias our facade:

'CoinbasePro' => Gbanina\CoinbasePro\CoinbasePro::class,

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="Gbanina\CoinbasePro\CoinbaseProServiceProvider"

Authentication

You need to add the following to your .env file:

COINBASEPRO_KEY=<your_key_here>
COINBASEPRO_SECRET=<your_secret_here>
COINBASEPRO_PASSPHRASE=<your_passphrase_here>

Usage

This is not intended to provide complete documentation of the API. For more detail, please refer to the official documentation.

Orders

List your current open orders. Only open or un-settled orders are returned. As soon as an order is no longer open and settled, it will no longer appear in the default request.

$service = new CoinbasePro();
$orders = $service->getOrders();

Accounts

Get a list of trading accounts.

$service = new CoinbasePro();
$accounts = $service->getAccounts();

Products

Get a list of available currency pairs for trading.

$service = new CoinbasePro();
$products = $service->getProducts();

Currencies

List known currencies.

$service = new CoinbasePro();
$currencies = $service->getCurrencies();

Contributing

Feel free to submit pull requests, fix any bugs, or add missing functions.

coinbase-pro's People

Contributors

gbanina avatar

Stargazers

Marcel Mädche avatar  avatar

Watchers

 avatar

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.