![]() | Get Transaction Example |
Note: This is preliminary documentation provided only as a preview, and is subject to change. Please contact the author for pricing and licensing information.
This topic demonstrates how the details of a transaction can be retrieved.
Import the following namespaces:
using ETradeNet.Accounts; using ETradeNet.Accounts.Transactions;
Implement the following method:
async Task<IGetDetailsResponse> GetTransactionAsync(string accountId, string transactionId, IAccountsInitializer init) { using (var accounts = new AccountsService(init)) { var response = await accounts.Transactions.GetDetailsAsync(accountId, transactionId); return response; } }