Beispiel #1
0
 /// <remarks/>
 public void ListOrdersChangedSinceAsync(ListOrdersChangedSinceRequest listOrdersChangedSinceRequest, object userState) {
     if ((this.ListOrdersChangedSinceOperationCompleted == null)) {
         this.ListOrdersChangedSinceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnListOrdersChangedSinceOperationCompleted);
     }
     this.InvokeAsync("ListOrdersChangedSince", new object[] {
                 listOrdersChangedSinceRequest}, this.ListOrdersChangedSinceOperationCompleted, userState);
 }
Beispiel #2
0
 /// <remarks/>
 public void ListOrdersChangedSinceAsync(ListOrdersChangedSinceRequest listOrdersChangedSinceRequest) {
     this.ListOrdersChangedSinceAsync(listOrdersChangedSinceRequest, null);
 }
Beispiel #3
0
 public ListOrdersChangedSinceResponse ListOrdersChangedSince(ListOrdersChangedSinceRequest listOrdersChangedSinceRequest) {
     object[] results = this.Invoke("ListOrdersChangedSince", new object[] {
                 listOrdersChangedSinceRequest});
     return ((ListOrdersChangedSinceResponse)(results[0]));
 }
Beispiel #4
0
 /// <remarks/>
 public System.IAsyncResult BeginListOrdersChangedSince(ListOrdersChangedSinceRequest listOrdersChangedSinceRequest, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("ListOrdersChangedSince", new object[] {
                 listOrdersChangedSinceRequest}, callback, asyncState);
 }
Beispiel #5
0
        // Todo: need to add code to handle looping through multiple calls to API.
        public Bet[] ListOrdersChangedSince(long seqNo)
        {
            ListOrdersChangedSinceRequest request = new ListOrdersChangedSinceRequest();
            request.SequenceNumber = seqNo;

            ListOrdersChangedSinceResponse response = _proxy.ListOrdersChangedSince(request);
            if (response.ReturnStatus.Code != 0)
                throw new Exception(response.ReturnStatus.Description);

            Bet[] betsToReturn = OrderConverter.ConvertOrderCollection(response.Orders);
            return betsToReturn;
        }