{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hashlock-markets/json-schema/hashlock-markets-create-rfq-schema.json",
  "title": "CreateRfq",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hashlock-markets-openapi.json#/components/schemas/CreateRfq",
  "type": "object",
  "required": [
    "direction",
    "baseAssetId",
    "baseAmount",
    "quoteAssetId",
    "ttlSeconds"
  ],
  "properties": {
    "direction": {
      "type": "string",
      "enum": [
        "sell_base",
        "buy_base"
      ]
    },
    "baseAssetId": {
      "type": "string",
      "description": "asset uuid — list them with GET /v1/assets"
    },
    "baseAmount": {
      "type": "string",
      "description": "base units (integer string)"
    },
    "quoteAssetId": {
      "type": "string",
      "description": "asset uuid — list them with GET /v1/assets"
    },
    "ttlSeconds": {
      "type": "integer"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ]
    },
    "askAmount": {
      "type": "string",
      "description": "a private order's price, base units, at most 8 decimals (fewer when the asset has fewer)"
    },
    "targetAddress": {
      "type": "string"
    }
  }
}