static void EndLoggedIn(ApiAsyncResult<CreateSessionResponseDTO> result) { _ctx.EndLogIn(result); Console.WriteLine("\r\nLogged in.\r\n"); BeginListNewsHeadlines("UK", 10); }
static void EndListNewsHeadlines(ApiAsyncResult<ListNewsHeadlinesResponseDTO> result) { var response = _ctx.EndListNewsHeadlines(result); foreach (var item in response.Headlines) { Console.WriteLine("{0} {1} {2}\r\n", item.StoryId, item.Headline, item.PublishDate); } BeginLogOut(); }
public ApiTradeOrderResponseDTO EndCancelOrder(ApiAsyncResult<ApiTradeOrderResponseDTO> asyncResult) { return _client.EndRequest(asyncResult); }
public bool EndLogOut(ApiAsyncResult<SessionDeletionResponseDTO> asyncResult) { SessionDeletionResponseDTO response = EndRequest(asyncResult); if (response.LoggedOut) { SessionId = null; } return response.LoggedOut; }
public ErrorResponseDTO EndGenerateException(ApiAsyncResult<ErrorResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListStopLimitOrderHistoryResponseDTO EndListStopLimitOrderHistory(ApiAsyncResult<ListStopLimitOrderHistoryResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListActiveStopLimitOrderResponseDTO EndListActiveStopLimitOrders(ApiAsyncResult<ListActiveStopLimitOrderResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListOrdersResponseDTO EndListOrders(ApiAsyncResult<ListOrdersResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListSpreadMarketsResponseDTO EndListSpreadMarkets(ApiAsyncResult<ListSpreadMarketsResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ApiLogOffResponseDTO EndDeleteSession(ApiAsyncResult<ApiLogOffResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public AssociatedUsersResponse EndGetAssociatedUsers(ApiAsyncResult<AssociatedUsersResponse> asyncResult) { return EndRequest(asyncResult); }
public SitesResponse EndGetSites(ApiAsyncResult<SitesResponse> asyncResult) { return EndRequest(asyncResult); }
public UsersResponse EndGetUserById(ApiAsyncResult<UsersResponse> asyncResult) { return EndRequest(asyncResult); }
static void EndLoggedOut(ApiAsyncResult<SessionDeletionResponseDTO> result) { _ctx.EndLogOut(result); Console.WriteLine("\r\nLogged out.\r\n"); _gate.Set(); }
public ListNewsHeadlinesResponseDTO EndListNewsHeadlines(ApiAsyncResult<ListNewsHeadlinesResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public AccountInformationResponseDTO EndGetClientAndTradingAccount(ApiAsyncResult<AccountInformationResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public GetNewsDetailResponseDTO EndGetNewsDetail(ApiAsyncResult<GetNewsDetailResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public GetMarketInformationResponseDTO EndGetMarketInformation(ApiAsyncResult<GetMarketInformationResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public CreateSessionResponseDTO EndCreateSession(ApiAsyncResult<CreateSessionResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public GetOpenPositionResponseDTO EndGetOpenPosition(ApiAsyncResult<GetOpenPositionResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListOpenPositionsResponseDTO EndListOpenPositions(ApiAsyncResult<ListOpenPositionsResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public GetOrderResponseDTO EndGetOrder(ApiAsyncResult<GetOrderResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListTradeHistoryResponseDTO EndListTradeHistory(ApiAsyncResult<ListTradeHistoryResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ListMarketInformationSearchResponseDTO EndListMarketInformationSearch(ApiAsyncResult<ListMarketInformationSearchResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ApiTradeOrderResponseDTO EndTrade(ApiAsyncResult<ApiTradeOrderResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public ApiLogOnResponseDTO EndLogOn(ApiAsyncResult<ApiLogOnResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public SessionDeletionResponseDTO EndDeleteSession(ApiAsyncResult<SessionDeletionResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public GetPriceTickResponseDTO EndGetPriceTicks(ApiAsyncResult<GetPriceTickResponseDTO> asyncResult) { return EndRequest(asyncResult); }
public void EndLogIn(ApiAsyncResult<CreateSessionResponseDTO> asyncResult) { CreateSessionResponseDTO response = EndRequest(asyncResult); SessionId = response.Session; }
internal ApiLogOnResponseDTO EndLogOn(ApiAsyncResult<ApiLogOnResponseDTO> asyncResult) { return _client.EndRequest(asyncResult); }