> ## 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 Bitcoin Stock-to-Flow Model

Retrieves Bitcoin Stock-to-Flow Model data, a popular valuation model that measures Bitcoin's scarcity. Compares existing supply (stock) to new supply production rate (flow). Returns historical price and model values. Ideal for: long-term Bitcoin valuation, scarcity analysis, market cycle positioning, investment timing.

![Get Bitcoin Stock-to-Flow Model logo](https://ai-icon.b3.fun/logo/coinglass)
Catalog action Blockchain Data

Retrieves Bitcoin Stock-to-Flow Model data, a popular valuation model that measures Bitcoin's scarcity. Compares existing supply (stock) to new supply production rate (flow). Returns historical price and model values. Ideal for: long-term Bitcoin valuation, scarcity analysis, market cycle positioning, investment timing.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coinglass-macro-get-stock-flow` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coinglass`, `macro`, `bitcoin`, `valuation`, `stock-flow`, `analysis`, `read` |

## Payload Schema

This action does not declare payload fields.

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `array` | Yes | Array of Stock-to-Flow data points. |

## Examples

**Workflow node**

```json
{
  "type": "coinglass-macro-get-stock-flow",
  "payload": {},
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/coinglass-macro-get-stock-flow/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {}
}'
```

**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.