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: ThegetCandlesticks 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, andlimitparameters viaGetCandlesticksParams - 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
- New
getMarketMetadata()method for comprehensive market information - Returns 24-hour statistics, latest price, and market initialization data
- Useful for building market overview dashboards
- Auto-connect flag for authenticated WebSocket channels
- Simplified connection management after authentication
- 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:API Reference
GetCandlesticksParams:
Supported Intervals:
For detailed OHLCV documentation, see the OHLCV & Candlesticks guide.

