Octav - API Documentation
  • Welcome
  • Getting Started
    • API Access
    • Portfolio
    • Wallet
    • Transactions
    • Synchronization
    • Status
    • credits
  • API Models
    • Portfolio
      • AssetByProtocols
      • Chains
      • ProtocolPosition
      • Asset
      • ChainSummary
      • NFTCollection
      • NFTChain
      • NFTAsset
    • Transaction
      • Asset
      • NativeAssetFees
  • Additional Informations
    • Chains supported by Octav
    • Protocol types supported by Octav
    • Transaction type
    • Data freshness
  • Changelog
Powered by GitBook
On this page
  1. API Models
  2. Transaction

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": "N/A",
  "isNativeAssetFees": false,
  "from": "0x9562cbd309c466cff835126f246be479308df72b",
  "costBasis": "N/A",
  "closedPnl": "N/A"
}

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

totalCostBasis

isNativeAssetFees

Indicates whether native asset fees apply.

boolean

from

Address initiating the transaction.

string

costBasis

closedPnl



PreviousTransactionNextNativeAssetFees

Last updated 27 days ago

N/A
N/A
N/A
N/A