Quote
quoteRetrieve a coin's live l2Book quote: bid, ask, mid, spread, and top-of-book sizes. Falls back to allMids if a side is missing to keep mid valid.
Instructions
One coin's live quote from l2Book: bid/ask/mid/spread and top-of-book sizes. mid is the book midpoint ((bid+ask)/2) whenever both sides are present ('book'); allMids is only a labeled fallback when the book lacks a side ('allMids'), so mid never escapes the [bid, ask] range. The coin is validated against the perp universe (spot '@{index}/NAME' pairs pass through to the book). Example: quote(coin="BTC")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||