Repository navigation
v6.3.0
Minor Changes
-
#201
e739f3eThanks @collin-aftermath! - Add daily funding toPerpetuals.getMarketsDailyStatsrows:fundingRate(mean hourly rate as a fraction),fundingRateAnnualized(fundingRate × 8760),fundingSettlements(parsed asbigint) andfundingUsdPerUnit(USD per base unit). Positive rates mean longs paid shorts. The API sends anullrate on days without settlements or a price, which the SDK returns asundefined. All four fields are optional while backends roll out.openInterestUsdnow uses the last daily close on or before each day. -
#201
e739f3eThanks @collin-aftermath! - Add typedPerpetuals.getCollateralFlowsandPerpetuals.getMarketsDailyStatsclients for daily collateral flows and market statistics.Use
stats/daily-collateral-flowsfor collateral flows andmarkets/daily-statsfor market statistics. Responses contain nestedstatsgroups by collateral type or market ID, with timestamps and taker trade counts encoded as strings with a trailingn. Collateral flows support optionalcollateralTypesfilters.Include cumulative all-time fields up to and including each UTC day, independent of the requested time range:
cumulativeVolumeUsd,cumulativeTakerTrades(parsed asbigint), andcumulativeLiquidatedNotionalUsdper market;cumulativeDepositsUsdandcumulativeWithdrawalsUsdper collateral type. Net deposits equalcumulativeDepositsUsd - cumulativeWithdrawalsUsd. -
#207
860e208Thanks @matical-aftermath! - Add an optional per-requesterrortoPerpetualsVault.getPreviewOwnerProcessWithdrawRequestspreviews, so one invalid withdraw request no longer fails the whole batch preview.