Skip to main content

Monaco Protocol SDK v0.5.3

Candlestick API Refactor & Market Metadata

This release refactors the candlestick API to use trading pair UUIDs and introduces TradingView-compliant query patterns, along with new market metadata capabilities.

Breaking Changes

Candlestick API Signature Change: The getCandlesticks method now requires a trading pair UUID instead of a symbol string, and uses an options object for parameters.

New Features

Flexible Candlestick Queries:
  • Optional startTime, endTime, and limit parameters via GetCandlesticksParams
  • Support for backward pagination (endTime + limit) — TradingView’s countBack pattern
  • Support for forward pagination (startTime + limit)
  • Limit validation: max 500 bars per request, server defaults to 350
  • Automatic backfilling when time range contains fewer bars than requested
Market Metadata Endpoint:
  • New getMarketMetadata() method for comprehensive market information
  • Returns 24-hour statistics, latest price, and market initialization data
  • Useful for building market overview dashboards
WebSocket Improvements:
  • Auto-connect flag for authenticated WebSocket channels
  • Simplified connection management after authentication
Vault API Updates:
  • Vault deposit/withdraw methods now use assetId (UUID) instead of token addresses
  • Consistent with the platform-wide shift to UUID-based asset identification

Migration Guide

1. Update Candlestick Calls:
2. For TradingView Integration (backward pagination):
3. For Real-time Charts (forward pagination):

API Reference

GetCandlesticksParams: Supported Intervals:
For detailed OHLCV documentation, see the OHLCV & Candlesticks guide.