> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Market News

Fetch the latest market news from Finnhub for a category: general, forex, crypto, or merger. Returns headline, summary, source, URL, and publication timestamp per article, capped by limit (default 20, max 100). Ideal for: daily market briefings, crypto news alerts, feeding headlines into AI summarization.

Catalog action Blockchain Data

Fetch the latest market news from Finnhub for a category: general, forex, crypto, or merger. Returns headline, summary, source, URL, and publication timestamp per article, capped by limit (default 20, max 100). Ideal for: daily market briefings, crypto news alerts, feeding headlines into AI summarization.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `finnhub-get-market-news` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `finnhub`, `news`, `crypto`, `market`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | `string` | No | News category. Options: 'general', 'forex', 'crypto', 'merger'. Default: 'general'. |
| `limit` | `number` | No | Maximum number of articles to return. Range: 1-100. Default: 20. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | `string` | Yes | The queried news category |
| `articles` | `array` | Yes | News articles, most recent first |
| `count` | `number` | Yes | Number of articles returned |

## Examples

**Workflow node**

```json
{
  "type": "finnhub-get-market-news",
  "payload": {
    "category": "general",
    "limit": 20
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/finnhub-get-market-news/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "category": "general",
    "limit": 20
  }
}'
```

**Use expressions for dynamic values**

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.