jinjie / stock
Display stock widget in SilverStripe
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: >=7.1
- kokspflanze/alpha-vantage-api: ^0.3
- silverstripe/cms: ^4
This package is auto-updated.
Last update: 2024-11-12 21:14:22 UTC
README
Display stock widget using AlphaVantage API
A very simple stock widget for my own use in a project. Please contribute to improve this module.
Require SilverStripe ^4
Installation
composer require jinjie/stock
Usage
Run dev/build
and go to Settings > Stock Widget
to configure the widget, which includes the API key.
Template
Display
Put $StockWidget anywhere in your template where you want the widget to be rendered.
Edit the template
Copy content in vendor/jinjie/stock
to themes/<your theme>/templates/Stock/StockWidget.ss
. Edit accordingly.
Cache
This module uses cache so it doesn't need to call the API that often. It is recommended to leave it as 60 seconds or more.