mango-v4/ts/client/classes/PerpMarket.html

12 lines
155 KiB
HTML

<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PerpMarket | @blockworks-foundation/mango-v4</title><meta name="description" content="Documentation for @blockworks-foundation/mango-v4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@blockworks-foundation/mango-v4</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">@blockworks-foundation/mango-v4</a></li><li><a href="PerpMarket.html">PerpMarket</a></li></ul><h1>Class PerpMarket</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">PerpMarket</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="PerpMarket.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_asks" class="tsd-kind-icon">_asks</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_bids" class="tsd-kind-icon">_bids</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_oracleLastUpdatedSlot" class="tsd-kind-icon">_oracle<wbr/>Last<wbr/>Updated<wbr/>Slot</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_oracleProvider" class="tsd-kind-icon">_oracle<wbr/>Provider</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_price" class="tsd-kind-icon">_price</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_uiPrice" class="tsd-kind-icon">_ui<wbr/>Price</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#asks" class="tsd-kind-icon">asks</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#baseDecimals" class="tsd-kind-icon">base<wbr/>Decimals</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#baseLiquidationFee" class="tsd-kind-icon">base<wbr/>Liquidation<wbr/>Fee</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#baseLotSize" class="tsd-kind-icon">base<wbr/>Lot<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="PerpMarket.html#baseLotsToUiConverter" class="tsd-kind-icon">base<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#bids" class="tsd-kind-icon">bids</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#eventQueue" class="tsd-kind-icon">event<wbr/>Queue</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#feePenalty" class="tsd-kind-icon">fee<wbr/>Penalty</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#feesAccrued" class="tsd-kind-icon">fees<wbr/>Accrued</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#feesSettled" class="tsd-kind-icon">fees<wbr/>Settled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#forceClose" class="tsd-kind-icon">force<wbr/>Close</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#fundingLastUpdated" class="tsd-kind-icon">funding<wbr/>Last<wbr/>Updated</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#group" class="tsd-kind-icon">group</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#groupInsuranceFund" class="tsd-kind-icon">group<wbr/>Insurance<wbr/>Fund</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#impactQuantity" class="tsd-kind-icon">impact<wbr/>Quantity</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#initBaseAssetWeight" class="tsd-kind-icon">init<wbr/>Base<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#initBaseLiabWeight" class="tsd-kind-icon">init<wbr/>Base<wbr/>Liab<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#initOverallAssetWeight" class="tsd-kind-icon">init<wbr/>Overall<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#longFunding" class="tsd-kind-icon">long<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maintBaseAssetWeight" class="tsd-kind-icon">maint<wbr/>Base<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maintBaseLiabWeight" class="tsd-kind-icon">maint<wbr/>Base<wbr/>Liab<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maintOverallAssetWeight" class="tsd-kind-icon">maint<wbr/>Overall<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#makerFee" class="tsd-kind-icon">maker<wbr/>Fee</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maxFunding" class="tsd-kind-icon">max<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#minFunding" class="tsd-kind-icon">min<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#name" class="tsd-kind-icon">name</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#openInterest" class="tsd-kind-icon">open<wbr/>Interest</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#oracle" class="tsd-kind-icon">oracle</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#oracleConfig" class="tsd-kind-icon">oracle<wbr/>Config</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#perpMarketIndex" class="tsd-kind-icon">perp<wbr/>Market<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#positivePnlLiquidationFee" class="tsd-kind-icon">positive<wbr/>Pnl<wbr/>Liquidation<wbr/>Fee</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="PerpMarket.html#priceLotsToUiConverter" class="tsd-kind-icon">price<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#publicKey" class="tsd-kind-icon">public<wbr/>Key</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#quoteLotSize" class="tsd-kind-icon">quote<wbr/>Lot<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="PerpMarket.html#quoteLotsToUiConverter" class="tsd-kind-icon">quote<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#reduceOnly" class="tsd-kind-icon">reduce<wbr/>Only</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#registrationTime" class="tsd-kind-icon">registration<wbr/>Time</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#seqNum" class="tsd-kind-icon">seq<wbr/>Num</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleFeeAmountThreshold" class="tsd-kind-icon">settle<wbr/>Fee<wbr/>Amount<wbr/>Threshold</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleFeeFlat" class="tsd-kind-icon">settle<wbr/>Fee<wbr/>Flat</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleFeeFractionLowHealth" class="tsd-kind-icon">settle<wbr/>Fee<wbr/>Fraction<wbr/>Low<wbr/>Health</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settlePnlLimitFactor" class="tsd-kind-icon">settle<wbr/>Pnl<wbr/>Limit<wbr/>Factor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settlePnlLimitWindowSizeTs" class="tsd-kind-icon">settle<wbr/>Pnl<wbr/>Limit<wbr/>Window<wbr/>Size<wbr/>Ts</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleTokenIndex" class="tsd-kind-icon">settle<wbr/>Token<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#shortFunding" class="tsd-kind-icon">short<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#stablePriceModel" class="tsd-kind-icon">stable<wbr/>Price<wbr/>Model</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#takerFee" class="tsd-kind-icon">taker<wbr/>Fee</a></li></ul></section><section class="tsd-index-section "><h3>Accessors</h3><ul class="tsd-index-list"><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#minOrderSize" class="tsd-kind-icon">min<wbr/>Order<wbr/>Size</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#oracleLastUpdatedSlot" class="tsd-kind-icon">oracle<wbr/>Last<wbr/>Updated<wbr/>Slot</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#oracleProvider" class="tsd-kind-icon">oracle<wbr/>Provider</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#price" class="tsd-kind-icon">price</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#tickSize" class="tsd-kind-icon">tick<wbr/>Size</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#uiPrice" class="tsd-kind-icon">ui<wbr/>Price</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#baseLotsToUi" class="tsd-kind-icon">base<wbr/>Lots<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#getInstantaneousFundingRate" class="tsd-kind-icon">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#getInstantaneousFundingRateUi" class="tsd-kind-icon">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#getSettlePnlCandidates" class="tsd-kind-icon">get<wbr/>Settle<wbr/>Pnl<wbr/>Candidates</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#insidePriceLimit" class="tsd-kind-icon">inside<wbr/>Price<wbr/>Limit</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadAsks" class="tsd-kind-icon">load<wbr/>Asks</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadBids" class="tsd-kind-icon">load<wbr/>Bids</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadEventQueue" class="tsd-kind-icon">load<wbr/>Event<wbr/>Queue</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadFills" class="tsd-kind-icon">load<wbr/>Fills</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#logOb" class="tsd-kind-icon">log<wbr/>Ob</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#parseFillEvent" class="tsd-kind-icon">parse<wbr/>Fill<wbr/>Event</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#priceLotsToUi" class="tsd-kind-icon">price<wbr/>Lots<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#priceNativeToUi" class="tsd-kind-icon">price<wbr/>Native<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#quoteLotsToUi" class="tsd-kind-icon">quote<wbr/>Lots<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#uiBaseToLots" class="tsd-kind-icon">ui<wbr/>Base<wbr/>To<wbr/>Lots</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#uiPriceToLots" class="tsd-kind-icon">ui<wbr/>Price<wbr/>To<wbr/>Lots</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#uiQuoteToLots" class="tsd-kind-icon">ui<wbr/>Quote<wbr/>To<wbr/>Lots</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="PerpMarket.html#from" class="tsd-kind-icon">from</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Perp<wbr/>Market<span class="tsd-signature-symbol">(</span>publicKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, group<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, settleTokenIndex<span class="tsd-signature-symbol">: </span><a href="../index.html#TokenIndex" class="tsd-signature-type" data-tsd-kind="Type alias">TokenIndex</a>, perpMarketIndex<span class="tsd-signature-symbol">: </span><a href="../index.html#PerpMarketIndex" class="tsd-signature-type" data-tsd-kind="Type alias">PerpMarketIndex</a>, groupInsuranceFund<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, baseDecimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span>, bids<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, asks<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, eventQueue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, oracle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, oracleConfig<span class="tsd-signature-symbol">: </span><a href="../index.html#OracleConfigDto" class="tsd-signature-type" data-tsd-kind="Type alias">OracleConfigDto</a>, stablePriceModel<span class="tsd-signature-symbol">: </span><a href="../index.html#StablePriceModel" class="tsd-signature-type" data-tsd-kind="Type alias">StablePriceModel</a>, quoteLotSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, baseLotSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, maintBaseAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, initBaseAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, maintBaseLiabWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, initBaseLiabWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, openInterest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, seqNum<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, registrationTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, minFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, maxFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, impactQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, longFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, shortFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, fundingLastUpdated<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, baseLiquidationFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, makerFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, takerFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, feesAccrued<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, feesSettled<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, feePenalty<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, settleFeeFlat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, settleFeeAmountThreshold<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, settleFeeFractionLowHealth<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, settlePnlLimitFactor<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, settlePnlLimitWindowSizeTs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span>, reduceOnly<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, forceClose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span>, maintOverallAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, initOverallAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a>, positivePnlLiquidationFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="PerpMarket.html" class="tsd-signature-type" data-tsd-kind="Class">PerpMarket</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L164">accounts/perp.ts:164</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>publicKey: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>group: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>settleTokenIndex: <a href="../index.html#TokenIndex" class="tsd-signature-type" data-tsd-kind="Type alias">TokenIndex</a></h5></li><li><h5>perpMarketIndex: <a href="../index.html#PerpMarketIndex" class="tsd-signature-type" data-tsd-kind="Type alias">PerpMarketIndex</a></h5></li><li><h5>groupInsuranceFund: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>baseDecimals: <span class="tsd-signature-type">number</span></h5></li><li><h5>name: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>bids: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>asks: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>eventQueue: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>oracle: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>oracleConfig: <a href="../index.html#OracleConfigDto" class="tsd-signature-type" data-tsd-kind="Type alias">OracleConfigDto</a></h5></li><li><h5>stablePriceModel: <a href="../index.html#StablePriceModel" class="tsd-signature-type" data-tsd-kind="Type alias">StablePriceModel</a></h5></li><li><h5>quoteLotSize: <span class="tsd-signature-type">BN</span></h5></li><li><h5>baseLotSize: <span class="tsd-signature-type">BN</span></h5></li><li><h5>maintBaseAssetWeight: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>initBaseAssetWeight: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>maintBaseLiabWeight: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>initBaseLiabWeight: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>openInterest: <span class="tsd-signature-type">BN</span></h5></li><li><h5>seqNum: <span class="tsd-signature-type">BN</span></h5></li><li><h5>registrationTime: <span class="tsd-signature-type">BN</span></h5></li><li><h5>minFunding: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>maxFunding: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>impactQuantity: <span class="tsd-signature-type">BN</span></h5></li><li><h5>longFunding: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>shortFunding: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>fundingLastUpdated: <span class="tsd-signature-type">BN</span></h5></li><li><h5>baseLiquidationFee: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>makerFee: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>takerFee: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>feesAccrued: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>feesSettled: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>feePenalty: <span class="tsd-signature-type">number</span></h5></li><li><h5>settleFeeFlat: <span class="tsd-signature-type">number</span></h5></li><li><h5>settleFeeAmountThreshold: <span class="tsd-signature-type">number</span></h5></li><li><h5>settleFeeFractionLowHealth: <span class="tsd-signature-type">number</span></h5></li><li><h5>settlePnlLimitFactor: <span class="tsd-signature-type">number</span></h5></li><li><h5>settlePnlLimitWindowSizeTs: <span class="tsd-signature-type">BN</span></h5></li><li><h5>reduceOnly: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>forceClose: <span class="tsd-signature-type">boolean</span></h5></li><li><h5>maintOverallAssetWeight: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>initOverallAssetWeight: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li><h5>positivePnlLiquidationFee: <a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="PerpMarket.html" class="tsd-signature-type" data-tsd-kind="Class">PerpMarket</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_asks" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_asks<a href="#_asks" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_asks<span class="tsd-signature-symbol">:</span> <a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L62">accounts/perp.ts:62</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_bids" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_bids<a href="#_bids" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_bids<span class="tsd-signature-symbol">:</span> <a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L61">accounts/perp.ts:61</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_oracleLastUpdatedSlot" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_oracle<wbr/>Last<wbr/>Updated<wbr/>Slot<a href="#_oracleLastUpdatedSlot" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_oracle<wbr/>Last<wbr/>Updated<wbr/>Slot<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L58">accounts/perp.ts:58</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_oracleProvider" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_oracle<wbr/>Provider<a href="#_oracleProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_oracle<wbr/>Provider<span class="tsd-signature-symbol">:</span> <a href="../enums/OracleProvider.html" class="tsd-signature-type" data-tsd-kind="Enumeration">OracleProvider</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L59">accounts/perp.ts:59</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_price" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_price<a href="#_price" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_price<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L56">accounts/perp.ts:56</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_uiPrice" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_ui<wbr/>Price<a href="#_uiPrice" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_ui<wbr/>Price<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L57">accounts/perp.ts:57</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="asks" class="tsd-anchor"></a><h3 class="tsd-anchor-link">asks<a href="#asks" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">asks<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PublicKey</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="baseDecimals" class="tsd-anchor"></a><h3 class="tsd-anchor-link">base<wbr/>Decimals<a href="#baseDecimals" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">base<wbr/>Decimals<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="baseLiquidationFee" class="tsd-anchor"></a><h3 class="tsd-anchor-link">base<wbr/>Liquidation<wbr/>Fee<a href="#baseLiquidationFee" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">base<wbr/>Liquidation<wbr/>Fee<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L43">accounts/perp.ts:43</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="baseLotSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link">base<wbr/>Lot<wbr/>Size<a href="#baseLotSize" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">base<wbr/>Lot<wbr/>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="baseLotsToUiConverter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagPrivate">Private</span> base<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter<a href="#baseLotsToUiConverter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">base<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L65">accounts/perp.ts:65</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="bids" class="tsd-anchor"></a><h3 class="tsd-anchor-link">bids<a href="#bids" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">bids<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PublicKey</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="eventQueue" class="tsd-anchor"></a><h3 class="tsd-anchor-link">event<wbr/>Queue<a href="#eventQueue" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">event<wbr/>Queue<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PublicKey</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="feePenalty" class="tsd-anchor"></a><h3 class="tsd-anchor-link">fee<wbr/>Penalty<a href="#feePenalty" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">fee<wbr/>Penalty<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="feesAccrued" class="tsd-anchor"></a><h3 class="tsd-anchor-link">fees<wbr/>Accrued<a href="#feesAccrued" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">fees<wbr/>Accrued<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L50">accounts/perp.ts:50</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="feesSettled" class="tsd-anchor"></a><h3 class="tsd-anchor-link">fees<wbr/>Settled<a href="#feesSettled" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">fees<wbr/>Settled<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L51">accounts/perp.ts:51</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="forceClose" class="tsd-anchor"></a><h3 class="tsd-anchor-link">force<wbr/>Close<a href="#forceClose" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">force<wbr/>Close<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="fundingLastUpdated" class="tsd-anchor"></a><h3 class="tsd-anchor-link">funding<wbr/>Last<wbr/>Updated<a href="#fundingLastUpdated" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">funding<wbr/>Last<wbr/>Updated<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="group" class="tsd-anchor"></a><h3 class="tsd-anchor-link">group<a href="#group" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">group<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PublicKey</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="groupInsuranceFund" class="tsd-anchor"></a><h3 class="tsd-anchor-link">group<wbr/>Insurance<wbr/>Fund<a href="#groupInsuranceFund" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">group<wbr/>Insurance<wbr/>Fund<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="impactQuantity" class="tsd-anchor"></a><h3 class="tsd-anchor-link">impact<wbr/>Quantity<a href="#impactQuantity" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">impact<wbr/>Quantity<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="initBaseAssetWeight" class="tsd-anchor"></a><h3 class="tsd-anchor-link">init<wbr/>Base<wbr/>Asset<wbr/>Weight<a href="#initBaseAssetWeight" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">init<wbr/>Base<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L40">accounts/perp.ts:40</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="initBaseLiabWeight" class="tsd-anchor"></a><h3 class="tsd-anchor-link">init<wbr/>Base<wbr/>Liab<wbr/>Weight<a href="#initBaseLiabWeight" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">init<wbr/>Base<wbr/>Liab<wbr/>Weight<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L42">accounts/perp.ts:42</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="initOverallAssetWeight" class="tsd-anchor"></a><h3 class="tsd-anchor-link">init<wbr/>Overall<wbr/>Asset<wbr/>Weight<a href="#initOverallAssetWeight" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">init<wbr/>Overall<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L53">accounts/perp.ts:53</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="longFunding" class="tsd-anchor"></a><h3 class="tsd-anchor-link">long<wbr/>Funding<a href="#longFunding" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">long<wbr/>Funding<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L48">accounts/perp.ts:48</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="maintBaseAssetWeight" class="tsd-anchor"></a><h3 class="tsd-anchor-link">maint<wbr/>Base<wbr/>Asset<wbr/>Weight<a href="#maintBaseAssetWeight" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">maint<wbr/>Base<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L39">accounts/perp.ts:39</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="maintBaseLiabWeight" class="tsd-anchor"></a><h3 class="tsd-anchor-link">maint<wbr/>Base<wbr/>Liab<wbr/>Weight<a href="#maintBaseLiabWeight" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">maint<wbr/>Base<wbr/>Liab<wbr/>Weight<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L41">accounts/perp.ts:41</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="maintOverallAssetWeight" class="tsd-anchor"></a><h3 class="tsd-anchor-link">maint<wbr/>Overall<wbr/>Asset<wbr/>Weight<a href="#maintOverallAssetWeight" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">maint<wbr/>Overall<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L52">accounts/perp.ts:52</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="makerFee" class="tsd-anchor"></a><h3 class="tsd-anchor-link">maker<wbr/>Fee<a href="#makerFee" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">maker<wbr/>Fee<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L44">accounts/perp.ts:44</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="maxFunding" class="tsd-anchor"></a><h3 class="tsd-anchor-link">max<wbr/>Funding<a href="#maxFunding" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Funding<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L47">accounts/perp.ts:47</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="minFunding" class="tsd-anchor"></a><h3 class="tsd-anchor-link">min<wbr/>Funding<a href="#minFunding" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">min<wbr/>Funding<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L46">accounts/perp.ts:46</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="name" class="tsd-anchor"></a><h3 class="tsd-anchor-link">name<a href="#name" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L37">accounts/perp.ts:37</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="openInterest" class="tsd-anchor"></a><h3 class="tsd-anchor-link">open<wbr/>Interest<a href="#openInterest" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">open<wbr/>Interest<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="oracle" class="tsd-anchor"></a><h3 class="tsd-anchor-link">oracle<a href="#oracle" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">oracle<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PublicKey</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="oracleConfig" class="tsd-anchor"></a><h3 class="tsd-anchor-link">oracle<wbr/>Config<a href="#oracleConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">oracle<wbr/>Config<span class="tsd-signature-symbol">:</span> <a href="../index.html#OracleConfig" class="tsd-signature-type" data-tsd-kind="Type alias">OracleConfig</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L38">accounts/perp.ts:38</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="perpMarketIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link">perp<wbr/>Market<wbr/>Index<a href="#perpMarketIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">perp<wbr/>Market<wbr/>Index<span class="tsd-signature-symbol">:</span> <a href="../index.html#PerpMarketIndex" class="tsd-signature-type" data-tsd-kind="Type alias">PerpMarketIndex</a></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="positivePnlLiquidationFee" class="tsd-anchor"></a><h3 class="tsd-anchor-link">positive<wbr/>Pnl<wbr/>Liquidation<wbr/>Fee<a href="#positivePnlLiquidationFee" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">positive<wbr/>Pnl<wbr/>Liquidation<wbr/>Fee<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L54">accounts/perp.ts:54</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="priceLotsToUiConverter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagPrivate">Private</span> price<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter<a href="#priceLotsToUiConverter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">price<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L64">accounts/perp.ts:64</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="publicKey" class="tsd-anchor"></a><h3 class="tsd-anchor-link">public<wbr/>Key<a href="#publicKey" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">public<wbr/>Key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PublicKey</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="quoteLotSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link">quote<wbr/>Lot<wbr/>Size<a href="#quoteLotSize" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">quote<wbr/>Lot<wbr/>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="quoteLotsToUiConverter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagPrivate">Private</span> quote<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter<a href="#quoteLotsToUiConverter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">quote<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L66">accounts/perp.ts:66</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="reduceOnly" class="tsd-anchor"></a><h3 class="tsd-anchor-link">reduce<wbr/>Only<a href="#reduceOnly" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">reduce<wbr/>Only<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="registrationTime" class="tsd-anchor"></a><h3 class="tsd-anchor-link">registration<wbr/>Time<a href="#registrationTime" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">registration<wbr/>Time<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="seqNum" class="tsd-anchor"></a><h3 class="tsd-anchor-link">seq<wbr/>Num<a href="#seqNum" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">seq<wbr/>Num<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="settleFeeAmountThreshold" class="tsd-anchor"></a><h3 class="tsd-anchor-link">settle<wbr/>Fee<wbr/>Amount<wbr/>Threshold<a href="#settleFeeAmountThreshold" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">settle<wbr/>Fee<wbr/>Amount<wbr/>Threshold<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="settleFeeFlat" class="tsd-anchor"></a><h3 class="tsd-anchor-link">settle<wbr/>Fee<wbr/>Flat<a href="#settleFeeFlat" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">settle<wbr/>Fee<wbr/>Flat<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="settleFeeFractionLowHealth" class="tsd-anchor"></a><h3 class="tsd-anchor-link">settle<wbr/>Fee<wbr/>Fraction<wbr/>Low<wbr/>Health<a href="#settleFeeFractionLowHealth" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">settle<wbr/>Fee<wbr/>Fraction<wbr/>Low<wbr/>Health<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="settlePnlLimitFactor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">settle<wbr/>Pnl<wbr/>Limit<wbr/>Factor<a href="#settlePnlLimitFactor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">settle<wbr/>Pnl<wbr/>Limit<wbr/>Factor<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="settlePnlLimitWindowSizeTs" class="tsd-anchor"></a><h3 class="tsd-anchor-link">settle<wbr/>Pnl<wbr/>Limit<wbr/>Window<wbr/>Size<wbr/>Ts<a href="#settlePnlLimitWindowSizeTs" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">settle<wbr/>Pnl<wbr/>Limit<wbr/>Window<wbr/>Size<wbr/>Ts<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="settleTokenIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link">settle<wbr/>Token<wbr/>Index<a href="#settleTokenIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">settle<wbr/>Token<wbr/>Index<span class="tsd-signature-symbol">:</span> <a href="../index.html#TokenIndex" class="tsd-signature-type" data-tsd-kind="Type alias">TokenIndex</a></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="shortFunding" class="tsd-anchor"></a><h3 class="tsd-anchor-link">short<wbr/>Funding<a href="#shortFunding" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">short<wbr/>Funding<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L49">accounts/perp.ts:49</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="stablePriceModel" class="tsd-anchor"></a><h3 class="tsd-anchor-link">stable<wbr/>Price<wbr/>Model<a href="#stablePriceModel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">stable<wbr/>Price<wbr/>Model<span class="tsd-signature-symbol">:</span> <a href="../index.html#StablePriceModel" class="tsd-signature-type" data-tsd-kind="Type alias">StablePriceModel</a></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="takerFee" class="tsd-anchor"></a><h3 class="tsd-anchor-link">taker<wbr/>Fee<a href="#takerFee" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">taker<wbr/>Fee<span class="tsd-signature-symbol">:</span> <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L45">accounts/perp.ts:45</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Accessors</h2><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="minOrderSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link">min<wbr/>Order<wbr/>Size<a href="#minOrderSize" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> minOrderSize<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L283">accounts/perp.ts:283</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="oracleLastUpdatedSlot" class="tsd-anchor"></a><h3 class="tsd-anchor-link">oracle<wbr/>Last<wbr/>Updated<wbr/>Slot<a href="#oracleLastUpdatedSlot" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> oracleLastUpdatedSlot<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L265">accounts/perp.ts:265</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="oracleProvider" class="tsd-anchor"></a><h3 class="tsd-anchor-link">oracle<wbr/>Provider<a href="#oracleProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> oracleProvider<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../enums/OracleProvider.html" class="tsd-signature-type" data-tsd-kind="Enumeration">OracleProvider</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L274">accounts/perp.ts:274</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="../enums/OracleProvider.html" class="tsd-signature-type" data-tsd-kind="Enumeration">OracleProvider</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="price" class="tsd-anchor"></a><h3 class="tsd-anchor-link">price<a href="#price" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> price<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L247">accounts/perp.ts:247</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="tickSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link">tick<wbr/>Size<a href="#tickSize" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> tickSize<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L287">accounts/perp.ts:287</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="uiPrice" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ui<wbr/>Price<a href="#uiPrice" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> uiPrice<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L256">accounts/perp.ts:256</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="baseLotsToUi" class="tsd-anchor"></a><h3 class="tsd-anchor-link">base<wbr/>Lots<wbr/>To<wbr/>Ui<a href="#baseLotsToUi" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">base<wbr/>Lots<wbr/>To<wbr/>Ui<span class="tsd-signature-symbol">(</span>quantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L447">accounts/perp.ts:447</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>quantity: <span class="tsd-signature-type">BN</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getInstantaneousFundingRate" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate<a href="#getInstantaneousFundingRate" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate<span class="tsd-signature-symbol">(</span>bids<span class="tsd-signature-symbol">: </span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a>, asks<span class="tsd-signature-symbol">: </span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L385">accounts/perp.ts:385</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bids: <a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a></h5></li><li><h5>asks: <a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>returns instantaneous funding rate</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getInstantaneousFundingRateUi" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate<wbr/>Ui<a href="#getInstantaneousFundingRateUi" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate<wbr/>Ui<span class="tsd-signature-symbol">(</span>bids<span class="tsd-signature-symbol">: </span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a>, asks<span class="tsd-signature-symbol">: </span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L421">accounts/perp.ts:421</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns instantaneous funding rate for the day. How is it actually applied - funding is
continously applied on every interaction to a perp position. The rate is further multiplied
by the time elapsed since it was last applied (capped to max. 1hr).</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bids: <a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a></h5></li><li><h5>asks: <a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><div><p>returns instantaneous funding rate in % form</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSettlePnlCandidates" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Settle<wbr/>Pnl<wbr/>Candidates<a href="#getSettlePnlCandidates" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Settle<wbr/>Pnl<wbr/>Candidates<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a>, group<span class="tsd-signature-symbol">: </span><a href="Group.html" class="tsd-signature-type" data-tsd-kind="Class">Group</a>, direction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;negative&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;positive&quot;</span>, count<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>account<span class="tsd-signature-symbol">: </span><a href="MangoAccount.html" class="tsd-signature-type" data-tsd-kind="Class">MangoAccount</a><span class="tsd-signature-symbol">; </span>settleablePnl<span class="tsd-signature-symbol">: </span><a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L467">accounts/perp.ts:467</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns a list of (upto count) accounts, and the pnl that is settle&#39;able on this perp market,
the list is sorted ascending for &#39;negative&#39; direction and descending for &#39;positive&#39; direction.</p>
</div><div><p>NOTE: keep in sync with perp_pnl.rs:fetch_top</p>
<p>TODO: replace with a more performant offchain service call</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a></h5></li><li><h5>group: <a href="Group.html" class="tsd-signature-type" data-tsd-kind="Class">Group</a></h5></li><li><h5>direction: <span class="tsd-signature-type">&quot;negative&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;positive&quot;</span></h5></li><li><h5>count: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 2</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>account<span class="tsd-signature-symbol">: </span><a href="MangoAccount.html" class="tsd-signature-type" data-tsd-kind="Class">MangoAccount</a><span class="tsd-signature-symbol">; </span>settleablePnl<span class="tsd-signature-symbol">: </span><a href="I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="insidePriceLimit" class="tsd-anchor"></a><h3 class="tsd-anchor-link">inside<wbr/>Price<wbr/>Limit<a href="#insidePriceLimit" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">inside<wbr/>Price<wbr/>Limit<span class="tsd-signature-symbol">(</span>side<span class="tsd-signature-symbol">: </span><a href="PerpOrderSide.html" class="tsd-signature-type" data-tsd-kind="Class">PerpOrderSide</a>, orderPrice<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L291">accounts/perp.ts:291</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>side: <a href="PerpOrderSide.html" class="tsd-signature-type" data-tsd-kind="Class">PerpOrderSide</a></h5></li><li><h5>orderPrice: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="loadAsks" class="tsd-anchor"></a><h3 class="tsd-anchor-link">load<wbr/>Asks<a href="#loadAsks" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">load<wbr/>Asks<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a>, forceReload<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L300">accounts/perp.ts:300</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a></h5></li><li><h5>forceReload: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="loadBids" class="tsd-anchor"></a><h3 class="tsd-anchor-link">load<wbr/>Bids<a href="#loadBids" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">load<wbr/>Bids<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a>, forceReload<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L311">accounts/perp.ts:311</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a></h5></li><li><h5>forceReload: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="BookSide.html" class="tsd-signature-type" data-tsd-kind="Class">BookSide</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="loadEventQueue" class="tsd-anchor"></a><h3 class="tsd-anchor-link">load<wbr/>Event<wbr/>Queue<a href="#loadEventQueue" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">load<wbr/>Event<wbr/>Queue<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="PerpEventQueue.html" class="tsd-signature-type" data-tsd-kind="Class">PerpEventQueue</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L322">accounts/perp.ts:322</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="PerpEventQueue.html" class="tsd-signature-type" data-tsd-kind="Class">PerpEventQueue</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="loadFills" class="tsd-anchor"></a><h3 class="tsd-anchor-link">load<wbr/>Fills<a href="#loadFills" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">load<wbr/>Fills<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a>, lastSeqNum<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/FillEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">FillEvent</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L329">accounts/perp.ts:329</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a></h5></li><li><h5>lastSeqNum: <span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> = ...</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/FillEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">FillEvent</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="logOb" class="tsd-anchor"></a><h3 class="tsd-anchor-link">log<wbr/>Ob<a href="#logOb" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">log<wbr/>Ob<span class="tsd-signature-symbol">(</span>client<span class="tsd-signature-symbol">: </span><a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L352">accounts/perp.ts:352</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>client: <a href="MangoClient.html" class="tsd-signature-type" data-tsd-kind="Class">MangoClient</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="parseFillEvent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">parse<wbr/>Fill<wbr/>Event<a href="#parseFillEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">parse<wbr/>Fill<wbr/>Event<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../index.html#ParsedFillEvent" class="tsd-signature-type" data-tsd-kind="Type alias">ParsedFillEvent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L340">accounts/perp.ts:340</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>event: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="../index.html#ParsedFillEvent" class="tsd-signature-type" data-tsd-kind="Type alias">ParsedFillEvent</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="priceLotsToUi" class="tsd-anchor"></a><h3 class="tsd-anchor-link">price<wbr/>Lots<wbr/>To<wbr/>Ui<a href="#priceLotsToUi" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">price<wbr/>Lots<wbr/>To<wbr/>Ui<span class="tsd-signature-symbol">(</span>price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L439">accounts/perp.ts:439</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>price: <span class="tsd-signature-type">BN</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="priceNativeToUi" class="tsd-anchor"></a><h3 class="tsd-anchor-link">price<wbr/>Native<wbr/>To<wbr/>Ui<a href="#priceNativeToUi" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">price<wbr/>Native<wbr/>To<wbr/>Ui<span class="tsd-signature-symbol">(</span>price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L443">accounts/perp.ts:443</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>price: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="quoteLotsToUi" class="tsd-anchor"></a><h3 class="tsd-anchor-link">quote<wbr/>Lots<wbr/>To<wbr/>Ui<a href="#quoteLotsToUi" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">quote<wbr/>Lots<wbr/>To<wbr/>Ui<span class="tsd-signature-symbol">(</span>quantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L451">accounts/perp.ts:451</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>quantity: <span class="tsd-signature-type">BN</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>String<a href="#toString" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L541">accounts/perp.ts:541</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="uiBaseToLots" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ui<wbr/>Base<wbr/>To<wbr/>Lots<a href="#uiBaseToLots" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">ui<wbr/>Base<wbr/>To<wbr/>Lots<span class="tsd-signature-symbol">(</span>quantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L431">accounts/perp.ts:431</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>quantity: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="uiPriceToLots" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ui<wbr/>Price<wbr/>To<wbr/>Lots<a href="#uiPriceToLots" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">ui<wbr/>Price<wbr/>To<wbr/>Lots<span class="tsd-signature-symbol">(</span>price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L425">accounts/perp.ts:425</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>price: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="uiQuoteToLots" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ui<wbr/>Quote<wbr/>To<wbr/>Lots<a href="#uiQuoteToLots" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">ui<wbr/>Quote<wbr/>To<wbr/>Lots<span class="tsd-signature-symbol">(</span>uiQuote<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L435">accounts/perp.ts:435</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiQuote: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="from" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> from<a href="#from" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">from<span class="tsd-signature-symbol">(</span>publicKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>asks<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>baseDecimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>baseLiquidationFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>baseLotSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>bids<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>eventQueue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>feePenalty<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>feesAccrued<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>feesSettled<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>forceClose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>fundingLastUpdated<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>group<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>groupInsuranceFund<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>impactQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>initBaseAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>initBaseLiabWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>initOverallAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>longFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maintBaseAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maintBaseLiabWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maintOverallAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>makerFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maxFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>minFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>openInterest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>oracle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>oracleConfig<span class="tsd-signature-symbol">: </span><a href="../index.html#OracleConfigDto" class="tsd-signature-type" data-tsd-kind="Type alias">OracleConfigDto</a><span class="tsd-signature-symbol">; </span>perpMarketIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>positivePnlLiquidationFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>quoteLotSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>reduceOnly<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>registrationTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>seqNum<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>settleFeeAmountThreshold<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settleFeeFlat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settleFeeFractionLowHealth<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settlePnlLimitFactor<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settlePnlLimitWindowSizeTs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>settleTokenIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>shortFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>stablePriceModel<span class="tsd-signature-symbol">: </span><a href="../index.html#StablePriceModel" class="tsd-signature-type" data-tsd-kind="Type alias">StablePriceModel</a><span class="tsd-signature-symbol">; </span>takerFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="PerpMarket.html" class="tsd-signature-type" data-tsd-kind="Class">PerpMarket</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/5a05e9c/ts/client/src/accounts/perp.ts#L68">accounts/perp.ts:68</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>publicKey: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>obj: <span class="tsd-signature-symbol">{ </span>asks<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>baseDecimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>baseLiquidationFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>baseLotSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>bids<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>eventQueue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>feePenalty<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>feesAccrued<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>feesSettled<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>forceClose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>fundingLastUpdated<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>group<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>groupInsuranceFund<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>impactQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>initBaseAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>initBaseLiabWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>initOverallAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>longFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maintBaseAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maintBaseLiabWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maintOverallAssetWeight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>makerFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maxFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>minFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>openInterest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>oracle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>oracleConfig<span class="tsd-signature-symbol">: </span><a href="../index.html#OracleConfigDto" class="tsd-signature-type" data-tsd-kind="Type alias">OracleConfigDto</a><span class="tsd-signature-symbol">; </span>perpMarketIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>positivePnlLiquidationFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>quoteLotSize<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>reduceOnly<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>registrationTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>seqNum<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>settleFeeAmountThreshold<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settleFeeFlat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settleFeeFractionLowHealth<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settlePnlLimitFactor<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>settlePnlLimitWindowSizeTs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>settleTokenIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>shortFunding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>stablePriceModel<span class="tsd-signature-symbol">: </span><a href="../index.html#StablePriceModel" class="tsd-signature-type" data-tsd-kind="Type alias">StablePriceModel</a><span class="tsd-signature-symbol">; </span>takerFee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5>asks<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>base<wbr/>Decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>base<wbr/>Liquidation<wbr/>Fee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>base<wbr/>Lot<wbr/>Size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>bids<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>event<wbr/>Queue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>fee<wbr/>Penalty<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>fees<wbr/>Accrued<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>fees<wbr/>Settled<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>force<wbr/>Close<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>funding<wbr/>Last<wbr/>Updated<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>group<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>group<wbr/>Insurance<wbr/>Fund<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>impact<wbr/>Quantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>init<wbr/>Base<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>init<wbr/>Base<wbr/>Liab<wbr/>Weight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>init<wbr/>Overall<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>long<wbr/>Funding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>maint<wbr/>Base<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>maint<wbr/>Base<wbr/>Liab<wbr/>Weight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>maint<wbr/>Overall<wbr/>Asset<wbr/>Weight<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>maker<wbr/>Fee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>max<wbr/>Funding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>min<wbr/>Funding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>open<wbr/>Interest<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>oracle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>oracle<wbr/>Config<span class="tsd-signature-symbol">: </span><a href="../index.html#OracleConfigDto" class="tsd-signature-type" data-tsd-kind="Type alias">OracleConfigDto</a></h5></li><li class="tsd-parameter"><h5>perp<wbr/>Market<wbr/>Index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>positive<wbr/>Pnl<wbr/>Liquidation<wbr/>Fee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>quote<wbr/>Lot<wbr/>Size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>reduce<wbr/>Only<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>registration<wbr/>Time<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>seq<wbr/>Num<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>settle<wbr/>Fee<wbr/>Amount<wbr/>Threshold<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>settle<wbr/>Fee<wbr/>Flat<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>settle<wbr/>Fee<wbr/>Fraction<wbr/>Low<wbr/>Health<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>settle<wbr/>Pnl<wbr/>Limit<wbr/>Factor<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>settle<wbr/>Pnl<wbr/>Limit<wbr/>Window<wbr/>Size<wbr/>Ts<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>settle<wbr/>Token<wbr/>Index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>short<wbr/>Funding<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>stable<wbr/>Price<wbr/>Model<span class="tsd-signature-symbol">: </span><a href="../index.html#StablePriceModel" class="tsd-signature-type" data-tsd-kind="Type alias">StablePriceModel</a></h5></li><li class="tsd-parameter"><h5>taker<wbr/>Fee<span class="tsd-signature-symbol">: </span><a href="I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li></ul></li></ul><h4 class="tsd-returns-title">Returns <a href="PerpMarket.html" class="tsd-signature-type" data-tsd-kind="Class">PerpMarket</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="PerpMarket.html" class="tsd-kind-icon">Perp<wbr/>Market</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="PerpMarket.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_asks" class="tsd-kind-icon">_asks</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_bids" class="tsd-kind-icon">_bids</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_oracleLastUpdatedSlot" class="tsd-kind-icon">_oracle<wbr/>Last<wbr/>Updated<wbr/>Slot</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_oracleProvider" class="tsd-kind-icon">_oracle<wbr/>Provider</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_price" class="tsd-kind-icon">_price</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#_uiPrice" class="tsd-kind-icon">_ui<wbr/>Price</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#asks" class="tsd-kind-icon">asks</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#baseDecimals" class="tsd-kind-icon">base<wbr/>Decimals</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#baseLiquidationFee" class="tsd-kind-icon">base<wbr/>Liquidation<wbr/>Fee</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#baseLotSize" class="tsd-kind-icon">base<wbr/>Lot<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="PerpMarket.html#baseLotsToUiConverter" class="tsd-kind-icon">base<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#bids" class="tsd-kind-icon">bids</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#eventQueue" class="tsd-kind-icon">event<wbr/>Queue</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#feePenalty" class="tsd-kind-icon">fee<wbr/>Penalty</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#feesAccrued" class="tsd-kind-icon">fees<wbr/>Accrued</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#feesSettled" class="tsd-kind-icon">fees<wbr/>Settled</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#forceClose" class="tsd-kind-icon">force<wbr/>Close</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#fundingLastUpdated" class="tsd-kind-icon">funding<wbr/>Last<wbr/>Updated</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#group" class="tsd-kind-icon">group</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#groupInsuranceFund" class="tsd-kind-icon">group<wbr/>Insurance<wbr/>Fund</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#impactQuantity" class="tsd-kind-icon">impact<wbr/>Quantity</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#initBaseAssetWeight" class="tsd-kind-icon">init<wbr/>Base<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#initBaseLiabWeight" class="tsd-kind-icon">init<wbr/>Base<wbr/>Liab<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#initOverallAssetWeight" class="tsd-kind-icon">init<wbr/>Overall<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#longFunding" class="tsd-kind-icon">long<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maintBaseAssetWeight" class="tsd-kind-icon">maint<wbr/>Base<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maintBaseLiabWeight" class="tsd-kind-icon">maint<wbr/>Base<wbr/>Liab<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maintOverallAssetWeight" class="tsd-kind-icon">maint<wbr/>Overall<wbr/>Asset<wbr/>Weight</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#makerFee" class="tsd-kind-icon">maker<wbr/>Fee</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#maxFunding" class="tsd-kind-icon">max<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#minFunding" class="tsd-kind-icon">min<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#name" class="tsd-kind-icon">name</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#openInterest" class="tsd-kind-icon">open<wbr/>Interest</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#oracle" class="tsd-kind-icon">oracle</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#oracleConfig" class="tsd-kind-icon">oracle<wbr/>Config</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#perpMarketIndex" class="tsd-kind-icon">perp<wbr/>Market<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#positivePnlLiquidationFee" class="tsd-kind-icon">positive<wbr/>Pnl<wbr/>Liquidation<wbr/>Fee</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="PerpMarket.html#priceLotsToUiConverter" class="tsd-kind-icon">price<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#publicKey" class="tsd-kind-icon">public<wbr/>Key</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#quoteLotSize" class="tsd-kind-icon">quote<wbr/>Lot<wbr/>Size</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="PerpMarket.html#quoteLotsToUiConverter" class="tsd-kind-icon">quote<wbr/>Lots<wbr/>To<wbr/>Ui<wbr/>Converter</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#reduceOnly" class="tsd-kind-icon">reduce<wbr/>Only</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#registrationTime" class="tsd-kind-icon">registration<wbr/>Time</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#seqNum" class="tsd-kind-icon">seq<wbr/>Num</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleFeeAmountThreshold" class="tsd-kind-icon">settle<wbr/>Fee<wbr/>Amount<wbr/>Threshold</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleFeeFlat" class="tsd-kind-icon">settle<wbr/>Fee<wbr/>Flat</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleFeeFractionLowHealth" class="tsd-kind-icon">settle<wbr/>Fee<wbr/>Fraction<wbr/>Low<wbr/>Health</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settlePnlLimitFactor" class="tsd-kind-icon">settle<wbr/>Pnl<wbr/>Limit<wbr/>Factor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settlePnlLimitWindowSizeTs" class="tsd-kind-icon">settle<wbr/>Pnl<wbr/>Limit<wbr/>Window<wbr/>Size<wbr/>Ts</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#settleTokenIndex" class="tsd-kind-icon">settle<wbr/>Token<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#shortFunding" class="tsd-kind-icon">short<wbr/>Funding</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#stablePriceModel" class="tsd-kind-icon">stable<wbr/>Price<wbr/>Model</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="PerpMarket.html#takerFee" class="tsd-kind-icon">taker<wbr/>Fee</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#minOrderSize" class="tsd-kind-icon">min<wbr/>Order<wbr/>Size</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#oracleLastUpdatedSlot" class="tsd-kind-icon">oracle<wbr/>Last<wbr/>Updated<wbr/>Slot</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#oracleProvider" class="tsd-kind-icon">oracle<wbr/>Provider</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#price" class="tsd-kind-icon">price</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#tickSize" class="tsd-kind-icon">tick<wbr/>Size</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="PerpMarket.html#uiPrice" class="tsd-kind-icon">ui<wbr/>Price</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#baseLotsToUi" class="tsd-kind-icon">base<wbr/>Lots<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#getInstantaneousFundingRate" class="tsd-kind-icon">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#getInstantaneousFundingRateUi" class="tsd-kind-icon">get<wbr/>Instantaneous<wbr/>Funding<wbr/>Rate<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#getSettlePnlCandidates" class="tsd-kind-icon">get<wbr/>Settle<wbr/>Pnl<wbr/>Candidates</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#insidePriceLimit" class="tsd-kind-icon">inside<wbr/>Price<wbr/>Limit</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadAsks" class="tsd-kind-icon">load<wbr/>Asks</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadBids" class="tsd-kind-icon">load<wbr/>Bids</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadEventQueue" class="tsd-kind-icon">load<wbr/>Event<wbr/>Queue</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#loadFills" class="tsd-kind-icon">load<wbr/>Fills</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#logOb" class="tsd-kind-icon">log<wbr/>Ob</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#parseFillEvent" class="tsd-kind-icon">parse<wbr/>Fill<wbr/>Event</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#priceLotsToUi" class="tsd-kind-icon">price<wbr/>Lots<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#priceNativeToUi" class="tsd-kind-icon">price<wbr/>Native<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#quoteLotsToUi" class="tsd-kind-icon">quote<wbr/>Lots<wbr/>To<wbr/>Ui</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#uiBaseToLots" class="tsd-kind-icon">ui<wbr/>Base<wbr/>To<wbr/>Lots</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#uiPriceToLots" class="tsd-kind-icon">ui<wbr/>Price<wbr/>To<wbr/>Lots</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="PerpMarket.html#uiQuoteToLots" class="tsd-kind-icon">ui<wbr/>Quote<wbr/>To<wbr/>Lots</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="PerpMarket.html#from" class="tsd-kind-icon">from</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>