Get Transaction Accounting

This endpoint returns enhanced Transaction History enriched with Accounting data for a single or multiple wallets/contracts. For multiple wallets, include a comma-separate list of 0x addresses in the query. Accounting data enhancements include the following OpenPool calculations:

  • Cash Flow - If applicable, any value movement in/out of your wallet associated with the transaction
  • Gas Fees - Gas Fees paid, calculated as of the transaction date
  • Accounting Method - Cost Basis and Realized P&L accounting methodology (FIFO, LIFO, Weighted Average Cost) can be selected using the cost_method parameter.
    • Cost Basis is inclusive of gas fees paid in the transaction.
    • The selected accounting method is used to calculate cost basis for Realized P&L, which matches the tokens realized to a specific cost based on the relevant accounting method.
    • Unrealized P&L is calculated based on potential gain/loss versus the average cost of the token inventory held.
  • Realization Events - Realized PnL, if applicable, associated with the transaction. Realization events are defined in the Glossary.
  • Currency - Accounting data can be calculated and shown in the currency of your choice using the currency parameter. Choose from US Dollar, ETH, MATIC, AVAX or xDAI.

Successful Query Example

Single Wallet

curl --request GET \
     --url 'https://api.openpool.co/wallet/accounting_history/?wallet=0x59a5493513ba2378ed57ae5ecfb8a027e9d80365' \
     --header 'X-API-KEY: <insert_api_key>' \
     --header 'accept: application/json'

Multiple Wallets

curl --request GET \
     --url 'https://api.openpool.co/wallet/accounting_history/?wallet=0x59a5493513ba2378ed57ae5ecfb8a027e9d80365%2C0x3b3525f60eeea4a1ef554df5425912c2a532875d' \
     --header 'X-API-KEY: <insert_api_key>' \
     --header 'accept: application/json'

Successful Response Example

{
  "count": 15600,
  "next": "http://api.openpool.co/wallet/accounting_history/?cost_method=FIFO&currency=USD&page=2&wallet=0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
  "previous": null,
  "results": [
    {
      "id": "bal_drKVFLSe5UkZ6LaquxkaDP",
      "tx_id": "tx_9LfZJhgxw4FSpFxrhaxrka",
      "hash": "0x7bc09ffcd8432ebdeffe64b5c54d4ab1441d88811c59b15c437030c239f5bd81",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:32:10Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "1.0000",
      "tx_amount": "1.0000",
      "fee": "0.0000",
      "price": "2620.3639",
      "cash_flow": "2620.3639",
      "fee_cash_flow": "0.0000",
      "basis": {
        "id": "bas_UEgRXtEcSw7Mc2XTLin8ec",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "1.00000000",
      "tx": "tx_9LfZJhgxw4FSpFxrhaxrka"
    },
    {
      "id": "bal_7L5xY9RYUYuh5cYNEy4Tjw",
      "tx_id": "tx_HdejZsPfSsofWw8W6fCGc2",
      "hash": "0x92a5e797084ed29e718966a3a0754e6f7262d83c8e24be3bc6ce29e92a932a51",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:33:08Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "0.9895",
      "tx_amount": "-0.0100",
      "fee": "0.0005",
      "price": "2620.3639",
      "cash_flow": "-26.2036",
      "fee_cash_flow": "-1.1821",
      "basis": {
        "id": "bas_PNhYwXY3oyFHiMZZa8HUZD",
        "method": "FIFO",
        "realized_cost": "2620.36",
        "realized_total_basis": "26.20",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "  0.010000 @2620.363852",
        "realization_holding_periods": "0"
      },
      "currency": "USD",
      "amount": "-0.01000000",
      "tx": "tx_HdejZsPfSsofWw8W6fCGc2"
    },
    {
      "id": "bal_c5EsbRC95RFNF5RHvStR2U",
      "tx_id": "tx_oFhUifEbtz9rqsL3yCyfMf",
      "hash": "0xec7197c085a5acc8ef2058162ce4cd675ce82af085bd0caa35c8d984386c0b0d",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:42:33Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "821611.0873",
      "tx_amount": "821611.0873",
      "fee": "0.0000",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "821611.08729508",
      "tx": "tx_oFhUifEbtz9rqsL3yCyfMf"
    },
    {
      "id": "bal_PTV2RY5TMYE6SYJqD9sx3D",
      "tx_id": "tx_RTjufK8uLFbBETDVnjktHR",
      "hash": "0xa06b0549911c23e0513f2870c4c198fafb850742e4e3ab4082e1a6acba32ace1",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:42:33Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9895",
      "tx_amount": "100.0000",
      "fee": "0.0000",
      "price": "2620.3639",
      "cash_flow": "262036.3852",
      "fee_cash_flow": "0.0000",
      "basis": {
        "id": "bas_iXnLZCtKwaYZyUTWp5uoFp",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "100.00000000",
      "tx": "tx_RTjufK8uLFbBETDVnjktHR"
    },
    {
      "id": "bal_WERLZxf4GXKUBaskpDUxoV",
      "tx_id": "tx_fJ3JSKwNzVatwaHupgCJtg",
      "hash": "0xdd41c049b8cc533d1e26e0b858241c396b04052706d20da4913d3b49ad7055ff",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:47:01Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9881",
      "tx_amount": "0.0000",
      "fee": "0.0014",
      "price": "2620.3639",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-3.7560",
      "basis": {
        "id": "bas_UJAtRUkQpbYrwZC6XCfwAx",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_fJ3JSKwNzVatwaHupgCJtg"
    },
    {
      "id": "bal_TFtMdznqCoShnjmyVGNo3A",
      "tx_id": "tx_jdc6mJPm9MDWVahjM7csMp",
      "hash": "0x226f465442f50767c76d1dae5bd69b5e4d2143aa6432c51c30fe5fc695b8de57",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:48:46Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9713",
      "tx_amount": "-0.0093",
      "fee": "0.0075",
      "price": "2620.3639",
      "cash_flow": "-24.3096",
      "fee_cash_flow": "-19.7670",
      "basis": {
        "id": "bas_koZJ6Nm5TpXwG9h3oNMkCS",
        "method": "FIFO",
        "realized_cost": "2620.36",
        "realized_total_basis": "24.31",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "  0.009277 @2620.363852",
        "realization_holding_periods": "0"
      },
      "currency": "USD",
      "amount": "-0.00927718",
      "tx": "tx_jdc6mJPm9MDWVahjM7csMp"
    },
    {
      "id": "bal_jLCHjM69yQUMM4ZfDb9CQ4",
      "tx_id": "tx_FbPJuTuVaiSgVBoLPk3XoV",
      "hash": "0x6f542e6d07b44b2b57c4d957c55762c51c5877cd487bec956ef1ed866b56c5c0",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T11:49:28Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9679",
      "tx_amount": "0.0000",
      "fee": "0.0034",
      "price": "2620.3639",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-8.9027",
      "basis": {
        "id": "bas_bzZCFABe6BnFpLmbfRUv4P",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_FbPJuTuVaiSgVBoLPk3XoV"
    },
    {
      "id": "bal_3cPoWmkBz7maP4DtnzLm3k",
      "tx_id": "tx_W5CCwYEqFKgRpG7No5N8GU",
      "hash": "0x5d0030cc16a55a107be1311e2eee980c6391c3bb2b9bf0fa970712987acc086b",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T18:57:49Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9654",
      "tx_amount": "0.0000",
      "fee": "0.0025",
      "price": "2620.3639",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-6.5021",
      "basis": {
        "id": "bas_45ZFPuYRtzpe4Vcs6NqrJ5",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_W5CCwYEqFKgRpG7No5N8GU"
    },
    {
      "id": "bal_aLm8VLknGAAFUP9hv5NVmw",
      "tx_id": "tx_apWPayoJxZYKc5dE654mPG",
      "hash": "0x85567cc1fd5b6e697dcc9cfbf85ad6aa18c17f996bdc4637ddb38fe1b6c33493",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T18:58:44Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "721611.0873",
      "tx_amount": "-100000.0000",
      "fee": "0.0195",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "-100000.00000000",
      "tx": "tx_apWPayoJxZYKc5dE654mPG"
    },
    {
      "id": "bal_TyGxUnwNX2pkPKex77qFdy",
      "tx_id": "tx_apWPayoJxZYKc5dE654mPG",
      "hash": "0x85567cc1fd5b6e697dcc9cfbf85ad6aa18c17f996bdc4637ddb38fe1b6c33493",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-16T18:58:44Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9459",
      "tx_amount": "0.0000",
      "fee": "0.0195",
      "price": "2620.3639",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-51.1252",
      "basis": {
        "id": "bas_CSWt5G9PhmVB75oDB4Tozz",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_apWPayoJxZYKc5dE654mPG"
    },
    {
      "id": "bal_mUWM2BFzowKfCyF4tuT3oQ",
      "tx_id": "tx_MgnCDwT2W8PmS3CXotCc9s",
      "hash": "0xc21c62de201a4e81acd430ee8c4f3ee9e5935a6bb61bb8aa8e8a836398e98c6d",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-17T15:52:15Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "621611.0873",
      "tx_amount": "-100000.0000",
      "fee": "0.0450",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "-100000.00000000",
      "tx": "tx_MgnCDwT2W8PmS3CXotCc9s"
    },
    {
      "id": "bal_nexFYXGhkYRViZrDHA5tcA",
      "tx_id": "tx_MgnCDwT2W8PmS3CXotCc9s",
      "hash": "0xc21c62de201a4e81acd430ee8c4f3ee9e5935a6bb61bb8aa8e8a836398e98c6d",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-17T15:52:15Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9009",
      "tx_amount": "0.0000",
      "fee": "0.0450",
      "price": "2771.7595",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-124.7993",
      "basis": {
        "id": "bas_Ta9wD5xBU9JTHZoZvHVK8e",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_MgnCDwT2W8PmS3CXotCc9s"
    },
    {
      "id": "bal_KeVFW3bVPNViBM8gzFdGNe",
      "tx_id": "tx_Xvk3yk45pzgQaP6itYygy2",
      "hash": "0x2c022e06a04596a213940c207543da8f5f4575712808d0367b65e1c72963067f",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-17T15:54:03Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "763255.5139",
      "tx_amount": "141644.4266",
      "fee": "0.0000",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "141644.42657004",
      "tx": "tx_Xvk3yk45pzgQaP6itYygy2"
    },
    {
      "id": "bal_W3uRc9F2a85CGB3G7xQPQX",
      "tx_id": "tx_72EUKBAdxsvwdHhrAYXxGF",
      "hash": "0x9fb6358a42e42902644051b2ef6c363065537840922fe4a4cf10c5ba54209c3b",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-20T10:45:18Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "760755.5139",
      "tx_amount": "-2500.0000",
      "fee": "0.0007",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "-2500.00000000",
      "tx": "tx_72EUKBAdxsvwdHhrAYXxGF"
    },
    {
      "id": "bal_QjkRhSvGQeMK55HoAYzXvS",
      "tx_id": "tx_72EUKBAdxsvwdHhrAYXxGF",
      "hash": "0x9fb6358a42e42902644051b2ef6c363065537840922fe4a4cf10c5ba54209c3b",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-20T10:45:18Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "100.9002",
      "tx_amount": "0.0000",
      "fee": "0.0007",
      "price": "2947.2262",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-2.0265",
      "basis": {
        "id": "bas_XNxBxqPMjYfa6EyEyB2a7r",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_72EUKBAdxsvwdHhrAYXxGF"
    },
    {
      "id": "bal_Yb595ztQ3SUhNiPhXfAT8R",
      "tx_id": "tx_EziwvwQqFjoN3zPzjEeRPK",
      "hash": "0xf644091b031f5791545ab578f77f822153b511639f19799c1b3506b4ccb78a2f",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-20T10:46:54Z",
      "token": {
        "id": "token_UW735JfmdDJnWpXHG5Bnnj",
        "asset": {
          "id": "asset_noo27eksxZ6UTB2Pn3QPQJ",
          "name": "Wrapped Ethereum",
          "symbol": "WETH",
          "slug": "weth"
        },
        "token_id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2_1",
        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "85.0000",
      "tx_amount": "85.0000",
      "fee": "0.0007",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "85.00000000",
      "tx": "tx_EziwvwQqFjoN3zPzjEeRPK"
    },
    {
      "id": "bal_6hg8YZer6pJskoaF38sZeN",
      "tx_id": "tx_EziwvwQqFjoN3zPzjEeRPK",
      "hash": "0xf644091b031f5791545ab578f77f822153b511639f19799c1b3506b4ccb78a2f",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-20T10:46:54Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "15.8995",
      "tx_amount": "-85.0000",
      "fee": "0.0007",
      "price": "2947.2262",
      "cash_flow": "-250514.2234",
      "fee_cash_flow": "-2.0934",
      "basis": {
        "id": "bas_9mqx2RNT9URCiGbHvYDGot",
        "method": "FIFO",
        "realized_cost": "2620.36",
        "realized_total_basis": "222730.93",
        "average_cost": "2620.36",
        "realization": "27783.30",
        "realization_details": "  0.980723 @2620.363852,  84.019277 @2620.363852",
        "realization_holding_periods": "3, 3"
      },
      "currency": "USD",
      "amount": "-85.00000000",
      "tx": "tx_EziwvwQqFjoN3zPzjEeRPK"
    },
    {
      "id": "bal_TfuZgppAHAZpTKz8EaPTwY",
      "tx_id": "tx_Y3NwsJx223eEkmQp4kBPi6",
      "hash": "0x1aeafae2e30ae86aae1750d0ae313d6790bdeb6e7b4c6374af897b409dea485c",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-20T10:47:29Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "15.8990",
      "tx_amount": "0.0000",
      "fee": "0.0005",
      "price": "2947.2262",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-1.3396",
      "basis": {
        "id": "bas_N4gRSjzdDMFaRdAAoh5dDH",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_Y3NwsJx223eEkmQp4kBPi6"
    },
    {
      "id": "bal_KocwQMFvQgmsa9ZUEEZ9sQ",
      "tx_id": "tx_Y3NwsJx223eEkmQp4kBPi6",
      "hash": "0x1aeafae2e30ae86aae1750d0ae313d6790bdeb6e7b4c6374af897b409dea485c",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-20T10:47:29Z",
      "token": {
        "id": "token_UW735JfmdDJnWpXHG5Bnnj",
        "asset": {
          "id": "asset_noo27eksxZ6UTB2Pn3QPQJ",
          "name": "Wrapped Ethereum",
          "symbol": "WETH",
          "slug": "weth"
        },
        "token_id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2_1",
        "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "0.0000",
      "tx_amount": "-85.0000",
      "fee": "0.0005",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "-85.00000000",
      "tx": "tx_Y3NwsJx223eEkmQp4kBPi6"
    },
    {
      "id": "bal_VTNUgWyxeVDUiYNpA86dgv",
      "tx_id": "tx_epEfi6A8w3SGXo7vhV7dhu",
      "hash": "0x89a8d9195683d7ef6a32e59eeb0fd1477e05989b9ea0a8a89281f0f2d3d61d7d",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-21T10:58:53Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "660755.5139",
      "tx_amount": "-100000.0000",
      "fee": "0.0113",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "-100000.00000000",
      "tx": "tx_epEfi6A8w3SGXo7vhV7dhu"
    },
    {
      "id": "bal_ZNdNEiLEbnNLpNNYFcEbUw",
      "tx_id": "tx_epEfi6A8w3SGXo7vhV7dhu",
      "hash": "0x89a8d9195683d7ef6a32e59eeb0fd1477e05989b9ea0a8a89281f0f2d3d61d7d",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-21T10:58:53Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "15.8877",
      "tx_amount": "0.0000",
      "fee": "0.0113",
      "price": "2860.6420",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-32.3110",
      "basis": {
        "id": "bas_QJcYdtyujCN7PUsxgzpoCb",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_epEfi6A8w3SGXo7vhV7dhu"
    },
    {
      "id": "bal_MUCNhjA6oXWzQuRgjFF5fK",
      "tx_id": "tx_dVRzeAzzsyCBvMYRKKDuqx",
      "hash": "0xb8d8bebc27c797823d03723ac30d6f1b7b1144f64fc2b27010fc7380f635635c",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-21T10:59:21Z",
      "token": {
        "id": "token_9Jc6MejMFEKzaWQV9nwJCG",
        "asset": {
          "id": "asset_hPFvh695c8T6EHjXiuhyJT",
          "name": "Sifu Vision",
          "symbol": "SIFU",
          "slug": "sifu-vision"
        },
        "token_id": "0x29127fe04ffa4c32acac0ffe17280abd74eac313_1",
        "address": "0x29127fe04ffa4c32acac0ffe17280abd74eac313",
        "decimals": null,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "752449.4249",
      "tx_amount": "91693.9110",
      "fee": "0.0078",
      "price": "0.0000",
      "cash_flow": "0.0000",
      "fee_cash_flow": "0.0000",
      "basis": null,
      "currency": "USD",
      "amount": "91693.91104494",
      "tx": "tx_dVRzeAzzsyCBvMYRKKDuqx"
    },
    {
      "id": "bal_BFLHGUCs4rVU9Tw7zR2TMx",
      "tx_id": "tx_dVRzeAzzsyCBvMYRKKDuqx",
      "hash": "0xb8d8bebc27c797823d03723ac30d6f1b7b1144f64fc2b27010fc7380f635635c",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-21T10:59:21Z",
      "token": {
        "id": "token_YjpQrtjKTPKaN8axNa3Ga7",
        "asset": {
          "id": "asset_aoSnEb2H3WqYUCZAEPbKi3",
          "name": "Tether",
          "symbol": "USDT",
          "slug": "tether"
        },
        "token_id": "0xdac17f958d2ee523a2206206994597c13d831ec7_1",
        "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "decimals": 6,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "963935.0030",
      "tx_amount": "963935.0030",
      "fee": "0.0078",
      "price": "0.9997",
      "cash_flow": "963651.2828",
      "fee_cash_flow": "0.0000",
      "basis": {
        "id": "bas_4PwXVGGZCMb3vGVkxaTXdA",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "1.00",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "963935.00303500",
      "tx": "tx_dVRzeAzzsyCBvMYRKKDuqx"
    },
    {
      "id": "bal_fhCirypUcqzJpiJjVr5n7T",
      "tx_id": "tx_dVRzeAzzsyCBvMYRKKDuqx",
      "hash": "0xb8d8bebc27c797823d03723ac30d6f1b7b1144f64fc2b27010fc7380f635635c",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-21T10:59:21Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "15.8800",
      "tx_amount": "0.0000",
      "fee": "0.0078",
      "price": "2860.6420",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-22.2532",
      "basis": {
        "id": "bas_8uQ9jVT7eTtKjEdoc9i588",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_dVRzeAzzsyCBvMYRKKDuqx"
    },
    {
      "id": "bal_Ej8g3rQPLkBQ49K7Ta56co",
      "tx_id": "tx_iJGHc24HGRFcUCzeht27zA",
      "hash": "0x5013eb3fe2f701d4b5c2d54a272d7f5c9e9f7d79bf0be5dc19106a153875ecce",
      "wallet": "0x31d3243cfb54b34fc9c73e1cb1137124bd6b13e1",
      "timestamp": "2022-03-21T11:02:06Z",
      "token": {
        "id": "token_FirimyKxL56VwoUhUFkBKP",
        "asset": {
          "id": "asset_dAH3ZHUcmQs2rrb3tjBj3V",
          "name": "Ethereum",
          "symbol": "ETH",
          "slug": "ethereum"
        },
        "token_id": "0x0000000000000000000000000000000000000000_1",
        "address": "0x0000000000000000000000000000000000000000",
        "decimals": 18,
        "blockchain": "blockchain_CXTQHpufgGtMwu8Lktv7Aw"
      },
      "balance": "15.8790",
      "tx_amount": "0.0000",
      "fee": "0.0010",
      "price": "2860.6420",
      "cash_flow": "0.0000",
      "fee_cash_flow": "-2.7202",
      "basis": {
        "id": "bas_WssN7sTbChcVbVc2UPoCEe",
        "method": "FIFO",
        "realized_cost": "0.00",
        "realized_total_basis": "0.00",
        "average_cost": "2620.36",
        "realization": "0.00",
        "realization_details": "",
        "realization_holding_periods": ""
      },
      "currency": "USD",
      "amount": "0.00000000",
      "tx": "tx_iJGHc24HGRFcUCzeht27zA"
    }
  ]
}
Language
Authorization
Click Try It! to start a request and see the response here!