static void EndLoggedIn(ReliableAsyncResult result) { _ctx.EndLogIn(result); Console.WriteLine("\r\nLogged in.\r\n"); BeginListNewsHeadlines("UK", 10); }
public void InitializeStreamingClient(ReliableAsyncResult ar) { RpcClient.EndLogIn(ar); // need to set up the serializer to be used by stream listeners StreamingClientFactory.SetSerializer(new Serializer()); StreamingClient = StreamingClientFactory.CreateStreamingClient(STREAMING_URI, RpcClient.UserName, RpcClient.Session); LogToScreen("rpc client logged in"); }
static void EndListNewsHeadlines(ReliableAsyncResult result) { var response = _ctx.News.EndListNewsHeadlinesWithSource(result); foreach (var item in response.Headlines) { Console.WriteLine("{0} {1} {2}\r\n", item.StoryId, item.Headline, item.PublishDate); } BeginLogOut(); }
public ListMarketSearchResponseDTO EndListMarketSearch(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListMarketSearchResponseDTO>(asyncResult); }
public ListSpreadMarketsResponseDTO EndListSpreadMarkets(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListSpreadMarketsResponseDTO>(asyncResult); }
public ListNewsHeadlinesResponseDTO EndListNewsHeadlines(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListNewsHeadlinesResponseDTO>(asyncResult); }
public ApiChangePasswordResponseDTO EndChangePassword(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiChangePasswordResponseDTO>(asyncResult); }
internal ApiLogOnResponseDTO EndLogOn(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiLogOnResponseDTO>(asyncResult); }
public FullMarketInformationSearchWithTagsResponseDTO EndFullSearchWithTags(ReliableAsyncResult asyncResult) { return _client.EndRequest<FullMarketInformationSearchWithTagsResponseDTO>(asyncResult); }
public ListTradeHistoryResponseDTO EndListTradeHistory(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListTradeHistoryResponseDTO>(asyncResult); }
public GetOpenPositionResponseDTO EndGetOpenPosition(ReliableAsyncResult asyncResult) { return _client.EndRequest<GetOpenPositionResponseDTO>(asyncResult); }
public ApiClientAccountMarginResponseDTO EndGetClientAccountMargin(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiClientAccountMarginResponseDTO>(asyncResult); }
public ListOpenPositionsResponseDTO EndListOpenPositions(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListOpenPositionsResponseDTO>(asyncResult); }
public ApiTradeOrderResponseDTO EndUpdateOrder(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiTradeOrderResponseDTO>(asyncResult); }
public UpdateDeleteClientPreferenceResponseDTO EndDelete(ReliableAsyncResult asyncResult) { return _client.EndRequest<UpdateDeleteClientPreferenceResponseDTO>(asyncResult); }
public ListWatchlistResponseDTO EndGetWatchlists(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListWatchlistResponseDTO>(asyncResult); }
public ApiDeleteWatchlistResponseDTO EndDeleteWatchlist(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiDeleteWatchlistResponseDTO>(asyncResult); }
public ListStopLimitOrderHistoryResponseDTO EndListStopLimitOrderHistory(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListStopLimitOrderHistoryResponseDTO>(asyncResult); }
public ListActiveOrdersResponseDTO EndListActiveOrders(ReliableAsyncResult asyncResult) { return _client.EndRequest<ListActiveOrdersResponseDTO>(asyncResult); }
public GetOrderResponseDTO EndGetOrder(ReliableAsyncResult asyncResult) { return _client.EndRequest<GetOrderResponseDTO>(asyncResult); }
internal ApiLogOffResponseDTO EndDeleteSession(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiLogOffResponseDTO>(asyncResult); }
public ApiSimulateTradeOrderResponseDTO EndSimulateTrade(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiSimulateTradeOrderResponseDTO>(asyncResult); }
public GetPriceTickResponseDTO EndGetPriceTicks(ReliableAsyncResult asyncResult) { return _client.EndRequest<GetPriceTickResponseDTO>(asyncResult); }
public AccountInformationResponseDTO EndGetClientAndTradingAccount(ReliableAsyncResult asyncResult) { return _client.EndRequest<AccountInformationResponseDTO>(asyncResult); }
public GetNewsDetailResponseDTO EndGetNewsDetail(ReliableAsyncResult asyncResult) { return _client.EndRequest<GetNewsDetailResponseDTO>(asyncResult); }
public ApiSaveAccountInformationResponseDTO EndSaveAccountInformation(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiSaveAccountInformationResponseDTO>(asyncResult); }
public GetMarketInformationResponseDTO EndGetMarketInformation(ReliableAsyncResult asyncResult) { return _client.EndRequest<GetMarketInformationResponseDTO>(asyncResult); }
public ApiLookupResponseDTO EndGetSystemLookup(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiLookupResponseDTO>(asyncResult); }
public virtual string EndRequest(ReliableAsyncResult result) { if (_disposed) { throw new ObjectDisposedException(GetType().FullName); } try { result.End(); return result.ResponseText; } #pragma warning disable 168 catch (ReliableHttpException ex) #pragma warning restore 168 { // this throw is simply to isolate defects in request implementations throw; } catch (Exception ex) { throw new DefectException("expecting only ReliableHttpException here. See inner for details", ex); } }
public ApiClientApplicationMessageTranslationResponseDTO EndGetClientApplicationMessageTranslationWithInterestingItems(ReliableAsyncResult asyncResult) { return _client.EndRequest<ApiClientApplicationMessageTranslationResponseDTO>(asyncResult); }