AgentSkillsCN

mmt-api-best-practices

使用 MMT 实时加密市场数据 API 构建应用程序的最佳实践。适用于开发交易机器人、仪表板、分析工具,或任何需要消费 MMT REST 或 WebSocket API 的应用。涵盖连接管理、速率限制、数据处理、多交易所聚合,以及性能优化等关键环节。

SKILL.md
--- frontmatter
name: mmt-api-best-practices
description: Best practices for building apps with the MMT real-time crypto market data API. Use when building trading bots, dashboards, analytics tools, or any application consuming MMT REST or WebSocket APIs. Covers connection management, rate limiting, data handling, multi-exchange aggregation, and performance optimization.

MMT API Best Practices

Rules for building reliable, performant applications with the MMT market data API.

Connection Management

Rate Limiting

  • Weight Management: weight costs per endpoint, budget allocation, monitoring
  • Tier Awareness: Strict/Standard/Premium limits, feature gating
  • Burst Strategy: burst bucket mechanics, pre-flight checks, graceful degradation

Data Handling

WebSocket

REST API

Multi-Exchange Aggregation

Error Handling

  • Error Patterns: error code reference, structured format, recovery
  • Retry Strategy: retryable vs non-retryable, backoff, circuit breaker

Performance