Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonardogrig/get-stocks-google-sheets-php
https://github.com/leonardogrig/get-stocks-google-sheets-php
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leonardogrig/get-stocks-google-sheets-php
- Owner: leonardogrig
- Created: 2023-03-06T21:27:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T14:52:45.000Z (over 1 year ago)
- Last Synced: 2024-11-08T05:40:44.252Z (about 2 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Stock Data Updater
This project uses the Google Sheets API to update stock data. The data is fetched from specific ranges in a Google Spreadsheet, processed, and then written to a JSON file named 'stock-data.json'.
The script runs continuously, updating the data every 15 minutes. However, it only operates on weekdays from 8 AM to 7 PM (Sao Paulo timezone).
## Prerequisites
* Google API credentials (`credentials.json`)
* Google Sheets API PHP Client library
* PHP 7.1 or higher
* Composer for installing the Google Sheets API PHP Client library (run: composer require google/apiclient)## Usage
Clone the repository, install dependencies using Composer, and run the script.