AccountDetails¶
-
class
saxo_openapi.endpoints.portfolio.accounts.
AccountDetails
(AccountKey)¶ Get details about a single account.
-
ENDPOINT
= 'openapi/port/v1/accounts/{AccountKey}'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(AccountKey)¶ Instantiate an AccountDetails request.
Parameters: AccountKey (string (required)) – Account key to perform the request on. >>> import saxo_openapi >>> import saxo_openapi.endpoints.portfolio as pf >>> import json >>> client = saxo_openapi.API(access_token=...) >>> AccountKey = 'f4xZWiYL6W1nMKpygBLLA==' >>> r = pf.accounts.AccountDetails(AccountKey=AccountKey) >>> rv = client.request(r) >>> print(json.dumps(rv, indent=4))
Output:
{ "CreationDate": "2019-02-02T10:47:42.313000Z", "CanUseCashPositionsAsMarginCollateral": true, "AccountType": "Normal", "CurrencyDecimals": 2, "IsCurrencyConversionAtSettlementTime": true, "ClientKey": "Cf4xZWiYL6W1nMKpygBLLA==", "IsShareable": false, "IndividualMargining": false, "DirectMarketAccess": false, "LegalAssetTypes": [ "FxSpot", "FxForwards", "FxVanillaOption", "FxKnockInOption", "FxKnockOutOption", "FxOneTouchOption", "FxNoTouchOption" ], "AccountGroupKey": "Cf4xZWiYL6W1nMKpygBLLA==", "Active": true, "Sharing": [ "NoSharing" ], "IsMarginTradingAllowed": true, "AccountKey": "Cf4xZWiYL6W1nMKpygBLLA==", "SupportsAccountValueProtectionLimit": false, "UseCashPositionsAsMarginCollateral": true, "ClientId": "9226397", "IsTrialAccount": true, "AccountId": "9226397", "Currency": "EUR" }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-