CurrencyExposureSpecific¶
-
class
saxo_openapi.endpoints.portfolio.exposure.
CurrencyExposureSpecific
(params)¶ Returns a list of currencies in which there is an exposure.
-
ENDPOINT
= 'openapi/port/v1/exposure/currency/'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(params)¶ Instantiate a CurrencyExposureSpecific request.
Parameters: params (dict (optional)) – dict representing the querystring parameters >>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> params = { "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==" }
>>> r = pf.exposure.CurrencyExposureSpecific(params=params) >>> client.request(r) >>> print(json.dumps(r.response, indent=2))
Output:
[ { "Amount": 1057573.99, "Currency": "EUR" }, { "Amount": -67842.6, "Currency": "USD" }, { "Amount": -50000, "Currency": "GBP" }, { "Amount": 434195, "Currency": "DKK" } ]
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-