This is a wrapper for the https://finnhub.io/docs/api
composer require tschope/finnhubio
- Get a Finnhub API Key from the Intergrations page of your Finnhub account.
- Laravel 6.x or earlier, in your
config/app.php
file:- Add
Tschope\Finnhubio\FinnhubioServiceProvider::class
to your providers array.
- Add
php artisan vendor:publish --provider="Tschope\Finnhubio\FinnhubioServiceProvider" --tag="config"
will create aconfig/finnhubio.php
file.
Route::get('/', function () {
$stock = new \Tschope\Finnhubio\Stock();
return $stock->quote('MGLU3.SA');
});
For more info on using the actual API see the main repo https://finnhub.io/docs/api