Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
get_kline | 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. |
get_index_price_kline | Fetch Index Price Kline/Candlestick data from Aster Finance API and return as Markdown table text.
Parameters:
pair (str): Index pair (e.g., 'BTCUSD', 'ETHUSD'). 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. |
get_mark_price_kline | 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. |
get_premium_index | Fetch Premium Index data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
If None, returns data for all symbols.
Returns:
str: Markdown table containing symbol, markPrice, indexPrice, lastFundingRate, and nextFundingTime.
Raises:
Exception: If the API request fails or data processing encounters an error. |
get_funding_rate_history | Fetch Funding Rate History data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
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 funding rate records to return (1 to 1000). If None, defaults to 100.
Returns:
str: Markdown table containing symbol, fundingTime, and fundingRate.
Raises:
Exception: If the API request fails or data processing encounters an error. |
get_price_change_statistics_24h | Fetch 24-hour ticker price change statistics from Aster Finance API and return as Markdown table text.
Parameters:
symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
If None, returns data for all symbols.
Returns:
str: Markdown table containing symbol, priceChange, priceChangePercent, lastPrice, and volume.
Raises:
Exception: If the API request fails or data processing encounters an error. |
get_latest_price | Fetch latest price data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
If None, returns data for all symbols.
Returns:
str: Markdown table containing symbol and price.
Raises:
Exception: If the API request fails or data processing encounters an error. |
get_order_book_ticker | Fetch order book ticker data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (Optional[str]): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
If None, returns data for all symbols.
Returns:
str: Markdown table containing symbol, bidPrice, bidQty, askPrice, and askQty.
Raises:
Exception: If the API request fails or data processing encounters an error. |
get_order_book | 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. |
get_recent_trades | 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. |
get_aggregated_trades | Fetch aggregated trades data from Aster Finance API and return as Markdown table text.
Parameters:
symbol (str): Trading pair symbol (e.g., 'BTCUSDT', 'ETHUSDT'). Case-insensitive.
fromId (Optional[int]): Aggregated trade ID to start from. If None, uses time-based query or most recent trades.
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 aggregated trades to return (1 to 1000). If None, defaults to 500.
Returns:
str: Markdown table containing aggTradeId, price, qty, firstTradeId, lastTradeId, time, and isBuyerMaker.
Raises:
Exception: If the API request fails or data processing encounters an error. |