> ## 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 Coinbase Premium

Retrieves Coinbase Premium Index showing price difference between Bitcoin on Coinbase Pro and Binance. Positive premium indicates US institutional buying pressure, negative indicates selling. Ideal for: US market sentiment, institutional flow tracking, regional arbitrage opportunities.

![Get Coinbase Premium logo](https://ai-icon.b3.fun/logo/coinglass)
Catalog action Blockchain Data

Retrieves Coinbase Premium Index showing price difference between Bitcoin on Coinbase Pro and Binance. Positive premium indicates US institutional buying pressure, negative indicates selling. Ideal for: US market sentiment, institutional flow tracking, regional arbitrage opportunities.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coinglass-indicator-get-coinbase-premium` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coinglass`, `indicator`, `coinbase`, `premium`, `institutional`, `spot`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `interval` | `string` | Yes | Time interval for data aggregation. |
| `limit` | `number` | No | Maximum number of results \(default: 1000, max: 1000\). |
| `startTime` | `number` | No | Start timestamp in milliseconds. |
| `endTime` | `number` | No | End timestamp in milliseconds. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `interval` | `string` | Yes | Time interval. |
| `dataPoints` | `array` | Yes | Array of Coinbase Premium data points. |

## Examples

**Workflow node**

```json
{
  "type": "coinglass-indicator-get-coinbase-premium",
  "payload": {
    "interval": "1m"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/coinglass-indicator-get-coinbase-premium/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "interval": "1m"
  }
}'
```

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