ProtocolPosition
ProtocolPositions is a record of key / Protocol.The protocol's key is indicated by its type (e.g., WALLET, LENDING, STAKING). There are two categories of protocols: "REGULAR" and "COMPLEX."
More detail Protocol types supported by Octav
Regular protocols assets are under assets[]
, while complex ones include additional structures and are nested on a sub protocolPositions
object.
Nested protocol positions are managing diverse asset types (borrow, supplied, rewards, etc.) and complex positions (e.g., lending) in a single structure.
Typing
name
string
Name of the protocol.
totalOpenPnl
string
Total open profit and loss in the protocol.
totalCostBasis
string
Total cost basis of assets in the protocol.
totalValue
string
Total value of all protocol assets.
unlockAt
string
(timestamp)
Unlock time for protocol assets, if applicable.
imgSmall
string
Url of the protocol image (small)
includeImages
param must be set to true
imgLarge
string
Url of the protocol image (large)
includeImages
param must be set to true
explorerUrl
string
Explorer link
includeExplorerUrls
param must be set to true
assets
Asset[]
Array of assets held in the protocol (if applicable) See #protocol-positions-details
supplyAssets
Array of supplied assets (if applicable) See #protocol-positions-details
borrowAssets
Array of borrowed assets (if applicable) See #protocol-positions-details
rewardAssets
Array of reward assets (if applicable) See #protocol-positions-details
dexAssets
Array of dex assets (if applicable) See #protocol-positions-details
protocolPositions
Sub array of protocol positions in case of protocol is considered as 'COMPLEX" . See #protocol-positions-details
Last updated