Calculate Tax P&L from Tradebook

Calculates Tax P&L from Tradebook


Important Links

API GuideAPI Guide  


Request Body Example

{
  "sheets": [
    {
      "name": "Crypto",
      "metadata": {},
      "blocks": [
        {
          "name": "Tradebook",
          "@entity": "table",
          "header": [
            [
              "date",
              "transaction_type",
              "received_currency",
              "received_quantity",
              "price",
              "price_currency"
              "cost_of_acquisition_INR",
              "sent_currency",
              "sent_quantity",
              "fees_currency",
              "fees_amount"
            ]
          ],
          "rows": [
            [
              1617267533,
              "BUY",
              "BUSD",
              49.4698,
              75,
              3710.235,
              null,
              null,
              null,
              null
            ],
            [
              1617325133,
              "BUY",
              "ETH",
              0.25,
              1000,
              250,
              null,
              null,
              null,
              null
            ],
            [
              1620629933,
              "SELL",
              null,
              null,
              90,
              null,
              "BUSD",
              24.7349,
              null,
              null
            ],
            [
              1623394733,
              "TRADE",
              "LUNA",
              0.31,
              79.79,
              2034.4455,
              "BUSD",
              24.7349,
              null,
              null
            ],
            [
              1624172333,
              "TRADE",
              "BUSD",
              15.009,
              100.06,
              1050,
              "LUNA",
              0.15,
              null,
              null
            ],
            [
              1624172333,
              "TRADE",
              "BUSD",
              15.5856,
              100.06,
              1120,
              "LUNA",
              0.16,
              null,
              null
            ],
            [
              1625122733,
              "AIRDROP",
              "BUSD",
              1,
              0,
              0,
              null,
              null,
              null,
              null
            ],
            [
              1625900333,
              "INTEREST",
              "LUNA",
              0.31,
              0,
              0,
              null,
              null,
              null,
              null
            ],
            [
              1628145653,
              "STAKING",
              null,
              null,
              null,
              null,
              "MATIC",
              10,
              null,
              null
            ],
            [
              1628577653,
              "LOST",
              null,
              null,
              null,
              null,
              "ETH",
              0.15,
              null,
              null
            ],
            [
              1636612853,
              "MINING",
              "ETH",
              0.25,
              0,
              0,
              null,
              null,
              null,
              null
            ],
            [
              1637390453,
              "SELL",
              null,
              null,
              1200,
              null,
              "ETH",
              0.3,
              null,
              null
            ]
          ]
        }
      ]
    }
  ]
}
Language
Click Try It! to start a request and see the response here!