thecaliskan/laravel-stock

Laravel Stock, Forex, Crypto Data API

1.1.0 2024-05-02 11:42 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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))

Installation

You can install the package via composer:

composer require thecaliskan/laravel-stock

Credits

Disclaimers

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.

License

The MIT License (MIT). Please see License File for more information.