Aster Agent Gateway

v0.1.3
io.github.alekskram/aster-agent-gateway Checked 2 days ago Published 2 months ago

Read-only MCP gateway to Aster DEX: 24/7 gold, oil and equity perps, funding with real intervals.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

market_overview Market Overview

Futures market overview from ONE ticker/24hr ALL call joined with exchangeInfo: panel of TRADING markets (symbol, last, 24h change %, quote volume, trades count), top volumes, status counts, and fresh listings (newest onboardDate, N rows). `sort` in {volume (default), change, listings}. `limit` max 100. Example: market_overview(limit=10)

ParameterTypeDescription
limitinteger
sortstring

exchange_symbols Exchange Symbols

Symbol universe with filters/precisions/statuses incl. the micro view (MIN_NOTIONAL, stepSize, leverageFilter kind). Junk filter: TEST* spot names and SETTLING futures statuses are hidden unless include_junk=True. venue in {futures, spot, both}. Single-symbol detail when `symbol` given. Example: exchange_symbols(venue="futures", symbol="BTCUSDT")

ParameterTypeDescription
include_junkboolean
symbol
venuestring

order_book Order Book

Aggregated order book: fapi /depth (futures) or sapi /api/v3/ depth (spot). The requested depth is snapped to the nearest priced tier (weight-aware: 5/10/20/50=2, 100=5, 500=10, 1000=20 weight). Example: order_book(symbol="BTCUSDT", depth=20)

ParameterTypeDescription
symbol *string
depthinteger
venuestring

klines Klines

Klines (OHLCV). price_type last|mark|index selects fapi klines/markPriceKlines/indexPriceKlines; spot goes to sapi /api/v3/klines (price_type ignored). intervals 1m..1M; limit snapped to a priced tier (max 1000). Example: klines(symbol="BTCUSDT", interval="4h", limit=50)

ParameterTypeDescription
symbol *string
intervalstring
limitinteger
marketstring
price_typestring

trades Trades

Recent trades. Futures fapi /trades is keyless and fresh. The spot /trades path was uncertain at recon time - probed live in smoke; if dead the tool returns an honest error dict. Example: trades(symbol="BTCUSDT", limit=10)

ParameterTypeDescription
symbol *string
limitinteger
venuestring

spot_overview Spot Overview

Spot market overview: sapi ticker/24hr ALL joined with exchangeInfo. The spot ticker list carries ~24k ephemeral BTC_UP_DOWN_5M_* options rows that never appear in exchangeInfo; the join keeps only listed symbols with status TRADING (~68 pairs). TEST* junk filtered by name. Example: spot_overview(limit=10)

ParameterTypeDescription
limitinteger

funding_overview Funding Overview

Funding panel from premiumIndex ALL + fundingInfo: all ~730 rates with intervals (1/2/4/8h mixed - flagged honestly), cap/ floor, interestRate, nextFundingTime. `sort` in {rate (default), interval}. Example: funding_overview(limit=10)

ParameterTypeDescription
limitinteger
sortstring

tradfi_markets Tradfi Markets

TradFi-perp screener (24/7 markets): local asset-class map by baseAsset (metals, equity-index, equity-single, energy, treasuries, forex) with per-class volumes/prices/funding, plus the D3 sub-block tradfi_crypto_corr: rolling correlation of a TradFi representative vs BTC computed locally from klines (at most 2 klines calls, cached when possible; honest note when data is insufficient). `window` in {24h, 7d, 30d} selects the correlation window. Example: tradfi_markets(limit=10, window="7d")

ParameterTypeDescription
limitinteger
window

funding_screener Funding Screener

One-call ranking of ALL markets by annualized funding rate, by premium, by mark-index spread; plus the D1 sub-block funding_regime: distance to cap/floor (headroom bps) per market from fundingInfo. `direction` in {both (default), long, short} - long = positive rates (longs pay), short = negative. Example: funding_screener(top=5)

ParameterTypeDescription
directionstring
topinteger

oi_snapshot Oi Snapshot

Open interest snapshot. openInterest is a per-symbol endpoint ONLY (each symbol = 1 call); N is capped at 10 per invocation. There is NO keyless OI history (/futures/data/openInterestHist 404s) - stated honestly, never invented. When `symbols` is None the top-volume futures symbols are used. Example: oi_snapshot(symbols=["BTCUSDT", "ETHUSDT"])

ParameterTypeDescription
symbols
topinteger

deposit_flows Deposit Flows

Vault deposit flows: Solana getSignaturesForAddress on the Aster vault program (keyless) + EVM eth_getLogs Transfer-to-vault on BSC/ETH/ARB when ASTER_EVM_RPC_URL* is configured; plus the D4 sub-block deposit_stats: hourly buckets and chain breakdown of what was fetched. `chain_filter` in {all (default), solana, bsc, eth, arb}. Example: deposit_flows(limit=20)

ParameterTypeDescription
chain_filterstring
limitinteger

account_view Account View

Keyless tapi account read for ANY address (Aster Chain JSON-RPC): aster_getBalance / aster_openOrders / aster_userFills (+ spot variants when they exist). Account privacy hides most accounts: a privacy-empty result returns an honest error dict explaining WHY (privacy, not an API failure). `data` in {balance (default), openOrders, userFills, spotBalance, spotOpenOrders, spotUserFills}. Example: account_view(address="0x...")

ParameterTypeDescription
address *string
datastring

mark_index_divergence Mark Index Divergence

Mark/index divergence screener from ONE premiumIndex call (markPrice vs indexPrice spread), cross-checked with markPriceKlines vs klines for the widest divergences (up to 3 symbol-pairs of klines, weight-economical). Example: mark_index_divergence(limit=10)

ParameterTypeDescription
limitinteger