{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whitebit/json-schema/whitebit-main-account-balance-transfer-schema.json",
  "title": "MainAccountBalanceTransfer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whitebit-transfer-api-openapi.yml#/components/schemas/MainAccountBalanceTransfer",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Transfer identifier (UUID). Each record carries a separate identifier, including both records of a transfer between the spot and collateral balances."
    },
    "currency": {
      "type": "string",
      "description": "Currency's [ticker](/glossary#ticker). Example: USDT"
    },
    "amount": {
      "type": "string",
      "description": "Transferred amount, with trailing zeros trimmed."
    },
    "from_balance": {
      "type": "string",
      "description": "Balance FROM which funds moved: [**main**](/glossary#balance-main), [**spot**](/glossary#balance-spotbalance-trade) or [**collateral**](/glossary#balance-collateral)",
      "enum": [
        "main",
        "spot",
        "collateral"
      ]
    },
    "to_balance": {
      "type": "string",
      "description": "Balance TO which funds moved: [**main**](/glossary#balance-main), [**spot**](/glossary#balance-spotbalance-trade) or [**collateral**](/glossary#balance-collateral)",
      "enum": [
        "main",
        "spot",
        "collateral"
      ]
    },
    "created_at": {
      "type": "integer",
      "description": "Time the transfer was executed, as a Unix timestamp in seconds. Not the time the transfer request was accepted."
    }
  }
}