Get Stock Quote
Fetch the real-time quote for a stock symbol from Finnhub. Returns current price, daily change, percent change, day high/low, open, and previous close. Ideal for: stock price alerts, portfolio monitoring, price-based workflow conditions.
Catalog action Blockchain Data
Fetch the real-time quote for a stock symbol from Finnhub. Returns current price, daily change, percent change, day high/low, open, and previous close. Ideal for: stock price alerts, portfolio monitoring, price-based workflow conditions.
At a Glance
| Field | Value |
|---|---|
| Action ID | finnhub-get-quote |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | finnhub, stock, quote, price, market, read |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Stock symbol to quote, e.g. 'AAPL', 'TSLA', 'BRK.B'. US exchanges on the free tier. |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | The quoted symbol |
current | number | null | No | Current price |
change | number | null | No | Absolute change since previous close |
percentChange | number | null | No | Percent change since previous close |
high | number | null | No | High price of the day |
low | number | null | No | Low price of the day |
open | number | null | No | Open price of the day |
previousClose | number | null | No | Previous close price |
timestamp | number | null | No | Unix timestamp (seconds) of the quote |
Examples
json{ "type": "finnhub-get-quote", "payload": { "symbol": "ETH" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/finnhub-get-quote/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "symbol": "ETH" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
