예제 #1
0
        static void EndLoggedIn(ApiAsyncResult<CreateSessionResponseDTO> result)
        {
            _ctx.EndLogIn(result);
            Console.WriteLine("\r\nLogged in.\r\n");

            BeginListNewsHeadlines("UK", 10);
        }
예제 #2
0
        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();
        }
예제 #3
0
파일: Routes.cs 프로젝트: mikelear/CIAPI.CS
 public ApiTradeOrderResponseDTO EndCancelOrder(ApiAsyncResult<ApiTradeOrderResponseDTO> asyncResult)
 {
     return _client.EndRequest(asyncResult);
 }
예제 #4
0
        public bool EndLogOut(ApiAsyncResult<SessionDeletionResponseDTO> asyncResult)
        {
            SessionDeletionResponseDTO response = EndRequest(asyncResult);

            if (response.LoggedOut)
            {
                SessionId = null;
            }

            return response.LoggedOut;
        }
예제 #5
0
 public ErrorResponseDTO EndGenerateException(ApiAsyncResult<ErrorResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #6
0
 public ListStopLimitOrderHistoryResponseDTO EndListStopLimitOrderHistory(ApiAsyncResult<ListStopLimitOrderHistoryResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #7
0
 public ListActiveStopLimitOrderResponseDTO EndListActiveStopLimitOrders(ApiAsyncResult<ListActiveStopLimitOrderResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #8
0
 public ListOrdersResponseDTO EndListOrders(ApiAsyncResult<ListOrdersResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #9
0
 public ListSpreadMarketsResponseDTO EndListSpreadMarkets(ApiAsyncResult<ListSpreadMarketsResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #10
0
 public ApiLogOffResponseDTO EndDeleteSession(ApiAsyncResult<ApiLogOffResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #11
0
 public AssociatedUsersResponse EndGetAssociatedUsers(ApiAsyncResult<AssociatedUsersResponse> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #12
0
 public SitesResponse EndGetSites(ApiAsyncResult<SitesResponse> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #13
0
 public UsersResponse EndGetUserById(ApiAsyncResult<UsersResponse> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #14
0
 static void EndLoggedOut(ApiAsyncResult<SessionDeletionResponseDTO> result)
 {
     _ctx.EndLogOut(result);
     Console.WriteLine("\r\nLogged out.\r\n");
     _gate.Set();
 }
예제 #15
0
 public ListNewsHeadlinesResponseDTO EndListNewsHeadlines(ApiAsyncResult<ListNewsHeadlinesResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #16
0
 public AccountInformationResponseDTO EndGetClientAndTradingAccount(ApiAsyncResult<AccountInformationResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #17
0
 public GetNewsDetailResponseDTO EndGetNewsDetail(ApiAsyncResult<GetNewsDetailResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #18
0
 public GetMarketInformationResponseDTO EndGetMarketInformation(ApiAsyncResult<GetMarketInformationResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #19
0
 public CreateSessionResponseDTO EndCreateSession(ApiAsyncResult<CreateSessionResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #20
0
 public GetOpenPositionResponseDTO EndGetOpenPosition(ApiAsyncResult<GetOpenPositionResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #21
0
 public ListOpenPositionsResponseDTO EndListOpenPositions(ApiAsyncResult<ListOpenPositionsResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #22
0
 public GetOrderResponseDTO EndGetOrder(ApiAsyncResult<GetOrderResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #23
0
 public ListTradeHistoryResponseDTO EndListTradeHistory(ApiAsyncResult<ListTradeHistoryResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #24
0
 public ListMarketInformationSearchResponseDTO EndListMarketInformationSearch(ApiAsyncResult<ListMarketInformationSearchResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #25
0
 public ApiTradeOrderResponseDTO EndTrade(ApiAsyncResult<ApiTradeOrderResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #26
0
 public ApiLogOnResponseDTO EndLogOn(ApiAsyncResult<ApiLogOnResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #27
0
 public SessionDeletionResponseDTO EndDeleteSession(ApiAsyncResult<SessionDeletionResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #28
0
 public GetPriceTickResponseDTO EndGetPriceTicks(ApiAsyncResult<GetPriceTickResponseDTO> asyncResult)
 {
     return EndRequest(asyncResult);
 }
예제 #29
0
 public void EndLogIn(ApiAsyncResult<CreateSessionResponseDTO> asyncResult)
 {
     CreateSessionResponseDTO response = EndRequest(asyncResult);
     SessionId = response.Session;
 }
예제 #30
0
파일: Routes.cs 프로젝트: mikelear/CIAPI.CS
 internal ApiLogOnResponseDTO EndLogOn(ApiAsyncResult<ApiLogOnResponseDTO> asyncResult)
 {
     return _client.EndRequest(asyncResult);
 }