コード例 #1
0
        /// <summary>
        /// Cancels an outstanding order for the specified symbol
        /// </summary>
        /// <param name="symbol">The symbol to cancel the order for</param>
        public void CancelOrder(string symbol)
        {
            var response = Client.DownloadAllOrders().Result;
            var order    = response.Where((a) => { return(a.InstrumentId.Equals(Instruments.GetSymbol <IList <OrderSnapshot> >(a.InstrumentId, response))); });

            if (order.Count() > 0)
            {
                Client.CancelOrder(order.First().CancelUrl);
            }
        }