alpha_get_orderbook
Fetch and merge all four sides of an Algorand blockchain orderbook into a unified YES-perspective view, including spread calculation for market analysis.
Instructions
Fetch the on-chain orderbook as a unified YES-perspective view. Merges all 4 sides (YES bids/asks + NO bids/asks). Includes spread calculation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"marketAppId": "<marketAppId>"
},
"name": "alpha_get_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| marketAppId | Yes | The market app ID | |
| network | No | Algorand network to use (default: mainnet) | |
| itemsPerPage | No | Number of items per page for paginated responses (default: 10) |