Skip to main content

Monaco Protocol SDK v0.6.0

Portfolio Analytics API

This release adds portfolio analytics to the TypeScript SDK, giving developers access to aggregate trading statistics and time-series chart data for the authenticated user.

New Features

Portfolio Statistics

Retrieve aggregate performance metrics for the authenticated user over a configurable time period. New Method: sdk.profile.getPortfolioStats(period) Periods: "24h" | "7d" | "30d" | "all"
Response — PortfolioStats:

Portfolio Chart

Retrieve a time-bucketed chart series for volume or PnL over a given period. New Method: sdk.profile.getPortfolioChart(period, metric) Periods: "24h" | "7d" | "30d" | "all" Metrics: "volume" | "pnl"
Response — PortfolioChartResponse:

User Trade History

Retrieve paginated trade history for the authenticated user, with optional filtering by trading pair. New Method: sdk.profile.getUserTrades(params?)
Response — GetUserTradesResponse:

Fee Rates on User Profile

getProfile() now returns your account’s fee rates directly.
New fields on UserProfile:
  • taker_fee_bps (number): Taker fee rate in basis points
  • maker_fee_bps (number): Maker fee rate in basis points

New Types

The following types are now exported from @0xmonaco/types:

Technical Updates

  • Stopped publishing declaration and JavaScript source maps that referenced unpublished src/ files across all packages. No API changes.

Upgrade Instructions

No breaking changes. No migration steps required — this is a purely additive release.
For complete documentation, see the Profile API guide.