\ No newline at end of file
diff --git a/ts/client/classes/Bank.html b/ts/client/classes/Bank.html
index cfea00f77..6be3f7ec0 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 ccb7020ca..a605b7c60 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 5d0a6c9ac..9ca0f8dbb 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 2881f884f..ea8d3f183 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 5922804d8..5c8e64cb9 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 597d11405..9b68bf318 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 766654343..71ad7779d 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 8b8081773..cf484f7db 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 0baef3252..a5e04c039 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 7eed034db..7ba324097 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 758dcab17..1e366004e 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 b5b467613..8a79c92f6 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 f465ab799..8435d2ae5 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 2a49d025c..d6ab76566 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 8aa9364f3..39cbf64a3 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 bb78ea253..4880dc5f1 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 a6edf38a2..105a7d003 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 c13a27826..3df4fc04f 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 7f4d66788..ba33aaea2 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 71e3c457a..325088625 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 98d5570fb..f1a4fe6ae 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 0e0eb0848..44a8ab188 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 1f5d64292..8f8c7e33a 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 ff3727c8f..01f90073b 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 069825c22..17e439364 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 230a0ea01..fbb6e1c64 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 b24448e2f..d681b07ce 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 5e382b655..e107276ab 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 54f9764c0..b2168babe 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 b463c72c6..86b783c85 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 92af2d1e9..90f2a4348 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 e5b836d64..db2437b77 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 5ea9271db..e06cab823 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 7d260f510..749b8b501 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 95777962c..aa67411a3 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 332c8a673..1ec7e1067 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 d3c7c6ccc..508fa2539 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 79f8cc0a5..49853120e 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 4785bf3e1..f26cffa02 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 b6705630c..75a3d9c38 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 b27514b7c..97ff03338 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 0fc7ad437..1f59ae6b3 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 7982bcc19..8c57e6910 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 08dd9cb7a..e1b1e2b74 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 08ffa77c2..2f297bde7 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 6a30ed631..574d2a18e 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 8e272d3e2..030f739f7 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 0bfbf2b5a..ab2012b6d 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 ceb3c2e95..497a06681 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 ff9dd2c92..1531ae94e 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 926401674..07cb4cd6f 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 7304c37a9..21ab65b2e 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 dc569dfbf..54cac617d 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 795754468..9b814202f 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