AlgoStrategies

class saxo_openapi.endpoints.referencedata.algostrategies.AlgoStrategies(params=None)

Retrieve a list of strategies with detailed information about each strategy. The response also contains links to other relevant data, such as their parameters.

ENDPOINT = 'openapi/ref/v1/algostrategies/'
EXPECTED_STATUS = 200
METHOD = 'GET'
__init__(params=None)

Instantiate an AlgoStrategies request.

Parameters:params (dict (required)) – dict representing the querystring parameters
>>> import json
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.referencedata as rd
>>> client = saxo_openapi.API(access_token=...)
>>> params =
        {
          "$top": "...",
          "$skip": "..."
        }
>>> r = rd.algostrategies.AlgoStrategies(params=params)
>>> client.request(r)
>>> print(json.dumps(r.response, indent=4))

Output:

{
  "__count": 4,
  "Data": [
    {
      "Description": "Group of VWAP",
      "MinAmountUSD": 0,
      "Name": "VWAP",
      "Parameters": [],
      "SupportedDurationTypes": [
        "DayOrder"
      ],
      "TradableInstrumentTypes": []
    },
    {
      "Description": "Groups of Iceberg Strategies",
      "MinAmountUSD": 0,
      "Name": "Iceberg",
      "Parameters": [],
      "SupportedDurationTypes": [
        "DayOrder"
      ],
      "TradableInstrumentTypes": []
    },
    {
      "Description": "Group of With Volume strategies",
      "MinAmountUSD": 0,
      "Name": "With Volume",
      "Parameters": [],
      "SupportedDurationTypes": [
        "DayOrder"
      ],
      "TradableInstrumentTypes": []
    },
    {
      "Description": "Group of IS strategies",
      "MinAmountUSD": 0,
      "Name": "Implementation Shortfall",
      "Parameters": [],
      "SupportedDurationTypes": [
        "DayOrder"
      ],
      "TradableInstrumentTypes": []
    }
  ]
}
expected_status
response

response - get the response of the request.

status_code