No description
Find a file
2023-04-05 21:45:39 +01:00
src fixing typescript errors 2023-04-05 21:44:51 +01:00
.editorconfig Initial commit 2023-04-01 19:30:08 +01:00
.eslintignore Initial commit 2023-04-01 19:30:08 +01:00
.eslintrc Initial commit 2023-04-01 19:30:08 +01:00
.gitignore Initial commit 2023-04-01 19:30:08 +01:00
.npmrc Initial commit 2023-04-01 19:30:08 +01:00
esbuild.config.mjs Initial commit 2023-04-01 19:30:08 +01:00
LICENSE Create LICENSE 2023-04-02 22:18:37 +01:00
manifest.json remove funding URL 2023-04-02 22:25:32 +01:00
package-lock.json fixing typescript errors 2023-04-05 21:44:51 +01:00
package.json pushing stock info plugin 2023-04-02 21:46:46 +01:00
README.md Update README.md 2023-04-02 22:21:48 +01:00
tsconfig.json moving to src folder, addressing nullify coalesce feedback, addressing import feedback 2023-04-05 10:47:21 +01:00
version-bump.mjs Initial commit 2023-04-01 19:30:08 +01:00
versions.json Initial commit 2023-04-01 19:30:08 +01:00

Get Stock Information

Return information about a particular stock symbol using the Yahoo Finance API.

How to use

  1. In Edit mode, run the command "Get Stock Information: Insert stock info".
  2. Enter the stock symbol (e.g. AAPL)
  3. Click "Get stock information"

After a brief pause (0.5 - 8 seconds depending on how lively the API is feeling), a new callout block will be added to your page with the following information:

  • Bid price
  • Ask price
  • Spread %
  • Name
  • Currency
  • Volume
  • Market cap
  • Day range (low - high)
  • 52 week range (low - high)
  • Time of information

For example"

> [!info]- AAPL (Bid: 164.9, Ask: 164.91, Spread: 0.006%)
> **Name:** Apple Inc.
> **Currency:** USD
> **Volume:** 68,749,792
> **Market cap:** 2.6T
> **Day range:** 162.13  165
> **52W range:** 124.17  178.49
>
><small>*Sun Apr 02 2023 18:28:05 GMT+0100 (British Summer Time)*</small>

Credit

https://github.com/phamleduy04/yahoo-stock-api - the project I've used to pull in the information from Yahoo Finance