Saxo OpenAPI API Wrapper
latest

Contents:

  • Introduction
  • saxo_openapi
  • saxo_openapi endpoints
    • saxo_openapi.endpoints.accounthistory
    • saxo_openapi.endpoints.chart
    • saxo_openapi.endpoints.eventnotificationservices
    • saxo_openapi.endpoints.portfolio
    • saxo_openapi.endpoints.referencedata
    • saxo_openapi.endpoints.rootservices
      • saxo_openapi.endpoints.rootservices.diagnostics
        • Delete
        • Echo
        • Get
        • Head
        • Options
        • Patch
        • Post
        • Put
      • saxo_openapi.endpoints.rootservices.features
      • saxo_openapi.endpoints.rootservices.sessions
      • saxo_openapi.endpoints.rootservices.subscriptions
      • saxo_openapi.endpoints.rootservices.user
    • saxo_openapi.endpoints.trading
    • saxo_openapi.endpoints.valueadd
  • saxo_openapi.definitions
  • saxo_openapi contrib
  • Examples
Saxo OpenAPI API Wrapper
  • Docs »
  • saxo_openapi endpoints »
  • saxo_openapi.endpoints.rootservices »
  • saxo_openapi.endpoints.rootservices.diagnostics »
  • Head
  • Edit on GitHub

Head¶

class saxo_openapi.endpoints.rootservices.diagnostics.Head¶

Send a HEAD request and get a 200 OK response back.

ENDPOINT = 'openapi/root/v1/diagnostics/head/'¶
EXPECTED_STATUS = 200¶
METHOD = 'HEAD'¶
RESPONSE_DATA = None¶
__init__()¶

Instantiate a Head request.

>>> import saxo_openapi
>>> import saxo_openapi.endpoints.rootservices as rs
>>> import json
>>> client = saxo_openapi.API(access_token=...)
>>> r = rs.diagnostics.Head()
>>> rv = client.request(r)
>>> assert r.status_code == r.expected_status

No data is returned.

expected_status¶
response¶

response - get the response of the request.

status_code¶
Next Previous

© Copyright Copyright 2019 Feite Brekeveld Revision 8e5c1bf3.

Built with Sphinx using a theme provided by Read the Docs.