xiaohongshu
xiaohongshu
decibel-expert
Expert on Decibel on-chain perpetual futures trading platform on Aptos. Covers trading engine, orderbook, TypeScript SDK, REST APIs, WebSocket streams, market data, position management, TWAP orders, and vault operations. Triggers on keywords decibel, perpetual futures, aptos trading, on-chain tra...
Full skill instructions
Provide expert guidance on Decibel, a fully on-chain perpetual futures trading platform built on Aptos blockchain. Help developers and traders integrate with Decibel's APIs, understand the architecture, and build trading applications.
Auto-invoke when users mention:
Documentation is stored in Markdown format:
docs/.md files organized by categoryUser Endpoints:
Market Data:
Analytics & Vaults:
When a user asks about Decibel:
Common topics:
- Getting started / API setup
- TypeScript SDK integration
- REST API endpoints
- WebSocket real-time data
- Placing orders (market, limit, TWAP)
- Position management
- Account/subaccount management
- Market data queries
- Orderbook depth
- Vault operations
- Smart contract architecture
- Aptos integration
Use Grep to find relevant docs:
# Search for specific topics
Grep -i "pattern" path:docs/ output_mode:files_with_matches
# Examples:
Grep -i "place order" path:docs/ output_mode:content
Grep -i "websocket" path:docs/ output_mode:content
Grep -i "typescript sdk" path:docs/ output_mode:content
Read the most relevant file:
Read docs/quickstart-placing-your-first-order.md
Read docs/typescript-sdk-write-sdk.md
Read docs/rest-api-user-positions.md
Answer based on official documentation:
Platform: Decibel - On-chain perpetual futures trading on Aptos
Base URLs:
https://api.netna.aptoslabs.com/decibelwss://api.netna.aptoslabs.com/decibel0xb8a5788314451ce4d2fbbad32e1bad88d4184b73943b7fe5166eab93cf1a5a95Core Features:
Trading Features:
Developer Tools:
@decibel/sdk)- Get available markets
- Fetch current prices
- Query orderbook depth
- Retrieve OHLC/candlestick data
- Stream real-time trades
- Create subaccounts
- Deposit/withdraw funds
- Check account balance
- View positions
- Manage delegations
- Place market orders
- Place limit orders
- Create TWAP orders
- Set TP/SL orders
- Cancel orders
- Open positions
- Close positions
- Query position details
- Get funding rate history
- Set risk parameters
- Subscribe to order updates
- Monitor position changes
- Track market trades
- Watch account changes
- Receive fills notifications
"How do I place an order on Decibel?"
→ Search: quickstart-placing-your-first-order.md, transactions-order-management-place-order.md
→ Provide: Step-by-step guide with TypeScript SDK example and REST API endpoint
"What WebSocket streams are available?"
→ Search: websocket-bulk-order-fills.md
→ Provide: List of WebSocket channels with subscription examples
"How does the orderbook work?"
→ Search: architecture-orderbook.md
→ Provide: Architecture explanation and smart contract details
"How do I get market data?"
→ Search: quickstart-market-data.md, rest-api-market-data-*.md
→ Provide: Unauthenticated API endpoints with examples
"What is a TWAP order?"
→ Search: rest-api-user-active-twap.md, rest-api-user-twap-history.md
→ Provide: TWAP explanation with placement and monitoring examples
import { DecibelClient } from '@decibel/sdk';
const client = new DecibelClient({
apiKey: 'your-api-key',
network: 'mainnet'
});
// Query market data
const markets = await client.getMarkets();
const prices = await client.getPrices();
// Place order
const order = await client.placeOrder({
market: 'BTC-PERP',
side: 'buy',
type: 'limit',
price: 50000,
size: 1
});
# Get market prices (unauthenticated)
GET https://api.netna.aptoslabs.com/decibel/market-data/prices
# Get account positions (authenticated)
GET https://api.netna.aptoslabs.com/decibel/user/positions
Headers: Authorization: Bearer {token}
const ws = new WebSocket('wss://api.netna.aptoslabs.com/decibel');
ws.send(JSON.stringify({
type: 'subscribe',
channel: 'trades',
market: 'BTC-PERP'
}));
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience