Crypto
Perpetual funding, futures basis, carry curves, inverse contracts and liquidation prices.
Model the instruments crypto venues actually trade: perpetual funding and its predicted rate, futures basis and carry curves, inverse (coin-margined) contracts and liquidation prices.
Common APIs
fn
perpetualFundingAnnualize a perpetual funding rate into its implied cost-of-carry, in both simple and compounded terms, with the long/short carry sign made explicit.fnpredictedFundingSee the reference for its full contract.fnfuturesBasisSee the reference for its full contract.fncarryCurveSee the reference for its full contract.fninverseFutureSee the reference for its full contract.fninverseHedgeSee the reference for its full contract.fnliquidationPriceIsolated-margin liquidation & bankruptcy price of a leveraged perpetual/future position (inverse or linear).fnfundingBasisSpreadSee the reference for its full contract.Complete API reference
Browse all public exports, types, and feature imports below.