# Saxo API error: InvalidModelState

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/errors/saxo/invalid-model-state, 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.

The error, as text you can copy:

```
InvalidModelState
```

- Kind: API error code
- HTTP status: 400
- API: [Saxo OpenAPI](https://openbrokerapi.com/brokers/saxo)
- Status: verified. Source: [developer.saxo](https://www.developer.saxo/openapi/learn/openapi-request-response), checked 2026-10-09.

## What does InvalidModelState mean on the Saxo API?

One or more properties of the request are not valid. The response carries a ModelState object that names each field at fault with its error texts. Saxo's order placement page says simple syntax errors return this code.

## How do I fix InvalidModelState?

Read the ModelState in the response and correct the fields it names. Saxo's page says these are errors an application should prevent by sending well formed JSON and allowed values.

## More on the Saxo API

- [All Saxo API error codes](https://openbrokerapi.com/errors/saxo)
- [Saxo API quickstart](https://openbrokerapi.com/brokers/saxo/quickstart): From credentials to a first call on a demo account, step by step.
- [Saxo API error codes](https://openbrokerapi.com/errors/saxo): 143 decoded, each with what it means, and the fix where the source gives one.
- [Saxo API endpoints](https://openbrokerapi.com/brokers/saxo/endpoints): 68 documented, each with its method, path, parameters and source.
- [Saxo messages](https://openbrokerapi.com/brokers/saxo/messages): 5 documented, each with its fields and source.
- [Saxo API page](https://openbrokerapi.com/brokers/saxo): The full record: access, authentication, limits and the source for each.

## 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 API error: InvalidModelState. Broker API Hub, https://openbrokerapi.com/errors/saxo/invalid-model-state, newest check 2026-10-09.

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.
