GithubHelp home page GithubHelp logo

stock-data-'s Introduction

Stock Data

Fetch stock data using any driver.

Prerequisites

  • PHP 7+
  • composer

Usage

Syntax: `php stock.php <command> <parameter1> <parameter2>` 
Example: `php stock.php profile googl`

Company Profile command

Syntax: `php stock.php company_profile COMPANY_STOCK_CODE`
Example: `php stock.php company_profile googl,fb`

COMPANY_STOCK_CODE is case in-sensitive

Company Quote command

Syntax: `php stock.php company_quote COMPANY_STOCK_CODE`
Example: `php stock.php company_quote googl,fb`

COMPANY_STOCK_CODE is case in-sensitive

Tests

Run composer test which automatically tests everything under tests

Data Drivers

Financial Modeling Prep API driver

  • Edit src/Stock/Drivers/FMPDriver.php
  • To add new methods, add them first in StockInterface

Custom driver

To create a customer stock data driver

  • Create the new driver file in src/Stock/Drivers
  • Simply extend StockServiceProvider and implement the necessary methods

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.