\ No newline at end of file
diff --git a/ts/client/classes/Bank.html b/ts/client/classes/Bank.html
index ac9957d88..56fe4fe58 100644
--- a/ts/client/classes/Bank.html
+++ b/ts/client/classes/Bank.html
@@ -1,6 +1,6 @@
-Bank | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/BookSide.html b/ts/client/classes/BookSide.html
index 367558f4d..36c457f1c 100644
--- a/ts/client/classes/BookSide.html
+++ b/ts/client/classes/BookSide.html
@@ -1,7 +1,7 @@
-BookSide | @blockworks-foundation/mango-v4
iterates over all orders,
skips oracle pegged orders which are invalid due to oracle price crossing the peg limit,
skips tif orders which are invalid due to tif having elapsed,
\ No newline at end of file
diff --git a/ts/client/classes/BookSideType.html b/ts/client/classes/BookSideType.html
index 3518dbd9b..f955127a4 100644
--- a/ts/client/classes/BookSideType.html
+++ b/ts/client/classes/BookSideType.html
@@ -1 +1 @@
-BookSideType | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/FlashLoanType.html b/ts/client/classes/FlashLoanType.html
index f244095f0..6c2d15820 100644
--- a/ts/client/classes/FlashLoanType.html
+++ b/ts/client/classes/FlashLoanType.html
@@ -1 +1 @@
-FlashLoanType | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/FlashLoanWithdraw.html b/ts/client/classes/FlashLoanWithdraw.html
index 55b7b1a82..177c8401c 100644
--- a/ts/client/classes/FlashLoanWithdraw.html
+++ b/ts/client/classes/FlashLoanWithdraw.html
@@ -1 +1 @@
-FlashLoanWithdraw | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Group.html b/ts/client/classes/Group.html
index e1fdfa309..b8eafcaf9 100644
--- a/ts/client/classes/Group.html
+++ b/ts/client/classes/Group.html
@@ -1,2 +1,2 @@
-Group | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/HealthType.html b/ts/client/classes/HealthType.html
index f844a6260..ff8a97cf0 100644
--- a/ts/client/classes/HealthType.html
+++ b/ts/client/classes/HealthType.html
@@ -1 +1 @@
-HealthType | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/I80F48.html b/ts/client/classes/I80F48.html
index 0c0a23787..7fb1de283 100644
--- a/ts/client/classes/I80F48.html
+++ b/ts/client/classes/I80F48.html
@@ -1,11 +1,11 @@
-I80F48 | @blockworks-foundation/mango-v4
This is represented by a 128 bit signed integer underneath
The first 80 bits are treated as an integer and last 48 bits are treated as fractional part after binary point
It's possible to think of an I80F48 as an i128 divided by 2 ^ 40
\ No newline at end of file
diff --git a/ts/client/classes/I80F48Dto.html b/ts/client/classes/I80F48Dto.html
index cb973988d..130658fc1 100644
--- a/ts/client/classes/I80F48Dto.html
+++ b/ts/client/classes/I80F48Dto.html
@@ -1 +1 @@
-I80F48Dto | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/InnerNode.html b/ts/client/classes/InnerNode.html
index 535412c86..3296824b7 100644
--- a/ts/client/classes/InnerNode.html
+++ b/ts/client/classes/InnerNode.html
@@ -1 +1 @@
-InnerNode | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/InterestRateParams.html b/ts/client/classes/InterestRateParams.html
index db59eb31f..1492dbf2f 100644
--- a/ts/client/classes/InterestRateParams.html
+++ b/ts/client/classes/InterestRateParams.html
@@ -1 +1 @@
-InterestRateParams | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/LeafNode.html b/ts/client/classes/LeafNode.html
index 162b22369..283c6cb85 100644
--- a/ts/client/classes/LeafNode.html
+++ b/ts/client/classes/LeafNode.html
@@ -1 +1 @@
-LeafNode | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/MangoAccount.html b/ts/client/classes/MangoAccount.html
index c79c5aae1..e01eaf0da 100644
--- a/ts/client/classes/MangoAccount.html
+++ b/ts/client/classes/MangoAccount.html
@@ -1,69 +1,69 @@
-MangoAccount | @blockworks-foundation/mango-v4
token cumulative interest, in native token units. Sum of deposit and borrow interest.
Caveat: This will only return cumulative interest since the tokenPosition was last opened.
If the tokenPosition was closed and reopened multiple times it is necessary to add this result to
cumulative interest at each of the prior tokenPosition closings (from mango API) to get the all time
cumulative interest.
Overall PNL, in native quote
PNL is defined here as spot value + serum3 open orders value + perp value - net deposits value (evaluated at native quote price at the time of the deposit/withdraw)
spot value + serum3 open orders value + perp value is returned by getEquity (open orders values are added to spot token values implicitly)
\ No newline at end of file
diff --git a/ts/client/classes/MangoClient.html b/ts/client/classes/MangoClient.html
index d87db893b..0a955a968 100644
--- a/ts/client/classes/MangoClient.html
+++ b/ts/client/classes/MangoClient.html
@@ -1,4 +1,4 @@
-MangoClient | @blockworks-foundation/mango-v4
Note: this ix doesn't settle liabs, reduce open positions, or withdraw tokens to wallet,
it simply closes the account. To close successfully ensure all positions are closed, or
use forceClose flag
\ No newline at end of file
diff --git a/ts/client/classes/MintInfo.html b/ts/client/classes/MintInfo.html
index 92e4457b4..1b09a98b1 100644
--- a/ts/client/classes/MintInfo.html
+++ b/ts/client/classes/MintInfo.html
@@ -1 +1 @@
-MintInfo | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/OracleConfigParams.html b/ts/client/classes/OracleConfigParams.html
index cec38fd7d..06d2bca14 100644
--- a/ts/client/classes/OracleConfigParams.html
+++ b/ts/client/classes/OracleConfigParams.html
@@ -1 +1 @@
-OracleConfigParams | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpEventQueue.html b/ts/client/classes/PerpEventQueue.html
index 66a4b254b..983879966 100644
--- a/ts/client/classes/PerpEventQueue.html
+++ b/ts/client/classes/PerpEventQueue.html
@@ -1 +1 @@
-PerpEventQueue | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpMarket.html b/ts/client/classes/PerpMarket.html
index 969c4df21..3a01b25a7 100644
--- a/ts/client/classes/PerpMarket.html
+++ b/ts/client/classes/PerpMarket.html
@@ -1,12 +1,12 @@
-PerpMarket | @blockworks-foundation/mango-v4
getInstantaneousFundingRateUi(bids: BookSide, asks: BookSide): number
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).
Returns a list of (upto count) accounts, and the pnl that is settle'able on this perp market,
the list is sorted ascending for 'negative' direction and descending for 'positive' direction.
NOTE: keep in sync with perp_pnl.rs:fetch_top
TODO: replace with a more performant offchain service call
\ No newline at end of file
diff --git a/ts/client/classes/PerpOo.html b/ts/client/classes/PerpOo.html
index 95e826e83..a1afdb1a3 100644
--- a/ts/client/classes/PerpOo.html
+++ b/ts/client/classes/PerpOo.html
@@ -1 +1 @@
-PerpOo | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpOoDto.html b/ts/client/classes/PerpOoDto.html
index 119297baf..711fc25aa 100644
--- a/ts/client/classes/PerpOoDto.html
+++ b/ts/client/classes/PerpOoDto.html
@@ -1 +1 @@
-PerpOoDto | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpOrder.html b/ts/client/classes/PerpOrder.html
index 11ecc67d7..2ee353ede 100644
--- a/ts/client/classes/PerpOrder.html
+++ b/ts/client/classes/PerpOrder.html
@@ -1 +1 @@
-PerpOrder | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpOrderSide.html b/ts/client/classes/PerpOrderSide.html
index 70a2cee2d..53934db64 100644
--- a/ts/client/classes/PerpOrderSide.html
+++ b/ts/client/classes/PerpOrderSide.html
@@ -1 +1 @@
-PerpOrderSide | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpOrderType.html b/ts/client/classes/PerpOrderType.html
index d6449f6e1..a44a2299b 100644
--- a/ts/client/classes/PerpOrderType.html
+++ b/ts/client/classes/PerpOrderType.html
@@ -1 +1 @@
-PerpOrderType | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpPosition.html b/ts/client/classes/PerpPosition.html
index c82108461..16cb63177 100644
--- a/ts/client/classes/PerpPosition.html
+++ b/ts/client/classes/PerpPosition.html
@@ -1 +1 @@
-PerpPosition | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/PerpPositionDto.html b/ts/client/classes/PerpPositionDto.html
index 5f216ee03..2e784d6ba 100644
--- a/ts/client/classes/PerpPositionDto.html
+++ b/ts/client/classes/PerpPositionDto.html
@@ -1 +1 @@
-PerpPositionDto | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Serum3Market.html b/ts/client/classes/Serum3Market.html
index 55aa9bdbb..d884e7faa 100644
--- a/ts/client/classes/Serum3Market.html
+++ b/ts/client/classes/Serum3Market.html
@@ -1,5 +1,5 @@
-Serum3Market | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Serum3OrderType.html b/ts/client/classes/Serum3OrderType.html
index 97a97bbee..def85adaf 100644
--- a/ts/client/classes/Serum3OrderType.html
+++ b/ts/client/classes/Serum3OrderType.html
@@ -1 +1 @@
-Serum3OrderType | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Serum3Orders.html b/ts/client/classes/Serum3Orders.html
index 980090fdf..62e39d38a 100644
--- a/ts/client/classes/Serum3Orders.html
+++ b/ts/client/classes/Serum3Orders.html
@@ -1 +1 @@
-Serum3Orders | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Serum3PositionDto.html b/ts/client/classes/Serum3PositionDto.html
index 073144f7a..1601a2b76 100644
--- a/ts/client/classes/Serum3PositionDto.html
+++ b/ts/client/classes/Serum3PositionDto.html
@@ -1 +1 @@
-Serum3PositionDto | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Serum3SelfTradeBehavior.html b/ts/client/classes/Serum3SelfTradeBehavior.html
index e1647aa7c..930922816 100644
--- a/ts/client/classes/Serum3SelfTradeBehavior.html
+++ b/ts/client/classes/Serum3SelfTradeBehavior.html
@@ -1 +1 @@
-Serum3SelfTradeBehavior | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/Serum3Side.html b/ts/client/classes/Serum3Side.html
index e8142047a..50ec9dc94 100644
--- a/ts/client/classes/Serum3Side.html
+++ b/ts/client/classes/Serum3Side.html
@@ -1 +1 @@
-Serum3Side | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/StubOracle.html b/ts/client/classes/StubOracle.html
index f0492f7f8..b9b6eafda 100644
--- a/ts/client/classes/StubOracle.html
+++ b/ts/client/classes/StubOracle.html
@@ -1 +1 @@
-StubOracle | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/TokenPosition.html b/ts/client/classes/TokenPosition.html
index 04759da86..b42719b5a 100644
--- a/ts/client/classes/TokenPosition.html
+++ b/ts/client/classes/TokenPosition.html
@@ -1,7 +1,7 @@
-TokenPosition | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/classes/TokenPositionDto.html b/ts/client/classes/TokenPositionDto.html
index 12b3689cc..603351379 100644
--- a/ts/client/classes/TokenPositionDto.html
+++ b/ts/client/classes/TokenPositionDto.html
@@ -1 +1 @@
-TokenPositionDto | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/enums/OracleProvider.html b/ts/client/enums/OracleProvider.html
index 92d58dab1..aea1e3b4e 100644
--- a/ts/client/enums/OracleProvider.html
+++ b/ts/client/enums/OracleProvider.html
@@ -1 +1 @@
-OracleProvider | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/enums/SwapMode.html b/ts/client/enums/SwapMode.html
index d554ccecd..22435b5f6 100644
--- a/ts/client/enums/SwapMode.html
+++ b/ts/client/enums/SwapMode.html
@@ -1 +1 @@
-SwapMode | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/index.html b/ts/client/index.html
index 9902435f3..b6e2cc87e 100644
--- a/ts/client/index.html
+++ b/ts/client/index.html
@@ -1,4 +1,4 @@
-@blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/AccountEquity.html b/ts/client/interfaces/AccountEquity.html
index 9b1967bc2..a4e321e11 100644
--- a/ts/client/interfaces/AccountEquity.html
+++ b/ts/client/interfaces/AccountEquity.html
@@ -1 +1 @@
-AccountEquity | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/BankForHealth.html b/ts/client/interfaces/BankForHealth.html
index 41a78420e..a6cea4b75 100644
--- a/ts/client/interfaces/BankForHealth.html
+++ b/ts/client/interfaces/BankForHealth.html
@@ -1 +1 @@
-BankForHealth | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/Event.html b/ts/client/interfaces/Event.html
index 0c9c1ce30..a6c9582f5 100644
--- a/ts/client/interfaces/Event.html
+++ b/ts/client/interfaces/Event.html
@@ -1 +1 @@
-Event | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/ExactOutSwapParams.html b/ts/client/interfaces/ExactOutSwapParams.html
index 7d14c2149..b544717af 100644
--- a/ts/client/interfaces/ExactOutSwapParams.html
+++ b/ts/client/interfaces/ExactOutSwapParams.html
@@ -1,3 +1,3 @@
-ExactOutSwapParams | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/Fee.html b/ts/client/interfaces/Fee.html
index 048dfbd13..1f619f89f 100644
--- a/ts/client/interfaces/Fee.html
+++ b/ts/client/interfaces/Fee.html
@@ -1 +1 @@
-Fee | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/FillEvent.html b/ts/client/interfaces/FillEvent.html
index 4ab8ecbf8..ea35c08cb 100644
--- a/ts/client/interfaces/FillEvent.html
+++ b/ts/client/interfaces/FillEvent.html
@@ -1 +1 @@
-FillEvent | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/LiqorPriceImpact.html b/ts/client/interfaces/LiqorPriceImpact.html
index e24e9921a..960a17944 100644
--- a/ts/client/interfaces/LiqorPriceImpact.html
+++ b/ts/client/interfaces/LiqorPriceImpact.html
@@ -1 +1 @@
-LiqorPriceImpact | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/LiquidateEvent.html b/ts/client/interfaces/LiquidateEvent.html
index 760d09db0..215cdcf82 100644
--- a/ts/client/interfaces/LiquidateEvent.html
+++ b/ts/client/interfaces/LiquidateEvent.html
@@ -1 +1 @@
-LiquidateEvent | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/MarketInfo.html b/ts/client/interfaces/MarketInfo.html
index db0e4410c..b4ec6f5f2 100644
--- a/ts/client/interfaces/MarketInfo.html
+++ b/ts/client/interfaces/MarketInfo.html
@@ -1 +1 @@
-MarketInfo | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/OutEvent.html b/ts/client/interfaces/OutEvent.html
index 325c8b4fe..2ea36047a 100644
--- a/ts/client/interfaces/OutEvent.html
+++ b/ts/client/interfaces/OutEvent.html
@@ -1 +1 @@
-OutEvent | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/PerpPositionsToBeLiquidated.html b/ts/client/interfaces/PerpPositionsToBeLiquidated.html
index dd6af6efa..8d419e57e 100644
--- a/ts/client/interfaces/PerpPositionsToBeLiquidated.html
+++ b/ts/client/interfaces/PerpPositionsToBeLiquidated.html
@@ -1 +1 @@
-PerpPositionsToBeLiquidated | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/Quote.html b/ts/client/interfaces/Quote.html
index 26538266f..d3009e12a 100644
--- a/ts/client/interfaces/Quote.html
+++ b/ts/client/interfaces/Quote.html
@@ -1 +1 @@
-Quote | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/QuoteParams.html b/ts/client/interfaces/QuoteParams.html
index 0c792aa69..51e5bde1e 100644
--- a/ts/client/interfaces/QuoteParams.html
+++ b/ts/client/interfaces/QuoteParams.html
@@ -1 +1 @@
-QuoteParams | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/Risk.html b/ts/client/interfaces/Risk.html
index e89595f4a..e52457d2c 100644
--- a/ts/client/interfaces/Risk.html
+++ b/ts/client/interfaces/Risk.html
@@ -1 +1 @@
-Risk | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/RouteInfo.html b/ts/client/interfaces/RouteInfo.html
index e6c0b01b5..79a0e6739 100644
--- a/ts/client/interfaces/RouteInfo.html
+++ b/ts/client/interfaces/RouteInfo.html
@@ -1 +1 @@
-RouteInfo | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/SwapParams.html b/ts/client/interfaces/SwapParams.html
index 305a9c3da..c2a78c8a2 100644
--- a/ts/client/interfaces/SwapParams.html
+++ b/ts/client/interfaces/SwapParams.html
@@ -1,3 +1,3 @@
-SwapParams | @blockworks-foundation/mango-v4
\ No newline at end of file
diff --git a/ts/client/interfaces/TransactionFeeInfo.html b/ts/client/interfaces/TransactionFeeInfo.html
index b23927541..71094f9a3 100644
--- a/ts/client/interfaces/TransactionFeeInfo.html
+++ b/ts/client/interfaces/TransactionFeeInfo.html
@@ -1 +1 @@
-TransactionFeeInfo | @blockworks-foundation/mango-v4
- Preparing search index...
- The search index is not available
@blockworks-foundation/mango-v4Class BookSide
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
client: MangoClient
perpMarket: PerpMarket
type: BookSideType
rootFixed: OrderTreeRoot
rootOraclePegged: OrderTreeRoot
orderTreeNodes: OrderTreeNodes
Optional maxBookDelay: number
Returns BookSide
Properties
client
now
order Tree Nodes
perp Market
root Fixed
root Oracle Pegged
type
Static Private INNER_ NODE_ TAG
Static Private LEAF_ NODE_ TAG
Methods
best
Returns undefined | PerpOrder
fixed Items
Returns Generator<PerpOrder, any, unknown>
get Impact Price Ui
Parameters
baseLots: BN
Returns undefined | number
get L2
Parameters
depth: number
Returns [number, number, BN, BN][]
get L2 Ui
Parameters
depth: number
Returns [number, number][]
items
iterates over all orders
-Returns Generator<PerpOrder, any, unknown>
items Valid
Returns Generator<PerpOrder, any, unknown>
items Valid
iterates over all orders, skips oracle pegged orders which are invalid due to oracle price crossing the peg limit, skips tif orders which are invalid due to tif having elapsed,
-Returns Generator<PerpOrder, any, unknown>
oracle Pegged Items
Returns Generator<PerpOrder, any, unknown>
Static from
Parameters
client: MangoClient
perpMarket: PerpMarket
bookSideType: BookSideType
obj: { nodes: OrderTreeNodes; roots: OrderTreeRoot[] }
nodes: OrderTreeNodes
roots: OrderTreeRoot[]
Returns BookSide
Static get Price From Key
Parameters
key: BN
Returns BN
Static to Inner Node
Parameters
client: MangoClient
data: [number]
Returns InnerNode
Static to Leaf Node
Parameters
client: MangoClient
data: [number]
Returns LeafNode
Generated using TypeDoc