Asset

ProtocolPositions is a record of key / Protocol, ex :

{
  "balance": "1",
  "chainContract": "base:0x4200000000000000000000000000000000000006",
  "chainKey": "base",
  "contract": "0x4200000000000000000000000000000000000006",
  "decimal": "18",
  "name": "weth",
  "price": "3160.1389171586366",
  "symbol": "weth",
  "value": "3160.1389171586366",
  "nft": {
    "tokenId": ""
  },
  "to": "0xef7f2e81ea14538858d962df34eb1bfda83da395",
  "totalCostBasis": "0",
  "isNativeAssetFees": false,
  "from": "0x9562cbd309c466cff835126f246be479308df72b",
  "costBasis": "0",
  "closedPnl": "0"
}

Asset

Field

Description

Type

balance

Current balance of the asset.

string

chainContract

Contract identifier on the blockchain.

string

chainKey

Key identifier for the blockchain.

string

contract

Contract address of the asset.

string

decimal

Number of decimal places for the asset.

string

name

Name of the asset.

string

price

Current price of the asset.

string

symbol

Symbol of the asset (e.g., WETH).

string

value

Current value of the asset.

string

nft.tokenId

Unique identifier for the NFT, if applicable.

string

to

Address receiving the transaction.

string

totalCostBasis

Total cost basis for the asset.

string

isNativeAssetFees

Indicates whether native asset fees apply.

boolean

from

Address initiating the transaction.

string

costBasis

Initial cost of acquiring the asset.

string

closedPnl

Closed profit and loss value.

string



Last updated