Search
Preparing search index...
The search index is not available
@mrgnlabs/marginfi-client-v2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@mrgnlabs/marginfi-client-v2
Balance
Class Balance
Hierarchy
Balance
Index
Constructors
constructor
Properties
active
asset
Shares
bank
Pk
liability
Shares
Methods
get
Quantity
get
Quantity
Ui
get
Usd
Value
get
Usd
Value
With
Price
Bias
new
Empty
Constructors
constructor
new
Balance
(
data
:
BalanceData
)
:
Balance
Parameters
data:
BalanceData
Returns
Balance
Properties
active
active
:
boolean
asset
Shares
asset
Shares
:
BigNumber
bank
Pk
bank
Pk
:
PublicKey
liability
Shares
liability
Shares
:
BigNumber
Methods
get
Quantity
get
Quantity
(
bank
:
Bank
)
:
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
Parameters
bank:
Bank
Returns
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
assets
:
BigNumber
liabilities
:
BigNumber
get
Quantity
Ui
get
Quantity
Ui
(
bank
:
Bank
)
:
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
Parameters
bank:
Bank
Returns
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
assets
:
BigNumber
liabilities
:
BigNumber
get
Usd
Value
get
Usd
Value
(
bank
:
Bank
, marginReqType
:
MarginRequirementType
)
:
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
Parameters
bank:
Bank
marginReqType:
MarginRequirementType
Returns
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
assets
:
BigNumber
liabilities
:
BigNumber
get
Usd
Value
With
Price
Bias
get
Usd
Value
With
Price
Bias
(
bank
:
Bank
, marginReqType
:
MarginRequirementType
)
:
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
Parameters
bank:
Bank
marginReqType:
MarginRequirementType
Returns
{
assets
:
BigNumber
;
liabilities
:
BigNumber
}
assets
:
BigNumber
liabilities
:
BigNumber
Static
new
Empty
new
Empty
(
bankPk
:
PublicKey
)
:
Balance
Parameters
bankPk:
PublicKey
Returns
Balance
Exports
Balance
constructor
active
asset
Shares
bank
Pk
liability
Shares
get
Quantity
get
Quantity
Ui
get
Usd
Value
get
Usd
Value
With
Price
Bias
new
Empty
Generated using
TypeDoc