get_mark_price_kline
Fetch mark price kline/candlestick data for trading pairs, formatted as a markdown table. Specify symbol, interval, and optional time range or limit to retrieve open, high, low, and close prices.
Instructions
Fetch Mark Price 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_mark_price_klineArguments",
"type": "object"
}