tschope/finnhubio

This lib is a simple integration with Finnhub.io to get stock market details

This package's canonical repository appears to be gone and the package has been frozen as a result.

v0.4.1 2020-04-14 10:39 UTC

This package is auto-updated.

Last update: 2022-12-14 18:13:22 UTC


README

Latest Stable Version Total Downloads

This is a wrapper for the https://finnhub.io/docs/api

Installation

  1. composer require tschope/finnhubio
  2. Get a Finnhub API Key from the Intergrations page of your Finnhub account.
  3. Laravel 6.x or earlier, in your config/app.php file:
    • Add Tschope\Finnhubio\FinnhubioServiceProvider::class to your providers array.
  4. php artisan vendor:publish --provider="Tschope\Finnhubio\FinnhubioServiceProvider" --tag="config" will create a config/finnhubio.php file.

Usage

Route::get('/', function () {
    $stock = new \Tschope\Finnhubio\Stock();
    return response()->json($stock->quote('MGLU3.SA'));
});

For more info on using the actual API see the main repo https://finnhub.io/docs/api