get_recent_trades
Retrieve recent trade data for specific trading pairs in a formatted Markdown table, including trade details like price, quantity, and time.
Instructions
Fetch recent trades 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 trades to return (1 to 1000). If None, defaults to 500.
Returns:
str: Markdown table containing tradeId, price, qty, quoteQty, time, and isBuyerMaker.
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_recent_tradesArguments",
"type": "object"
}