Asset

ProtocolPositions is a record of key / Protocol, ex :

{
  "assets": [
    {
      "chainKey": "ethereum",
      "contract": "0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f",
      "chainContract": "ethereum:0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f",
      "symbol": "acx",
      "name": "across protocol token",
      "decimal": "18",
      "price": "0.445410491752728",
      "balance": "1487.3508704695332",
      "totalCostBasis": "0",
      "openPnl": "0",
      "value": "662.4816826246828291795919865696",
      "imgSmall": "path-to-img.png",
      "explorerUrl": "https://etherscan.io/address/0x44108f0223a3c3028f5fe7aec7f9bb2e66bef82f"
    }
  ]
}

Asset

Key
Type
Description

balance

string

Asset balance.

chainContract

string

Contract address on the chain.

chainKey

string

Chain identifier.

contract

string

Contract address of the asset.

decimal

string

Decimal precision of the asset.

name

string

Name of the asset.

openPnl

string

Open profit and loss for the asset.

price

string

Current price of the asset.

symbol

string

Symbol of the asset.

totalCostBasis

string

Total cost basis of the asset.

value

string

Current value of the asset.

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



Last updated