# Saxo OpenAPI POST /trade/v2/orders/multileg

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/brokers/saxo/endpoints/place-multileg-order, written from the same records as that page.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Places a combined options order whose legs must all fill together, for strategies such as straddles and calendar spreads. Saxo says only some options exchanges support it.

- Request: `POST /trade/v2/orders/multileg`
- Version: v2
- Group: Orders
- Status: verified. Source: [developer.saxo](https://www.developer.saxo/openapi/referencedocs/trade/v2/orders/post__trade__multileg), checked 2026-10-12.
- Official reference: https://www.developer.saxo/openapi/referencedocs/trade/v2/orders/post__trade__multileg

Note: Read on Saxo's own reference page on 12 Oct 2026: method, path, parameters and response fields. The page also lists TraderId. Saxo lists the permission needed as Write.

## Parameters

- `Content-Type` (in header, type string, required): Send application/json on a request with a body.
- `Legs` (in body, type array, required): The legs of the strategy, as a list of orders to be filled together.
- `OrderType` (in body, type string, required): Order type.
- `AccountKey` (in body, type string, optional): Account to place the order on.
- `OrderPrice` (in body, type number, optional): Price of the order. Optional for a market order.
- `OrderDuration` (in body, type object, optional): How long the order stays open.
- `ManualOrder` (in body, type boolean, optional): Whether a person placed the order by hand or a program placed it.
- `ExternalReference` (in body, type string, optional): Your own reference for the order, up to 50 characters.

### Authentication headers

- `Authorization` (type string, required): OAuth 2.0 bearer access token. In SIM you can use a 24 hour token from the Saxo developer portal. Placeholder only: never paste a real token into this site.

## Request

Written from the method, path and parameters recorded on this page, against the demo host. Not executed against a live or demo account. Credentials are read from environment variables on your own machine and are never entered on this site. The request builder at https://openbrokerapi.com/tools/request-builder writes these same snippets, from the same record.

This call takes a request body. The samples send it as JSON with a placeholder for each of the 2 body fields the record marks as required. Each placeholder has to be replaced with a real value before the request can succeed.

### Python

```python
# Set SAXO_SIM_TOKEN as an environment variable first. Never paste real values into code.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: body fields AccountKey, OrderPrice, OrderDuration, ManualOrder, ExternalReference.
import os
import requests

BASE_URL = "https://gateway.saxobank.com/sim/openapi"  # the demo host
headers = {
    "Authorization": "Bearer " + os.environ["SAXO_SIM_TOKEN"],
    "Content-Type": "application/json",
}
body = {"Legs": [], "OrderType": "..."}
resp = requests.post(BASE_URL + "/trade/v2/orders/multileg", headers=headers, json=body, timeout=10)
resp.raise_for_status()
print(resp.json())
```

### JavaScript

```javascript
// Set SAXO_SIM_TOKEN as an environment variable first. Never paste real values into code.
// Replace each {placeholder}, "..." and 0 with a real value before running.
// Optional and not shown: body fields AccountKey, OrderPrice, OrderDuration, ManualOrder, ExternalReference.
// Run as a module, for example a .mjs file, on a Node version that has fetch built in.
const BASE_URL = "https://gateway.saxobank.com/sim/openapi"; // the demo host
const res = await fetch(BASE_URL + "/trade/v2/orders/multileg", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.SAXO_SIM_TOKEN,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"Legs": [], "OrderType": "..."}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
```

### curl

```bash
# Set SAXO_SIM_TOKEN as an environment variable first. Never paste real values into code.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: body fields AccountKey, OrderPrice, OrderDuration, ManualOrder, ExternalReference.
curl -X POST "https://gateway.saxobank.com/sim/openapi/trade/v2/orders/multileg" \
  -H "Authorization: Bearer $SAXO_SIM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"Legs": [], "OrderType": "..."}'
```

## Response

A mock response. The values are invented, so check field names against the [official reference](https://www.developer.saxo/openapi/referencedocs/trade/v2/orders/post__trade__multileg).

```json
{
  "_mock": true,
  "OrderId": "MOCK-ORDER-0002",
  "Orders": []
}
```

## Limits that apply at Saxo OpenAPI

- Headline limit: 120/min per session, per service group
  - Scope: session
  - Status: verified. Source: [developer.saxo](https://www.developer.saxo/openapi/learn/rate-limiting), checked 2026-09-18.
  - Note: Per session per service group; 1 order per second per session.

## More on the Saxo API

- [All Saxo API endpoints](https://openbrokerapi.com/brokers/saxo/endpoints): 68 documented, grouped by what they do.
- [Saxo API quickstart](https://openbrokerapi.com/brokers/saxo/quickstart)
- [All Saxo API error codes](https://openbrokerapi.com/errors/saxo)
- [Saxo API page](https://openbrokerapi.com/brokers/saxo): The full record: access, authentication, limits and the source for each.
- [Saxo API as an OpenAPI file](https://openbrokerapi.com/specs/saxo.json): Generated from these endpoint records. Independent and unofficial.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: Saxo OpenAPI POST /trade/v2/orders/multileg. Broker API Hub, https://openbrokerapi.com/brokers/saxo/endpoints/place-multileg-order, newest check 2026-10-12.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
