![]() | Delete Alert 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 an alert can be deleted.
Import the following namespaces:
using ETradeNet.Accounts; using ETradeNet.Accounts.Alerts; using ETradeNet.Accounts.Alerts.Data;
Implement the following method:
async Task<bool> DeleteAlertAsync(string alertId, IAccountsInitializer init) { using (var accounts = new AccountsService(init)) { var response = await accounts.Alerts.DeleteAsync(alertId, null); return response.Result == Result.Success; } }