ExchangeList¶
-
class
saxo_openapi.endpoints.referencedata.exchanges.
ExchangeList
(params=None)¶ Retrieve a list of exchanges with detailed information about each. The response also contains links to other relevant data, such as their trade statuses.
-
ENDPOINT
= 'openapi/ref/v1/exchanges/'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(params=None)¶ Instantiate an ExchangeList request.
Parameters: params (dict (optional)) – dict representing querystring parameters >>> import json >>> import saxo_openapi >>> import saxo_openapi.endpoints.referencedata as rd >>> client = saxo_openapi.API(access_token=...) >>> r = rd.ExchangeList() >>> client.request(r) >>> print(json.dumps(r.response, indent=4))
Output:
{ "__count": 181, "Data": [ { "AllDay": false, "CountryCode": "US", "Currency": "USD", "ExchangeId": "NYSE_ARCA", "ExchangeSessions": [ { "EndTime": "2019-03-04T12:00:00.000000Z", "StartTime": "2019-03-01T21:00:00.000000Z", "State": "Closed" }, { "EndTime": "2019-03-04T14:30:00.000000Z", "StartTime": "2019-03-04T12:00:00.000000Z", "State": "PreTrading" }, { "EndTime": "2019-03-04T21:00:00.000000Z", "StartTime": "2019-03-04T14:30:00.000000Z", "State": "AutomatedTrading" }, { "EndTime": "2019-03-05T12:00:00.000000Z", "StartTime": "2019-03-04T21:00:00.000000Z", "State": "Closed" } ], "Mic": "ARCX", "Name": "New York Stock Exchange (ARCA)", "TimeZone": 3, "TimeZoneAbbreviation": "EST", "TimeZoneOffset": "-05:00:00" }, { "AllDay": false, "CountryCode": "SG", "Currency": "SGD", "ExchangeId": "SGX-DT", "ExchangeSessions": [ { "EndTime": "2019-03-03T23:43:00.000000Z", "StartTime": "2019-03-01T11:05:00.000000Z", "State": "Closed" }, { "EndTime": "2019-03-04T11:05:00.000000Z", "StartTime": "2019-03-03T23:43:00.000000Z", "State": "AutomatedTrading" }, { "EndTime": "2019-03-04T23:43:00.000000Z", "StartTime": "2019-03-04T11:05:00.000000Z", "State": "Closed" }, { "EndTime": "2019-03-05T11:05:00.000000Z", "StartTime": "2019-03-04T23:43:00.000000Z", "State": "AutomatedTrading" } ], "Mic": "XSES", "Name": "Singapore Exchange Derivatives Trading Ltd.", "TimeZone": 2, "TimeZoneAbbreviation": "SGT", "TimeZoneOffset": "08:00:00" }, { "AllDay": false, "CountryCode": "CH", "Currency": "CHF", "ExchangeId": "SWX_ETF", "ExchangeSessions": [ { "EndTime": "2019-03-04T05:00:00.000000Z", "StartTime": "2019-03-01T16:35:00.000000Z", "State": "Closed" }, { "EndTime": "2019-03-04T08:00:00.000000Z", "StartTime": "2019-03-04T05:00:00.000000Z", "State": "PreTrading" }, { "EndTime": "2019-03-04T16:30:00.000000Z", "StartTime": "2019-03-04T08:00:00.000000Z", "State": "AutomatedTrading" }, { "EndTime": "2019-03-04T16:35:00.000000Z", "StartTime": "2019-03-04T16:30:00.000000Z", "State": "CallAuctionTrading" }, { "EndTime": "2019-03-05T05:00:00.000000Z", "StartTime": "2019-03-04T16:35:00.000000Z", "State": "Closed" } ], "Mic": "XSWX", "Name": "SIX Swiss Exchange (ETFs)", "TimeZone": 4, "TimeZoneAbbreviation": "CET", "TimeZoneOffset": "01:00:00" } ] }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-