{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinmate/json-schema/coinmate-replace-limit-order-request-schema.json",
  "title": "ReplaceLimitOrderRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinmate-trading.yaml#/components/schemas/ReplaceLimitOrderRequest",
  "type": "object",
  "properties": {
    "amount": {
      "type": "number",
      "description": "Order size in first currency, e.g. BTC for BTC_EUR"
    },
    "clientId": {
      "type": "integer",
      "format": "int64",
      "description": "Client ID (account number)"
    },
    "clientOrderId": {
      "type": "integer",
      "format": "int64",
      "description": "Client-specified order ID, max 20 digits"
    },
    "currencyPair": {
      "type": "string",
      "description": "Currency pair"
    },
    "hidden": {
      "type": "integer",
      "format": "int32",
      "deprecated": true,
      "description": "1 to hide the order from the public order book"
    },
    "immediateOrCancel": {
      "type": "integer",
      "format": "int32",
      "default": 0,
      "description": "If set to 1, unfilled portion is cancelled immediately",
      "enum": [
        0,
        1
      ]
    },
    "nonce": {
      "type": "integer",
      "format": "int64",
      "description": "Unique incrementing nonce"
    },
    "orderIdToBeReplaced": {
      "type": "integer",
      "format": "int64",
      "description": "ID of order to replace"
    },
    "postOnly": {
      "type": "integer",
      "format": "int32",
      "default": 0,
      "description": "If set to 1, order is placed as maker only or cancelled entirely",
      "enum": [
        0,
        1
      ]
    },
    "price": {
      "type": "number",
      "description": "Order price"
    },
    "publicKey": {
      "type": "string",
      "description": "API public key"
    },
    "signature": {
      "type": "string",
      "description": "HMAC-SHA256 signature"
    },
    "stopPrice": {
      "type": "number",
      "deprecated": true,
      "description": "Stop price of a stop order"
    },
    "trailing": {
      "type": "integer",
      "format": "int32",
      "deprecated": true,
      "description": "1 to trail the market price"
    }
  },
  "required": [
    "amount",
    "clientId",
    "currencyPair",
    "nonce",
    "orderIdToBeReplaced",
    "price",
    "signature"
  ]
}