{
  "openapi": "3.1.0",
  "info": {
    "title": "MQuant Signal API",
    "version": "1.0.0",
    "summary": "Send HMAC-signed trading signals (order intents) to the Sykes & Ray desk.",
    "description": "Public trader-facing API, v1 (API version 2026-12-01). Signals are received, validated and stored; the desk decides how they are mapped to accounts. Nothing is sent to an exchange by the API itself.\n\nEvery operation except GET /time needs all four X-MQ headers. The signature is lowercase hex HMAC-SHA256, keyed with the secret, over METHOD, PATH_WITH_QUERY, TIMESTAMP, NONCE, KEY_ID and the hex SHA-256 of the raw body, joined with \\n. PATH_WITH_QUERY is the full request target including the /api/v1 prefix of the server URL, for example /api/v1/signals?status=received&limit=20.\n\nGuide: https://developers.mquant.in",
    "contact": {
      "name": "Your MQuant desk contact",
      "url": "https://developers.mquant.in/changelog.html#support"
    }
  },
  "externalDocs": {
    "description": "MQuant Developers",
    "url": "https://developers.mquant.in"
  },
  "servers": [
    {
      "url": "https://app.mquant.in/api/v1",
      "description": "Production (live and test keys)"
    }
  ],
  "security": [
    {
      "MQApiKey": [],
      "MQTimestamp": [],
      "MQNonce": [],
      "MQSignature": []
    }
  ],
  "tags": [
    {
      "name": "Account and time"
    },
    {
      "name": "Signals"
    }
  ],
  "paths": {
    "/time": {
      "get": {
        "tags": [
          "Account and time"
        ],
        "operationId": "getServerTime",
        "summary": "Server time",
        "description": "Server clock and timestamp window. No authentication.",
        "security": [],
        "responses": {
          "200": {
            "description": "Server time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerTimeResponse"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/me": {
      "get": {
        "tags": [
          "Account and time"
        ],
        "operationId": "getMe",
        "summary": "The calling key",
        "description": "The key that signed the request: mode, scopes, allowlist, limits and usage. Any scope. Read class.",
        "responses": {
          "200": {
            "description": "The key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals": {
      "get": {
        "tags": [
          "Signals"
        ],
        "operationId": "listSignals",
        "summary": "List signals",
        "description": "Signals of the calling trader in the key's mode, newest first. Scope signals:read. Read class.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SignalStatus"
            },
            "description": "Filter by status."
          },
          {
            "name": "exchange",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "NSE",
                "BSE",
                "NFO",
                "BFO",
                "MCX"
              ]
            },
            "description": "Filter by exchange."
          },
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Exact symbol, upper-cased before matching."
          },
          {
            "name": "client_signal_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Exact match."
          },
          {
            "name": "batch_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^bat_[0-9a-f]{24}$"
            },
            "description": "Signals of one batch."
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "IST calendar day, inclusive, on received_at."
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "IST calendar day, inclusive, on received_at."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            },
            "description": "Page size."
          },
          {
            "name": "starting_after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^sig_[0-9a-f]{24}$"
            },
            "description": "next_starting_after from the previous page."
          }
        ],
        "responses": {
          "200": {
            "description": "A page of signals.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalListResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "invalid_query_param or invalid_cursor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Signals"
        ],
        "operationId": "createSignal",
        "summary": "Send a signal",
        "description": "Validates, risk-checks and stores one signal. Scope signals:write. Write class, cost 1.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignalIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Identical repeat of an existing client_signal_id. data.replayed is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Day-Remaining": {
                "description": "Signals left today on this key.",
                "schema": {
                  "type": "integer"
                }
              },
              "Idempotent-Replayed": {
                "schema": {
                  "const": "true"
                }
              }
            }
          },
          "202": {
            "description": "Stored. data.replayed is false.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Day-Remaining": {
                "description": "Signals left today on this key.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "invalid_json, duplicate_json_key or invalid_number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "idempotency_conflict.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "payload_too_large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "invalid_signal, or a risk code (max_quantity_exceeded, max_lots_exceeded, max_notional_exceeded) with error_type RiskException.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals/batch": {
      "post": {
        "tags": [
          "Signals"
        ],
        "operationId": "createSignalBatch",
        "summary": "Send a batch",
        "description": "1 to 10 signals, stored all or nothing. Scope signals:write. Write class, cost = items.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every item was a replay; batch_id is null.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Day-Remaining": {
                "description": "Signals left today on this key.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "202": {
            "description": "Stored.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Day-Remaining": {
                "description": "Signals left today on this key.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "invalid_json, duplicate_json_key or invalid_number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "idempotency_conflict.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "payload_too_large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "invalid_signal, batch_too_large, duplicate_client_signal_id or a risk code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals/test": {
      "post": {
        "tags": [
          "Signals"
        ],
        "operationId": "testSignal",
        "summary": "Dry-run a signal",
        "description": "Full validation and risk caps; nothing stored. Scope signals:write. Read class.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignalIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalValidationResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "invalid_json, duplicate_json_key or invalid_number.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "payload_too_large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "invalid_signal or a risk code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals/by-client-id/{client_signal_id}": {
      "get": {
        "tags": [
          "Signals"
        ],
        "operationId": "getSignalByClientId",
        "summary": "Look up by client_signal_id",
        "description": "A signal sent with the calling key, by your id. Scope signals:read. Read class.",
        "parameters": [
          {
            "name": "client_signal_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The signal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals/{signal_id}": {
      "get": {
        "tags": [
          "Signals"
        ],
        "operationId": "getSignal",
        "summary": "Get a signal",
        "description": "One signal of the calling trader in the key's mode. Scope signals:read. Read class.",
        "parameters": [
          {
            "name": "signal_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^sig_[0-9a-f]{24}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The signal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals/{signal_id}/cancel": {
      "post": {
        "tags": [
          "Signals"
        ],
        "operationId": "cancelSignal",
        "summary": "Cancel a signal",
        "description": "received or accepted becomes cancelled; mapped becomes cancel_requested. Status change only. Scope signals:write. Write class, cost 1.",
        "parameters": [
          {
            "name": "signal_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^sig_[0-9a-f]{24}$"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The signal after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalResponse"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "description": "req_ + 24 hex characters.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Per-minute limit of the key bucket for this class.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix epoch seconds when the minute window ends.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Day-Remaining": {
                "description": "Signals left today on this key.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "description": "auth_headers_invalid, timestamp_out_of_window, auth_failed, nonce_reused, key_expired, key_suspended or trader_inactive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "ip_not_allowed or scope_denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "not_found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "signal_not_cancellable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "payload_too_large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "invalid_signal (bad reason).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited, key_temporarily_blocked, ip_temporarily_blocked or auth_locked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Whole seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "api_disabled or dependency_unavailable (and intake_paused on sends).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SignalIn": {
        "properties": {
          "client_signal_id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$",
            "description": "Your id for the signal and the idempotency key. Unique per key for the life of the key."
          },
          "exchange": {
            "type": "string",
            "enum": [
              "NSE",
              "BSE",
              "NFO",
              "BFO",
              "MCX"
            ],
            "description": "NSE and BSE take EQ only; NFO, BFO and MCX take FUT, CE and PE only."
          },
          "segment": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "CASH",
                  "FNO",
                  "COMMODITY"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional. Derived from exchange; if sent it must match."
          },
          "symbol": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "description": "Exchange trading symbol. ASCII letters are upper-cased, then it must match ^[A-Z0-9&_-]{1,32}$."
          },
          "instrument_type": {
            "type": "string",
            "enum": [
              "EQ",
              "FUT",
              "CE",
              "PE"
            ],
            "description": "EQ, FUT, CE or PE."
          },
          "expiry": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "description": "YYYY-MM-DD, today (IST) to 1830 days ahead. Required for FUT, CE and PE; not allowed for EQ."
          },
          "strike": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 10000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]{1,10}(\\.[0-9]{1,2})?$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Number or decimal string, > 0, <= 10000000, at most 2 decimals. Required for CE and PE; not allowed otherwise."
          },
          "side": {
            "type": "string",
            "enum": [
              "BUY",
              "SELL"
            ],
            "description": "BUY or SELL."
          },
          "quantity": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "description": "Units. Send exactly one of quantity or lots."
          },
          "lots": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "description": "Lots. Send exactly one of quantity or lots. Not allowed for EQ."
          },
          "order_type": {
            "type": "string",
            "enum": [
              "MARKET",
              "LIMIT",
              "SL",
              "SL-M"
            ],
            "description": "MARKET, LIMIT, SL or SL-M."
          },
          "price": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 10000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]{1,10}(\\.[0-9]{1,2})?$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Required for LIMIT and SL; not allowed for MARKET and SL-M. Number or decimal string, at most 2 decimals."
          },
          "trigger_price": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 10000000
              },
              {
                "type": "string",
                "pattern": "^[0-9]{1,10}(\\.[0-9]{1,2})?$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Required for SL and SL-M; not allowed for MARKET and LIMIT. For SL, BUY needs trigger_price <= price and SELL needs trigger_price >= price."
          },
          "product": {
            "type": "string",
            "enum": [
              "MIS",
              "NRML",
              "CNC"
            ],
            "description": "CNC is EQ only, NRML is FUT, CE and PE only, MIS is allowed for all."
          },
          "validity": {
            "type": "string",
            "enum": [
              "DAY",
              "IOC"
            ],
            "default": "DAY",
            "description": "DAY (default) or IOC."
          },
          "tag": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,20}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your label."
          },
          "strategy_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,32}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your strategy name."
          },
          "algo_id": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,32}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored for future exchange algo-ID tagging."
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "description": "1 to 200 characters after trimming."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "client_signal_id",
          "exchange",
          "symbol",
          "instrument_type",
          "side",
          "order_type",
          "product"
        ],
        "title": "SignalIn",
        "description": "One trading signal. Unknown fields are rejected. See https://developers.mquant.in/signals.html.",
        "example": {
          "client_signal_id": "reliance-0001",
          "exchange": "NSE",
          "symbol": "RELIANCE",
          "instrument_type": "EQ",
          "side": "BUY",
          "quantity": 10,
          "order_type": "LIMIT",
          "price": "1250.50",
          "product": "CNC"
        }
      },
      "BatchIn": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SignalIn"
            },
            "type": "array",
            "maxItems": 10,
            "minItems": 1,
            "description": "1 to 10 signals, and no more than the key's signals_per_second."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "items"
        ],
        "title": "BatchIn"
      },
      "CancelIn": {
        "additionalProperties": false,
        "properties": {
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional reason, 1 to 200 characters."
          }
        },
        "type": "object",
        "title": "CancelIn"
      },
      "SignalStatus": {
        "type": "string",
        "enum": [
          "received",
          "accepted",
          "rejected",
          "cancel_requested",
          "cancelled",
          "mapped"
        ]
      },
      "Warning": {
        "type": "string",
        "enum": [
          "outside_market_hours",
          "notional_unchecked",
          "expiry_today"
        ]
      },
      "Signal": {
        "type": "object",
        "title": "Signal",
        "properties": {
          "object": {
            "const": "signal"
          },
          "signal_id": {
            "type": "string",
            "pattern": "^sig_[0-9a-f]{24}$"
          },
          "client_signal_id": {
            "type": "string"
          },
          "batch_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^bat_[0-9a-f]{24}$"
          },
          "status": {
            "$ref": "#/components/schemas/SignalStatus"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ]
          },
          "exchange": {
            "type": "string",
            "enum": [
              "NSE",
              "BSE",
              "NFO",
              "BFO",
              "MCX"
            ]
          },
          "segment": {
            "type": "string",
            "enum": [
              "CASH",
              "FNO",
              "COMMODITY"
            ]
          },
          "symbol": {
            "type": "string"
          },
          "instrument_type": {
            "type": "string",
            "enum": [
              "EQ",
              "FUT",
              "CE",
              "PE"
            ]
          },
          "expiry": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "strike": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+\\.[0-9]{2}$",
            "description": "Decimal string with exactly 2 places."
          },
          "side": {
            "type": "string",
            "enum": [
              "BUY",
              "SELL"
            ]
          },
          "quantity": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lots": {
            "type": [
              "integer",
              "null"
            ]
          },
          "order_type": {
            "type": "string",
            "enum": [
              "MARKET",
              "LIMIT",
              "SL",
              "SL-M"
            ]
          },
          "price": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+\\.[0-9]{2}$",
            "description": "Decimal string with exactly 2 places."
          },
          "trigger_price": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+\\.[0-9]{2}$",
            "description": "Decimal string with exactly 2 places."
          },
          "product": {
            "type": "string",
            "enum": [
              "MIS",
              "NRML",
              "CNC"
            ]
          },
          "validity": {
            "type": "string",
            "enum": [
              "DAY",
              "IOC"
            ]
          },
          "tag": {
            "type": [
              "string",
              "null"
            ]
          },
          "strategy_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "algo_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Warning"
            }
          },
          "reject_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "cancel_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "status_history": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "status",
                "at",
                "by",
                "note"
              ],
              "properties": {
                "status": {
                  "$ref": "#/components/schemas/SignalStatus"
                },
                "at": {
                  "type": "string",
                  "format": "date-time"
                },
                "by": {
                  "type": "string",
                  "enum": [
                    "trader",
                    "desk",
                    "system"
                  ]
                },
                "note": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "replayed": {
            "type": "boolean",
            "description": "Only on create responses. true when an existing signal was returned."
          }
        },
        "required": [
          "object",
          "signal_id",
          "client_signal_id",
          "batch_id",
          "status",
          "mode",
          "exchange",
          "segment",
          "symbol",
          "instrument_type",
          "expiry",
          "strike",
          "side",
          "quantity",
          "lots",
          "order_type",
          "price",
          "trigger_price",
          "product",
          "validity",
          "tag",
          "strategy_id",
          "algo_id",
          "notes",
          "warnings",
          "reject_reason",
          "cancel_reason",
          "received_at",
          "updated_at",
          "status_history"
        ]
      },
      "NormalisedSignal": {
        "type": "object",
        "title": "NormalisedSignal",
        "properties": {
          "client_signal_id": {
            "type": "string"
          },
          "exchange": {
            "type": "string",
            "enum": [
              "NSE",
              "BSE",
              "NFO",
              "BFO",
              "MCX"
            ]
          },
          "segment": {
            "type": "string",
            "enum": [
              "CASH",
              "FNO",
              "COMMODITY"
            ]
          },
          "symbol": {
            "type": "string"
          },
          "instrument_type": {
            "type": "string",
            "enum": [
              "EQ",
              "FUT",
              "CE",
              "PE"
            ]
          },
          "expiry": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "strike": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+\\.[0-9]{2}$",
            "description": "Decimal string with exactly 2 places."
          },
          "side": {
            "type": "string",
            "enum": [
              "BUY",
              "SELL"
            ]
          },
          "quantity": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lots": {
            "type": [
              "integer",
              "null"
            ]
          },
          "order_type": {
            "type": "string",
            "enum": [
              "MARKET",
              "LIMIT",
              "SL",
              "SL-M"
            ]
          },
          "price": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+\\.[0-9]{2}$",
            "description": "Decimal string with exactly 2 places."
          },
          "trigger_price": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9]+\\.[0-9]{2}$",
            "description": "Decimal string with exactly 2 places."
          },
          "product": {
            "type": "string",
            "enum": [
              "MIS",
              "NRML",
              "CNC"
            ]
          },
          "validity": {
            "type": "string",
            "enum": [
              "DAY",
              "IOC"
            ]
          },
          "tag": {
            "type": [
              "string",
              "null"
            ]
          },
          "strategy_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "algo_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "client_signal_id",
          "exchange",
          "segment",
          "symbol",
          "instrument_type",
          "expiry",
          "strike",
          "side",
          "quantity",
          "lots",
          "order_type",
          "price",
          "trigger_price",
          "product",
          "validity",
          "tag",
          "strategy_id",
          "algo_id",
          "notes"
        ]
      },
      "ServerTime": {
        "type": "object",
        "required": [
          "server_time_ms",
          "server_time",
          "recv_window_ms",
          "future_skew_ms"
        ],
        "properties": {
          "server_time_ms": {
            "type": "integer"
          },
          "server_time": {
            "type": "string",
            "format": "date-time"
          },
          "recv_window_ms": {
            "type": "integer"
          },
          "future_skew_ms": {
            "type": "integer"
          }
        }
      },
      "ApiKey": {
        "type": "object",
        "properties": {
          "object": {
            "const": "api_key"
          },
          "key_id": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ]
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "const": "active"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "signals:read",
                "signals:write"
              ]
            }
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ip_allowlist": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "caller_ip": {
            "type": "string"
          },
          "rotation_grace_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "trader": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "limits": {
            "type": "object",
            "properties": {
              "signals_per_second": {
                "type": "integer"
              },
              "signals_per_minute": {
                "type": "integer"
              },
              "signals_per_day": {
                "type": "integer"
              },
              "reads_per_second": {
                "type": "integer"
              },
              "reads_per_minute": {
                "type": "integer"
              },
              "max_quantity": {
                "type": "integer"
              },
              "max_lots": {
                "type": "integer"
              },
              "max_notional": {
                "type": "string"
              }
            }
          },
          "usage_today": {
            "type": "object",
            "properties": {
              "signals": {
                "type": "integer"
              }
            }
          },
          "intake_paused": {
            "type": "boolean"
          },
          "api_version": {
            "type": "string"
          }
        }
      },
      "Batch": {
        "type": "object",
        "required": [
          "object",
          "batch_id",
          "items"
        ],
        "properties": {
          "object": {
            "const": "batch"
          },
          "batch_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Signal"
            }
          }
        }
      },
      "SignalValidation": {
        "type": "object",
        "required": [
          "object",
          "valid",
          "normalised",
          "warnings"
        ],
        "properties": {
          "object": {
            "const": "signal_validation"
          },
          "valid": {
            "const": true
          },
          "normalised": {
            "$ref": "#/components/schemas/NormalisedSignal"
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Warning"
            }
          }
        }
      },
      "SignalList": {
        "type": "object",
        "required": [
          "object",
          "items",
          "has_more",
          "next_starting_after"
        ],
        "properties": {
          "object": {
            "const": "list"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Signal"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_starting_after": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error_type",
          "code",
          "message",
          "request_id"
        ],
        "properties": {
          "status": {
            "const": "error"
          },
          "error_type": {
            "type": "string",
            "enum": [
              "InputException",
              "AuthenticationException",
              "PermissionException",
              "NotFoundException",
              "MethodException",
              "ConflictException",
              "PayloadException",
              "ValidationException",
              "RiskException",
              "RateLimitException",
              "GeneralException",
              "ServiceUnavailableException"
            ]
          },
          "code": {
            "type": "string",
            "description": "Stable machine-readable code. See https://developers.mquant.in/errors.html."
          },
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": "string",
            "pattern": "^req_[0-9a-f]{24}$"
          },
          "details": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "index": {
                  "type": "integer"
                },
                "field": {
                  "type": "string"
                },
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "existing_signal_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "ServerTimeResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "const": "success"
          },
          "data": {
            "$ref": "#/components/schemas/ServerTime"
          }
        }
      },
      "ApiKeyResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "const": "success"
          },
          "data": {
            "$ref": "#/components/schemas/ApiKey"
          }
        }
      },
      "SignalResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "const": "success"
          },
          "data": {
            "$ref": "#/components/schemas/Signal"
          }
        }
      },
      "BatchResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "const": "success"
          },
          "data": {
            "$ref": "#/components/schemas/Batch"
          }
        }
      },
      "SignalValidationResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "const": "success"
          },
          "data": {
            "$ref": "#/components/schemas/SignalValidation"
          }
        }
      },
      "SignalListResponse": {
        "type": "object",
        "required": [
          "status",
          "data"
        ],
        "properties": {
          "status": {
            "const": "success"
          },
          "data": {
            "$ref": "#/components/schemas/SignalList"
          }
        }
      }
    },
    "securitySchemes": {
      "MQApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-MQ-API-KEY",
        "description": "Your key id: mq_live_pk_… or mq_test_pk_… (33 characters)."
      },
      "MQTimestamp": {
        "type": "apiKey",
        "in": "header",
        "name": "X-MQ-TIMESTAMP",
        "description": "Unix epoch milliseconds, 13 digits. Must be within 5000 ms behind and 1000 ms ahead of server time."
      },
      "MQNonce": {
        "type": "apiKey",
        "in": "header",
        "name": "X-MQ-NONCE",
        "description": "16 to 64 characters of A-Z a-z 0-9 _ -, unique per request."
      },
      "MQSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "X-MQ-SIGNATURE",
        "description": "64 hex characters: HMAC-SHA256(secret, canonical string). See https://developers.mquant.in/authentication.html."
      }
    }
  }
}
