{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "enum": [
        "crypto_currency_tradewise_tax_pnl_workbook"
      ]
    },
    "@entity": {
      "type": "string",
      "enum": [
        "workbook"
      ]
    },
    "sheets": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "tax_pnl_summary_sheet"
                ]
              },
              "@entity": {
                "type": "string",
                "enum": [
                  "sheet"
                ]
              },
              "blocks": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "tax_pnl_summary_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "turnover"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "cost_of_acquisition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expense"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 13,
                          "maxItems": 13
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string",
                                "enum": [
                                  "capital_gains",
                                  "business_and_profession",
                                  "other"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "virtual_digital_asset",
                                  "non_speculative",
                                  "monetary_gift",
                                  null
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "short_term",
                                  "long_term",
                                  null
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "30",
                                  "slab_rate",
                                  null
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 13,
                            "maxItems": 13
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "settlement_summary_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "nature_of_settlement"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realised_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expense"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 8,
                          "maxItems": 8
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string",
                                "enum": [
                                  "mining_reward",
                                  "trade",
                                  "staking_reward",
                                  "airdrop",
                                  "interest",
                                  "lost",
                                  "payment_send",
                                  "payment_receive",
                                  "gift_send",
                                  "gift_receive",
                                  "fork",
                                  "donation",
                                  "buy_back",
                                  "other_income"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 8,
                            "maxItems": 8
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "receipt_summary_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "nature_of_receipt"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realised_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expense"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 8,
                          "maxItems": 8
                        },
                        "rows": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string",
                                "enum": [
                                  "mining_reward",
                                  "trading",
                                  "staking_reward",
                                  "airdrop",
                                  "interest",
                                  "lost",
                                  "payment_send",
                                  "payment_receive",
                                  "gift_send",
                                  "gift_receive",
                                  "fork",
                                  "donation",
                                  "buy_back",
                                  "other_income"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 8,
                            "maxItems": 8
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "accrued_tax_pnl_summary_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "partition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "turnover"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "cost_of_acquisition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expenses"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 14,
                          "maxItems": 14
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 14,
                            "maxItems": 14
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "accrued_capital_gains_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "partition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_taxable_stcg"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_taxable_ltcg"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_taxable_stcg_30"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_taxable_ltcg_30"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 5,
                          "maxItems": 5
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 5,
                            "maxItems": 5
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "asset_wise_tax_pnl_summary_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "asset_class"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "asset_type"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "turnover"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "cost_of_acquisition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expenses"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 15,
                          "maxItems": 15
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 15,
                            "maxItems": 15
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "partition_wise_asset_wise_tax_pnl_summary_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "partition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "asset_class"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "asset_type"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "turnover"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_value"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "cost_of_acquisition"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expenses"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 16,
                          "maxItems": 16
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 16,
                            "maxItems": 16
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "current_year_loss_adjustment_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_loss"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss_setoff_against_non_speculative_business_income"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss_setoff_against_stcg_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss_setoff_against_ltcg_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss_setoff_against_other_income"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "total_losses_setoff"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "losses_remaining"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 12,
                          "maxItems": 12
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 12,
                            "maxItems": 12
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "current_year_income_adjustment_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_income"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff_against_non_speculative_business_loss"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff_against_loss_from_other_sources"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff_against_stcl_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff_against_ltcl_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_taxable_income"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 11,
                          "maxItems": 11
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 11,
                            "maxItems": 11
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "current_year_capital_gains_adjustment_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_income"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff_against_stcl_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff_against_ltcl_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_setoff"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_taxable_income"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 8,
                          "maxItems": 8
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 8,
                            "maxItems": 8
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "current_year_capital_loss_adjustment_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss_setoff_against_stcg_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "loss_setoff_against_ltcg_30_percent"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "losses_setoff"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "losses_remaining"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 8,
                          "maxItems": 8
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              },
                              {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 8,
                            "maxItems": 8
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "name",
              "@entity",
              "blocks"
            ]
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "spot_tradewise_tax_pnl_sheet"
                ]
              },
              "@entity": {
                "type": "string",
                "enum": [
                  "sheet"
                ]
              },
              "blocks": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "spot_tradewise_tax_pnl_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "symbol"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "quantity"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_trade_id"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_trade_id"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "holding_period"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expenses"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "nature_of_settlement"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "turnover"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "section"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 19,
                          "maxItems": 19
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "long_term",
                                  "short_term"
                                ]
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "capital_gains",
                                  "business_and_profession",
                                  "other"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "virtual_digital_asset",
                                  "non_speculative",
                                  "monetary_gift"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "30",
                                  "slab_rate"
                                ]
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 19,
                            "maxItems": 19
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "spot_tradewise_receipts_tax_pnl_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "vda"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "quantity"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "id"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "date_of_receipt"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "price_per_unit"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "total_receipts"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "expenses"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_income"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "nature_of_receipt"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_income"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 13,
                          "maxItems": 13
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 13,
                            "maxItems": 13
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "spot_tradewise_holding_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "symbol"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "quantity"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "last_traded_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "unrealized_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 6,
                          "maxItems": 6
                        },
                        "rows": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 6,
                            "maxItems": 6
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "spot_tradewise_open_sell_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "symbol"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "quantity"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "last_traded_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "unrealized_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 6,
                          "maxItems": 6
                        },
                        "rows": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 6,
                            "maxItems": 6
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "name",
              "@entity",
              "blocks"
            ]
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "future_tradewise_tax_pnl_sheet"
                ]
              },
              "@entity": {
                "type": "string",
                "enum": [
                  "sheet"
                ]
              },
              "blocks": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "future_tradewise_tax_pnl_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "contract_name"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "quantity"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_trade_id"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "buy_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_trade_id"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "sell_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transfer_expenses"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "net_realized_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "taxable_pnl"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "turnover"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "income_sub_head"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "tax_rate"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 16,
                          "maxItems": 16
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "capital_gains",
                                  "business_and_profession",
                                  "other"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "virtual_digital_asset",
                                  "non_speculative",
                                  "monetary_gift"
                                ]
                              },
                              {
                                "type": "string",
                                "enum": [
                                  "30",
                                  "slab_rate"
                                ]
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 16,
                            "maxItems": 16
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "enum": [
                            "future_tradewise_open_position_table"
                          ]
                        },
                        "@entity": {
                          "type": "string",
                          "enum": [
                            "table"
                          ]
                        },
                        "header": {
                          "type": "array",
                          "items": [
                            {
                              "type": "string",
                              "enum": [
                                "contract_name"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "quantity"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "trade_date"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "trade_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "last_traded_price"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "transaction_type"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "unrealized_pnl"
                              ]
                            }
                          ],
                          "additionalItems": false,
                          "minItems": 7,
                          "maxItems": 7
                        },
                        "rows": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "array",
                            "items": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "integer",
                                "format": "Long"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "number",
                                "format": "BigDecimal"
                              }
                            ],
                            "additionalItems": false,
                            "minItems": 7,
                            "maxItems": 7
                          }
                        }
                      },
                      "required": [
                        "name",
                        "@entity",
                        "header",
                        "rows"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "name",
              "@entity",
              "blocks"
            ]
          }
        ]
      }
    }
  },
  "required": [
    "name",
    "@entity",
    "sheets"
  ]
}
