Saxo OpenAPI Python Samples
This repository contains sample code for developers working with Saxo's OpenAPI using Python.
To get started, make sure you:
- Create a (free) developer account on the Developer Portal
- Check out the Reference Documentation and Learn sections
- Obtain a 24-hour access token (this is required to run most sample code in this repo)
- Play with developer tools provided such as the Tutorial, Explorer, and Application Management
Note: step
3
and4
require a developer account.
Requirements
All samples in this repository have been tested in Python versions 3.6 and up. Check the individual .py
files for required packages. For example:
# tested in Python 3.6+
# required packages: flask, requests
Every sample requires either app configuration (obtained through Application Management) or a 24-hour access token copied directly into the code. These variables will always be named app_config
or token
.
In case you are facing issues such as
401 Unauthorized
orApplication key not registered
, check if you copied the required input correctly.