通达信L2行情接口, 包括了普通行情接口所有功能,并新增了十档行情,逐笔成交,买卖队列和深圳逐笔委托(上海证券交易所不对外提供逐笔委托数据)这四个新功能。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace TdxHqApiDemo
{
class Program
{
static void Main(string[] args)
{
//DLL是32位的,因此必须把C#工程生成的目标平台从Any CPU改为X86,才能调用DLL;
//必须把TdxHqApi.dll复制到工程Debug或Release目录下;
StringBuilder Result = new StringBuilder(1024 * 1024);
StringBuilder ErrInfo = new StringBuilder(256);

bool bool1 = TdxL2Hq_Connect(“61.152.107.173”, 7707, Result, ErrInfo);
if (!bool1)
{
Console.WriteLine(ErrInfo.ToString());
return;
}
Console.WriteLi