get_order_book
Retrieve order book data for specified trading pairs from Aster Finance API, formatted as a Markdown table. Input the symbol and optional limit to display bid/ask prices and quantities.
Instructions
Fetch order book data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
limit (Optional[int]): Number of order book entries to return (5, 10, 20, 50, 100, 500, 1000, 5000).
If None, defaults to 100.
Returns:
str: Markdown table containing side (bid or ask), price, and quantity.
Raises:
Exception: If the API request fails or data processing encounters an error.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
limit | No | ||
symbol | Yes |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Limit"
},
"symbol": {
"title": "Symbol",
"type": "string"
}
},
"required": [
"symbol"
],
"title": "get_order_bookArguments",
"type": "object"
}