get_market_history
Where the current reading sits in its own recent distribution, from a series captured every ~10 minutes: funding, open interest, Fear & Greed and BTC dominance, each as current, median, min, max and percentile over the window. This is the one question a snapshot cannot answer — "is funding high right now?" has no absolute answer, only one relative to where it has been. A percentile near 0 means the reading is at the low end of the window, near 100 the high end. Check "samples" before trusting the percentile: a window with few measurements is not a distribution. Window defaults to 24 hours, maximum 168. Funding is in percent per 8 hours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How many hours back the window covers. Defaults to 24, maximum 168. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| funding | No | Current reading placed in its own distribution over the window. | |
| samples | Yes | Snapshots in the window, captured every ~10 minutes. | |
| fearGreed | No | Current reading placed in its own distribution over the window. | |
| windowHours | Yes | ||
| btcDominance | No | Current reading placed in its own distribution over the window. | |
| openInterestUsd | No | Current reading placed in its own distribution over the window. |