Endpoint Parameters

  • Request parameters

    Name Type Origin Description
    AccountKey AccountKey Body Unique key identifying the account to place the order on.
    ExternalReference String Body Optional reference from the client app, to correlate orders with Saxo Bank issues order IDs. Maximum length: 50 characters. The order will be rejected if the reference is too long. This reference doesn’t have to be unique.
    Legs OrderLeg [] Body List of orders in the batch that are to be filled symmetrically.
    ManualOrder Boolean Body Optional indicator for whether order is placed automatically or manually.
    OrderDuration OrderDuration Body The Order Duration.
    OrderPrice Number Body Order Price. Optional for market orders.
    OrderType PlaceableOrderType Body Order type.
    TraderId String Body Trader Id, Used only if the application is configured for supporting it with length of 2-16 chars.
  • Response Parameters

    View Response Codes
    Name Type Description
    ErrorInfo StringErrorResponse Contains error info when request failed.
    ExternalReference String Optional reference supplied when placing the order. Max. 50 characters.
    OrderId String Id of order. No value provided if request failed.
    Orders RelatedOrOcoOrder [] List of resulting orders.
  • Request Example

    Request URL
    POST /trade/v2/orders/multileg
    Request Body
    {
      "AccountKey": "01b64edf-da03-4145-bf33-ae21527d4c86",
      "ExternalReference": "stringValue",
      "Legs": [
        {
          "Amount": 10,
          "AssetType": "Bond",
          "BuySell": "Sell",
          "ToOpenClose": "ToClose",
          "Uic": 99
        }
      ],
      "ManualOrder": true,
      "OrderDuration": {
        "DurationType": "GoodTillDate",
        "ExpirationDateContainsTime": true,
        "ExpirationDateTime": "2024-12-27T14:00:00Z"
      },
      "OrderPrice": 10,
      "OrderType": "TrailingStop",
      "TraderId": "stringValue"
    }
    
  • Response Example

    Response body
    {
      "OrderId": "67762872",
      "Orders": [
        {
          "OrderId": "67762872"
        }
      ]
    }