当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 24

Alex / hf_trade_terminal
暂停

forked from 海风 / hf_trade_terminal 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Terminal.cs 854 Bytes
一键复制 编辑 原始数据 按行查看 历史
海风 提交于 2018-07-12 20:16 . 更新:采用新版20180109版CTP接口
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HaiFeng
{
partial class HFForm
{
void LogFinish()
{
if (File.Exists("沪深A股.txt"))
{
foreach (var line in (File.ReadAllLines("沪深A股.txt")))
{
if (char.IsDigit(line[0]))
//this.comboBoxInstrument.Items.Add(line.Split('\t')[0]);
{
_t.DicInstrumentField[line.Split('\t')[0]] = new InstrumentField
{
InstrumentID = line.Split('\t')[0],
//ExchangeID = "sh",
PriceTick = 0.01,
ProductClass = ProductClassType.SpotOption,
VolumeMultiple = 1,
MaxOrderVolume = 1000000000,
//ProductID
};
}
}
this.comboBoxInstrument.Items.AddRange(_t.DicInstrumentField.Keys.ToArray());
}
}
}
}
C#
1
https://gitee.com/alexford/hf_trade_terminal.git
git@gitee.com:alexford/hf_trade_terminal.git
alexford
hf_trade_terminal
hf_trade_terminal
master

搜索帮助