{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kryptos-io/json-schema/kryptos-io-get-v1-ledgers-response-schema.json",
  "title": "GetV1LedgersResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kryptos-io-api-openapi-generated.yml#/components/schemas/GetV1LedgersResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "transactionId": {
            "type": "string"
          },
          "workspaceId": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "assetId": {
            "type": "string"
          },
          "assetRaw": {
            "type": "object",
            "properties": {
              "symbol": {
                "type": "string"
              }
            }
          },
          "quantity": {
            "type": "string"
          },
          "baseCurrency": {
            "type": "string"
          },
          "price": {
            "type": "object",
            "properties": {
              "price": {
                "type": "integer"
              },
              "baseCurrency": {
                "type": "string"
              },
              "timestamp": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              }
            }
          },
          "value": {
            "type": "integer"
          },
          "timestamp": {
            "type": "integer"
          },
          "walletId": {
            "type": "string"
          },
          "syncId": {
            "type": "string"
          },
          "fromAccount": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "walletId": {
                "type": "string"
              }
            }
          },
          "toAccount": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "internalLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "isEdited": {
            "type": "boolean"
          },
          "beforeBalance": {
            "type": "string"
          },
          "afterBalance": {
            "type": "string"
          },
          "costbasis": {
            "type": "string"
          },
          "proceeds": {
            "type": "string"
          },
          "profit": {
            "type": "string"
          },
          "asset": {
            "type": "object",
            "properties": {
              "symbol": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "logoUrl": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        }
      }
    }
  }
}