Skip to content

v6.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 20:32
· 2 commits to main since this release
8ff1219

Minor Changes

  • #201 e739f3e Thanks @collin-aftermath! - Add daily funding to Perpetuals.getMarketsDailyStats rows: fundingRate (mean hourly rate as a fraction), fundingRateAnnualized (fundingRate × 8760), fundingSettlements (parsed as bigint) and fundingUsdPerUnit (USD per base unit). Positive rates mean longs paid shorts. The API sends a null rate on days without settlements or a price, which the SDK returns as undefined. All four fields are optional while backends roll out. openInterestUsd now uses the last daily close on or before each day.

  • #201 e739f3e Thanks @collin-aftermath! - Add typed Perpetuals.getCollateralFlows and Perpetuals.getMarketsDailyStats clients for daily collateral flows and market statistics.

    Use stats/daily-collateral-flows for collateral flows and markets/daily-stats for market statistics. Responses contain nested stats groups by collateral type or market ID, with timestamps and taker trade counts encoded as strings with a trailing n. Collateral flows support optional collateralTypes filters.

    Include cumulative all-time fields up to and including each UTC day, independent of the requested time range: cumulativeVolumeUsd, cumulativeTakerTrades (parsed as bigint), and cumulativeLiquidatedNotionalUsd per market; cumulativeDepositsUsd and cumulativeWithdrawalsUsd per collateral type. Net deposits equal cumulativeDepositsUsd - cumulativeWithdrawalsUsd.

  • #207 860e208 Thanks @matical-aftermath! - Add an optional per-request error to PerpetualsVault.getPreviewOwnerProcessWithdrawRequests previews, so one invalid withdraw request no longer fails the whole batch preview.