\ No newline at end of file
diff --git a/ts/client/classes/Bank.html b/ts/client/classes/Bank.html
index 7e6cc255f..3a67fc7a8 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 7fca1cd5b..5b48e3c4b 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 fba4bc94a..371876bea 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 863eac7ad..d5d15068c 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 bcb02bf3c..093ea9f7a 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 7a6fa1c51..dfb06ae52 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 e4852a80d..bdff78de3 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 15372f431..113992adc 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 1155b3e47..f1da57ac0 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 314d67c75..a184e2f20 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 f5403a635..0431ad253 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 d332b33b0..0ada05c95 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 7f5ffccbc..df8c94a31 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 94ce14eee..5cb13b340 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 02e066d18..682162d22 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 472c0cafe..a1de98318 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 ea39aaa47..245d9afde 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 97a590cf6..908de7ddb 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 ebde0267c..447e625c9 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 0f596b073..ccd437225 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 887e20563..57a3072a0 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 145a7645a..f93dd5736 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 05a63d6ac..11a8062d7 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 a70ed01cb..7ff6576db 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 befd09795..38a8b56a3 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 0f5a566f6..bf89fdb54 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 23ec1f242..254ec0ad2 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 27e0fc4a6..538960c2d 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 6a83dab89..a09dbc866 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 23c62c720..eda1d1dea 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 534804803..38d96aac9 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 62c9b6a36..d5cf81d9f 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 678125050..9fc8f123e 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 d7f851b80..9d49d4f89 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 5c17b7fad..4729f1b93 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 dc7ccda1b..aaf66c598 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 2dde69646..c5ac4b2fa 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 a69b3ec60..1dac44e16 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 755ef308c..800ba511f 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 041a5c312..482a1a0bc 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 303965394..79ecb5ae0 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 bde7d8e74..26fc6f67b 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 cd7700a93..c0946ad8b 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 b3dd19946..64b7547a7 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 30a941001..e102df693 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 bc5d168da..3dbdfb6fa 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 f2e3ecc03..3d56cc0ea 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 4ff14fcf4..6286d4610 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 829e84ee9..723936d16 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 e146623d4..0b5e93e6f 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 89a3051c9..01b8ac7fe 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 28c02f886..c2fd86ee5 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 3997ec0c7..4073114bc 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 ef63a50ef..b41c1f67c 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