This package provides a simple way to get stock data in Laravel apps. (w/delay)
Here's a quick example:
use TheCaliskan\Stock\Facades\Stock;
Stock::stock()
Stock::stock('TEAM')
Stock::stock('TEAM', now()->addWeek(-1))
Stock::forex()
Stock::forex('C:USDTRY')
Stock::forex('C:USDTRY')
Stock::crypto()
Stock::crypto('X:BTCUSD')
Stock::crypto('X:BTCUSD', now()->addWeek(-1))
You can install the package via composer:
composer require thecaliskan/laravel-stock
All data and information is provided “as is” for informational purposes only, and is not intended for trading purposes or financial, investment, tax, legal, accounting or other advice. Please consult your broker or financial representative to verify pricing before executing any trade. This package is not an investment adviser, financial adviser or a securities broker. None of the data and information constitutes investment advice nor an offering, recommendation or solicitation by this package to buy, sell or hold any security or financial product, and this package makes no representation (and has no opinion) regarding the advisability or suitability of any investment.
The MIT License (MIT). Please see License File for more information.