asterdex/aster-skills-hub/aster-api-spot-websocket-v1
Claude Code and agent skill by asterdex/aster-skills-hub
- community
Checking that the SKILL.md file is still in the repository.
WebSocket market + user data streams for Aster Spot API v1. Subscription model, stream names, listenKey (/api/v1/listenKey). Use when implementing real-time spot market or user events. listenKey = USER_STREAM; see aster-api-spot-auth-v1.
Install
npx vskill@latest install asterdex/aster-skills-hub/aster-api-spot-websocket-v1SKILL.md
Aster Spot API WebSocket (v1)
Base: wss://sstream.asterdex.com. Raw: /ws/<streamName>. Combined: /stream?streams=name1/name2/... → {"stream":"<name>","data":<payload>}. Stream names lowercase (e.g. btcusdt).
Limits: Connection 24h; ping every 5 min → pong within 15 min; 5 msg/s; max 1024 streams.
Market: subscribe / unsubscribe
JSON: Subscribe {"method":"SUBSCRIBE","params":["btcusdt@aggTrade","btcusdt@depth"],"id":1} → {"result":null,"id":1}. Unsubscribe: UNSUBSCRIBE + params. List: LIST_SUBSCRIPTIONS.
Stream names (market)
| Stream | Description | |
|---|---|---|
<symbol>@aggTrade | Aggregate trades | |
<symbol>@trade | Tick-by-tick trades | |
<symbol>@kline_<interval> | Kline (e.g. 1m, 1h) | |
<symbol>@depth, @depth@100ms | Diff. book depth (1000ms or 100ms) | |
<symbol>@miniTicker | 24h mini ticker | |
!miniTicker@arr | All mini tickers | |
<symbol>@ticker | 24h ticker | |
!ticker@arr | All tickers | |
<symbol>@bookTicker | Best bid/ask | |
!bookTicker | All book tickers |
User data stream (USER_STREAM)
- Start: POST /api/v1/listenKey →
{ "listenKey": "..." }(existing key extended 60 min). API key in header. - Connect: wss://sstream.asterdex.com/ws/<listenKey>.
- Keepalive: PUT /api/v1/listenKey with listenKey (e.g. every 30 min).
- Close: DELETE /api/v1/listenKey with listenKey.
Events: outboundAccountPosition (balance), executionReport (order update).
Order book sync (depth)
- Subscribe to
<symbol>@depth; buffer events. - Snapshot: GET /api/v1/depth?symbol=SYMBOL&limit=1000.
- Discard events with
u≤ lastUpdateId; first valid:U≤ lastUpdateId+1 andu≥ lastUpdateId+1. - Each event:
pu= previousu; else re-sync. Qty absolute; 0 = remove level.
Payload shapes: reference.md.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aster-api-spot-websocket-v1/SKILL.md
Popularity
- Repository stars
- 69
- Repository forks
- 12
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
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
[](https://verified-skill.com/skills/asterdex/aster-skills-hub/aster-api-spot-websocket-v1)