Method GetLatestExchangeAccountInformation
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1
- Assembly
- WhalesSecret.TradeScriptLib.dll
GetLatestExchangeAccountInformation(string?)
Gets the latest exchange account information.
ExchangeAccountInformation GetLatestExchangeAccountInformation(string? subAccount = null)
Parameters
subAccount
stringName of a sub-account, or
null
for the primary trading account of the exchange or in case the exchange does not support sub-accounts.
Returns
- ExchangeAccountInformation
Latest exchange account information.
Exceptions
- NotFoundException
Thrown if the method is called after the exchange account subscription was disposed.
- MalfunctionException
Thrown if an internal error occurred.
- NotAvailableException
Thrown if the method is called before the initialization is completed.
- OperationCanceledException
Thrown if the operation was cancelled including cancellation due to shutdown or object disposal.
- OperationFailedException
Thrown if the request failed for an unknown reason with an unknown outcome.