{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pinkwallet-com/json-schema/pinkwallet-com-conversion-schema.json",
  "title": "Conversion",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pinkwallet-com-openapi.json#/components/schemas/Conversion",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "const": "conversion"
    },
    "status": {
      "type": "string",
      "enum": [
        "filled",
        "pending",
        "failed"
      ]
    },
    "from_asset": {
      "type": "string"
    },
    "to_asset": {
      "type": "string"
    },
    "from_amount": {
      "$ref": "#/$defs/Amount"
    },
    "to_amount": {
      "$ref": "#/$defs/Amount"
    },
    "rate": {
      "type": "string"
    },
    "fee": {
      "$ref": "#/$defs/Amount"
    }
  },
  "$defs": {
    "Amount": {
      "type": "string",
      "description": "A decimal amount as a string, e.g. \"250.00\"."
    }
  }
}