kmshihab7878/claude-code-setup/aster-trading

Claude Code and agent skill by kmshihab7878/claude-code-setup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Aster DEX trading skill for futures, spot, and market data via MCP tools

Install

npx vskill@latest install kmshihab7878/claude-code-setup/aster-trading

SKILL.md

Aster DEX Trading Skill

Aster DEX is a next-generation perpetual futures and spot exchange backed by YZi Labs. This skill provides trading capabilities through the aster MCP server.

Available MCP Tools

Market Data (no auth required)
ToolDescription
pingTest Aster API connectivity
get_ticker24h ticker / latest price for a futures symbol
get_order_bookOrder book depth (bids/asks)
get_klinesCandlestick/K-line data (1m, 5m, 1h, 4h, 1d)
get_funding_rateCurrent funding rate and mark price
get_funding_infoFunding rate configuration
get_exchange_infoExchange rules and contract specifications
get_spot_ticker24h spot ticker
get_spot_priceLatest spot price
get_spot_order_bookSpot order book depth
get_spot_klinesSpot candlestick data
get_spot_exchange_infoSpot trading rules
Account (requires configured account)
ToolDescription
get_balanceFutures account balance
get_positionsOpen positions (optionally filtered by symbol)
get_account_infoAccount info with position summary
get_account_v4Full account info (assets + positions)
get_incomePnL and fee flow (TRANSFER, REALIZED_PNL, FUNDING_FEE, COMMISSION)
get_commission_rateTrading fee rate for a symbol
get_leverage_bracketLeverage tier brackets
get_spot_accountSpot account balances (free/locked)
Futures Orders
ToolDescription
create_orderPlace order (LIMIT, MARKET, STOP, STOP_MARKET)
cancel_orderCancel by order_id or client_order_id
cancel_all_ordersCancel all open orders for a symbol
get_orderQuery single order
get_open_ordersList current open orders
get_all_ordersOrder history
get_my_tradesTrade/fill history
Spot Orders
ToolDescription
create_spot_orderPlace spot order
cancel_spot_orderCancel spot order
cancel_spot_all_ordersCancel all spot orders for a symbol
get_spot_orderQuery spot order
get_spot_open_ordersList open spot orders
get_spot_all_ordersSpot order history
get_spot_my_tradesSpot trade history
get_spot_transaction_historySpot transaction flow
get_spot_commission_rateSpot fee rate
Position & Risk Management
ToolDescription
set_leverageSet leverage multiplier for a symbol
set_margin_modeSet ISOLATED or CROSSED margin
transfer_fundsTransfer between spot and futures (type 1=spot->futures, 2=futures->spot)
transfer_spot_futuresSpot-futures transfer (SPOT_FUTURE or FUTURE_SPOT)
System
ToolDescription
get_server_infoMCP server info, configured accounts, tool count

Setup

API keys are managed exclusively through the encrypted config:

bash
# Configure HMAC account
aster-mcp config
# Configure EIP-712 (V3) account
aster-mcp config --account-id main --auth-type v3
# List configured accounts
aster-mcp list
# Test connectivity
aster-mcp test main

Keys are stored with Fernet encryption in ~/.config/aster-mcp/.

Risk & Safety Rules

CRITICAL: These rules are mandatory for all trading operations.

  1. User confirmation required: ALWAYS confirm with the user before placing ANY order. Display the full order details (symbol, side, type, quantity, price, leverage) and ask for explicit approval.
  1. Position size disclosure: Before executing, show:
  • Position size in USD equivalent
  • Current leverage setting
  • Estimated liquidation price (if available)
  • Current account balance and margin usage
  1. Leverage warnings:
  • Aster supports up to 1,001x leverage
  • For leverage > 10x: note elevated risk
  • For leverage > 20x: display explicit warning about liquidation risk
  • For leverage > 50x: strongly advise against unless user is experienced
  • For leverage > 100x: refuse unless user explicitly confirms understanding of extreme risk
  1. Never auto-execute: No order placement without user seeing a preview and confirming.
  1. Rate limits: Respect Aster API rate limits. If receiving 429 responses, back off and inform the user.

Security Constraints

  • API keys are managed ONLY through aster-mcp config (Fernet encrypted)
  • NEVER log, display, or output full API keys or secrets
  • NEVER commit credentials to git
  • NEVER store API keys in plain text files
  • Config directory: ~/.config/aster-mcp/ (encrypted)

Common Workflows

Check a price
1. Call get_ticker with symbol="BTCUSDT"
2. Display: last price, 24h change %, 24h volume
Place a limit buy order
1. Call get_ticker to show current price
2. Call get_balance to show available margin
3. Present order preview: symbol, side=BUY, type=LIMIT, quantity, price
4. Wait for user confirmation
5. Call create_order with confirmed parameters
6. Display order result (orderId, status, filled quantity)
Close a position
1. Call get_positions to show open positions
2. Identify the position to close
3. Create a closing order (opposite side, reduce_only=true)
4. Wait for user confirmation
5. Execute and display result
Check portfolio
1. Call get_balance for margin/PnL overview
2. Call get_positions for open positions
3. Call get_open_orders for pending orders
4. Present consolidated portfolio view

Symbol Format

Symbols accept both formats and are normalized internally:

  • BTCUSDT or BTC/USDT -> BTCUSDT
  • ETHUSDT or ETH/USDT -> ETHUSDT

API Base URLs

TypeURL
Futures RESThttps://fapi.asterdex.com
Spot RESThttps://sapi.asterdex.com
WebSocketwss://fstream.asterdex.com

ML-Informed Trading Patterns

Signal Generation Workflow
1. Fetch candles: get_klines(symbol, interval="1h", limit=500)
2. Calculate indicators: RSI, MACD, Bollinger Bands, ATR
3. Run ML model: feature engineering → prediction → confidence score
4. Generate signal: BUY/SELL/HOLD with confidence (0.0-1.0)
5. Position sizing: Kelly criterion or fixed fractional (see finance-ml skill)
6. Risk check: get_balance() + get_positions() → verify margin availability
7. Present to user with full details (MANDATORY confirmation)
8. Execute if confirmed: create_order(...)
Key Technical Indicators for Crypto
IndicatorBullish SignalBearish Signal
RSI(14)Below 30 (oversold)Above 70 (overbought)
MACDSignal line crossover upSignal line crossover down
Bollinger BandsPrice touches lower bandPrice touches upper band
Funding RateNegative (shorts paying)Very positive (longs paying)
VolumeIncreasing on uptrendIncreasing on downtrend
Risk Management Integration
  • Always check funding rate before entering perpetual positions
  • Use ATR-based stop losses: stop = entry ± (ATR × multiplier)
  • Maximum position size: never risk more than 2% of account per trade
  • Correlation check: don't hold multiple highly correlated positions
Cross-References
  • finance-ml skill: ML models, feature engineering, risk metrics, backtesting
  • FINANCE_ML_STACK.md: Comprehensive financial ML reference

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
6
Repository forks
1
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kmshihab7878/claude-code-setup/aster-trading/badge)](https://verified-skill.com/skills/kmshihab7878/claude-code-setup/aster-trading)

Something wrong with this skill or its page? Tell us.