Saxo Bank Orders API

Read only end points serving orders.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/saxo-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

saxo-orders-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Services.AutoTrading Account Values Orders API
  description: 'The AutoTrading service group provides endpoints for interacting with Saxo Bank''s SaxoSelect offering.Through these interfaces a client application can get Saxo Select trade leaders, portfolios and investments. Portfolio investments can be created and modifed.<div class=well style=''border: 1px solid rgb(204, 82, 0); border-image: none; background-color: rgb(255, 209, 179);padding:1px;''><strong> Note:</strong> </br>This service is subject to special licensing agreements and not generally available to all OpenAPI applications.</div>'
  version: 2.4.138+710c760591
  x-framework-version: 38.0.2+439c5b0ec3
  x-machine: SIMOAWEB11-DK2
servers:
- url: https://gateway.saxobank.com/sim/openapi
tags:
- name: Orders
  description: Read only end points serving orders.
paths:
  /port/v1/orders/subscriptions/{ContextId}/{ReferenceId}:
    delete:
      tags:
      - Orders
      summary: Remove subscription
      description: Removes subscription for the current session identified by subscription id..
      operationId: OrdersV1DeleteSubscription
      parameters:
      - name: ContextId
        in: path
        description: Unique streaming context ID part of the streaming session.
        required: true
        schema:
          type: string
        example: '29931122'
      - name: ReferenceId
        in: path
        description: Unique reference ID of the subscription.
        required: true
        schema:
          type: string
        example: O2246
      responses:
        '204':
          description: No Content
        '202':
          description: Subscription delete request will be processed eventually.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Subscribe
        community: Subscribe
  /port/v1/orders/subscriptions/{ContextId}:
    delete:
      tags:
      - Orders
      summary: Remove multiple subscriptions
      description: Removes multiple subscriptions for the current session on this resource. Optionally maked with with speccified Tag.
      operationId: OrdersV1DeleteSubscriptions
      parameters:
      - name: ContextId
        in: path
        description: Unique streaming context ID part of the streaming session.
        required: true
        schema:
          type: string
        example: '29931122'
      - name: Tag
        in: query
        description: Optional. Tag that subscriptions are marked with.
        schema:
          type: string
        example: PAGE2
      responses:
        '204':
          description: No Content
        '202':
          description: Subscription delete request will be processed eventually.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Subscribe
        community: Subscribe
  /port/v1/orders/subscriptions:
    post:
      tags:
      - Orders
      summary: Create a subscription to open orders
      description: Sets up a subscription and returns an initial snapshot of list of orders specified by the parameters in the request.
      operationId: OrdersV1AddActiveSubscription
      parameters:
      - name: $inlinecount
        in: query
        description: Specifies that the response to the request should include a count of the number of entries in the collection
        schema:
          enum:
          - AllPages
          - None
          type: string
          x-enum-descriptions:
            None: The result will not contain an inline count
            AllPages: The result will contain a total count of items in the queried collection
        example: AllPages
      - name: $skip
        in: query
        description: The number of entries to skip from the beginning of the collection
        schema:
          minimum: 0
          type: integer
          format: int32
        example: 1
      - name: $skiptoken
        in: query
        description: Specifies an entity id to start retrieving entries from. This is normally only used in generated nextlinks.
        schema:
          type: string
        example: B17D8890-3C7A-4A47-A9AA-01B022ED03A5
      - name: $top
        in: query
        description: The number of entries to return from the beginning of the collection
        schema:
          minimum: 0
          type: integer
          format: int32
          default: 0
        example: 1
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderSubscriptionRequest'
            example:
              Arguments:
                AccountGroupKey: LZTc7DdejXODf-WSl2aCyQ==
                AccountKey: LZTc7DdejXODf-WSl2aCyQ==
                ClientKey: 7m4I|vtYLUnEGg77o9uQhw==
              ContextId: '20221030064905457'
              Format: application/json
              ReferenceId: O40952
              RefreshRate: 5
              Tag: PAGE1
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderSubscriptionResponse'
              example:
                Format: application/json
                InactivityTimeout: 120
                ReferenceId: O03905
                RefreshRate: 1000
                Snapshot:
                  Data:
                  - AccountId: 192134INET
                    AccountKey: LZTc7DdejXODf-WSl2aCyQ==
                    Amount: 250000
                    AssetType: FxSpot
                    BuySell: Buy
                    CalculationReliability: Ok
                    ClientKey: 7m4I|vtYLUnEGg77o9uQhw==
                    CurrentPrice: 1.09062
                    CurrentPriceDelayMinutes: 0
                    CurrentPriceType: Ask
                    DistanceToMarket: 0.04062
                    Duration:
                      DurationType: GoodTillCancel
                    IsExtendedHoursEnabled: false
                    IsForceOpen: false
                    IsMarketOpen: false
                    MarketPrice: 1.09062
                    NonTradableReason: None
                    OpenOrderType: Limit
                    OrderAmountType: Quantity
                    OrderId: '49318458'
                    OrderRelation: StandAlone
                    OrderTime: '2017-04-12T07:56:00Z'
                    Price: 1.05
                    PriceWithoutSpread: 1.04
                    Status: Working
                    Uic: 21
                State: Active
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - InvalidClientId
                    - InvalidInput
                    - InvalidModelState
                    - NoValidInput
                    - UnsupportedSubscriptionFormat
                    type: string
                    example: None
                    x-enum-descriptions:
                      InvalidModelState: Error code returned when model state is invalid.
                      UnsupportedSubscriptionFormat: Error code returned when a subscription format that isn't supported by the publisher is requested.
                      InvalidClientId: Indicates that the requested client id was invalid.
                      InvalidInput: An error was encountered when processing given input parameters.
                      NoValidInput: No valid input values passed.
                  Message:
                    type: string
                  ModelState:
                    $ref: '#/components/schemas/ModelStateDictionary'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - SubscriptionLimitExceeded
                    type: string
                    example: None
                    x-enum-descriptions:
                      SubscriptionLimitExceeded: Error code returned when more than the maximum allowed number of subscriptions for a specified type, is exceeded.
                  Message:
                    type: string
                  ModelState:
                    $ref: '#/components/schemas/ModelStateDictionary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Subscribe
        community: Subscribe
      x-streaming-type:
        $ref: '#/components/schemas/OrderResponseArray'
  /port/v1/orders/{OrderId}/details:
    get:
      tags:
      - Orders
      summary: Get detailed information for a open order
      description: "Obsolete Gets detailed information about a single open order as specified by the query parameters.\n            NOTE: This endpoint will be deprecated by November 2022. All functionality has been migrated to /port/v1/orders/{OrderId}."
      operationId: OrdersV1GetOpenOrderDetails
      parameters:
      - name: AccountGroupKey
        in: query
        description: The key of the account group to which the net positions belongs.
        schema:
          title: The key of the account group to which the net positions belongs.
          minLength: 1
          type: string
          x-type-name: AccountGroupKey
        example: stringValue
      - name: AccountKey
        in: query
        description: The key of the account to which the net positions belongs.
        schema:
          title: The key of the account to which the net positions belongs.
          minLength: 1
          type: string
          x-type-name: AccountKey
        example: 01b64edf-da03-4145-bf33-ae21527d4c86
      - name: ClientKey
        in: query
        description: The key of the client to which the net positions belongs.
        required: true
        schema:
          title: The key of the client to which the net positions belongs.
          minLength: 1
          type: string
          x-type-name: ClientKey
        example: 493b43a5-fe85-4d1f-9071-dd4a9d4e42a4
      - name: OrderId
        in: path
        description: Unique id of the order.
        required: true
        schema:
          type: string
        example: '83749234'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponse'
              example:
                AccountId: 192134INET
                AccountKey: LZTc7DdejXODf-WSl2aCyQ==
                Amount: 250000
                AssetType: FxSpot
                BuySell: Buy
                CalculationReliability: Ok
                ClientKey: 7m4I|vtYLUnEGg77o9uQhw==
                CurrentPrice: 1.09062
                CurrentPriceDelayMinutes: 0
                CurrentPriceType: Ask
                DistanceToMarket: 0.04062
                Duration:
                  DurationType: GoodTillCancel
                IsForceOpen: false
                IsMarketOpen: false
                MarketPrice: 1.09062
                NonTradableReason: None
                OpenOrderType: Limit
                OrderAmountType: Quantity
                OrderId: '49318458'
                OrderRelation: StandAlone
                OrderTime: '2017-04-12T07:56:00Z'
                Price: 1.05
                Status: Working
                Uic: 21
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - InvalidClientId
                    - PositionIdNotSpecified
                    type: string
                    example: None
                    x-enum-descriptions:
                      PositionIdNotSpecified: Position not specified.
                      InvalidClientId: Indicates that the requested client id was invalid.
                  Message:
                    type: string
                  ModelState:
                    $ref: '#/components/schemas/ModelStateDictionary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      deprecated: true
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-deprecated-date: '2022-11-01'
      x-required-permissions:
        personal: Read
        community: Read
  /port/v1/orders:
    get:
      tags:
      - Orders
      summary: Get all open orders for a client or an account
      description: You can use this operation to get all the open orders on an account or a client.
      operationId: GET_OrdersV1GetOpenOrders
      parameters:
      - name: $skip
        in: query
        description: The number of entries to skip from the beginning of the collection
        schema:
          minimum: 0
          type: integer
          format: int32
        example: 1
      - name: $top
        in: query
        description: The number of entries to return from the beginning of the collection
        schema:
          minimum: 0
          type: integer
          format: int32
          default: 0
        example: 1
      - name: AccountGroupKey
        in: query
        description: The key of the account group to which the order belongs.
        schema:
          title: The key of the account group to which the order belongs.
          minLength: 1
          type: string
          x-type-name: AccountGroupKey
        example: stringValue
      - name: AccountKey
        in: query
        description: Unique key identifying the account that owns the orders.
        schema:
          title: Unique key identifying the account that owns the orders.
          minLength: 1
          type: string
          x-type-name: AccountKey
        example: 01b64edf-da03-4145-bf33-ae21527d4c86
      - name: ClientKey
        in: query
        description: Unique key identifying the client that owns the orders.
        required: true
        schema:
          title: Unique key identifying the client that owns the orders.
          minLength: 1
          type: string
          x-type-name: ClientKey
        example: 493b43a5-fe85-4d1f-9071-dd4a9d4e42a4
      - name: FieldGroups
        in: query
        description: Specifies which data to return. Default is empty, meaning Display and Formatting information is not included.
        schema:
          title: Specifies which data to return. Default is empty, meaning Display and Formatting information is not included.
          type: array
          items:
            $ref: '#/components/schemas/OrderFieldGroup'
        example:
        - ExchangeInfo
      - name: OrderId
        in: query
        description: The id of the order
        schema:
          title: The id of the order
          type: string
        example: stringValue
      - name: Status
        in: query
        description: Selects only a subset of open orders to be returned. Default is to return working orders only.
        schema:
          title: Selects only a subset of open orders to be returned. Default is to return working orders only.
          allOf:
          - $ref: '#/components/schemas/OrderStatusFilter'
        example: All
      - name: WatchlistId
        in: query
        description: Selects only orders those instruments belongs to the given watchlist id
        schema:
          title: Selects only orders those instruments belongs to the given watchlist id
          type: string
        example: stringValue
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponseListResult'
              example:
                __next: /openapi/port/....../?$top=1&$skip=1
                Data:
                - AccountId: 192134INET
                  AccountKey: LZTc7DdejXODf-WSl2aCyQ==
                  Amount: 250000
                  AssetType: FxSpot
                  BuySell: Buy
                  CalculationReliability: Ok
                  ClientKey: 7m4I|vtYLUnEGg77o9uQhw==
                  CurrentPrice: 1.09062
                  CurrentPriceDelayMinutes: 0
                  CurrentPriceType: Ask
                  DistanceToMarket: 0.04062
                  Duration:
                    DurationType: GoodTillCancel
                  IsForceOpen: false
                  IsMarketOpen: false
                  MarketPrice: 1.09062
                  NonTradableReason: None
                  OpenOrderType: Limit
                  OrderAmountType: Quantity
                  OrderId: '49318458'
                  OrderRelation: StandAlone
                  OrderTime: '2017-04-12T07:56:00Z'
                  Price: 1.05
                  Status: Working
                  Uic: 21
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - InvalidClientId
                    - InvalidInput
                    - NoValidInput
                    type: string
                    example: None
                    x-enum-descriptions:
                      NoValidInput: No valid input values passed.
                      InvalidInput: An error was encountered when processing given input parameters.
                      InvalidClientId: Indicates that the requested client id was invalid.
                  Message:
                    type: string
                  ModelState:
                    $ref: '#/components/schemas/ModelStateDictionary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Read
        community: Read
  /port/v1/orders/me:
    get:
      tags:
      - Orders
      summary: Get all open orders for the client to which the logged-in user belongs
      description: You can use this operation to get all open orders across all accounts for the client to which the logged-in user belongs.
      operationId: OrdersV1GetOpenOrders
      parameters:
      - name: $skip
        in: query
        description: The number of entries to skip from the beginning of the collection
        schema:
          minimum: 0
          type: integer
          format: int32
        example: 1
      - name: $top
        in: query
        description: The number of entries to return from the beginning of the collection
        schema:
          minimum: 0
          type: integer
          format: int32
          default: 0
        example: 1
      - name: FieldGroups
        in: query
        description: Optional. Specification of FieldGroups to be included in response model. Defaults to "ExchangeInfo" if not provided.
        required: true
        schema:
          type: array
          items:
            $ref: '#/components/schemas/OrderFieldGroup'
      - name: MultiLegOrderId
        in: query
        description: Return only multi-leg orders with the given common MultiLegOrderId.
        schema:
          type: string
      - name: Status
        in: query
        description: Optional. Selects only a subset of open orders to be returned based on status of the open order. Default is "Working" (i.e. orders related to working orders are excluded).
        schema:
          $ref: '#/components/schemas/OrderStatusFilter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponseListResult'
              example:
                __next: /openapi/port/....../?$top=1&$skip=1
                Data:
                - AccountId: 192134INET
                  AccountKey: LZTc7DdejXODf-WSl2aCyQ==
                  Amount: 250000
                  AssetType: FxSpot
                  BuySell: Buy
                  CalculationReliability: Ok
                  ClientKey: 7m4I|vtYLUnEGg77o9uQhw==
                  CurrentPrice: 1.09062
                  CurrentPriceDelayMinutes: 0
                  CurrentPriceType: Ask
                  DistanceToMarket: 0.04062
                  Duration:
                    DurationType: GoodTillCancel
                  IsForceOpen: false
                  IsMarketOpen: false
                  MarketPrice: 1.09062
                  NonTradableReason: None
                  OpenOrderType: Limit
                  OrderAmountType: Quantity
                  OrderId: '49318458'
                  OrderRelation: StandAlone
                  OrderTime: '2017-04-12T07:56:00Z'
                  Price: 1.05
                  Status: Working
                  Uic: 21
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Read
        community: Read
  /port/v1/orders/{ClientKey}/{OrderId}:
    get:
      tags:
      - Orders
      summary: Get a single open order
      description: Call this operation to get a specific open order of a client.
      operationId: OrdersV1GetOpenOrder
      parameters:
      - name: ClientKey
        in: path
        description: Unique id of the client.
        required: true
        schema:
          minLength: 1
          type: string
          x-type-name: ClientKey
        example: U8SNV3JLdN4gzcQfmThXJA==
      - name: FieldGroups
        in: query
        description: Optional. Specification of FieldGroups to be included in response model. Defaults to "ExchangeInfo" if not provided.
        required: true
        schema:
          type: array
          items:
            $ref: '#/components/schemas/OrderFieldGroup'
      - name: OrderId
        in: path
        description: Unique id of the order.
        required: true
        schema:
          type: string
        example: '5007186409'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderResponseListResult'
              example:
                __next: /openapi/port/....../?$top=1&$skip=1
                Data:
                - AccountId: 192134INET
                  AccountKey: LZTc7DdejXODf-WSl2aCyQ==
                  Amount: 250000
                  AssetType: FxSpot
                  BuySell: Buy
                  CalculationReliability: Ok
                  ClientKey: 7m4I|vtYLUnEGg77o9uQhw==
                  CurrentPrice: 1.09062
                  CurrentPriceDelayMinutes: 0
                  CurrentPriceType: Ask
                  DistanceToMarket: 0.04062
                  Duration:
                    DurationType: GoodTillCancel
                  IsForceOpen: false
                  IsMarketOpen: false
                  MarketPrice: 1.09062
                  NonTradableReason: None
                  OpenOrderType: Limit
                  OrderAmountType: Quantity
                  OrderId: '49318458'
                  OrderRelation: StandAlone
                  OrderTime: '2017-04-12T07:56:00Z'
                  Price: 1.05
                  Status: Working
                  Uic: 21
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - OrderIdNotSpecified
                    type: string
                    example: None
                    x-enum-descriptions:
                      OrderIdNotSpecified: Order not specified.
                  Message:
                    type: string
                  ModelState:
                    $ref: '#/components/schemas/ModelStateDictionary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Read
        community: Read
  /trade/v2/orders/multileg/defaults:
    get:
      tags:
      - Orders
      summary: Get default values for a option multi-leg order strategies.
      description: Returns a list of suggested orders/legs for the given option root and strategy.
      operationId: OrdersV2GetMultiLegOrderStrategyDefaults
      parameters:
      - name: AccountKey
        in: query
        description: "Unique key identifying the account used in retrieving the price.\n                Only required when calling context represents an authenticated user."
        required: true
        style: form
        explode: false
        schema:
          title: "Unique key identifying the account used in retrieving the price.\n                Only required when calling context represents an authenticated user."
          minLength: 1
          type: string
          x-type-name: AccountKey
        example: 01b64edf-da03-4145-bf33-ae21527d4c86
      - name: OptionRootId
        in: query
        description: Id of the contract option root.
        required: true
        style: form
        explode: false
        schema:
          title: Id of the contract option root.
          type: integer
          format: int32
        example: 99
      - name: OptionsStrategyType
        in: query
        description: The  to get.
        required: true
        style: form
        explode: false
        schema:
          title: The  to get.
          allOf:
          - $ref: '#/components/schemas/OptionsStrategyType_2'
        example: Synthetic
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MultiLegOrderStrategyDefault'
              example:
                Legs:
                - Amount: 10
                  AssetType: Etf
                  BuySell: Sell
                  OptionData:
                    ExpiryDate: '2023-03-22T16:40:01.7806301'
                    PutCall: Call
                    StrikePrice: 10
                  Uic: 99
                StrategyType: Custom
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - InvalidOptionRootId
                    type: string
                    example: None
                    x-enum-descriptions:
                      InvalidOptionRootId: Invalid option root id specified.
                  Message:
                    type: string
                  ModelState:
                    $ref: '#/components/schemas/ModelStateDictionary'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
      - OpenApiOAuthSecurityScheme: []
      - OpenApiJWTSecurityScheme: []
      x-required-permissions:
        personal: Read
  /trade/v2/orders/multileg/{MultiLegOrderId}:
    delete:
      tags:
      - Orders
      summary: Cancel a multi-leg strategy order.
      description: Cancels all order legs in a combined multi-leg strategy order.
      operationId: OrdersV2CancelMultiLegStrategyOrder
      parameters:
      - name: AccountKey
        in: query
        description: Unique key identifying the account.
        required: true
        style: form
        explode: false
        schema:
          minLength: 1
          type: string
          x-type-name: AccountKey
        example: LZTc7DdejXODf-WSl2aCyQ==
      - name: MultiLegOrderId
        in: path
        description: Unique identifier for the multi-leg order. Same for all legs.
        required: true
        style: simple
        schema:
          type: string
        example: '67762872'
      responses:
        '204':
          description: Not used.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelOrderResponse'
              example:
                Orders:
                - ErrorInfo:
                    ErrorCode: Unknown
                    Message: Order request rejected
        '200':
          description: Check response for MultiLegOrderId and ErrorInfo fields to determine success or failure to cancel order
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                required:
                - ErrorCode
                - Message
                type: object
                properties:
                  ErrorCode:
                    enum:
                    - ActiveFollowerCannotCancelOrderManually
                    - AlreadyPendingCancelReplace
                    - BrokerOption
                    - ClientCannotCancelStopOutOrder
                    - ClientCannotChangeAllocatedOrder
                    - CouldNotCompleteRequest
                    - ForceOpenNotAllowed
                    - IllegalAccount
                    - InvalidModelState
                    - InvalidRequest
                    - OrderCannotBeCancelledAtThisTime
                    - OrderNotFound
                    - OtherError
                    - TooLateToCancelOrder
                    type: string
                    example: None
                    x-enum-descriptions:
                      InvalidRequest: Invalid request.
                      InvalidModelState: One or more properties of the request are invalid!
                      IllegalAccount: Illegal Account
                      ClientCannotCancelStopOutOrder: Client can not cancel a market stop-out order.
                      ActiveFollowerCannotCancelOrderManually: An active trade follower is not allowed to cancel order manually.
                      AlreadyPendingCancelReplace: Request to Cancel or Replace order already send
                      ClientCannotChangeAllocatedOrder: Cannot change order – part of an allocation.
                      OrderCannotBeCancelledAtThisTime: Order cannot be canceled at this time
                      BrokerOption: Broker Option
                      OrderNotFound: Reque

# --- truncated at 32 KB (245 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/saxo/refs/heads/main/openapi/saxo-orders-api-openapi.yml