{"entrypoint":"@insiderfinance/totalfinance/crypto/inverse","package":"@insiderfinance/totalfinance","domain":"crypto","stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","url":"/reference/totalfinance/crypto/inverse","exports":[{"id":"@insiderfinance/totalfinance/crypto/inverse#InverseFuture","name":"InverseFuture","kind":"interface","url":"/reference/totalfinance/crypto/inverse#InverseFuture","signature":"/** The coin economics of an inverse-margined futures/perp position. */\nexport interface InverseFuture {\n    /** Coin PnL since entry: `s · notionalUsd · (1/entry − 1/mark)`. */\n    coinPnl: number;\n    /** USD value of that coin PnL at the mark (`coinPnl · markPrice`). */\n    usdPnl: number;\n    /** `∂coinPnl/∂mark = s · notionalUsd / mark²` — coin per $1 move; NOT constant (inverse convexity). */\n    coinDelta: number;\n    /** `∂²coinPnl/∂mark² = s · (−2·notionalUsd / mark³)` — a LONG inverse future is SHORT gamma in coin. */\n    coinGamma: number;\n    /** Coin-equivalent size at the mark (`s · notionalUsd / mark`) — how many coins the position is long. */\n    coinExposure: number;\n}","description":"The coin economics of an inverse-margined futures/perp position.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"coinDelta","type":"number","description":"`∂coinPnl/∂mark = s · notionalUsd / mark²` — coin per $1 move; NOT constant (inverse convexity).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"coinExposure","type":"number","description":"Coin-equivalent size at the mark (`s · notionalUsd / mark`) — how many coins the position is long.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"coinGamma","type":"number","description":"`∂²coinPnl/∂mark² = s · (−2·notionalUsd / mark³)` — a LONG inverse future is SHORT gamma in coin.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"coinPnl","type":"number","description":"Coin PnL since entry: `s · notionalUsd · (1/entry − 1/mark)`.","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"},{"name":"usdPnl","type":"number","description":"USD value of that coin PnL at the mark (`coinPnl · markPrice`).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"}]},{"id":"@insiderfinance/totalfinance/crypto/inverse#InverseFutureInput","name":"InverseFutureInput","kind":"interface","url":"/reference/totalfinance/crypto/inverse#InverseFutureInput","signature":"// ── inverseFuture ───────────────────────────────────────────────────────────────\n/** Input for {@link inverseFuture}. */\nexport interface InverseFutureInput {\n    /** USD notional (= contracts × contract multiplier, e.g. $10/contract on Deribit). */\n    notionalUsd: number;\n    /** Entry price (USD per coin). */\n    entryPrice: number;\n    /** Current mark price (USD per coin). */\n    markPrice: number;\n    /** Position side. Default 'long'. */\n    side?: InverseSide;\n}","description":"Input for {@link inverseFuture}.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"entryPrice","type":"number","description":"Entry price (USD per coin).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"},{"name":"markPrice","type":"number","description":"Current mark price (USD per coin).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"},{"name":"notionalUsd","type":"number","description":"USD notional (= contracts × contract multiplier, e.g. $10/contract on Deribit).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"side","type":"'long' | 'short'","description":"Position side. Default 'long'.","optional":true,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/crypto/inverse#InverseHedge","name":"InverseHedge","kind":"interface","url":"/reference/totalfinance/crypto/inverse#InverseHedge","signature":"/** The inverse future/perp trade that neutralizes a coin delta. */\nexport interface InverseHedge {\n    /** USD notional of the inverse future to trade. */\n    notionalUsd: number;\n    /** Which way to trade it. */\n    side: InverseSide;\n    /** The hedge future's coin delta — equal and opposite to the input `coinDelta` (combined ⇒ 0). */\n    hedgeCoinDelta: number;\n    /** Residual coin gamma after the delta hedge (`positionGamma + hedgeFutureGamma`) — iff `coinGamma` given. */\n    residualCoinGamma?: number;\n}","description":"The inverse future/perp trade that neutralizes a coin delta.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"hedgeCoinDelta","type":"number","description":"The hedge future's coin delta — equal and opposite to the input `coinDelta` (combined ⇒ 0).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"notionalUsd","type":"number","description":"USD notional of the inverse future to trade.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"residualCoinGamma","type":"number","description":"Residual coin gamma after the delta hedge (`positionGamma + hedgeFutureGamma`) — iff `coinGamma` given.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"side","type":"'long' | 'short'","description":"Which way to trade it.","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/crypto/inverse#InverseHedgeInput","name":"InverseHedgeInput","kind":"interface","url":"/reference/totalfinance/crypto/inverse#InverseHedgeInput","signature":"// ── inverseHedge ────────────────────────────────────────────────────────────────\n/** Input for {@link inverseHedge}. */\nexport interface InverseHedgeInput {\n    /** The coin delta to neutralize (e.g. `inverseOption.greeks(…).value.coin.delta`). */\n    coinDelta: number;\n    /** Mark price of the inverse future/perp used to hedge (USD per coin; a perp ≈ spot). */\n    markPrice: number;\n    /** Coin gamma of the position being hedged — supply to get the residual gamma after the delta hedge. */\n    coinGamma?: number;\n}","description":"Input for {@link inverseHedge}.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"coinDelta","type":"number","description":"The coin delta to neutralize (e.g. `inverseOption.greeks(…).value.coin.delta`).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"coinGamma","type":"number","description":"Coin gamma of the position being hedged — supply to get the residual gamma after the delta hedge.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"markPrice","type":"number","description":"Mark price of the inverse future/perp used to hedge (USD per coin; a perp ≈ spot).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"}]},{"id":"@insiderfinance/totalfinance/crypto/inverse#InverseSide","name":"InverseSide","kind":"type","url":"/reference/totalfinance/crypto/inverse#InverseSide","signature":"/** Position side of an inverse contract. */\nexport type InverseSide = (typeof SIDES)[number];","description":"Position side of an inverse contract.","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[]},{"id":"@insiderfinance/totalfinance/crypto/inverse#inverseFuture","name":"inverseFuture","kind":"function","url":"/reference/totalfinance/crypto/inverse#inverseFuture","signature":"export declare function inverseFuture(input: InverseFutureInput): Computed<InverseFuture>;","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(input)","type":"InverseFutureInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(input).entryPrice","type":"number","description":"Entry price (USD per coin).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"},{"name":"(input).markPrice","type":"number","description":"Current mark price (USD per coin).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"},{"name":"(input).notionalUsd","type":"number","description":"USD notional (= contracts × contract multiplier, e.g. $10/contract on Deribit).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(input).side","type":"'long' | 'short'","description":"Position side. Default 'long'.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"return.assumptions","type":"Assumptions<Record<never, never>>","description":"Every applied convention, echoed back.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.diagnostics","type":"Diagnostics","description":"How the value was computed, plus any warnings.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.provenance","type":"import('@insiderfinance/totalfinance/core').Provenance","description":"Optional data lineage when the inputs came from a provider.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"return.value","type":"InverseFuture","description":"The computed value. Never `NaN` or `±Infinity`: a value the model cannot produce is `null`\nbeside a diagnostic that says why (Law 7 — a warning never licenses a non-finite number).","optional":false,"defaultValue":null,"unit":"unitless by name"}]},{"id":"@insiderfinance/totalfinance/crypto/inverse#inverseHedge","name":"inverseHedge","kind":"function","url":"/reference/totalfinance/crypto/inverse#inverseHedge","signature":"export declare function inverseHedge(input: InverseHedgeInput): Computed<InverseHedge>;","description":"","examples":[],"tags":[],"stability":"stable-by-law (pre-1.0; not a 1.0 stability guarantee)","members":[{"name":"(input)","type":"InverseHedgeInput","description":"","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(input).coinDelta","type":"number","description":"The coin delta to neutralize (e.g. `inverseOption.greeks(…).value.coin.delta`).","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"(input).coinGamma","type":"number","description":"Coin gamma of the position being hedged — supply to get the residual gamma after the delta hedge.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"(input).markPrice","type":"number","description":"Mark price of the inverse future/perp used to hedge (USD per coin; a perp ≈ spot).","optional":false,"defaultValue":null,"unit":"currency amount (the field or record currency)"},{"name":"return.assumptions","type":"Assumptions<Record<never, never>>","description":"Every applied convention, echoed back.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.diagnostics","type":"Diagnostics","description":"How the value was computed, plus any warnings.","optional":false,"defaultValue":null,"unit":"unitless by name"},{"name":"return.provenance","type":"import('@insiderfinance/totalfinance/core').Provenance","description":"Optional data lineage when the inputs came from a provider.","optional":true,"defaultValue":null,"unit":"unitless by name"},{"name":"return.value","type":"InverseHedge","description":"The computed value. Never `NaN` or `±Infinity`: a value the model cannot produce is `null`\nbeside a diagnostic that says why (Law 7 — a warning never licenses a non-finite number).","optional":false,"defaultValue":null,"unit":"unitless by name"}]}]}