get_l2_snapshot
Fetch the Level 2 order book snapshot for a specific cryptocurrency to view current bids and asks with prices and sizes.
Instructions
Fetch the Level 2 order book snapshot for a specific coin.
Parameters:
coin_name (str): The trading symbol (e.g., 'BTC', 'ETH').
ctx (Context): The MCP context object for accessing server state.
Returns:
str: A JSON string containing the Level 2 order book snapshot, including bids and asks with prices and sizes.
Returns a JSON string with an error message if the query fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"coin_name": {
"title": "Coin Name",
"type": "string"
}
},
"required": [
"coin_name"
],
"type": "object"
}