get_kline
Retrieve candlestick data for trading pairs from Aster Finance API, formatted as a Markdown table. Specify symbol, interval, start/end times, and limit to customize results.
Instructions
Fetch Kline/Candlestick data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
interval (str): Kline interval (e.g., '1m' for 1 minute, '1h' for 1 hour, '1d' for 1 day).
startTime (Optional[int]): Start time in milliseconds since Unix epoch. If None, defaults to API behavior.
endTime (Optional[int]): End time in milliseconds since Unix epoch. If None, defaults to API behavior.
limit (Optional[int]): Number of Klines to return (1 to 1500). If None, defaults to 500.
Returns:
str: Markdown table containing open_time, open, high, low, and close.
Raises:
Exception: If the API request fails or data processing encounters an error.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endTime | No | ||
interval | Yes | ||
limit | No | ||
startTime | No | ||
symbol | Yes |
Input Schema (JSON Schema)
{
"properties": {
"endTime": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Endtime"
},
"interval": {
"title": "Interval",
"type": "string"
},
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Limit"
},
"startTime": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Starttime"
},
"symbol": {
"title": "Symbol",
"type": "string"
}
},
"required": [
"symbol",
"interval"
],
"title": "get_klineArguments",
"type": "object"
}