Пример #1
0
        /// <summary>
        /// 期货最大委托量查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFuteMax_Click(object sender, EventArgs e)
        {
            DoAccountAndCapitalManagementService.AccountAndCapitalManagementClient accountAndCapitalManagementClient = new AccountAndCapitalManagementClient();
            string a = "1";
            //long maxAccount = accountAndCapitalManagementClient.GetFutureMaxOrderAmount(out a,"23", 600,"IF0909",DoAccountAndCapitalManagementService.TypesOrderPriceType.OPTMarketPrice);
            long maxAccount = accountAndCapitalManagementClient.GetFutureMaxOrderAmount(out a, "18", 600, "IF0910", DoAccountAndCapitalManagementService.TypesOrderPriceType.OPTMarketPrice);

            //accountAndCapitalManagementClient.GetFutureMaxOrderAmount()
            maxAccount.ToString();
            MessageBox.Show("maxAccount", "期货最大委托量");
        }
Пример #2
0
 public long GetQHMaxCount(string traderId, string code, decimal price, TypesOrderPriceType orderPriceType,
                           out string errMsg)
 {
     return(accountClient.GetFutureMaxOrderAmount(out errMsg, traderId, (float)price, code, orderPriceType));
 }