Currencies¶
-
class
saxo_openapi.endpoints.referencedata.currencies.
Currencies
¶ Get a list all supported currencies.
-
ENDPOINT
= 'openapi/ref/v1/currencies/'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
()¶ Instantiate a Currencies request.
>>> import json >>> import saxo_openapi >>> import saxo_openapi.endpoints.referencedata as rd >>> client = saxo_openapi.API(access_token=...) >>> r = rd.currencies.Currencies() >>> client.request(r) >>> print(json.dumps(r.response, indent=4))
{ "Data": [ { "CurrencyCode": "USD", "Decimals": 2, "Name": "US Dollar", "Symbol": "$" }, { "CurrencyCode": "GBP", "Decimals": 2, "Name": "British Pound", "Symbol": "\u00a3" }, { "CurrencyCode": "EUR", "Decimals": 2, "Name": "Euro", "Symbol": "\u20ac" }, { "CurrencyCode": "CHF", "Decimals": 2, "Name": "Swiss Franc", "Symbol": "Fr." }, { "CurrencyCode": "AUD", "Decimals": 2, "Name": "Australian Dollar", "Symbol": "$" }, { "CurrencyCode": "CAD", "Decimals": 2, "Name": "Canadian Dollar", "Symbol": "$" }, { "CurrencyCode": "NZD", "Decimals": 2, "Name": "New Zealand Dollar", "Symbol": "$" }, { "CurrencyCode": "JPY", "Decimals": 0, "Name": "Japanese Yen", "Symbol": "\u00a5" }, { "CurrencyCode": "DKK", "Decimals": 2, "Name": "Danish Krone", "Symbol": "kr." }, { "CurrencyCode": "SEK", "Decimals": 2, "Name": "Swedish Krona", "Symbol": "kr" }, { "CurrencyCode": "..." } ] }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-