Beispiel #1
0
 public virtual void AdviseExcute(Dictionary <string, string> InputDataTable)
 {
     foreach (KeyValuePair <string, string> inputData in InputDataTable)
     {
         myXARealClass.SetFieldData(InBlockName, inputData.Key, inputData.Value);
     }
     myXARealClass.AdviseRealData();
 }
Beispiel #2
0
 private void 현재가요청(string code)
 {
     if (code.Substring(0, 3) == "101")
     {
         FC0.SetFieldData("InBlock", "futcode", code);
         FC0.AdviseRealData();
     }
     else
     {
         OC0.SetFieldData("InBlock", "optcode", code);
         OC0.AdviseRealData();
     }
 }
Beispiel #3
0
        private void SetAPI(KeyValuePair <string, IBlock> kv)
        {
            var real = new XARealClass
            {
                ResFileName = string.Concat(Path, kv.Key)
            };

            real.ReceiveRealData += OnReceiveRealData;

            foreach (var block in kv.Value.GetInBlock(real.GetTrCode()))
            {
                real.SetFieldData(block.Name, block.Field, block.Property);
            }

            real.AdviseRealData();
            Real[kv.Key.Split('.')[0]] = real;
        }
Beispiel #4
0
        private void 현재가요청(string code)
        {
            if (!Form1.Master주식종목.ContainsKey(code))
            {
                MessageBox.Show("현재가요청(" + code + ") : 해당코드가 Master주식종목에 등록되어있지 않습니다.");
                return;
            }
            string 소속부 = Form1.Master주식종목[code][2];

            if (소속부 == "거래소")
            {
                S3_.SetFieldData("InBlock", "shcode", code);
                S3_.AdviseRealData();
            }
            else if (소속부 == "코스닥")
            {
                K3_.SetFieldData("InBlock", "shcode", code);
                K3_.AdviseRealData();
            }
        }
Beispiel #5
0
 public void SetFieldData(string blockName, string fieldName, string value)
 {
     _xaReal.SetFieldData(blockName, fieldName, value);
 }
Beispiel #6
0
 public void AdviseWithShcode(string shcode)
 {
     _xaReal.SetFieldData("InBlock", "shcode", shcode);
     _xaReal.AdviseRealData();
 }