\ No newline at end of file
diff --git a/common/www/EnumFun.php b/common/www/EnumFun.php
new file mode 100644
index 0000000..fd1a1c8
--- /dev/null
+++ b/common/www/EnumFun.php
@@ -0,0 +1,36 @@
+
\ No newline at end of file
diff --git a/common/www/Home.php b/common/www/Home.php
new file mode 100644
index 0000000..567de65
--- /dev/null
+++ b/common/www/Home.php
@@ -0,0 +1,36 @@
+
+
+
+
+主页
+
+
+当前用户: 当前IP: 退出 关于我们
+
+用户信息
+查看/修改个人信息,修改密码
+
+产品信息
+查看产品列表,下载与本授权系统配套的DLL
+
+授权信息
+查看授权列表,添加授权
+= 2) {?>
+
+审核管理
+审核用户
+
+
+
+管理员专区
+审核用户
+查看审核人员列表
+注册用户
+切换用户ID
+
+
+
\ No newline at end of file
diff --git a/common/www/JSON.php b/common/www/JSON.php
new file mode 100644
index 0000000..e196fa5
--- /dev/null
+++ b/common/www/JSON.php
@@ -0,0 +1,48 @@
+ 1000) {
+ die('possible deep recursion attack');
+ }
+ foreach ($array as $key => $value) {
+ if (is_array($value)) {
+ arrayRecursive($array[$key], $function, $apply_to_keys_also);
+ } else {
+ $array[$key] = $function($value);
+ }
+
+ if ($apply_to_keys_also && is_string($key)) {
+ $new_key = $function($key);
+ if ($new_key != $key) {
+ $array[$new_key] = $array[$key];
+ unset($array[$key]);
+ }
+ }
+ }
+ $recursive_counter--;
+}
+
+/**************************************************************
+ *
+ * 将数组转换为JSON字符串(兼容中文)
+ * @param array $array 要转换的数组
+ * @return string 转换得到的json字符串
+ * @access public
+ *
+ *************************************************************/
+function JSON($array) {
+ arrayRecursive($array, 'urlencode', true);
+ $json = json_encode($array);
+ return urldecode($json);
+}
+?>
\ No newline at end of file
diff --git a/common/www/Join.php b/common/www/Join.php
new file mode 100644
index 0000000..8735dbe
--- /dev/null
+++ b/common/www/Join.php
@@ -0,0 +1,67 @@
+16)
+{
+ $_SESSION['Error'] = '用户名长度不对';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+if($_POST['Password'] != $_POST['Password2'])
+{
+ $_SESSION['Error'] = '两次密码不同!';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+// 检查用户是否已经存在,因为在有些MDB2上报的错太不靠谱
+$query = 'SELECT * FROM UserInfo WHERE UserID = '
+ .$mdb2->quote($_POST['UserID'],"text");
+//echo $query;
+$result = $mdb2->query($query);
+
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+
+$row = $result->fetchRow();
+
+if(!empty($row))
+{
+ $_SESSION['Error'] = '用户名已经存在';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+// 插入用户
+$query =
+ 'INSERT INTO UserInfo(UserID,Password,'
+ .'RegisterTime,IP) '
+ .' VALUES('
+ .$mdb2->quote($_POST['UserID'],"text").','
+ .$mdb2->quote(md5($_POST['Password']),"text").','
+ .'NOW(),'
+ .$mdb2->quote($_SERVER['REMOTE_ADDR'],"text").')';
+//echo $query;
+$result = $mdb2->query($query);
+
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+
+$_SESSION['Error'] = '注册成功,请用新账号登录!';
+header("Location:Signin.php");
+return;
+?>
\ No newline at end of file
diff --git a/common/www/License.exe b/common/www/License.exe
new file mode 100644
index 0000000..5924d59
Binary files /dev/null and b/common/www/License.exe differ
diff --git a/common/www/LicenseInfoAction.php b/common/www/LicenseInfoAction.php
new file mode 100644
index 0000000..b38b38f
--- /dev/null
+++ b/common/www/LicenseInfoAction.php
@@ -0,0 +1,172 @@
+quote($_GET['ID'],"integer")
+ .' AND Status <4 ';
+
+ // 只能删除自己的吗?管理员可以更新所有的
+ if($_SESSION['Right'] <= 2)
+ {
+ $query = $query.' AND User1 = '.$mdb2->quote($_SESSION['UserID'],"text");
+ }
+
+ $result = $mdb2->query($query);
+
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+ }
+}
+
+if(get_magic_quotes_gpc()){
+ function stripslashes_deep($value){
+ $value=is_array($value)?array_map('stripslashes_deep',$value):stripslashes($value);
+ return $value;
+ }
+ $_POST=array_map('stripslashes_deep',$_POST);
+ $_GET=array_map('stripslashes_deep',$_GET);
+ $_COOKIE=array_map('stripslashes_deep',$_COOKIE);
+ $_REQUEST=array_map('stripslashes_deep',$_REQUEST);
+}
+
+$sampleData = array(
+ 'License' => array(
+ 'ExpireDate' => $_POST['ExpireDate'],
+ 'Trial' => $_POST['Trial'],
+ 'MachineID' => $_POST['MachineID'],
+ 'Product' => $_POST['Product'],
+ ),
+ 'User' => array(
+ 'Account' => $_POST['Account'],
+ 'UserName' => $_POST['UserName'],
+ 'Info' => $_POST['Info'],
+ ));
+
+$content1 = json_encode($sampleData);
+
+// 接收各种提交,进行处理
+
+// 1.用户新建一个授权
+// 2.用户编辑授权
+// 3.审核员审核左边
+// 4.审核员审核右边
+
+if(isset($_POST['Create']))
+{
+ $query = "SELECT COUNT(*) AS NUM_A FROM LicenceInfo WHERE "
+ ." User1 = ".$mdb2->quote($_SESSION['UserID'],"text")
+ ." AND Status <3 ";
+ //echo $query;
+ $result = $mdb2->query($query);
+ $row = $result->fetchRow();
+ //print_r($row);
+ //echo $row[strtolower('NUM_A')];
+ $count = 5;
+ if($row[strtolower('NUM_A')]>$count)
+ {
+ echo "非审核的授权超过 $count 个,请等部分批准后再新申请";
+ return;
+ }
+ // 插入用户
+ $query = 'INSERT INTO LicenceInfo('
+ .'User1,Time1,Content1,'
+ .'Product,Status,Remark) '
+ .' VALUES('
+ .$mdb2->quote($_SESSION['UserID'],"text").','
+ .'NOW(),'
+ .$mdb2->quote($content1,"text").','
+ .$mdb2->quote($_POST['Product'],"text").','
+ .$mdb2->quote("1","text").','
+ .$mdb2->quote($_POST['Remark'],"text")
+ .')';
+
+ $result = $mdb2->query($query);
+
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+ header("Location:LicenseInfoListView.php");
+ return;
+}
+
+if(isset($_POST['Update']))
+{
+ $query = 'UPDATE LicenceInfo SET '
+ .' Time1 = NOW(),Content1 = '
+ .$mdb2->quote($content1,"text")
+ .' , Remark = '
+ .$mdb2->quote($_POST['Remark'],"text")
+ .' , Status = 1'
+ .' WHERE ID = '
+ .$mdb2->quote($_GET['ID'],"integer");
+
+ // 只能更新自己的吗?管理员可以更新所有的
+ if($_SESSION['Right'] <= 2)
+ {
+ $query = $query.' AND User1 = '.$mdb2->quote($_SESSION['UserID'],"text");
+ }
+
+ $result = $mdb2->query($query);
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+if(isset($_POST['Review_Left'])||isset($_POST['Review_Right']))
+{
+ if(in_array($_POST['Product'],$_SESSION['Products'],true))
+ {
+
+ }
+ else
+ {
+ if($_SESSION['Right'] > 2)
+ {
+ }
+ else
+ {
+ echo "您没有权限审核此授权信息";
+ return;
+ }
+ }
+
+ $query = 'UPDATE LicenceInfo SET User2 = '
+ .$mdb2->quote($_SESSION['UserID'],"text")
+ .' , Time2 = NOW(),Content2 = '
+ .$mdb2->quote($content1,"text")
+ .' , Status = '
+ .$mdb2->quote($_POST['Status'],"text")
+ .' , Remark = '
+ .$mdb2->quote($_POST['Remark'],"text")
+ .' WHERE ID = '
+ .$mdb2->quote($_GET['ID'],"integer")
+ .' AND Product = '
+ .$mdb2->quote($_POST['Product'],"text")
+ ;
+
+ $result = $mdb2->query($query);
+
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+?>
\ No newline at end of file
diff --git a/common/www/LicenseInfoAdd.php b/common/www/LicenseInfoAdd.php
new file mode 100644
index 0000000..937f84c
--- /dev/null
+++ b/common/www/LicenseInfoAdd.php
@@ -0,0 +1,57 @@
+quote($_SESSION['UserID'],"text")
+ ." AND Status <3 ";
+//echo $query;
+$result = $mdb2->query($query);
+$row = $result->fetchRow();
+//print_r($row);
+//echo $row[strtolower('NUM_A')];
+if($row[strtolower('NUM_A')]>$PendingLicenseCount)
+{
+ echo "未审核的授权超过 $PendingLicenseCount 个,请等部分批准后再新申请";
+ return;
+}
+
+$result = $mdb2->query(
+ 'SELECT * FROM ProductInfo ');
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+?>
+
+
+
+申请授权
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/www/LicenseInfoGenerate.php b/common/www/LicenseInfoGenerate.php
new file mode 100644
index 0000000..79a13f2
--- /dev/null
+++ b/common/www/LicenseInfoGenerate.php
@@ -0,0 +1,155 @@
+query(
+ 'SELECT * FROM LicenceInfo WHERE '
+ ." ID = "
+ .$mdb2->quote($_GET['ID'],"integer")
+ );
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+$row = $result->fetchRow();
+
+$product = $row[strtolower('Product')];
+
+if(in_array($product,$_SESSION['Products'],true))
+{
+}
+else
+{
+ if($_SESSION['Right'] > 2)
+ {
+ }
+ else if($_SESSION['UserID'] == $row[strtolower('User1')])
+ {
+ }
+ else
+ {
+ echo "您没有下载权限";
+ return;
+ }
+}
+
+if($row[strtolower('Status')]<3)
+{
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+$content2 = strval($row[strtolower('Content2')]);
+
+$path = "temp";
+
+if(!file_exists($path))
+{
+ mkdir($path);
+}
+
+$result = $mdb2->query(
+ 'SELECT * FROM UserInfo '
+ .' WHERE UserID = '
+ .$mdb2->quote($_SESSION['UserID'],"text")
+ );
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+$row2 = $result->fetchRow();
+
+if(!empty($row2[strtolower("SessionID")]))
+{
+ if(session_id() != $row2[strtolower("SessionID")])
+ {
+ $path3 = $path."/".$row2[strtolower("SessionID")];
+ my_del_dir($path3);
+ }
+}
+
+$result = $mdb2->query(
+ 'UPDATE UserInfo SET SessionID = '
+ .$mdb2->quote(session_id(),"text")
+ .' WHERE UserID = '
+ .$mdb2->quote($_SESSION['UserID'],"text")
+ );
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+$path = $path."/".session_id();
+
+if(!file_exists($path))
+{
+ mkdir($path);
+}
+$Product = $row[strtolower("Product")];
+$path1 = "$path/$Product.License";
+$path2 = "$path/$Product.Signature";
+
+?>
+
+
+授权生成
+
+
+";
+
+ $cmd = "cscript.exe $VbsPath \"$LicensePath\"";
+ $ret = exec($cmd);
+ //echo $ret;
+ if("OK" == $ret)
+ {
+ echo "编码转换成功
";
+ }
+ else
+ {
+ echo "编码转换失败
";
+ return;
+ }
+
+ echo "下载License文件,请鼠标右键->链接另存为
";
+
+ $PrivateKeyPath = "$PrivateKeyDir\\$Product\\$Product.PrivateKey";
+
+ $cmd = "$ExePath --License \"$LicensePath\" --PrivateKey \"$PrivateKeyPath\" ";
+ $ret = exec($cmd);
+ // 判断是否执行成功
+ if("OK" == $ret)
+ {
+ echo "生成签名文件成功
";
+ echo "下载Signature文件,请鼠标右键->链接另存为
";
+
+ // 更新下载状态
+ $result = $mdb2->query(
+ 'UPDATE LicenceInfo SET Status = 4'
+ .' WHERE ID = '
+ .$mdb2->quote($_GET['ID'],"integer")
+ );
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+ }
+ else
+ {
+ echo "生成签名文件失败
";
+ }
+}
+else
+{
+ echo "生成License失败
";
+}
+
+
+
+?>
+请将License文件和Signature文件放到与dll同目录下
+
+
\ No newline at end of file
diff --git a/common/www/LicenseInfoListView.php b/common/www/LicenseInfoListView.php
new file mode 100644
index 0000000..2f013f2
--- /dev/null
+++ b/common/www/LicenseInfoListView.php
@@ -0,0 +1,70 @@
+query(
+ 'SELECT * FROM LicenceInfo WHERE User1 = '
+ .$mdb2->quote($_SESSION['UserID'],"text")
+ ." ORDER BY ID DESC"
+ );
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+?>
+
+
+授权信息列表
+
+
+
+申请新授权
+
+
+
+ | ID |
+ 申请人员 |
+ 申请时间 |
+ 审核人员 |
+ 审核时间 |
+ 产品 |
+ 状态 |
+ 备注 |
+ 详情 |
+ 删除 |
+
+ fetchRow())
+{
+ //$content1 = strval($row[strtolower('Content1')]);
+ //$content2 = strval($row[strtolower('Content2')]);
+ $product = $row[strtolower('Product')];
+ $status = $row[strtolower('Status')];
+ echo "";
+ echo "| ".$row[strtolower('ID')]." | ";
+ echo "".$row[strtolower('User1')]." | ";
+ echo "".$row[strtolower('Time1')]." | ";
+ echo "".$row[strtolower('User2')]." | ";
+ echo "".$row[strtolower('Time2')]." | ";
+ echo "".$product." | ";
+ echo "".EnumStatusToString($status)." | ";
+ echo "".$row[strtolower('Remark')]." | ";
+ echo "查看或下载 | ";
+ if($status<4)
+ {
+ echo "删除 | ";
+ }
+ else
+ {
+ echo " | ";
+ }
+
+ echo "
";
+}
+?>
+
+
+
+
\ No newline at end of file
diff --git a/common/www/LicenseInfoListView2.php b/common/www/LicenseInfoListView2.php
new file mode 100644
index 0000000..9b849f1
--- /dev/null
+++ b/common/www/LicenseInfoListView2.php
@@ -0,0 +1,108 @@
+query(
+ 'SELECT * FROM ProductInfo ');
+if (PEAR::isError($result2)) {
+ die("{'Error':'".$result2->getMessage()."'}");
+}
+
+$query = "SELECT * FROM LicenceInfo WHERE 1=1 ";
+if(!empty($_POST['Product']))
+{
+ $query = $query." AND Product = ".$mdb2->quote($_POST['Product'],"text");
+}
+if(!empty($_POST['Status']))
+{
+ $query = $query." AND Status = ".$mdb2->quote($_POST['Status'],"text");
+}
+if(!empty($_POST['User1']))
+{
+ $query = $query." AND User1 = ".$mdb2->quote($_POST['User1'],"text");
+}
+if(!empty($_POST['User2']))
+{
+ $query = $query." AND User2 = ".$mdb2->quote($_POST['User2'],"text");
+}
+$query = $query." ORDER BY ID DESC";
+
+$result = $mdb2->query($query);
+
+?>
+
+
+授权信息列表
+
+
+
+您有以下产品的审核权限:
+
+
+
+
+ | ID |
+ 申请人员 |
+ 申请时间 |
+ 审核人员 |
+ 审核时间 |
+ 产品 |
+ 状态 |
+ 备注 |
+ 详情 |
+ 审核 |
+
+ fetchRow())
+{
+ if(in_array($product,$_SESSION['Products'],true))
+ {
+ $product = $row[strtolower('Product')];
+ $status = $row[strtolower('Status')];
+ echo "";
+ echo "| ".$row[strtolower('ID')]." | ";
+ echo "".$row[strtolower('User1')]." | ";
+ echo "".$row[strtolower('Time1')]." | ";
+ echo "".$row[strtolower('User2')]." | ";
+ echo "".$row[strtolower('Time2')]." | ";;
+ echo "".$product." | ";
+ echo "".EnumStatusToString($status)." | ";
+ echo "".$row[strtolower('Remark')]." | ";
+ echo "查看或下载 | ";
+ echo "审核 | ";
+ echo "
";
+ }
+}
+?>
+
+
+
+
\ No newline at end of file
diff --git a/common/www/LicenseInfoListView99.php b/common/www/LicenseInfoListView99.php
new file mode 100644
index 0000000..b135144
--- /dev/null
+++ b/common/www/LicenseInfoListView99.php
@@ -0,0 +1,123 @@
+query(
+ 'SELECT * FROM ProductInfo ');
+if (PEAR::isError($result2)) {
+ die("{'Error':'".$result2->getMessage()."'}");
+}
+
+$query = "SELECT * FROM LicenceInfo WHERE 1=1 ";
+if(!empty($_POST['Product']))
+{
+ $query = $query." AND Product = ".$mdb2->quote($_POST['Product'],"text");
+}
+if(!empty($_POST['Status']))
+{
+ $query = $query." AND Status = ".$mdb2->quote($_POST['Status'],"text");
+}
+if(!empty($_POST['User1']))
+{
+ $query = $query." AND User1 = ".$mdb2->quote($_POST['User1'],"text");
+}
+if(!empty($_POST['User2']))
+{
+ $query = $query." AND User2 = ".$mdb2->quote($_POST['User2'],"text");
+}
+// 如果是管理员,是可以看到所有的
+if($_SESSION['Right']<=1)
+{
+ $query = $query." AND User1 = ".$mdb2->quote($_SESSION['UserID'],"text");
+}
+$query = $query." ORDER BY ID DESC";
+
+// 如果是审核员是可以看到自己能审核的
+
+$result = $mdb2->query($query);
+?>
+
+
+授权信息列表
+
+
+
+您有以下产品的审核权限:
+
+
+
+
+ | ID |
+ 申请人员 |
+ 申请时间 |
+ 审核人员 |
+ 审核时间 |
+ 产品 |
+ 状态 |
+ 备注 |
+ 详情 |
+ 审核 |
+ 删除 |
+
+ fetchRow())
+{
+ //$content1 = strval($row[strtolower('Content1')]);
+ //$content2 = strval($row[strtolower('Content2')]);
+ $product = $row[strtolower('Product')];
+ $status = $row[strtolower('Status')];
+ echo "";
+ echo "| ".$row[strtolower('ID')]." | ";
+ echo "".$row[strtolower('User1')]." | ";
+ echo "".$row[strtolower('Time1')]." | ";
+ echo "".$row[strtolower('User2')]." | ";
+ echo "".$row[strtolower('Time2')]." | ";;
+ echo "".$product." | ";
+ echo "".EnumStatusToString($status)." | ";
+ echo "".$row[strtolower('Remark')]." | ";
+ echo "查看或下载 | ";
+ echo "审核 | ";
+ if($status<4)
+ {
+ echo "删除 | ";
+ }
+ else
+ {
+ echo " | ";
+ }
+
+ echo "
";
+}
+?>
+
+
+
+
\ No newline at end of file
diff --git a/common/www/LicenseInfoReview.php b/common/www/LicenseInfoReview.php
new file mode 100644
index 0000000..0576258
--- /dev/null
+++ b/common/www/LicenseInfoReview.php
@@ -0,0 +1,120 @@
+query(
+ 'SELECT * FROM LicenceInfo WHERE '
+ ." ID = "
+ .$mdb2->quote($_GET['ID'],"integer")
+ );
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+$row = $result->fetchRow();
+
+$product = $row[strtolower('Product')];
+
+$content1 = strval($row[strtolower('Content1')]);
+$content2 = strval($row[strtolower('Content2')]);
+
+$json_content = json_decode($content1,true);
+$json_content2 = json_decode($content2,true);
+
+if(!empty($content2))
+ $json_content = $json_content2;
+?>
+
+
+
+授权审核
+
+
+ 2)
+ {
+ // 管理员是有权限审核的
+ }
+ else
+ {
+ echo "您没有权限审核此授权信息";
+ return;
+ }
+}
+?>
+
+
+ | ID |
+ |
+ 产品 |
+ |
+
+
+ | 申请人员 |
+ |
+ 审核人员 |
+ |
+
+
+ | 申请时间 |
+ |
+ 审核时间 |
+ |
+
+
+ | 申请内容 |
+ |
+ 审核内容 |
+ |
+
+
+ | 状态 |
+ |
+ 备注 |
+ |
+
+
+
+";
+echo date(DATE_RFC822,time());
+echo "
";*/
+// 注意时区问题
+$t = time()-strtotime($row[strtolower('Time2')]);
+
+if(
+($row[strtolower('Status')]<4) // 没有下载的可以直接审核
+||($row[strtolower('Status')]==4 && $t<$ReviewTimeLimit2) // 已经下载的一定时间内可以再审核
+||($_SESSION['Right']==99&& $t<$ReviewTimeLimit99) // 管理员一定时间内可以再审核
+)
+{?>
+
+
+
+
+
\ No newline at end of file
diff --git a/common/www/LicenseInfoView.php b/common/www/LicenseInfoView.php
new file mode 100644
index 0000000..8cf82b4
--- /dev/null
+++ b/common/www/LicenseInfoView.php
@@ -0,0 +1,114 @@
+query(
+ 'SELECT * FROM LicenceInfo WHERE '
+ ." ID = "
+ .$mdb2->quote($_GET['ID'],"integer")
+ );
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+$row = $result->fetchRow();
+
+$product = $row[strtolower('Product')];
+
+if(in_array($product,$_SESSION['Products'],true))
+{
+}
+else
+{
+ if($_SESSION['Right'] > 2)
+ {
+ }
+ else if($_SESSION['UserID'] == $row[strtolower('User1')])
+ {
+ }
+ else
+ {
+ echo "您没有权限查看此授权信息";
+ return;
+ }
+}
+
+$content1 = strval($row[strtolower('Content1')]);
+$content2 = strval($row[strtolower('Content2')]);
+
+$json_content1 = json_decode($content1,true);
+$json_content2 = json_decode($content2,true);
+?>
+
+
+授权信息
+
+
+
+
+
+ | ID |
+ |
+ 产品 |
+ |
+
+
+ | 申请人员 |
+ |
+ 审核人员 |
+ |
+
+
+ | 申请时间 |
+ |
+ 审核时间 |
+ |
+
+
+ | 申请内容 |
+ |
+ 审核内容 |
+ |
+
+
+ | 状态 |
+ |
+ 备注 |
+ |
+
+
+=3)
+{
+?>
+
+下载
+生成授权并下载"?>
+
+
+
+
+
+
+
diff --git a/common/www/Logout.php b/common/www/Logout.php
new file mode 100644
index 0000000..2f2a5aa
--- /dev/null
+++ b/common/www/Logout.php
@@ -0,0 +1,17 @@
+
\ No newline at end of file
diff --git a/common/www/ProductInfoListView.php b/common/www/ProductInfoListView.php
new file mode 100644
index 0000000..4f258ab
--- /dev/null
+++ b/common/www/ProductInfoListView.php
@@ -0,0 +1,39 @@
+query(
+ 'SELECT * FROM ProductInfo ');
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+?>
+
+
+产品信息列表
+
+
+如想登记自己开发的组件,请与管理员联系 关于我们
+
+
+
+ | ID |
+ 产品名 |
+ 介绍页 |
+
+ fetchRow())
+{
+ echo "";
+ echo "| ".$row[strtolower('ID')]." | ";
+ echo "".$row[strtolower('Name')]." | ";
+ echo "查看并下载 | ";
+ echo "
";
+}
+?>
+
+
+
+
diff --git a/common/www/Session.php b/common/www/Session.php
new file mode 100644
index 0000000..bfef3cd
--- /dev/null
+++ b/common/www/Session.php
@@ -0,0 +1,117 @@
+quote($_SESSION['SWITCH_ID'],"text");
+}
+else
+{
+ // 取账号信息
+ $query = 'SELECT * FROM UserInfo WHERE UserID = '
+ .$mdb2->quote($_POST['UserID'],"text");
+}
+
+//echo $query;
+$result = $mdb2->query($query);
+
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+
+$row = $result->fetchRow();
+
+if(empty($row))
+{
+ $_SESSION['Error'] = '账号不存在,请检查账号是否填错';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+if(@$_SESSION['SWITCH']==true)
+{
+ // 切换账号,不检查密码
+}
+else
+{
+ if(md5($_POST['Password']) != $row[strtolower('Password')])
+ {
+ $_SESSION['Error'] = '密码错误,请检查账号或密码是否填错';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+ }
+}
+
+unset($_SESSION['SWITCH']);
+unset($_SESSION['SWITCH_ID']);
+
+$_SESSION['LOGINED'] = true;
+$_SESSION['UserID'] = $row[strtolower('UserID')];
+$_SESSION['ID'] = $row[strtolower('ID')];
+$_SESSION['Password'] = $row[strtolower('Password')];
+$_SESSION['Right'] = $row[strtolower('Right')];
+
+// 查找是否有审核权限
+$query = 'SELECT * FROM Product_User2 WHERE User2 = '
+ .$mdb2->quote($_SESSION['UserID'],"text");
+//echo $query;
+$result = $mdb2->query($query);
+
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+
+$Products = array();
+while($row = $result->fetchRow())
+{
+ array_push($Products,$row[strtolower('Product')]);
+}
+$_SESSION['Products'] = $Products;
+
+// 可以判断一下,只让本机登录的为管理员
+/*if($_SESSION['Right'] == 99)
+{
+ // 居然有IPv6的问题
+ $admin_ips = array('127.0.0.1','::1','');
+ if(in_array($_SERVER['REMOTE_ADDR'],$admin_ips,true))
+ {
+ }
+ else
+ {
+ // 降级为审核员
+ $_SESSION['Right'] = 2;
+ }
+}*/
+
+if($_SESSION['Right'] == 99)
+{
+ // 通过特殊页面登录成功的管理员才有管理员权限
+ //echo (int)$_POST['Token'];
+ //echo (int)$admin_token;
+ //return;
+ // 这个功能与某个管理员登录的php有关联,要改的话得同时改
+ if(@$_SESSION['TRY_ADMIN'] == true)
+ {
+ }
+ else
+ {
+ // 降级为审核员
+ $_SESSION['Right'] = 2;
+ }
+}
+
+// 会话有效期1小时
+$lifeTime = 3600;
+setcookie(session_name(), session_id(), time() + $lifeTime, "/");
+
+header("Location: $Homepage");
+return;
+?>
\ No newline at end of file
diff --git a/common/www/Signin.php b/common/www/Signin.php
new file mode 100644
index 0000000..4858562
--- /dev/null
+++ b/common/www/Signin.php
@@ -0,0 +1,26 @@
+
+
+
+登录
+
+
+
+注册";
+}
+?>
+
+
+
\ No newline at end of file
diff --git a/common/www/Signin_admin.php b/common/www/Signin_admin.php
new file mode 100644
index 0000000..6ecb7cc
--- /dev/null
+++ b/common/www/Signin_admin.php
@@ -0,0 +1,30 @@
+
+
+
+管理员登录
+
+
+
+注册";
+}
+?>
+
+
+
\ No newline at end of file
diff --git a/common/www/Signup.php b/common/www/Signup.php
new file mode 100644
index 0000000..b145fec
--- /dev/null
+++ b/common/www/Signup.php
@@ -0,0 +1,31 @@
+
+
+
+
+注册
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/www/SwitchUserID.php b/common/www/SwitchUserID.php
new file mode 100644
index 0000000..6c05ca7
--- /dev/null
+++ b/common/www/SwitchUserID.php
@@ -0,0 +1,34 @@
+
+
+
+
+
+主页
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/www/User2ListView.php b/common/www/User2ListView.php
new file mode 100644
index 0000000..e8ae056
--- /dev/null
+++ b/common/www/User2ListView.php
@@ -0,0 +1,43 @@
+query(
+ 'SELECT * FROM Product_User2 ORDER BY Product');
+if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+}
+?>
+
+
+
+
+审核人员列表
+
+
+
+只是给管理员核对使用,由于一般很少有改动,所以直接编辑数据库即可。
+如果要给某个用户添加审核功能,还需要改用户信息表的Right,2=,否则审核员是看不到可审核列表的
+
+
+ | ID |
+ Product |
+ User2 |
+
+ fetchRow())
+{
+ echo "";
+ echo "| ".$row[strtolower('ID')]." | ";
+ echo "".$row[strtolower('Product')]." | ";
+ echo "".$row[strtolower('User2')]." | ";
+ echo "
";
+}
+?>
+
+
+
+
\ No newline at end of file
diff --git a/common/www/UserInfoAction.php b/common/www/UserInfoAction.php
new file mode 100644
index 0000000..992c181
--- /dev/null
+++ b/common/www/UserInfoAction.php
@@ -0,0 +1,66 @@
+query(
+ 'UPDATE UserInfo SET Name = '
+ .$mdb2->quote($_POST['Name'],"text")
+ .' , Phone = '
+ .$mdb2->quote($_POST['Phone'],"text")
+ .' , Email = '
+ .$mdb2->quote($_POST['Email'],"text")
+ .' , IM = '
+ .$mdb2->quote($_POST['IM'],"text")
+ .' , Remark = '
+ .$mdb2->quote($_POST['Remark'],"text")
+ .' WHERE ID = '
+ .$mdb2->quote($_SESSION['ID'],"integer")
+ );
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+}
+
+if(isset($_POST['ModifyPassword']))
+{
+ if($_SESSION['Password'] != md5($_POST['OldPassword']))
+ {
+ $_SESSION['Error'] = '原密错误';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+ }
+
+ if($_POST['NewPassword'] != $_POST['NewPassword2'])
+ {
+ $_SESSION['Error'] = '两次密码不相同';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+ }
+
+ if($_SESSION['Password'] == $_POST['NewPassword'])
+ {
+ $_SESSION['Error'] = '新密码与原密码相同';
+ header("Location:".getenv("HTTP_REFERER"));
+ return;
+ }
+
+ $result = $mdb2->query(
+ 'UPDATE UserInfo SET Password = '
+ .$mdb2->quote(md5($_POST['NewPassword']),"text")
+ .' WHERE ID = '
+ .$mdb2->quote($_SESSION['ID'],"integer")
+ );
+ if (PEAR::isError($result)) {
+ die("{'Error':'".$result->getMessage()."'}");
+ }
+
+ header("Location:Logout.php");
+ return;
+}
+?>
\ No newline at end of file
diff --git a/common/www/UserInfoView.php b/common/www/UserInfoView.php
new file mode 100644
index 0000000..2bcec76
--- /dev/null
+++ b/common/www/UserInfoView.php
@@ -0,0 +1,50 @@
+quote($_SESSION['UserID'],"text");
+$result = $mdb2->query($query);
+
+$row = $result->fetchRow();
+// 不显示密码
+unset($row[strtolower('Password')]);
+?>
+
+
+
+个人信息
+
+
+个人信息";
+print_r($row);
+echo "
";
+?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/common/www/aboutus.php b/common/www/aboutus.php
new file mode 100644
index 0000000..34a63c1
--- /dev/null
+++ b/common/www/aboutus.php
@@ -0,0 +1,12 @@
+
+
+
+
+关于
+
+
+联系我们
+QQ:
+Email:
+
+
\ No newline at end of file
diff --git a/common/www/config.php b/common/www/config.php
new file mode 100644
index 0000000..0c571dd
--- /dev/null
+++ b/common/www/config.php
@@ -0,0 +1,48 @@
+getMessage()."'}");
+}
+$mdb2->setFetchMode(MDB2_FETCHMODE_ASSOC);
+$mdb2->exec("SET NAMES 'utf8'");
+
+//=================================================
+
+
+// 这两个参数用于生成授权使用,需要检查授权是否可用
+$ExePath = "D:\AppServ\www\License.exe";
+$VbsPath = "D:\AppServ\www\ConvertCode.vbs";
+//密钥目录一定不能在网页目录下,不然就被人下载
+$PrivateKeyDir = "D:\AppServ\keys";
+
+// 是否开放公众注册
+$OpenSignup = true;
+
+// 未处理的授权条目上限
+$PendingLicenseCount = 5;
+
+// 首页,如果改动了首页文件,此处也可能需要改变
+// 目前在Session.php和SwitchUserID.php中出现
+$Homepage = "Home.php";
+
+?>
\ No newline at end of file
diff --git a/common/www/products/CTP_Trade_x86/index.html b/common/www/products/CTP_Trade_x86/index.html
new file mode 100644
index 0000000..e4de975
--- /dev/null
+++ b/common/www/products/CTP_Trade_x86/index.html
@@ -0,0 +1,15 @@
+
+
+
+
+介绍
+
+
+软件介绍:
+软件下载:
+软件安装:
+售前咨询人员:
+售后支持服务:
+价格:
+
+
\ No newline at end of file
diff --git a/common/www/products/TdxApi/TdxApi.dll b/common/www/products/TdxApi/TdxApi.dll
new file mode 100644
index 0000000..3c8d3d2
Binary files /dev/null and b/common/www/products/TdxApi/TdxApi.dll differ
diff --git a/common/www/products/TdxApi/index.html b/common/www/products/TdxApi/index.html
new file mode 100644
index 0000000..7ce92c8
--- /dev/null
+++ b/common/www/products/TdxApi/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+介绍
+
+
+软件介绍:
+更新日期:20160128
+软件下载:下载
+软件安装:
+售前咨询人员:
+售后支持服务:
+价格:
+
+
\ No newline at end of file
diff --git "a/common/www/\345\256\211\350\243\205\346\226\271\346\263\225.txt" "b/common/www/\345\256\211\350\243\205\346\226\271\346\263\225.txt"
new file mode 100644
index 0000000..4157a91
--- /dev/null
+++ "b/common/www/\345\256\211\350\243\205\346\226\271\346\263\225.txt"
@@ -0,0 +1,14 @@
+1.װpear, php go-pear.php
+2.װpear install MDB2
+3.װpear install MDB2#mysql
+4.Ŀҳ
+5.keysĿ굽ҳĿ¼¡ע⣬Ŀ¼ʣΪĿ¼˽Կ
+6.עkeysеĿ¼ݿIJƷ
+7.config.phpеȨkeyĿ¼License.exe·ǩ
+8.config.phpеݿϢ
+9.עһûadminȻݿUserInfoûRightij9999ΪԱ
+10.ProductInfoһProductUrlProduct=CTP_Trader_86Url=/products/TdxApi/index.html
+11.עһûxyzRightij22ΪԱ,ȻProduct_User2һProduct=CTP_Trader_86,User2=xyz,ԱCTP_Trader_86Ȩ
+12.һȨļĹǷܳɹأغļǷʹá
+ΪҳȫUTF-8룬ȨļASCII룬õһvbsUTF-8תASCIIҪú
+13.Signin_admin.phpǹԱ¼ҳ棬Աֻͨ¼ǹԱļһҪڸ֪
diff --git "a/common/www/\345\274\200\345\217\221\350\256\241\345\210\222.txt" "b/common/www/\345\274\200\345\217\221\350\256\241\345\210\222.txt"
new file mode 100644
index 0000000..6dd6a40
--- /dev/null
+++ "b/common/www/\345\274\200\345\217\221\350\256\241\345\210\222.txt"
@@ -0,0 +1,5 @@
+һ:
+1.ûύȨϢ
+2.˹༭
+3.ṩ
+4.ṩ֧ܣûԱЭ
\ No newline at end of file
diff --git "a/common/www/\350\241\250\347\273\223\346\236\204.txt" "b/common/www/\350\241\250\347\273\223\346\236\204.txt"
new file mode 100644
index 0000000..efa9fe7
--- /dev/null
+++ "b/common/www/\350\241\250\347\273\223\346\236\204.txt"
@@ -0,0 +1,85 @@
+-- phpMyAdmin SQL Dump
+-- version 2.10.3
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Jan 22, 2016 at 09:55 AM
+-- Server version: 5.0.51
+-- PHP Version: 5.2.6
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+--
+-- Database: `test`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `licenceinfo`
+--
+
+CREATE TABLE `LicenceInfo` (
+ `ID` int(10) unsigned NOT NULL auto_increment,
+ `User1` varchar(20) NOT NULL,
+ `Time1` datetime NOT NULL,
+ `Content1` varchar(1024) NOT NULL,
+ `User2` varchar(20) default NULL,
+ `Time2` datetime default NULL,
+ `Content2` varchar(1024) default NULL,
+ `Product` varchar(64) NOT NULL,
+ `Status` varchar(32) NOT NULL,
+ `Remark` varchar(256) default NULL,
+ PRIMARY KEY (`ID`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='ȨϢ';
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `productinfo`
+--
+
+CREATE TABLE `ProductInfo` (
+ `ID` int(11) NOT NULL auto_increment,
+ `Name` varchar(20) NOT NULL,
+ `Url` varchar(260) NOT NULL,
+ PRIMARY KEY (`ID`),
+ UNIQUE KEY `Name` (`Name`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='ƷϢ';
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `product_user2`
+--
+
+CREATE TABLE `Product_User2` (
+ `ID` int(11) NOT NULL auto_increment,
+ `Product` varchar(64) NOT NULL,
+ `User2` varchar(20) NOT NULL,
+ PRIMARY KEY (`ID`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Ȩϵ';
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `userinfo`
+--
+
+CREATE TABLE `UserInfo` (
+ `ID` int(10) unsigned NOT NULL auto_increment,
+ `UserID` varchar(20) NOT NULL,
+ `Password` varchar(40) NOT NULL,
+ `Name` varchar(16) NOT NULL,
+ `Phone` varchar(16) default NULL,
+ `Email` varchar(40) default NULL,
+ `IM` varchar(64) default NULL,
+ `RegisterTime` datetime NOT NULL,
+ `IP` varchar(40) NOT NULL,
+ `Status` varchar(20) NOT NULL,
+ `Right` tinyint(4) NOT NULL,
+ `SessionID` varchar(40) default NULL,
+ `Remark` varchar(1024) default NULL,
+ PRIMARY KEY (`ID`),
+ UNIQUE KEY `UserID` (`UserID`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='ûϢ';
diff --git a/conf.sh b/conf.sh
new file mode 100755
index 0000000..53d1476
--- /dev/null
+++ b/conf.sh
@@ -0,0 +1,2 @@
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/Workspaces/XAPI2/common/Queue:~/Workspaces/XAPI2/apis/CTP:~/Workspaces/XAPI2/include/CTP/linux64
+export MALLOC_CHECK_=0
diff --git a/csharp/QuantBox.XAPI/QuantBox.XAPI_Linux.csproj b/csharp/QuantBox.XAPI/QuantBox.XAPI_Linux.csproj
deleted file mode 100644
index 48f1af2..0000000
--- a/csharp/QuantBox.XAPI/QuantBox.XAPI_Linux.csproj
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}
- Exe
- Properties
- QuantBox.XAPI
- QuantBox.XAPI
- v4.5
- 512
-
-
- true
- full
- false
- ..\bin\Debug
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
- ..\..\packages\NLog.3.2.1\lib\net45\NLog.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/design.md b/design.md
new file mode 100644
index 0000000..17c4343
--- /dev/null
+++ b/design.md
@@ -0,0 +1,96 @@
+# XAPI2设计文档
+
+## 支持的API
+目前想支持的:
+* CTP 期货交易
+* CTPZQ
+* LTS 股票交易
+* Femas 期货交易
+* Kingstar
+* KingstarGold 上海黄金交易所的接口
+* SPTrader 想干的经纪公司基本都用这个
+
+以后再说的:
+* XSpeed
+* XSpeed_Stock
+
+
+## 设计中需要解决的问题
+
+####1. 在`ApiStruct.h`中的结构体的命名
+
+在[`ApiStruct.h`](https://github.com/QuantBox/XAPI2/blob/master/include/ApiStruct.h)中很多结构体的名称以Field结尾,比如`PositionField`。但是在C++中,结构体中的元素才叫做field,结构体名称不叫Field。
+
+建议修改:把结构体的名称中的Field后缀去掉,比如`PositionField`更名为`Position`。这样从C++的概念上才正确,其次代码因为结构体的名称变短会更易读。
+
+####2. [CXApi类](https://github.com/QuantBox/XAPI2/blob/master/include/XApiCpp.h)中的回调函数中的int size1参数
+在这些回调函数中,有个参数`int size1`,似乎和业务不相关。
+
+解决方案:(来自伍侃)回调函数的参数风格按照CTP回调函数的风格来修改:在回调函数中,参数为先是数据相关的,然后是一个错误,然后是一个`isLast`。
+
+####3. 枚举类型`ExchangeType`
+在[`ApiEnum.h`](https://github.com/QuantBox/XAPI2/blob/master/include/ApiEnum.h)中定义了`ExchangeType`枚举类型。但是在[CXApiCpp.h](https://github.com/QuantBox/XAPI2/blob/master/include/XApiCpp.h)中,有些地方使用的是`ExchangeType`,比如回调函数`OnFilterSubscribe`。但是有些地方使用的是以字符串指定的交易所,比如函数`Subscribe`,`Unsubscribe`,`ReqQryInstrument`和`ReqQryInvestorPosition`。从减少混淆的角度出发,应该统一使用`ExchangeType`来引用交易所。
+
+建议修改:所有需要交易所的地方都使用ExchangeType。
+
+####4. 结构体DepthMarketDataNField的名称
+在[`ApiStruct.h`](https://github.com/QuantBox/XAPI2/blob/master/include/ApiStruct.h)中定义了结构体`DepthMarketDataNField`。在XAPI2中并没有找到`DepthMarketDataField`,是否可以把其中的N去掉,并且去掉Field后缀(见问题1)。
+
+建议修改:把`DepthMarketNDataField`重命名为`DepthMarketData`。
+
+####5. 是否需要增加一个OnRspQryOrder的回调函数
+现在有一个OnRtnOrder,是否需要增加一个OnRspQryOrder?
+问题:OnRspQryOrder是响应哪个request的回调函数?OnRspQryOrder在什么情况下会被调用?
+同样,是否要增加一个OnRspQryTrade的回调函数?
+
+####6. 对于股票的只有查询,没有主动回报的功能的API,可能查询委托功能会交给用户
+这是什么意思?
+
+####8. OrderField.ID在什么范围内能保证ID的唯一性
+关于`OrderField.ID`,因为是字符串,如果把它变长一点,`yyyy-mm-dd:HHMMSS:SessionID:FrontID:OrderRef`,这样让ID在历史上都是唯一的,而且依然有实际意义(而不是像UUID)。用户只需要在其前面加上策略的名称,就能做到整个策略组合ID历史唯一。
+
+修改建议:如上,伍侃反馈:同意,以后改。
+新问题:通过查询进行订单的恢复,报单的时间可能没办法恢复成功,特别是在秒部分,本地下单时间与柜台转的时间基本上无法对应上。
+
+
+####9. 撤单的问题
+1.撤单一定要指定FrontID:SessionID:OrderRef,好像还要指定别的东西,但实在不记得了是哪些了
+2.FrontID与SessionID不一定是本次会话的,而必须是发单时会话的值,也就是断线后重连,要撤上次的单必需用上次的值
+3.所以我一般是在重新登录时,查询委托列表,然后要撤单时通过这个列表把撤单的结构体全写上
+
+首先,我下单时会返回一个FrontID:SessionID:OrderRef字符串
+撤单时通过这个字符串查一个map,找到对应的委托,然后撤单
+
+存在的问题
+1.断线时再重连,由于下单太多,这个表可能要返回很久
+2.这时立即撤单会由于表没有更新完,撤单失败
+
+
+####10. 下单时的问题
+1.主要是批量下单时的结构体如何设计
+2.目前的方法是SendOrders(OrderField[] orders,out string[] orderref)
+这个存在的问题是stirng[]中的string是一种比较复杂的类型,不同语言或框架中都有可能不一样,再对其[]就更复杂了,还要out。。。
+3.批量下单时,不一定每个单子都能下成功,如何通过string[]或别的方式来区分成功与失败呢?
+4.我以前的方法是int SendOrders(order),登录时得到FrontID:SessionID,然后返回的int与FrontID:SessionID拼起来,就是一个唯一的字符串
+后来因为Femas必须前面填充为0,填满共12个。这样FrontID:SessionID:OrderRef实际拼接方法可能就各不一样
+后来又改成char* SendOrders(order),也就是一开始就是传出的唯一的字符串,但这种方法需要解决内存释放的问题
+
+所有现在需要大家共同设计一下SendOrders与CacelOrders。
+
+####[已解决] 11. XAPI2的目录结构
+目录中的项目名称不应该包括QuantBox前缀,因为没有必要,同时QuantBox是一个比XAPI2更大的概念。
+
+解决方案:已经去掉了前缀。
+
+####[已解决] 12. XAPI2的编译输出路径
+XAPI2中各项目的输出路径都应该同一放到一个文件夹中。
+
+解决方案:所有编译输出放在XAPI2\bin中,其中子目录结构举例:XAPI2\bin\Debug\x64\CTP\($solution)_($project)_($arch).dll。
+
+#### 13. XAPI与XAPI2名称的使用
+在XAPI2中的各项目中,XAPI和XAPI2不应该视为可混用(interchangable)。XAPI应该仅用来表达与之前XAPI相关的内容(如果有的话),否则应该一律使用XAPI2。
+
+比如在C#的接口中,名称空间应该是QuantBox.XAPI2,而不是QuantBox.XAPI。
+
+#### 14. 消息队列MessageQueue对远程推送数据的支持
+MessageQueue需要能够将数据通过不同的消息中间件(zeromq, Rabbitmq)推送到其它地方(其它机器,网络)中的能力。考虑的解决方案为:将CMsgQueue中的回调函数m_fnOnResponse从一个回调函数扩展成一组回调函数,然后实现一些回调函数,可以向zeromq或Rabbitmq中发送数据。这样可以做到各种数据分发底层实现的低耦合。用户可以随意增加和替换。zeromq在网络中断的时候不负责消息丢失的维护,Rabbitmq则负责。所以,zeromq发送行情数据类的消息应该够用,Rabbitmq可能比较适合发送交易类的消息。
diff --git a/include/ApiEnum.h b/include/ApiEnum.h
index c686c91..a1c0429 100644
--- a/include/ApiEnum.h
+++ b/include/ApiEnum.h
@@ -76,16 +76,21 @@ enum OrderStatus :char
OrderStatus_Replaced,
};
-/// 方向,没有区分ETF与开放式基金的申购赎回
+/// 方向
/// 新股申购、回购,质押都暂时不写入,等业务掌握熟了后再加
enum OrderSide :char
{
OrderSide_Buy,
OrderSide_Sell,
- OrderSide_Creation, ///申购
- OrderSide_Redemption, ///赎回
- OrderSide_Merge, ///合并
- OrderSide_Split, ///拆分
+ OrderSide_LOFCreation, ///申购,LOF申购
+ OrderSide_LOFRedemption, ///赎回,LOF赎回
+ OrderSide_ETFCreation, ///ETF申购
+ OrderSide_ETFRedemption, ///ETF赎回
+ OrderSide_Merge, ///合并
+ OrderSide_Split, ///拆分
+ OrderSide_CBConvert, ///可转债转股,参考于https://en.wikipedia.org/wiki/Convertible_bond
+ OrderSide_CBRedemption, ///可转债回售,参考于https://en.wikipedia.org/wiki/Convertible_bond
+ OrderSide_Unknown, ///出现这个输出时,需要技术人员去查找原因修正代码
};
/// 报单类型,与OpenQuant2014中的值一样
@@ -146,6 +151,7 @@ enum ExecType : char
///开平标志,没有提供专门的平昨,而是用Close
enum OpenCloseType :char
{
+ OpenCloseType_Undefined = 0, // 未指定,用来自行处理
OpenCloseType_Open,
OpenCloseType_Close,
OpenCloseType_CloseToday,
@@ -179,6 +185,7 @@ enum InstrumentType :char
InstrumentType_ETF,
InstrumentType_MultiLeg,
InstrumentType_Synthetic,
+ InstrumentType_LOF, ///多加LOF
};
//////////////////////////////////////////////////////////////////////////
@@ -245,6 +252,16 @@ enum TradingPhaseType :char
TradingPhaseType_Fuse, ///熔断时段,参考于LTS
};
+/// 业务类型,主要是有些API实际上已经对接了各种市场
+// 不同的市场需要不同的函数,统一到一起实在太难,所以这个地方交给用户自己来指定
+enum BusinessType :char
+{
+ BusinessType_Undefined = 0, /// 未指定
+ BusinessType_Future,
+ BusinessType_Stock,
+ BusinessType_Option,
+};
+
@@ -260,7 +277,7 @@ enum TradingPhaseType :char
enum BarType :char
{
- Time = 1,
+ BarType_Time = 1,
Tick,
Volume,
Range,
diff --git a/include/ApiHeader.h b/include/ApiHeader.h
index 5ed0b04..84547a4 100644
--- a/include/ApiHeader.h
+++ b/include/ApiHeader.h
@@ -1,13 +1,13 @@
-#ifndef _API_HEADER_H_
+#ifndef _API_HEADER_H_
#define _API_HEADER_H_
-#include "../include/CrossPlatform.h"
+#include "CrossPlatform.h"
#ifdef __cplusplus
extern "C" {
#endif
- //ڷָĺбǰûַбԲܳ֡:һ
- #define _QUANTBOX_SEPS_ ",;"
+ //用于分隔输入的合列表,与前置机地址列表,所以不能出现“:”一类的
+ #define _QUANTBOX_SEPS_ ";"
DLL_PUBLIC void* __stdcall XRequest(char type, void* pApi1, void* pApi2, double double1, double double2, void* ptr1, int size1, void* ptr2, int size2, void* ptr3, int size3);
#ifdef __cplusplus
diff --git a/include/ApiStruct.h b/include/ApiStruct.h
index ab0deaf..d17120f 100644
--- a/include/ApiStruct.h
+++ b/include/ApiStruct.h
@@ -3,7 +3,6 @@
#include "ApiDataType.h"
#include "ApiEnum.h"
-//#include "QueueEnum.h"
#pragma pack(push,1)
@@ -12,6 +11,15 @@
/// 1.由API直接提供有效值
/// 2.计算出来的值,字段正好预留了此字段,可以直接填充,这样使用者就不需要定义自己的字段了
+/////////////////////////////////////////////////////////////////////////
+///
+/// 账号体系分成三层
+/// 客户端XAPI层,主要是多账号功能,如TDX可以登录多个账号
+/// 分账户层,如O32中下单要指定资产单元或投资组合
+/// 交易所层,比如股东代码,有可能无法区分需要
+
+
+
///查询持仓,查委托,查成交,查合约,查资金等
///定义一个通用的结构,省事
struct ReqQueryField
@@ -46,8 +54,19 @@ struct ReqQueryField
Int32Type Int32ID;
///一般是由API底层查询预留
- OrderIDType Char64RefID;
- Int32Type Int32RefID;
+ OrderIDType Char64PositionIndex;
+ Int32Type Int32PositionIndex;
+
+
+
+ /// 基金
+ IDChar32Type PortfolioID1;
+ /// 资产单元
+ IDChar32Type PortfolioID2;
+ /// 投资组合
+ IDChar32Type PortfolioID3;
+
+ BusinessType Business;
};
///持仓
@@ -95,6 +114,15 @@ struct PositionField
QtyType TodayPRPosition;
///今日申赎持仓冻结
QtyType TodayPRFrozen;
+
+ /// 基金
+ IDChar32Type PortfolioID1;
+ /// 资产单元
+ IDChar32Type PortfolioID2;
+ /// 投资组合
+ IDChar32Type PortfolioID3;
+
+ BusinessType Business;
};
///做市商双向报价
@@ -219,6 +247,19 @@ struct OrderField
Int32Type ReserveInt32;
///预留字符串
Char64Type ReserveChar64;
+
+ /// 基金
+ IDChar32Type PortfolioID1;
+ /// 资产单元
+ IDChar32Type PortfolioID2;
+ /// 投资组合
+ IDChar32Type PortfolioID3;
+
+ BusinessType Business;
+
+ // 本处代码只内部使用,用于方便在封装API时快速的进行查找,减少代码
+ void* pUserData1;
+ void* pUserData2;
};
@@ -269,6 +310,15 @@ struct TradeField
Int32Type ReserveInt32;
///预留字符串
Char64Type ReserveChar64;
+
+ /// 基金
+ IDChar32Type PortfolioID1;
+ /// 资产单元
+ IDChar32Type PortfolioID2;
+ /// 投资组合
+ IDChar32Type PortfolioID3;
+
+ BusinessType Business;
};
///服务器信息
@@ -363,6 +413,10 @@ struct RspUserLoginField
Int32Type RawErrorID;
///信息
Char256Type Text;
+
+ Char32Type Version;
+
+ Char32Type Lang;
};
@@ -384,6 +438,8 @@ struct DepthMarketDataNField
SymbolType Symbol;
///合约代码
InstrumentIDType InstrumentID;
+
+ ExchangeIDType ExchangeID;
///交易所代码,枚举类型,主要是用于过滤使用,效率比字符串比较要高
ExchangeType Exchange;
diff --git a/include/CTP/ThostFtdcTraderApi.h b/include/CTP/ThostFtdcTraderApi.h
index 4cccbf7..eae0a08 100644
--- a/include/CTP/ThostFtdcTraderApi.h
+++ b/include/CTP/ThostFtdcTraderApi.h
@@ -100,8 +100,8 @@ class CThostFtdcTraderSpi
///۲Ӧ
virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
- ///Ӧ
- virtual void OnRspLockInsert(CThostFtdcInputLockField *pInputLock, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+ ///Ӧ
+ virtual void OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
///¼Ӧ
virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
@@ -184,6 +184,18 @@ class CThostFtdcTraderSpi
///ѯƷۻ
virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+ ///ѯƷ
+ virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ̺ԼӦ
+ virtual void OnRspQryMMInstrumentCommissionRate(CThostFtdcMMInstrumentCommissionRateField *pMMInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯȨԼӦ
+ virtual void OnRspQryMMOptionInstrCommRate(CThostFtdcMMOptionInstrCommRateField *pMMOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
///ѯȨ׳ɱӦ
virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
@@ -199,12 +211,6 @@ class CThostFtdcTraderSpi
///ѯӦ
virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
- ///ѯӦ
- virtual void OnRspQryLock(CThostFtdcLockField *pLock, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
-
- ///ѯ֤ȯλӦ
- virtual void OnRspQryLockPosition(CThostFtdcLockPositionField *pLockPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
-
///ѯϺԼȫϵӦ
virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
@@ -235,6 +241,9 @@ class CThostFtdcTraderSpi
///Լ״̬֪ͨ
virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {};
+ ///֪ͨ
+ virtual void OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {};
+
///֪ͨ
virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {};
@@ -268,11 +277,8 @@ class CThostFtdcTraderSpi
///֤û
virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {};
- ///֪ͨ
- virtual void OnRtnLock(CThostFtdcLockField *pLock) {};
-
- ///֪ͨ
- virtual void OnErrRtnLockInsert(CThostFtdcInputLockField *pInputLock, CThostFtdcRspInfoField *pRspInfo) {};
+ ///ر
+ virtual void OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {};
///֪ͨ
virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {};
@@ -489,8 +495,8 @@ class TRADER_API_EXPORT CThostFtdcTraderApi
///۲
virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0;
- ///
- virtual int ReqLockInsert(CThostFtdcInputLockField *pInputLock, int nRequestID) = 0;
+ ///
+ virtual int ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0;
///¼
virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0;
@@ -573,6 +579,18 @@ class TRADER_API_EXPORT CThostFtdcTraderApi
///ѯƷۻ
virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0;
+ ///ѯƷ
+ virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0;
+
+ ///ѯ̺Լ
+ virtual int ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0;
+
+ ///ѯȨԼ
+ virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0;
+
///ѯȨ׳ɱ
virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0;
@@ -588,12 +606,6 @@ class TRADER_API_EXPORT CThostFtdcTraderApi
///ѯ
virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0;
- ///ѯ
- virtual int ReqQryLock(CThostFtdcQryLockField *pQryLock, int nRequestID) = 0;
-
- ///ѯ֤ȯλ
- virtual int ReqQryLockPosition(CThostFtdcQryLockPositionField *pQryLockPosition, int nRequestID) = 0;
-
///ѯϺԼȫϵ
virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0;
diff --git a/include/CTP/ThostFtdcUserApiDataType.h b/include/CTP/ThostFtdcUserApiDataType.h
index 1414426..dbeee6f 100644
--- a/include/CTP/ThostFtdcUserApiDataType.h
+++ b/include/CTP/ThostFtdcUserApiDataType.h
@@ -77,11 +77,6 @@ typedef char TThostFtdcClientIDType[11];
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcInstrumentIDType[31];
-/////////////////////////////////////////////////////////////////////////
-///TFtdcInstrumentCodeTypeһԼʶ
-/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcInstrumentCodeType[31];
-
/////////////////////////////////////////////////////////////////////////
///TFtdcMarketIDTypeһг
/////////////////////////////////////////////////////////////////////////
@@ -398,8 +393,6 @@ typedef char TThostFtdcTraderConnectStatusType;
#define THOST_FTDC_FC_SyncOTP 'E'
///ɾδ֪
#define THOST_FTDC_FC_DeleteOrder 'F'
-///Ȩ
-#define THOST_FTDC_FC_LockInsert 'G'
typedef char TThostFtdcFunctionCodeType;
@@ -494,8 +487,8 @@ typedef char TThostFtdcFunctionCodeType;
#define THOST_FTDC_BFC_ParkedOrderInsert 'K'
///Ԥ
#define THOST_FTDC_BFC_ParkedOrderAction 'L'
-///Ȩ
-#define THOST_FTDC_BFC_LockInsert 'M'
+///ʽȨ
+#define THOST_FTDC_BFC_ExecOrderNoCheck 'M'
typedef char TThostFtdcBrokerFunctionCodeType;
@@ -602,10 +595,6 @@ typedef char TThostFtdcTradingRoleType;
#define THOST_FTDC_PC_EFP '5'
///ֻȨ
#define THOST_FTDC_PC_SpotOption '6'
-///Ȩ
-#define THOST_FTDC_PC_ETFOption '7'
-///֤ȯ
-#define THOST_FTDC_PC_Stock '8'
typedef char TThostFtdcProductClassType;
@@ -690,8 +679,8 @@ typedef char TThostFtdcRatioAttrType;
#define THOST_FTDC_HF_Arbitrage '2'
///ױ
#define THOST_FTDC_HF_Hedge '3'
-///
-#define THOST_FTDC_HF_Covered '4'
+///
+#define THOST_FTDC_HF_MarketMaker '5'
typedef char TThostFtdcHedgeFlagType;
@@ -716,6 +705,8 @@ typedef char TThostFtdcBillHedgeFlagType;
#define THOST_FTDC_CIDT_Arbitrage '2'
///ױ
#define THOST_FTDC_CIDT_Hedge '3'
+///
+#define THOST_FTDC_CIDT_MarketMaker '5'
typedef char TThostFtdcClientIDTypeType;
@@ -1415,6 +1406,14 @@ typedef char TThostFtdcSystemParamIDType;
#define THOST_FTDC_TPID_IsPosiFreeze 'F'
///Ƿ
#define THOST_FTDC_TPID_IsPosiLimit 'M'
+///֣ѯʱ
+#define THOST_FTDC_TPID_ForQuoteTimeInterval 'Q'
+///Ƿڻ
+#define THOST_FTDC_TPID_IsFuturePosiLimit 'B'
+///ǷڻµƵ
+#define THOST_FTDC_TPID_IsFutureOrderFreq 'C'
+///ȨǷӯ
+#define THOST_FTDC_TPID_IsExecOrderProfit 'H'
typedef char TThostFtdcTradeParamIDType;
@@ -2799,31 +2798,6 @@ typedef char TThostFtdcCFMMCKeyKindType;
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcAMLReportNameType[81];
-/////////////////////////////////////////////////////////////////////////
-///TFtdcDBFComdTypeTypeһDBF
-/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcDBFComdTypeType[65];
-
-/////////////////////////////////////////////////////////////////////////
-///TFtdcDBFComTimeTypeһDBFʱ
-/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcDBFComTimeType[65];
-
-/////////////////////////////////////////////////////////////////////////
-///TFtdcDBFComNoTypeһDBFˮ
-/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcDBFComNoType[17];
-
-/////////////////////////////////////////////////////////////////////////
-///TFtdcDBFFdNameTypeһDBFֶ
-/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcDBFFdNameType[256];
-
-/////////////////////////////////////////////////////////////////////////
-///TFtdcDBFFdContentTypeһDBFֶ
-/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcDBFFdContentType[256];
-
/////////////////////////////////////////////////////////////////////////
///TFtdcIndividualNameTypeһ
/////////////////////////////////////////////////////////////////////////
@@ -3697,6 +3671,12 @@ typedef char TThostFtdcReqRspTypeType;
#define THOST_FTDC_FBTUET_SignOut 'A'
///Կͬ
#define THOST_FTDC_FBTUET_SyncKey 'B'
+///ԤԼ
+#define THOST_FTDC_FBTUET_ReserveOpenAccount 'C'
+///ԤԼ
+#define THOST_FTDC_FBTUET_CancelReserveOpenAccount 'D'
+///ԤԼȷ
+#define THOST_FTDC_FBTUET_ReserveOpenAccountConfirm 'E'
///
#define THOST_FTDC_FBTUET_Other 'Z'
@@ -6323,98 +6303,76 @@ typedef char TThostFtdcCFFEXUploadFileNameType;
typedef char TThostFtdcCombDirectionType;
/////////////////////////////////////////////////////////////////////////
-///TFtdcLockTypeTypeһ
+///TFtdcStrikeOffsetTypeTypeһȨƫ
/////////////////////////////////////////////////////////////////////////
-///
-#define THOST_FTDC_LCKT_Lock '1'
-///
-#define THOST_FTDC_LCKT_Unlock '2'
+///ʵֵ
+#define THOST_FTDC_STOV_RealValue '1'
+///ӯ
+#define THOST_FTDC_STOV_ProfitValue '2'
+///ʵֵ
+#define THOST_FTDC_STOV_RealRatio '3'
+///ӯ
+#define THOST_FTDC_STOV_ProfitRatio '4'
-typedef char TThostFtdcLockTypeType;
+typedef char TThostFtdcStrikeOffsetTypeType;
/////////////////////////////////////////////////////////////////////////
-///TFtdcBizTypeTypeһҵ
+///TFtdcReserveOpenAccStasTypeһԤԼ״̬
/////////////////////////////////////////////////////////////////////////
-///ڻ
-#define THOST_FTDC_BZTP_Future '1'
-///֤ȯ
-#define THOST_FTDC_BZTP_Stock '2'
+///ȴ
+#define THOST_FTDC_ROAST_Processing '0'
+///ѳ
+#define THOST_FTDC_ROAST_Cancelled '1'
+///ѿ
+#define THOST_FTDC_ROAST_Opened '2'
+///Ч
+#define THOST_FTDC_ROAST_Invalid '3'
-typedef char TThostFtdcBizTypeType;
+typedef char TThostFtdcReserveOpenAccStasType;
/////////////////////////////////////////////////////////////////////////
-///TFtdcDesignateTypeTypeһָ
+///TFtdcLoginRemarkTypeһ¼ע
/////////////////////////////////////////////////////////////////////////
-///ָǼ
-#define THOST_FTDC_DSTP_Register '1'
-///ָ
-#define THOST_FTDC_DSTP_Cancel '2'
-
-typedef char TThostFtdcDesignateTypeType;
+typedef char TThostFtdcLoginRemarkType[36];
/////////////////////////////////////////////////////////////////////////
-///TFtdcFreezeReasonTypeTypeһԭ
+///TFtdcInvestUnitIDTypeһͶʵԪ
/////////////////////////////////////////////////////////////////////////
-///ʼ
-#define THOST_FTDC_FRTP_Init '1'
-///
-#define THOST_FTDC_FRTP_Lock '2'
-///ִ
-#define THOST_FTDC_FRTP_Exec '3'
-
-typedef char TThostFtdcFreezeReasonTypeType;
+typedef char TThostFtdcInvestUnitIDType[17];
/////////////////////////////////////////////////////////////////////////
-///TFtdcFreezeTypeTypeһ
+///TFtdcBulletinIDTypeһ
/////////////////////////////////////////////////////////////////////////
-///
-#define THOST_FTDC_FZTP_Freeze '1'
-///ⶳ
-#define THOST_FTDC_FZTP_Unfreeze '2'
-///ǿִ
-#define THOST_FTDC_FZTP_Force '3'
-
-typedef char TThostFtdcFreezeTypeType;
+typedef int TThostFtdcBulletinIDType;
/////////////////////////////////////////////////////////////////////////
-///TFtdcTradeSystemTypeTypeһϵͳ
+///TFtdcNewsTypeTypeһ
/////////////////////////////////////////////////////////////////////////
-///δ֪ϵͳ
-#define THOST_FTDC_TSTP_Unknow '0'
-///ڻϵͳ
-#define THOST_FTDC_TSTP_Future '1'
-///ϵͳ
-#define THOST_FTDC_TSTP_IShare '2'
-
-typedef char TThostFtdcTradeSystemTypeType;
+typedef char TThostFtdcNewsTypeType[3];
/////////////////////////////////////////////////////////////////////////
-///TFtdcStockDisposalTypeTypeһ֤ȯ÷
+///TFtdcNewsUrgencyTypeһ̶
/////////////////////////////////////////////////////////////////////////
-///뾭˾˻
-#define THOST_FTDC_STPT_ToBroker '1'
-///Ͷ˻
-#define THOST_FTDC_STPT_ToInvestor '2'
+typedef char TThostFtdcNewsUrgencyType;
-typedef char TThostFtdcStockDisposalTypeType;
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAbstractTypeһϢժҪ
+/////////////////////////////////////////////////////////////////////////
+typedef char TThostFtdcAbstractType[81];
/////////////////////////////////////////////////////////////////////////
-///TFtdcStockDisposalSysIDTypeһ֤ȯñ
+///TFtdcComeFromTypeһϢԴ
/////////////////////////////////////////////////////////////////////////
-typedef char TThostFtdcStockDisposalSysIDType[21];
+typedef char TThostFtdcComeFromType[21];
/////////////////////////////////////////////////////////////////////////
-///TFtdcStockDisposalStatusTypeһ״̬
+///TFtdcURLLinkTypeһWEBַ
/////////////////////////////////////////////////////////////////////////
-///Ѿύ
-#define THOST_FTDC_SDPS_Submitted 'a'
-///Ѿ
-#define THOST_FTDC_SDPS_Accepted 'b'
-///Ѿܾ
-#define THOST_FTDC_SDPS_Rejected 'c'
-///Ѿ
-#define THOST_FTDC_SDPS_Cancelled 'd'
+typedef char TThostFtdcURLLinkType[201];
-typedef char TThostFtdcStockDisposalStatusType;
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLongIndividualNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TThostFtdcLongIndividualNameType[161];
#endif
diff --git a/include/CTP/ThostFtdcUserApiStruct.h b/include/CTP/ThostFtdcUserApiStruct.h
index 4ae204c..6af7695 100644
--- a/include/CTP/ThostFtdcUserApiStruct.h
+++ b/include/CTP/ThostFtdcUserApiStruct.h
@@ -48,6 +48,8 @@ struct CThostFtdcReqUserLoginField
TThostFtdcPasswordType OneTimePassword;
///նIPַ
TThostFtdcIPAddressType ClientIPAddress;
+ ///¼ע
+ TThostFtdcLoginRemarkType LoginRemark;
};
///û¼Ӧ
@@ -433,12 +435,6 @@ struct CThostFtdcInstrumentField
TThostFtdcUnderlyingMultipleType UnderlyingMultiple;
///
TThostFtdcCombinationTypeType CombinationType;
- ///Сµλ
- TThostFtdcVolumeType MinBuyVolume;
- ///Сµλ
- TThostFtdcVolumeType MinSellVolume;
- ///Լʶ
- TThostFtdcInstrumentCodeType InstrumentCode;
};
///˾
@@ -517,10 +513,6 @@ struct CThostFtdcTradingCodeField
TThostFtdcBoolType IsActive;
///ױ
TThostFtdcClientIDTypeType ClientIDType;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///Ա;˾ձ
@@ -664,8 +656,6 @@ struct CThostFtdcTradingAccountField
TThostFtdcMoneyType SpecProductPositionProfitByAlg;
///Ʒ֤
TThostFtdcMoneyType SpecProductExchangeMargin;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///Ͷֲ߳
@@ -757,8 +747,6 @@ struct CThostFtdcInvestorPositionField
TThostFtdcMoneyType StrikeFrozenAmount;
///ִж
TThostFtdcVolumeType AbandonFrozen;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///Լ֤
@@ -809,10 +797,6 @@ struct CThostFtdcInstrumentCommissionRateField
TThostFtdcRatioType CloseTodayRatioByMoney;
///ƽ
TThostFtdcRatioType CloseTodayRatioByVolume;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///
@@ -921,10 +905,6 @@ struct CThostFtdcInstrumentTradingRightField
TThostFtdcInvestorIDType InvestorID;
///Ȩ
TThostFtdcTradingRightType TradingRight;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///˾û
@@ -1007,8 +987,6 @@ struct CThostFtdcTraderOfferField
TThostFtdcTradeIDType MaxTradeID;
///ϯλ
TThostFtdcReturnCodeType MaxOrderMessageReference;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///Ͷ߽
@@ -1198,6 +1176,10 @@ struct CThostFtdcLoginInfoField
TThostFtdcPasswordType OneTimePassword;
///Դʱ
TThostFtdcTimeType INETime;
+ ///ѯʱǷҪ
+ TThostFtdcBoolType IsQryControl;
+ ///¼ע
+ TThostFtdcLoginRemarkType LoginRemark;
};
///¼Ϣ
@@ -1288,6 +1270,18 @@ struct CThostFtdcInputOrderField
TThostFtdcBoolType IsSwapOrder;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///
@@ -1409,6 +1403,16 @@ struct CThostFtdcOrderField
TThostFtdcBoolType IsSwapOrder;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///
@@ -1500,6 +1504,10 @@ struct CThostFtdcExchangeOrderField
TThostFtdcSequenceNoType SequenceNo;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ʧ
@@ -1552,6 +1560,12 @@ struct CThostFtdcInputOrderActionField
TThostFtdcUserIDType UserID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///
@@ -1609,6 +1623,12 @@ struct CThostFtdcOrderActionField
TThostFtdcInstrumentIDType InstrumentID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///
@@ -1648,6 +1668,10 @@ struct CThostFtdcExchangeOrderActionField
TThostFtdcUserIDType UserID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ʧ
@@ -1669,8 +1693,6 @@ struct CThostFtdcExchangeOrderActionErrorField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
- ///˾
- TThostFtdcBrokerIDType BrokerID;
};
///ɽ
@@ -1812,6 +1834,8 @@ struct CThostFtdcUserSessionField
TThostFtdcProtocolInfoType ProtocolInfo;
///Macַ
TThostFtdcMacAddressType MacAddress;
+ ///¼ע
+ TThostFtdcLoginRemarkType LoginRemark;
};
///ѯ
@@ -1831,8 +1855,6 @@ struct CThostFtdcQueryMaxOrderVolumeField
TThostFtdcHedgeFlagType HedgeFlag;
///
TThostFtdcVolumeType MaxVolume;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///Ͷ߽ȷϢ
@@ -1935,8 +1957,6 @@ struct CThostFtdcSyncingTradingCodeField
TThostFtdcBoolType IsActive;
///ױ
TThostFtdcClientIDTypeType ClientIDType;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
};
///ͬеͶ߷
@@ -2136,8 +2156,6 @@ struct CThostFtdcSyncingInvestorPositionField
TThostFtdcMoneyType StrikeFrozenAmount;
///ִж
TThostFtdcVolumeType AbandonFrozen;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ͬеĺԼ֤
@@ -2188,8 +2206,6 @@ struct CThostFtdcSyncingInstrumentCommissionRateField
TThostFtdcRatioType CloseTodayRatioByMoney;
///ƽ
TThostFtdcRatioType CloseTodayRatioByVolume;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ͬеĺԼȨ
@@ -2205,8 +2221,6 @@ struct CThostFtdcSyncingInstrumentTradingRightField
TThostFtdcInvestorIDType InvestorID;
///Ȩ
TThostFtdcTradingRightType TradingRight;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯ
@@ -2256,8 +2270,6 @@ struct CThostFtdcQryInvestorPositionField
TThostFtdcInvestorIDType InvestorID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯʽ˻
@@ -2269,8 +2281,6 @@ struct CThostFtdcQryTradingAccountField
TThostFtdcInvestorIDType InvestorID;
///ִ
TThostFtdcCurrencyIDType CurrencyID;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///ѯͶ
@@ -2326,8 +2336,6 @@ struct CThostFtdcQryInstrumentCommissionRateField
TThostFtdcInvestorIDType InvestorID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯԼȨ
@@ -2339,8 +2347,6 @@ struct CThostFtdcQryInstrumentTradingRightField
TThostFtdcInvestorIDType InvestorID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯ˾
@@ -2459,8 +2465,6 @@ struct CThostFtdcQryProductField
TThostFtdcInstrumentIDType ProductID;
///Ʒ
TThostFtdcProductClassType ProductClass;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯԼ
@@ -2481,8 +2485,6 @@ struct CThostFtdcQryDepthMarketDataField
{
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯ˾û
@@ -2616,8 +2618,6 @@ struct CThostFtdcOptionInstrMiniMarginField
TThostFtdcValueMethodType ValueMethod;
///Ƿ潻ȡ
TThostFtdcBoolType IsRelative;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ǰȨԼ֤ϵ
@@ -2645,8 +2645,10 @@ struct CThostFtdcOptionInstrMarginAdjustField
TThostFtdcMoneyType AShortMarginRatioByVolume;
///Ƿ潻ȡ
TThostFtdcBoolType IsRelative;
- ///
- TThostFtdcExchangeIDType ExchangeID;
+ ///̿ͷ֤ϵ
+ TThostFtdcRatioType MShortMarginRatioByMoney;
+ ///̿ͷ֤ϵ
+ TThostFtdcMoneyType MShortMarginRatioByVolume;
};
///ǰȨԼѵϸ
@@ -2676,8 +2678,6 @@ struct CThostFtdcOptionInstrCommRateField
TThostFtdcRatioType StrikeRatioByMoney;
///ִ
TThostFtdcRatioType StrikeRatioByVolume;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///Ȩ׳ɱ
@@ -2701,8 +2701,6 @@ struct CThostFtdcOptionInstrTradeCostField
TThostFtdcMoneyType ExchFixedMargin;
///ȨԼС֤
TThostFtdcMoneyType ExchMiniMargin;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///Ȩ׳ɱѯ
@@ -2720,8 +2718,6 @@ struct CThostFtdcQryOptionInstrTradeCostField
TThostFtdcPriceType InputPrice;
///ļ۸,0
TThostFtdcPriceType UnderlyingPrice;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///Ȩʲѯ
@@ -2733,8 +2729,6 @@ struct CThostFtdcQryOptionInstrCommRateField
TThostFtdcInvestorIDType InvestorID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ָָֻ
@@ -2746,8 +2740,6 @@ struct CThostFtdcIndexPriceField
TThostFtdcInstrumentIDType InstrumentID;
///ָֻ̼
TThostFtdcPriceType ClosePrice;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ִ
@@ -2783,6 +2775,18 @@ struct CThostFtdcInputExecOrderField
TThostFtdcExecOrderCloseFlagType CloseFlag;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ִ
@@ -2812,6 +2816,12 @@ struct CThostFtdcInputExecOrderActionField
TThostFtdcUserIDType UserID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ִ
@@ -2895,6 +2905,16 @@ struct CThostFtdcExecOrderField
TThostFtdcSequenceNoType BrokerExecOrderSeq;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ִ
@@ -2950,6 +2970,12 @@ struct CThostFtdcExecOrderActionField
TThostFtdcInstrumentIDType InstrumentID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ִѯ
@@ -3030,6 +3056,10 @@ struct CThostFtdcExchangeExecOrderField
TThostFtdcSequenceNoType SequenceNo;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ִѯ
@@ -3093,6 +3123,10 @@ struct CThostFtdcExchangeExecOrderActionField
TThostFtdcActionTypeType ActionType;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ִѯ
@@ -3141,6 +3175,18 @@ struct CThostFtdcErrExecOrderField
TThostFtdcExecOrderCloseFlagType CloseFlag;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
///
TThostFtdcErrorIDType ErrorID;
///Ϣ
@@ -3183,6 +3229,12 @@ struct CThostFtdcErrExecOrderActionField
TThostFtdcUserIDType UserID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
///
TThostFtdcErrorIDType ErrorID;
///Ϣ
@@ -3213,10 +3265,6 @@ struct CThostFtdcOptionInstrTradingRightField
TThostFtdcDirectionType Direction;
///Ȩ
TThostFtdcTradingRightType TradingRight;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///Ͷױ־
- TThostFtdcHedgeFlagType HedgeFlag;
};
///ѯȨԼȨ
@@ -3230,8 +3278,6 @@ struct CThostFtdcQryOptionInstrTradingRightField
TThostFtdcInstrumentIDType InstrumentID;
///
TThostFtdcDirectionType Direction;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯ
@@ -3249,6 +3295,12 @@ struct CThostFtdcInputForQuoteField
TThostFtdcUserIDType UserID;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ѯ
@@ -3294,6 +3346,12 @@ struct CThostFtdcForQuoteField
TThostFtdcUserIDType ActiveUserID;
///˾ѯ۱
TThostFtdcSequenceNoType BrokerForQutoSeq;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ѯ۲ѯ
@@ -3336,6 +3394,10 @@ struct CThostFtdcExchangeForQuoteField
TThostFtdcTimeType InsertTime;
///ѯ״̬
TThostFtdcForQuoteStatusType ForQuoteStatus;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ѯ۲ѯ
@@ -3394,6 +3456,14 @@ struct CThostFtdcInputQuoteField
TThostFtdcOrderSysIDType ForQuoteSysID;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///뱨۲
@@ -3423,6 +3493,14 @@ struct CThostFtdcInputQuoteActionField
TThostFtdcUserIDType UserID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///
@@ -3518,6 +3596,16 @@ struct CThostFtdcQuoteField
TThostFtdcOrderSysIDType ForQuoteSysID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///۲
@@ -3571,6 +3659,12 @@ struct CThostFtdcQuoteActionField
TThostFtdcInstrumentIDType InstrumentID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///۲ѯ
@@ -3659,6 +3753,10 @@ struct CThostFtdcExchangeQuoteField
TThostFtdcOrderSysIDType ForQuoteSysID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///۲ѯ
@@ -3718,6 +3816,10 @@ struct CThostFtdcExchangeQuoteActionField
TThostFtdcOrderActionStatusType OrderActionStatus;
///û
TThostFtdcUserIDType UserID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///۲ѯ
@@ -3746,8 +3848,6 @@ struct CThostFtdcOptionInstrDeltaField
TThostFtdcInvestorIDType InvestorID;
///Deltaֵ
TThostFtdcRatioType Delta;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///̵ѯ
@@ -3780,8 +3880,8 @@ struct CThostFtdcStrikeOffsetField
TThostFtdcInvestorIDType InvestorID;
///ִƫֵ
TThostFtdcMoneyType Offset;
- ///
- TThostFtdcExchangeIDType ExchangeID;
+ ///ִƫ
+ TThostFtdcStrikeOffsetTypeType OffsetType;
};
///Ȩִƫֵѯ
@@ -3795,788 +3895,120 @@ struct CThostFtdcQryStrikeOffsetField
TThostFtdcInstrumentIDType InstrumentID;
};
-///¼
-struct CThostFtdcInputLockField
+///
+struct CThostFtdcInputBatchOrderActionField
{
///˾
TThostFtdcBrokerIDType BrokerID;
///Ͷߴ
TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcOrderRefType LockRef;
- ///û
- TThostFtdcUserIDType UserID;
- ///
- TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
///
TThostFtdcRequestIDType RequestID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///
- TThostFtdcLockTypeType LockType;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
-///
-struct CThostFtdcLockField
+///
+struct CThostFtdcBatchOrderActionField
{
///˾
TThostFtdcBrokerIDType BrokerID;
///Ͷߴ
TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcOrderRefType LockRef;
- ///û
- TThostFtdcUserIDType UserID;
- ///
- TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
///
TThostFtdcRequestIDType RequestID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///
- TThostFtdcLockTypeType LockType;
- ///
- TThostFtdcOrderLocalIDType LockLocalID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
///Ա
TThostFtdcParticipantIDType ParticipantID;
///ͻ
TThostFtdcClientIDType ClientID;
- ///ԼڽĴ
- TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
+};
+
+///
+struct CThostFtdcExchangeBatchOrderActionField
+{
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
///Ա
TThostFtdcTraderIDType TraderID;
///װ
TThostFtdcInstallIDType InstallID;
- ///ִύ״̬
- TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
- ///ʾ
- TThostFtdcSequenceNoType NotifySequence;
- ///
- TThostFtdcDateType TradingDay;
- ///
- TThostFtdcSettlementIDType SettlementID;
- ///
- TThostFtdcOrderSysIDType LockSysID;
- ///
- TThostFtdcDateType InsertDate;
- ///ʱ
- TThostFtdcTimeType InsertTime;
- ///ʱ
- TThostFtdcTimeType CancelTime;
- ///״̬
- TThostFtdcOrderActionStatusType LockStatus;
- ///Ա
- TThostFtdcParticipantIDType ClearingPartID;
- ///
- TThostFtdcSequenceNoType SequenceNo;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///û˲ƷϢ
- TThostFtdcProductInfoType UserProductInfo;
- ///״̬Ϣ
- TThostFtdcErrorMsgType StatusMsg;
- ///û
- TThostFtdcUserIDType ActiveUserID;
- ///˾
- TThostFtdcSequenceNoType BrokerLockSeq;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
-};
-
-///ѯ
-struct CThostFtdcQryLockField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcOrderSysIDType LockSysID;
- ///ʼʱ
- TThostFtdcTimeType InsertTimeStart;
- ///ʱ
- TThostFtdcTimeType InsertTimeEnd;
-};
-
-///֤ȯλ
-struct CThostFtdcLockPositionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcVolumeType Volume;
- ///
- TThostFtdcVolumeType FrozenVolume;
-};
-
-///ѯ֤ȯλ
-struct CThostFtdcQryLockPositionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///ǰETFȨԼѵϸ
-struct CThostFtdcETFOptionInstrCommRateField
-{
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///Ͷ߷Χ
- TThostFtdcInvestorRangeType InvestorRange;
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcRatioType OpenRatioByMoney;
- ///
- TThostFtdcRatioType OpenRatioByVolume;
- ///ƽ
- TThostFtdcRatioType CloseRatioByMoney;
- ///ƽ
- TThostFtdcRatioType CloseRatioByVolume;
- ///ƽ
- TThostFtdcRatioType CloseTodayRatioByMoney;
- ///ƽ
- TThostFtdcRatioType CloseTodayRatioByVolume;
- ///ִ
- TThostFtdcRatioType StrikeRatioByMoney;
- ///ִ
- TThostFtdcRatioType StrikeRatioByVolume;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///Ͷױ־
- TThostFtdcHedgeFlagType HedgeFlag;
- ///ֲַ
- TThostFtdcPosiDirectionType PosiDirection;
-};
-
-///ETFȨʲѯ
-struct CThostFtdcQryETFOptionInstrCommRateField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///ijֲֶ
-struct CThostFtdcPosiFreezeField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///ر
- TThostFtdcOrderLocalIDType OrderLocalID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///
- TThostFtdcVolumeType Volume;
- ///ԭ
- TThostFtdcFreezeReasonTypeType FreezeReasonType;
- ///
- TThostFtdcFreezeTypeType FreezeType;
-};
-
-///ѯ
-struct CThostFtdcQryExchangeLockField
-{
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///ԼڽĴ
- TThostFtdcExchangeInstIDType ExchangeInstID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
-};
-
-///
-struct CThostFtdcExchangeLockField
-{
- ///
- TThostFtdcVolumeType Volume;
- ///
- TThostFtdcRequestIDType RequestID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///
- TThostFtdcLockTypeType LockType;
- ///
- TThostFtdcOrderLocalIDType LockLocalID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///ԼڽĴ
- TThostFtdcExchangeInstIDType ExchangeInstID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///ִύ״̬
- TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
- ///ʾ
- TThostFtdcSequenceNoType NotifySequence;
- ///
- TThostFtdcDateType TradingDay;
- ///
- TThostFtdcSettlementIDType SettlementID;
- ///
- TThostFtdcOrderSysIDType LockSysID;
- ///
- TThostFtdcDateType InsertDate;
- ///ʱ
- TThostFtdcTimeType InsertTime;
- ///ʱ
- TThostFtdcTimeType CancelTime;
- ///״̬
- TThostFtdcOrderActionStatusType LockStatus;
- ///Ա
- TThostFtdcParticipantIDType ClearingPartID;
- ///
- TThostFtdcSequenceNoType SequenceNo;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
-};
-
-///
-struct CThostFtdcExchangeExecOrderActionErrorField
-{
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///ִ
- TThostFtdcExecOrderSysIDType ExecOrderSysID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///ִ
- TThostFtdcOrderLocalIDType ExecOrderLocalID;
- ///ر
- TThostFtdcOrderLocalIDType ActionLocalID;
- ///
- TThostFtdcErrorIDType ErrorID;
- ///Ϣ
- TThostFtdcErrorMsgType ErrorMsg;
- ///˾
- TThostFtdcBrokerIDType BrokerID;
-};
-
-///
-struct CThostFtdcInputBatchOrderActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcOrderActionRefType OrderActionRef;
- ///
- TThostFtdcRequestIDType RequestID;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///û
- TThostFtdcUserIDType UserID;
-};
-
-///
-struct CThostFtdcBatchOrderActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcOrderActionRefType OrderActionRef;
- ///
- TThostFtdcRequestIDType RequestID;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcDateType ActionDate;
- ///ʱ
- TThostFtdcTimeType ActionTime;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///ر
- TThostFtdcOrderLocalIDType ActionLocalID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///״̬
- TThostFtdcOrderActionStatusType OrderActionStatus;
- ///û
- TThostFtdcUserIDType UserID;
- ///״̬Ϣ
- TThostFtdcErrorMsgType StatusMsg;
-};
-
-///
-struct CThostFtdcExchangeBatchOrderActionField
-{
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcDateType ActionDate;
- ///ʱ
- TThostFtdcTimeType ActionTime;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///ر
- TThostFtdcOrderLocalIDType ActionLocalID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///״̬
- TThostFtdcOrderActionStatusType OrderActionStatus;
- ///û
- TThostFtdcUserIDType UserID;
-};
-
-///ѯ
-struct CThostFtdcQryBatchOrderActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///Ͷֲ߳
-struct CThostFtdcLimitPosiField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcVolumeType TotalVolume;
- ///ͷ
- TThostFtdcVolumeType LongVolume;
- ///նͷ
- TThostFtdcVolumeType OpenVolume;
- ///ͷֲֽ
- TThostFtdcMoneyType LongAmount;
- ///
- TThostFtdcVolumeType TotalVolumeFrozen;
- ///ͷ
- TThostFtdcVolumeType LongVolumeFrozen;
- ///նͷ
- TThostFtdcVolumeType OpenVolumeFrozen;
- ///ͷֲֽ
- TThostFtdcMoneyType LongAmountFrozen;
-};
-
-///ѯͶֲ߳
-struct CThostFtdcQryLimitPosiField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///˾ֲ
-struct CThostFtdcBrokerLimitPosiField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcLargeVolumeType TotalVolume;
- ///ͷ
- TThostFtdcLargeVolumeType LongVolume;
- ///
- TThostFtdcLargeVolumeType TotalVolumeFrozen;
- ///ͷ
- TThostFtdcLargeVolumeType LongVolumeFrozen;
-};
-
-///ѯ˾ֲ
-struct CThostFtdcQryBrokerLimitPosiField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///Ͷ֤ȯֲ
-struct CThostFtdcLimitPosiSField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcVolumeType TotalVolume;
- ///տ
- TThostFtdcVolumeType OpenVolume;
- ///
- TThostFtdcVolumeType TotalVolumeFrozen;
- ///տ
- TThostFtdcVolumeType OpenVolumeFrozen;
-};
-
-///ѯͶ֤ȯֲ
-struct CThostFtdcQryLimitPosiSField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///Ͷֲ߳Ʋ
-struct CThostFtdcLimitPosiParamField
-{
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///Ͷ߷Χ
- TThostFtdcInvestorRangeType InvestorRange;
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcVolumeType TotalVolume;
- ///ͷ
- TThostFtdcVolumeType LongVolume;
- ///նͷ
- TThostFtdcVolumeType OpenVolume;
- ///ͷֲֽ
- TThostFtdcMoneyType LongAmount;
-};
-
-///˾ֲƲ
-struct CThostFtdcBrokerLimitPosiParamField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcLargeVolumeType TotalVolume;
- ///ͷ
- TThostFtdcLargeVolumeType LongVolume;
-};
-
-///Ͷ֤ȯֲƲ
-struct CThostFtdcLimitPosiParamSField
-{
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///Ͷ߷Χ
- TThostFtdcInvestorRangeType InvestorRange;
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///
- TThostFtdcVolumeType TotalVolume;
- ///տ
- TThostFtdcVolumeType OpenVolume;
-};
-
-///֤ȯò
-struct CThostFtdcInputStockDisposalActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///֤ȯò
- TThostFtdcOrderActionRefType StockDisposalActionRef;
- ///֤ȯ
- TThostFtdcOrderRefType StockDisposalRef;
- ///
- TThostFtdcRequestIDType RequestID;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///֤ȯò
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///־
- TThostFtdcActionFlagType ActionFlag;
- ///û
- TThostFtdcUserIDType UserID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
-};
-
-///֤ȯò
-struct CThostFtdcStockDisposalActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///֤ȯò
- TThostFtdcOrderActionRefType StockDisposalActionRef;
- ///֤ȯ
- TThostFtdcOrderRefType StockDisposalRef;
- ///
- TThostFtdcRequestIDType RequestID;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///֤ȯò
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///־
- TThostFtdcActionFlagType ActionFlag;
- ///
- TThostFtdcDateType ActionDate;
- ///ʱ
- TThostFtdcTimeType ActionTime;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///֤ȯñ
- TThostFtdcOrderLocalIDType StockDisposalLocalID;
- ///ر
- TThostFtdcOrderLocalIDType ActionLocalID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///״̬
- TThostFtdcOrderActionStatusType OrderActionStatus;
- ///û
- TThostFtdcUserIDType UserID;
- ///ִ
- TThostFtdcActionTypeType ActionType;
- ///״̬Ϣ
- TThostFtdcErrorMsgType StatusMsg;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
-};
-
-///֤ȯòѯ
-struct CThostFtdcQryStockDisposalActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///֤ȯò
-struct CThostFtdcExchangeStockDisposalActionField
-{
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///֤ȯò
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///־
- TThostFtdcActionFlagType ActionFlag;
- ///
- TThostFtdcDateType ActionDate;
- ///ʱ
- TThostFtdcTimeType ActionTime;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///֤ȯñ
- TThostFtdcOrderLocalIDType StockDisposalLocalID;
- ///ر
- TThostFtdcOrderLocalIDType ActionLocalID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
- ///״̬
- TThostFtdcOrderActionStatusType OrderActionStatus;
- ///û
- TThostFtdcUserIDType UserID;
- ///ִ
- TThostFtdcActionTypeType ActionType;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
-};
-
-///֤ȯò
-struct CThostFtdcQryExchangeStockDisposalActionField
-{
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
///Ա
TThostFtdcParticipantIDType ParticipantID;
///ͻ
TThostFtdcClientIDType ClientID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
-};
-
-///ѯ֤ȯò
-struct CThostFtdcQryErrStockDisposalActionField
-{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
-};
-
-///֤ȯò
-struct CThostFtdcExchangeStockDisposalActionErrorField
-{
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///֤ȯñ
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///֤ȯñ
- TThostFtdcOrderLocalIDType StockDisposalLocalID;
- ///ر
- TThostFtdcOrderLocalIDType ActionLocalID;
- ///
- TThostFtdcErrorIDType ErrorID;
- ///Ϣ
- TThostFtdcErrorMsgType ErrorMsg;
- ///˾
- TThostFtdcBrokerIDType BrokerID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
-///֤ȯò
-struct CThostFtdcErrStockDisposalActionField
+///ѯ
+struct CThostFtdcQryBatchOrderActionField
{
///˾
TThostFtdcBrokerIDType BrokerID;
///Ͷߴ
TThostFtdcInvestorIDType InvestorID;
- ///֤ȯò
- TThostFtdcOrderActionRefType StockDisposalActionRef;
- ///֤ȯ
- TThostFtdcOrderRefType StockDisposalRef;
- ///
- TThostFtdcRequestIDType RequestID;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
///
TThostFtdcExchangeIDType ExchangeID;
- ///֤ȯò
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///־
- TThostFtdcActionFlagType ActionFlag;
- ///û
- TThostFtdcUserIDType UserID;
- ///Լ
- TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcErrorIDType ErrorID;
- ///Ϣ
- TThostFtdcErrorMsgType ErrorMsg;
};
///ϺԼȫϵ
@@ -4622,6 +4054,10 @@ struct CThostFtdcInputCombActionField
TThostFtdcHedgeFlagType HedgeFlag;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///
@@ -4677,6 +4113,10 @@ struct CThostFtdcCombActionField
TThostFtdcProductInfoType UserProductInfo;
///״̬Ϣ
TThostFtdcErrorMsgType StatusMsg;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ϲѯ
@@ -4727,6 +4167,10 @@ struct CThostFtdcExchangeCombActionField
TThostFtdcSettlementIDType SettlementID;
///
TThostFtdcSequenceNoType SequenceNo;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ϲѯ
@@ -4762,246 +4206,136 @@ struct CThostFtdcQryProductExchRateField
TThostFtdcInstrumentIDType ProductID;
};
-///ָ
-struct CThostFtdcInputDesignateField
+///ѯѯۼ۲
+struct CThostFtdcQryForQuoteParamField
{
///˾
TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///ָǼ
- TThostFtdcOrderRefType DesignateRef;
- ///û
- TThostFtdcUserIDType UserID;
- ///ָ
- TThostFtdcDesignateTypeType DesignateType;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
///
TThostFtdcExchangeIDType ExchangeID;
};
-///ָ
-struct CThostFtdcDesignateField
+///ѯۼ۲
+struct CThostFtdcForQuoteParamField
{
///˾
TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///ָǼ
- TThostFtdcOrderRefType DesignateRef;
- ///û
- TThostFtdcUserIDType UserID;
- ///ָ
- TThostFtdcDesignateTypeType DesignateType;
- ///ָ
- TThostFtdcOrderLocalIDType DesignateLocalID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
///
TThostFtdcExchangeIDType ExchangeID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///ָ״̬
- TThostFtdcOrderActionStatusType DesignateStatus;
- ///ʾ
- TThostFtdcSequenceNoType NotifySequence;
- ///
- TThostFtdcDateType TradingDay;
- ///
- TThostFtdcSettlementIDType SettlementID;
- ///
- TThostFtdcDateType InsertDate;
- ///ʱ
- TThostFtdcTimeType InsertTime;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///û˲ƷϢ
- TThostFtdcProductInfoType UserProductInfo;
- ///״̬Ϣ
- TThostFtdcErrorMsgType StatusMsg;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
+ ///¼
+ TThostFtdcPriceType LastPrice;
+ ///۲
+ TThostFtdcPriceType PriceInterval;
};
-///ָ
-struct CThostFtdcQryDesignateField
+///ǰȨԼѵϸ
+struct CThostFtdcMMOptionInstrCommRateField
{
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
///˾
TThostFtdcBrokerIDType BrokerID;
///Ͷߴ
TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
-};
-
-///ָϢ
-struct CThostFtdcExchangeDesignateField
-{
- ///ָ
- TThostFtdcDesignateTypeType DesignateType;
- ///ָ
- TThostFtdcOrderLocalIDType DesignateLocalID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///ָ״̬
- TThostFtdcOrderActionStatusType DesignateStatus;
- ///ʾ
- TThostFtdcSequenceNoType NotifySequence;
- ///
- TThostFtdcDateType TradingDay;
- ///
- TThostFtdcSettlementIDType SettlementID;
- ///
- TThostFtdcDateType InsertDate;
- ///ʱ
- TThostFtdcTimeType InsertTime;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
+ ///
+ TThostFtdcRatioType OpenRatioByMoney;
+ ///
+ TThostFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByVolume;
+ ///ִ
+ TThostFtdcRatioType StrikeRatioByMoney;
+ ///ִ
+ TThostFtdcRatioType StrikeRatioByVolume;
};
-///֤ȯ
-struct CThostFtdcInputStockDisposalField
+///Ȩʲѯ
+struct CThostFtdcQryMMOptionInstrCommRateField
{
///˾
TThostFtdcBrokerIDType BrokerID;
///Ͷߴ
TThostFtdcInvestorIDType InvestorID;
- ///֤ȯõǼ
- TThostFtdcOrderRefType StockDisposalRef;
- ///û
- TThostFtdcUserIDType UserID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcVolumeType Volume;
- ///֤ȯ÷
- TThostFtdcStockDisposalTypeType StockDisposalType;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
-///֤ȯ
-struct CThostFtdcStockDisposalField
+///̺Լ
+struct CThostFtdcMMInstrumentCommissionRateField
{
- ///˾
- TThostFtdcBrokerIDType BrokerID;
- ///Ͷߴ
- TThostFtdcInvestorIDType InvestorID;
- ///֤ȯõǼ
- TThostFtdcOrderRefType StockDisposalRef;
- ///û
- TThostFtdcUserIDType UserID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcVolumeType Volume;
- ///֤ȯ÷
- TThostFtdcStockDisposalTypeType StockDisposalType;
- ///֤ȯñ
- TThostFtdcOrderLocalIDType StockDisposalLocalID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///ԼڽĴ
- TThostFtdcExchangeInstIDType ExchangeInstID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///֤ȯ״̬
- TThostFtdcStockDisposalStatusType StockDisposalStatus;
- ///ʾ
- TThostFtdcSequenceNoType NotifySequence;
- ///
- TThostFtdcDateType TradingDay;
- ///
- TThostFtdcSettlementIDType SettlementID;
- ///
- TThostFtdcDateType InsertDate;
- ///ʱ
- TThostFtdcTimeType InsertTime;
- ///ǰñ
- TThostFtdcFrontIDType FrontID;
- ///Ự
- TThostFtdcSessionIDType SessionID;
- ///û˲ƷϢ
- TThostFtdcProductInfoType UserProductInfo;
- ///״̬Ϣ
- TThostFtdcErrorMsgType StatusMsg;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
- ///֤ȯò
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
-};
-
-///֤ȯ
-struct CThostFtdcQryStockDisposalField
-{
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
///˾
TThostFtdcBrokerIDType BrokerID;
///Ͷߴ
TThostFtdcInvestorIDType InvestorID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcRatioType OpenRatioByMoney;
+ ///
+ TThostFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByVolume;
};
-
-///֤ȯϢ
-struct CThostFtdcExchangeStockDisposalField
-{
- ///
- TThostFtdcVolumeType Volume;
- ///֤ȯ÷
- TThostFtdcStockDisposalTypeType StockDisposalType;
- ///֤ȯñ
- TThostFtdcOrderLocalIDType StockDisposalLocalID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
- ///ԼڽĴ
- TThostFtdcExchangeInstIDType ExchangeInstID;
- ///Ա
- TThostFtdcParticipantIDType ParticipantID;
- ///ͻ
- TThostFtdcClientIDType ClientID;
- ///Ա
- TThostFtdcTraderIDType TraderID;
- ///װ
- TThostFtdcInstallIDType InstallID;
- ///֤ȯ״̬
- TThostFtdcStockDisposalStatusType StockDisposalStatus;
- ///ʾ
- TThostFtdcSequenceNoType NotifySequence;
- ///
- TThostFtdcDateType TradingDay;
- ///
- TThostFtdcSettlementIDType SettlementID;
- ///
- TThostFtdcDateType InsertDate;
- ///ʱ
- TThostFtdcTimeType InsertTime;
- ///Ӫҵ
- TThostFtdcBranchIDType BranchID;
- ///֤ȯò
- TThostFtdcStockDisposalSysIDType StockDisposalSysID;
- ///ҵԪ
- TThostFtdcBusinessUnitType BusinessUnit;
+
+///ѯ̺Լ
+struct CThostFtdcQryMMInstrumentCommissionRateField
+{
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+};
+
+///ǰѵϸ
+struct CThostFtdcInstrumentOrderCommRateField
+{
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcRatioType OrderCommByVolume;
+ ///
+ TThostFtdcRatioType OrderActionCommByVolume;
+};
+
+///ʲѯ
+struct CThostFtdcQryInstrumentOrderCommRateField
+{
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
};
///г
@@ -5180,8 +4514,6 @@ struct CThostFtdcMarketDataUpdateTimeField
TThostFtdcMillisecType UpdateMillisec;
///ҵ
TThostFtdcDateType ActionDay;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///齻
@@ -5300,8 +4632,6 @@ struct CThostFtdcQryInvestorPositionDetailField
TThostFtdcInvestorIDType InvestorID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///Ͷֲ߳ϸ
@@ -5415,8 +4745,6 @@ struct CThostFtdcMDTraderOfferField
TThostFtdcTradeIDType MaxTradeID;
///ϯλ
TThostFtdcReturnCodeType MaxOrderMessageReference;
- ///ҵ
- TThostFtdcBizTypeType BizType;
};
///ѯ鱨̻
@@ -5644,8 +4972,6 @@ struct CThostFtdcBrokerUserEventField
TThostFtdcInvestorIDType InvestorID;
///Լ
TThostFtdcInstrumentIDType InstrumentID;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯǩԼ
@@ -5778,6 +5104,18 @@ struct CThostFtdcParkedOrderField
TThostFtdcErrorMsgType ErrorMsg;
///־
TThostFtdcBoolType IsSwapOrder;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///Ԥ
@@ -5821,6 +5159,12 @@ struct CThostFtdcParkedOrderActionField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ѯԤ
@@ -6043,6 +5387,18 @@ struct CThostFtdcErrOrderField
TThostFtdcBoolType IsSwapOrder;
///
TThostFtdcExchangeIDType ExchangeID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ѯ
@@ -6168,6 +5524,16 @@ struct CThostFtdcErrorConditionalOrderField
TThostFtdcBoolType IsSwapOrder;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///ʽ˺
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
};
///ѯ
@@ -6234,6 +5600,12 @@ struct CThostFtdcErrOrderActionField
TThostFtdcInstrumentIDType InstrumentID;
///Ӫҵ
TThostFtdcBranchIDType BranchID;
+ ///ͶʵԪ
+ TThostFtdcInvestUnitIDType InvestUnitID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
///
TThostFtdcErrorIDType ErrorID;
///Ϣ
@@ -6277,8 +5649,6 @@ struct CThostFtdcQueryMaxOrderVolumeWithPriceField
TThostFtdcVolumeType MaxVolume;
///۸
TThostFtdcPriceType Price;
- ///
- TThostFtdcExchangeIDType ExchangeID;
};
///ѯ˾ײ
@@ -6635,6 +6005,70 @@ struct CThostFtdcCFMMCTradingAccountTokenField
TThostFtdcCFMMCTokenType Token;
};
+///ѯƷ
+struct CThostFtdcQryProductGroupField
+{
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+};
+
+///ͶƷ/Ʒֱ֤Ʒ
+struct CThostFtdcProductGroupField
+{
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductGroupID;
+};
+
+///
+struct CThostFtdcBulletinField
+{
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcBulletinIDType BulletinID;
+ ///к
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TThostFtdcNewsTypeType NewsType;
+ ///̶
+ TThostFtdcNewsUrgencyType NewsUrgency;
+ ///ʱ
+ TThostFtdcTimeType SendTime;
+ ///ϢժҪ
+ TThostFtdcAbstractType Abstract;
+ ///ϢԴ
+ TThostFtdcComeFromType ComeFrom;
+ ///Ϣ
+ TThostFtdcContentType Content;
+ ///WEBַ
+ TThostFtdcURLLinkType URLLink;
+ ///г
+ TThostFtdcMarketIDType MarketID;
+};
+
+///ѯ
+struct CThostFtdcQryBulletinField
+{
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcBulletinIDType BulletinID;
+ ///к
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TThostFtdcNewsTypeType NewsType;
+ ///̶
+ TThostFtdcNewsUrgencyType NewsUrgency;
+};
+
///תʿ
struct CThostFtdcReqOpenAccountField
{
@@ -6726,6 +6160,8 @@ struct CThostFtdcReqOpenAccountField
TThostFtdcTIDType TID;
///ûʶ
TThostFtdcUserIDType UserID;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ת
@@ -6819,6 +6255,8 @@ struct CThostFtdcReqCancelAccountField
TThostFtdcTIDType TID;
///ûʶ
TThostFtdcUserIDType UserID;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///˻
@@ -6904,6 +6342,8 @@ struct CThostFtdcReqChangeAccountField
TThostFtdcTIDType TID;
///ժҪ
TThostFtdcDigestType Digest;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ת
@@ -6995,6 +6435,8 @@ struct CThostFtdcReqTransferField
TThostFtdcTIDType TID;
///ת˽״̬
TThostFtdcTransferStatusType TransferStatus;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///зʽתڻӦ
@@ -7090,6 +6532,8 @@ struct CThostFtdcRspTransferField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///
@@ -7195,6 +6639,8 @@ struct CThostFtdcReqRepealField
TThostFtdcTIDType TID;
///ת˽״̬
TThostFtdcTransferStatusType TransferStatus;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///Ӧ
@@ -7304,6 +6750,8 @@ struct CThostFtdcRspRepealField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ѯ˻Ϣ
@@ -7381,6 +6829,8 @@ struct CThostFtdcReqQueryAccountField
TThostFtdcRequestIDType RequestID;
///ID
TThostFtdcTIDType TID;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ѯ˻ϢӦ
@@ -7462,6 +6912,8 @@ struct CThostFtdcRspQueryAccountField
TThostFtdcTradeAmountType BankUseAmount;
///пȡ
TThostFtdcTradeAmountType BankFetchAmount;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ǩǩ
@@ -7719,6 +7171,8 @@ struct CThostFtdcReqQueryTradeResultBySerialField
TThostFtdcTradeAmountType TradeAmount;
///ժҪ
TThostFtdcDigestType Digest;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ѯָˮŵĽӦ
@@ -7874,6 +7328,8 @@ struct CThostFtdcVerifyCustInfoField
TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
///ͻ
TThostFtdcCustTypeType CustType;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///֤ڻʽͿͻϢ
@@ -7893,6 +7349,8 @@ struct CThostFtdcVerifyFuturePasswordAndCustInfoField
TThostFtdcPasswordType Password;
///ִ
TThostFtdcCurrencyIDType CurrencyID;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///֤ڻʽͿͻϢ
@@ -8091,6 +7549,8 @@ struct CThostFtdcNotifyQueryAccountField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ת˽ˮ
@@ -8374,6 +7834,8 @@ struct CThostFtdcAccountregisterField
TThostFtdcCustTypeType CustType;
///ʺ
TThostFtdcBankAccTypeType BankAccType;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ڿϢ
@@ -8471,6 +7933,8 @@ struct CThostFtdcOpenAccountField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///Ϣ
@@ -8568,6 +8032,8 @@ struct CThostFtdcCancelAccountField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ڱ˺Ϣ
@@ -8657,6 +8123,8 @@ struct CThostFtdcChangeAccountField
TThostFtdcErrorIDType ErrorID;
///Ϣ
TThostFtdcErrorMsgType ErrorMsg;
+ ///ͻ
+ TThostFtdcLongIndividualNameType LongCustomerName;
};
///ԱȨ
@@ -8747,6 +8215,8 @@ struct CThostFtdcLoginForbiddenUserField
TThostFtdcBrokerIDType BrokerID;
///û
TThostFtdcUserIDType UserID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
};
///ѯֹ¼û
@@ -8782,33 +8252,170 @@ struct CThostFtdcTradingAccountReserveField
TThostFtdcCurrencyIDType CurrencyID;
};
-///DBF¼
-struct CThostFtdcDBFRecordField
-{
- ///DBF
- TThostFtdcDBFComdTypeType DBFComdType;
- ///DBFʱ
- TThostFtdcDBFComTimeType DBFComTime;
- ///DBFԭʼˮ
- TThostFtdcDBFComNoType DBFOComNo;
- ///DBFˮ
- TThostFtdcDBFComNoType DBFComNo;
- ///DBFֶ
- TThostFtdcDBFFdNameType DBFFdName1;
- ///DBFֶ
- TThostFtdcDBFFdContentType DBFFdContent1;
- ///DBFֶ
- TThostFtdcDBFFdNameType DBFFdName2;
- ///DBFֶ
- TThostFtdcDBFFdContentType DBFFdContent2;
- ///DBFֶ
- TThostFtdcDBFFdNameType DBFFdName3;
- ///DBFֶ
- TThostFtdcDBFFdContentType DBFFdContent3;
- ///DBFֶ
- TThostFtdcDBFFdNameType DBFFdName4;
- ///DBFֶ
- TThostFtdcDBFFdContentType DBFFdContent4;
+///ԤԼȷ
+struct CThostFtdcReserveOpenAccountConfirmField
+{
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcLongIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ԤԼˮ
+ TThostFtdcBankSerialType BankReserveOpenSeq;
+ ///ԤԼ
+ TThostFtdcTradeDateType BookDate;
+ ///ԤԼ֤
+ TThostFtdcPasswordType BookPsw;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+};
+
+///ԤԼ
+struct CThostFtdcReserveOpenAccountField
+{
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcLongIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ԤԼ״̬
+ TThostFtdcReserveOpenAccStasType ReserveOpenAccStas;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
};
diff --git a/include/CTP/error.xml b/include/CTP/error.xml
index 4a798a1..5902604 100644
--- a/include/CTP/error.xml
+++ b/include/CTP/error.xml
@@ -63,7 +63,7 @@
-
+
@@ -96,24 +96,14 @@
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
+
+
+
@@ -155,7 +145,8 @@
-
+
+
@@ -170,7 +161,10 @@
+
+
+
diff --git a/include/CTP/linux32/libthostmduserapi.so b/include/CTP/linux32/libthostmduserapi.so
deleted file mode 100644
index 1b6e4cf..0000000
Binary files a/include/CTP/linux32/libthostmduserapi.so and /dev/null differ
diff --git a/include/CTP/linux32/libthosttraderapi.so b/include/CTP/linux32/libthosttraderapi.so
deleted file mode 100644
index 87c231e..0000000
Binary files a/include/CTP/linux32/libthosttraderapi.so and /dev/null differ
diff --git a/include/CTP/linux64/libthostmduserapi.so b/include/CTP/linux64/libthostmduserapi.so
index bae6a82..d09d25d 100644
Binary files a/include/CTP/linux64/libthostmduserapi.so and b/include/CTP/linux64/libthostmduserapi.so differ
diff --git a/include/CTP/linux64/libthosttraderapi.so b/include/CTP/linux64/libthosttraderapi.so
index 4fc941a..37001c8 100644
Binary files a/include/CTP/linux64/libthosttraderapi.so and b/include/CTP/linux64/libthosttraderapi.so differ
diff --git a/include/CTP/version.txt b/include/CTP/version.txt
index f7e01f2..ad2b2f5 100644
--- a/include/CTP/version.txt
+++ b/include/CTP/version.txt
@@ -1,3 +1,4 @@
20141217 64位windows
20141230 其它版本
-20150324 个股期权版
\ No newline at end of file
+20150324 个股期权版
+20160606 修正CTP断线重连崩溃的Bug
\ No newline at end of file
diff --git a/include/CTP/win32/thostmduserapi.dll b/include/CTP/win32/thostmduserapi.dll
index c5186ef..89b7cec 100644
Binary files a/include/CTP/win32/thostmduserapi.dll and b/include/CTP/win32/thostmduserapi.dll differ
diff --git a/include/CTP/win32/thostmduserapi.lib b/include/CTP/win32/thostmduserapi.lib
index b14c3e9..a538487 100644
Binary files a/include/CTP/win32/thostmduserapi.lib and b/include/CTP/win32/thostmduserapi.lib differ
diff --git a/include/CTP/win32/thosttraderapi.dll b/include/CTP/win32/thosttraderapi.dll
index 79999aa..9e38618 100644
Binary files a/include/CTP/win32/thosttraderapi.dll and b/include/CTP/win32/thosttraderapi.dll differ
diff --git a/include/CTP/win32/thosttraderapi.lib b/include/CTP/win32/thosttraderapi.lib
index fbb60a7..11137c2 100644
Binary files a/include/CTP/win32/thosttraderapi.lib and b/include/CTP/win32/thosttraderapi.lib differ
diff --git a/include/CTP/win64/thostmduserapi.dll b/include/CTP/win64/thostmduserapi.dll
new file mode 100644
index 0000000..05ac512
Binary files /dev/null and b/include/CTP/win64/thostmduserapi.dll differ
diff --git a/include/CTP/win64/thostmduserapi.lib b/include/CTP/win64/thostmduserapi.lib
new file mode 100644
index 0000000..8066490
Binary files /dev/null and b/include/CTP/win64/thostmduserapi.lib differ
diff --git a/include/CTP/win64/thosttraderapi.dll b/include/CTP/win64/thosttraderapi.dll
new file mode 100644
index 0000000..cccd7ed
Binary files /dev/null and b/include/CTP/win64/thosttraderapi.dll differ
diff --git a/include/CTP/win64/thosttraderapi.lib b/include/CTP/win64/thosttraderapi.lib
new file mode 100644
index 0000000..13ed74f
Binary files /dev/null and b/include/CTP/win64/thosttraderapi.lib differ
diff --git a/include/ChinaStock.cpp b/include/ChinaStock.cpp
index 2b16aa6..3054e2a 100644
--- a/include/ChinaStock.cpp
+++ b/include/ChinaStock.cpp
@@ -3,10 +3,17 @@
#include
+//http://www.jisilu.cn/question/37830
+//提问:如何识别哪些分级是上海分级基金?
+//回答:上海分级母基、A和B份额的代码是以50开头的,深交所的分级A和B类的代码以15开头,母基的代码以16开头。
+
+//http://www.sse.com.cn/assortment/fund/list/
+//http://lefu.szse.cn/
InstrumentType InstrumentID_2_InstrumentType_SSE(int In)
{
// 只有6位,8位的期权已经提前过滤
int prefix1 = In / 100000;
+ int prefix2 = In / 10000;
int prefix3 = In / 1000;
switch (prefix1)
{
@@ -32,6 +39,13 @@ InstrumentType InstrumentID_2_InstrumentType_SSE(int In)
case 3:
return InstrumentType::InstrumentType_Future;
case 5:
+ switch (prefix2)
+ {
+ case 50:
+ return InstrumentType::InstrumentType_LOF; //
+ case 51:
+ return InstrumentType::InstrumentType_ETF; //
+ }
switch (prefix3)
{
case 500:
@@ -57,11 +71,12 @@ InstrumentType InstrumentID_2_InstrumentType_SSE(int In)
}
}
-InstrumentType InstrumentID_2_InstrumentType_SZE(int In)
+InstrumentType InstrumentID_2_InstrumentType_SZSE(int In)
{
// 只有6位,取前2
int prefix1 = In / 100000;
int prefix2 = In / 10000;
+ int prefix3 = In / 1000;
switch (prefix2)
{
case 0:
@@ -76,6 +91,15 @@ InstrumentType InstrumentID_2_InstrumentType_SZE(int In)
case 12:
case 13:
return InstrumentType::InstrumentType_Bond;
+ case 15:// AB
+ switch (prefix3)
+ {
+ case 159:
+ return InstrumentType::InstrumentType_ETF;
+ }
+ return InstrumentType::InstrumentType_LOF;
+ case 16:// 母基
+ return InstrumentType::InstrumentType_LOF;
case 17:
case 18:
return InstrumentType::InstrumentType_ETF;
@@ -104,6 +128,7 @@ PriceType InstrumentID_2_PriceTick_SSE(int In)
{
// 只有6位,8位的期权已经提前过滤
int prefix1 = In / 100000;
+ int prefix2 = In / 10000;
int prefix3 = In / 1000;
switch (prefix1)
{
@@ -132,11 +157,12 @@ PriceType InstrumentID_2_PriceTick_SSE(int In)
return 0.01;
}
-PriceType InstrumentID_2_PriceTick_SZE(int In)
+PriceType InstrumentID_2_PriceTick_SZSE(int In)
{
// 只有6位,取前2
int prefix1 = In / 100000;
int prefix2 = In / 10000;
+ int prefix3 = In / 1000;
switch (prefix2)
{
case 0:
@@ -151,6 +177,9 @@ PriceType InstrumentID_2_PriceTick_SZE(int In)
case 12:
case 13:
return 0.001;
+ case 15:
+ case 16:
+ return 0.001;
case 17:
case 18:
return 0.001;
diff --git a/include/ChinaStock.h b/include/ChinaStock.h
index 38dd081..82f0047 100644
--- a/include/ChinaStock.h
+++ b/include/ChinaStock.h
@@ -11,9 +11,9 @@
InstrumentType InstrumentID_2_InstrumentType_SSE(int In);
-InstrumentType InstrumentID_2_InstrumentType_SZE(int In);
+InstrumentType InstrumentID_2_InstrumentType_SZSE(int In);
InstrumentType InstrumentID_2_InstrumentType_NEEQ(int In);
PriceType InstrumentID_2_PriceTick_SSE(int In);
-PriceType InstrumentID_2_PriceTick_SZE(int In);
+PriceType InstrumentID_2_PriceTick_SZSE(int In);
PriceType InstrumentID_2_PriceTick_NEEQ(int In);
#endif
\ No newline at end of file
diff --git a/include/FeiShu/SgitFtdcMdApi.h b/include/FeiShu/SgitFtdcMdApi.h
new file mode 100644
index 0000000..91a1ef3
--- /dev/null
+++ b/include/FeiShu/SgitFtdcMdApi.h
@@ -0,0 +1,118 @@
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+
+#if !defined(Sgit_FTDCMDAPI_H)
+#define Sgit_FTDCMDAPI_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "SgitFtdcUserApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32)
+#ifdef LIB_MD_API_EXPORT
+#define MD_API_EXPORT __declspec(dllexport)
+#else
+#define MD_API_EXPORT __declspec(dllimport)
+#endif
+#else
+#define MD_API_EXPORT
+#endif
+
+class CSgitFtdcMdSpi
+{
+public:
+ ///ͻ뽻̨ͨʱδ¼ǰ÷á
+ virtual void OnFrontConnected(){};
+
+ ///ͻ뽻̨ͨӶϿʱ÷áAPIԶӣͻ˿ɲ
+ ///@param pErrMsg ԭ
+ virtual void OnFrontDisconnected(char *pErrMsg){};
+
+ ///¼Ӧ
+ virtual void OnRspUserLogin(CSgitFtdcRspUserLoginField *pRspUserLogin, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///dzӦ
+ virtual void OnRspUserLogout(CSgitFtdcUserLogoutField *pUserLogout, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///֪ͨ
+ virtual void OnRtnDepthMarketData(CSgitFtdcDepthMarketDataField *pDepthMarketData) {};
+};
+
+class MD_API_EXPORT CSgitFtdcMdApi
+{
+public:
+ ///MdApi
+ ///@param pszFlowPath ϢļĿ¼ĬΪǰĿ¼
+ ///@return UserApi
+ static CSgitFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "");
+
+ ///ɾӿڶ
+ ///@remark ʹñӿڶʱ,øúɾӿڶ
+ virtual void Release() = 0;
+
+ ///ʼ
+ ///@remark ʼл,ֻеú,ӿڲſʼ
+ ///isLogged ʱʹtrueԴӡյϢ
+ virtual void Init(bool isLogged) = 0;
+
+ ///ȴӿ߳̽
+ ///@return ߳˳
+ virtual int Join() = 0;
+
+ ///ȡǰ
+ ///@retrun ȡĽ
+ ///@remark ֻе¼ɹ,ܵõȷĽ
+ virtual const char *GetTradingDay() = 0;
+
+ ///עǰûַ
+ ///@param pszFrontAddressǰûַ
+ ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:17001
+ ///@remark tcpЭ飬127.0.0.1ַ17001˿ںš
+ virtual void RegisterFront(char *pszFrontAddress) = 0;
+
+ /**öಥʱTCPҲҪ
+ *øúĬϲtcpģʽ
+ *öಥ MlCast://hostIP$multiaddress:port
+ *ֻһ MlCast://ANY$multiaddress:port
+ * @param szMlCastAddr ipַಥ鼰˿
+ */
+ virtual void SetMultiCastAddr(char *szMlCastAddr) = 0;
+
+ ///עصӿ
+ ///@param pSpi Իصӿʵ
+ virtual void RegisterSpi(CSgitFtdcMdSpi *pSpi) = 0;
+ ///г
+ ///@param nResumeType شʽ
+ /// Sgit_TERT_RESTART:ӱտʼش
+ /// Sgit_TERT_RESUME:ϴյ
+ /// Sgit_TERT_QUICK:ֻ͵¼
+ ///@remark ÷ҪInitǰáյݡ
+ virtual void SubscribeMarketTopic(Sgit_TE_RESUME_TYPE nResumeType) = 0;
+
+ ///
+ /// 鶩
+ /// @param iRequestID
+ /// @param pMBLQuotReq 鶩
+ /// @return 0ʾɹ
+ /// @return ʾʧ
+ ///
+ virtual int SubQuot(CSgitSubQuotField *pSgitSubQuotField)=0;
+ ///;ָǰ,֪ͨǰÿԸԼ˽빫
+ /// @return 0ʾɹ
+ /// @return μ
+ ///
+ virtual int Ready() = 0;
+
+ ///û¼
+ virtual int ReqUserLogin(CSgitFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0;
+
+ ///dz
+ virtual int ReqUserLogout(CSgitFtdcUserLogoutField *pUserLogout, int nRequestID) = 0;
+protected:
+ ~CSgitFtdcMdApi(){};
+};
+
+#endif
diff --git a/include/FeiShu/SgitFtdcTraderApi.h b/include/FeiShu/SgitFtdcTraderApi.h
new file mode 100644
index 0000000..d5ce40f
--- /dev/null
+++ b/include/FeiShu/SgitFtdcTraderApi.h
@@ -0,0 +1,204 @@
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+
+#if !defined(Sgit_FTDCTRADERAPI_H)
+#define Sgit_FTDCTRADERAPI_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "SgitFtdcUserApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32)
+#ifdef LIB_TRADER_API_EXPORT
+#define TRADER_API_EXPORT __declspec(dllexport)
+#else
+#define TRADER_API_EXPORT __declspec(dllimport)
+#endif
+#else
+#define TRADER_API_EXPORT
+#endif
+
+class CSgitFtdcTraderSpi
+{
+public:
+ ///ͻ뽻̨ͨʱδ¼ǰ÷á
+ virtual void OnFrontConnected(){};
+
+ ///ͻ뽻̨ͨӶϿʱ÷áAPIԶӣͻ˿ɲ
+ ///@param pErrMsg ԭ
+ virtual void OnFrontDisconnected(char *pErrMsg){};
+
+ ///¼Ӧ
+ virtual void OnRspUserLogin(CSgitFtdcRspUserLoginField *pRspUserLogin, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///dzӦ
+ virtual void OnRspUserLogout(CSgitFtdcUserLogoutField *pUserLogout, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ûӦ
+ virtual void OnRspUserPasswordUpdate(CSgitFtdcUserPasswordUpdateField *pUserPasswordUpdate, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///¼Ӧ
+ virtual void OnRspOrderInsert(CSgitFtdcInputOrderField *pInputOrder, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspOrderAction(CSgitFtdcInputOrderActionField *pInputOrderAction, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryOrder(CSgitFtdcOrderField *pOrder, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯʽ˻Ӧ
+ virtual void OnRspQryTradingAccount(CSgitFtdcTradingAccountField *pTradingAccount, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶӦ
+ virtual void OnRspQryInvestor(CSgitFtdcInvestorField *pInvestor, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼӦ
+ virtual void OnRspQryInstrument(CSgitFtdcInstrumentField *pInstrument, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///֪ͨ
+ virtual void OnRtnOrder(CSgitFtdcOrderField *pOrder,CSgitFtdcRspInfoField *pRspInfo) {};
+
+ ///ɽ֪ͨ
+ virtual void OnRtnTrade(CSgitFtdcTradeField *pTrade) {};
+
+ ///Լ״̬֪ͨ
+ virtual void OnRtnInstrumentStatus(CSgitFtdcInstrumentStatusField *pInstrumentStatus) {};
+
+ ///ѯͶֲ߳ϸӦ
+ virtual void OnRspQryInvestorPositionDetail(CSgitFtdcInvestorPositionDetailField *pInvestorPositionDetail, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶֲ߳Ӧ
+ virtual void OnRspQryInvestorPosition(CSgitFtdcInvestorPositionField *pInvestorPosition, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ /// յԼλѯӦʱصú
+ virtual void onRspMBLQuot(CSgitMBLQuotData *pMBLQuotData,CSgitFtdcRspInfoField *pRspMsg,int nRequestID,bool bIsLast){};
+
+ ///ѯɽӦ
+ virtual void OnRspQryTrade(CSgitFtdcTradeField *pTrade, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼ֤Ӧ
+ virtual void OnRspQryInstrumentMarginRate(CSgitFtdcInstrumentMarginRateField *pInstrumentMarginRate, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼӦ
+ virtual void OnRspQryInstrumentCommissionRate(CSgitFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯױӦ
+ virtual void OnRspQryTradingCode(CSgitFtdcTradingCodeField *pTradingCode, CSgitFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+
+};
+
+class TRADER_API_EXPORT CSgitFtdcTraderApi
+{
+public:
+ ///TraderApi
+ ///@param pszFlowPath ϢļĿ¼ĬΪǰĿ¼
+ ///@return UserApi
+ static CSgitFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = "");
+
+ ///ɾӿڶ
+ ///@remark ʹñӿڶʱ,øúɾӿڶ
+ virtual void Release() = 0;
+
+ ///ʼ
+ ///@remark ʼл,ֻеú,ӿڲſʼ
+ ///isLogged ʱʹtrueԴӡյϢ
+ virtual void Init(bool isLogged) = 0;
+
+ ///ȴӿ߳̽
+ ///@return ߳˳
+ virtual int Join() = 0;
+
+ ///ȡǰ
+ ///@retrun ȡĽ
+ ///@remark ֻе¼ɹ,ܵõȷĽ
+ virtual const char *GetTradingDay() = 0;
+
+ ///עǰûַ
+ ///@param pszFrontAddressǰûַ
+ ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:17001
+ ///@remark tcpЭ飬127.0.0.1ַ17001˿ںš
+ virtual void RegisterFront(char *pszFrontAddress) = 0;
+
+ ///עصӿ
+ ///@param pSpi Իصӿʵ
+ virtual void RegisterSpi(CSgitFtdcTraderSpi *pSpi) = 0;
+
+ ///˽
+ ///@param nResumeType ˽شʽ
+ /// Sgit_TERT_RESTART:ӱտʼش
+ /// Sgit_TERT_RESUME:ϴյ
+ /// Sgit_TERT_QUICK:ֻ͵¼˽
+ ///@remark ÷ҪInitǰáյ˽ݡ
+ virtual void SubscribePrivateTopic(Sgit_TE_RESUME_TYPE nResumeType) = 0;
+
+ ///Ĺ
+ ///@param nResumeType شʽ
+ /// Sgit_TERT_RESTART:ӱտʼش
+ /// Sgit_TERT_RESUME:ϴյ
+ /// Sgit_TERT_QUICK:ֻ͵¼
+ ///@remark ÷ҪInitǰáյݡ
+ virtual void SubscribePublicTopic(Sgit_TE_RESUME_TYPE nResumeType) = 0;
+
+ ///;ָǰ,֪ͨǰÿԸԼ˽빫
+ /// @return 0ʾɹ
+ /// @return μ
+ ///
+ virtual int Ready() = 0;
+
+ ///û¼
+ virtual int ReqUserLogin(CSgitFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0;
+
+ ///dz
+ virtual int ReqUserLogout(CSgitFtdcUserLogoutField *pUserLogout, int nRequestID) = 0;
+
+ ///û
+ virtual int ReqUserPasswordUpdate(CSgitFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0;
+
+ ///¼
+ virtual int ReqOrderInsert(CSgitFtdcInputOrderField *pInputOrder, int nRequestID) = 0;
+
+ ///
+ virtual int ReqOrderAction(CSgitFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryOrder(CSgitFtdcQryOrderField *pQryOrder, int nRequestID) = 0;
+
+ ///ѯʽ˻
+ virtual int ReqQryTradingAccount(CSgitFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0;
+
+ ///ѯͶ
+ virtual int ReqQryInvestor(CSgitFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0;
+
+ ///ѯԼ
+ virtual int ReqQryInstrument(CSgitFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0;
+
+ ///ѯͶֲ߳ϸ
+ virtual int ReqQryInvestorPositionDetail(CSgitFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0;
+
+ ///ѯͶֲ߳
+ virtual int ReqQryInvestorPosition(CSgitFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0;
+
+ /// ͺԼλѯ
+ virtual int ReqMBLQuot(int iRequestID,CSgitMBLQuotReq *pMBLQuotReq) = 0;
+
+ ///ѯɽ
+ virtual int ReqQryTrade(CSgitFtdcQryTradeField *pQryTrade, int nRequestID) = 0;
+
+ ///ѯԼ֤
+ virtual int ReqQryInstrumentMarginRate(CSgitFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0;
+
+ ///ѯԼ
+ virtual int ReqQryInstrumentCommissionRate(CSgitFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0;
+
+ ///ѯױ
+ virtual int ReqQryTradingCode(CSgitFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0;
+
+protected:
+ ~CSgitFtdcTraderApi(){};
+};
+
+#endif
diff --git a/include/FeiShu/SgitFtdcUserApiDataType.h b/include/FeiShu/SgitFtdcUserApiDataType.h
new file mode 100644
index 0000000..e53d0ea
--- /dev/null
+++ b/include/FeiShu/SgitFtdcUserApiDataType.h
@@ -0,0 +1,4818 @@
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef Sgit_FTDCDATATYPE_H
+#define Sgit_FTDCDATATYPE_H
+
+enum Sgit_TE_RESUME_TYPE
+{
+ Sgit_TERT_RESTART = 0,
+ Sgit_TERT_RESUME,
+ Sgit_TERT_QUICK
+};
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTraderIDTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTraderIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorIDTypeһͶߴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInvestorIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerIDTypeһ˾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBrokerIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerAbbrTypeһ˾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBrokerAbbrType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerNameTypeһ˾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBrokerNameType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeInstIDTypeһԼڽĴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcExchangeInstIDType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderRefTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrderRefType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParticipantIDTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcParticipantIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserIDTypeһû
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUserIDType[16];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPasswordTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPasswordType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClientIDTypeһױ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClientIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstrumentIDTypeһԼ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInstrumentIDType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMarketIDTypeһг
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcMarketIDType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProductNameTypeһƷ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProductNameType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcExchangeIDType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcExchangeNameType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeAbbrTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcExchangeAbbrType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeFlagTypeһ־
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcExchangeFlagType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMacAddressTypeһMacַ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcMacAddressType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangePropertyTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_EXP_Normal '0'
+///ݳɽɱ
+#define Sgit_FTDC_EXP_GenOrderByTrade '1'
+
+typedef char TSgitFtdcExchangePropertyType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDateTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDateType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTimeTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTimeType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLongTimeTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcLongTimeType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstrumentNameTypeһԼ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInstrumentNameType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettlementGroupIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSettlementGroupIDType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderSysIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrderSysIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeIDTypeһɽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTradeIDType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommandTypeTypeһDB
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCommandTypeType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIPAddressTypeһIPַ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcIPAddressType[16];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProductInfoTypeһƷϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProductInfoType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProtocolInfoTypeһЭϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProtocolInfoType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBusinessUnitTypeһҵԪ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBusinessUnitType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDepositSeqNoTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDepositSeqNoType[15];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIdentifiedCardNoTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcIdentifiedCardNoType[51];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIdCardTypeTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+///֯
+#define Sgit_FTDC_ICT_EID '0'
+///֤
+#define Sgit_FTDC_ICT_IDCard '1'
+///֤
+#define Sgit_FTDC_ICT_OfficerIDCard '2'
+///֤
+#define Sgit_FTDC_ICT_PoliceIDCard '3'
+///ʿ֤
+#define Sgit_FTDC_ICT_SoldierIDCard '4'
+///ڲ
+#define Sgit_FTDC_ICT_HouseholdRegister '5'
+///
+#define Sgit_FTDC_ICT_Passport '6'
+///̨֤
+#define Sgit_FTDC_ICT_TaiwanCompatriotIDCard '7'
+///֤
+#define Sgit_FTDC_ICT_HomeComingCard '8'
+///Ӫҵִպ
+#define Sgit_FTDC_ICT_LicenseNo '9'
+///˰ǼǺ
+#define Sgit_FTDC_ICT_TaxNo 'A'
+///֤
+#define Sgit_FTDC_ICT_OtherCard 'x'
+
+typedef char TSgitFtdcIdCardTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderLocalIDTypeһر
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrderLocalIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserNameTypeһû
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUserNameType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPartyNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPartyNameType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcErrorMsgTypeһϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcErrorMsgType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFieldNameTypeһֶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFieldNameType[2049];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFieldContentTypeһֶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFieldContentType[2049];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSystemNameTypeһϵͳ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSystemNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcContentTypeһϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcContentType[501];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorRangeTypeһͶ߷Χ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_IR_All '1'
+///Ͷ
+#define Sgit_FTDC_IR_Group '2'
+///һͶ
+#define Sgit_FTDC_IR_Single '3'
+
+typedef char TSgitFtdcInvestorRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDepartmentRangeTypeһͶ߷Χ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_DR_All '1'
+///ܹ֯
+#define Sgit_FTDC_DR_Group '2'
+///һͶ
+#define Sgit_FTDC_DR_Single '3'
+
+typedef char TSgitFtdcDepartmentRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDataSyncStatusTypeһͬ״̬
+/////////////////////////////////////////////////////////////////////////
+///δͬ
+#define Sgit_FTDC_DS_Asynchronous '1'
+///ͬ
+#define Sgit_FTDC_DS_Synchronizing '2'
+///ͬ
+#define Sgit_FTDC_DS_Synchronized '3'
+
+typedef char TSgitFtdcDataSyncStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerDataSyncStatusTypeһ˾ͬ״̬
+/////////////////////////////////////////////////////////////////////////
+///ͬ
+#define Sgit_FTDC_BDS_Synchronized '1'
+///ͬ
+#define Sgit_FTDC_BDS_Synchronizing '2'
+
+typedef char TSgitFtdcBrokerDataSyncStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeConnectStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///ûκ
+#define Sgit_FTDC_ECS_NoConnection '1'
+///ѾԼѯ
+#define Sgit_FTDC_ECS_QryInstrumentSent '2'
+///ѾȡϢ
+#define Sgit_FTDC_ECS_GotInformation '9'
+
+typedef char TSgitFtdcExchangeConnectStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTraderConnectStatusTypeһԱ״̬
+/////////////////////////////////////////////////////////////////////////
+///ûκ
+#define Sgit_FTDC_TCS_NotConnected '1'
+///Ѿ
+#define Sgit_FTDC_TCS_Connected '2'
+///ѾԼѯ
+#define Sgit_FTDC_TCS_QryInstrumentSent '3'
+///˽
+#define Sgit_FTDC_TCS_SubPrivateFlow '4'
+
+typedef char TSgitFtdcTraderConnectStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFunctionCodeTypeһܴ
+/////////////////////////////////////////////////////////////////////////
+///첽
+#define Sgit_FTDC_FC_DataAsync '1'
+///ǿûdz
+#define Sgit_FTDC_FC_ForceUserLogout '2'
+///û
+#define Sgit_FTDC_FC_UserPasswordUpdate '3'
+///˾
+#define Sgit_FTDC_FC_BrokerPasswordUpdate '4'
+///Ͷ߿
+#define Sgit_FTDC_FC_InvestorPasswordUpdate '5'
+///
+#define Sgit_FTDC_FC_OrderInsert '6'
+///
+#define Sgit_FTDC_FC_OrderAction '7'
+///ͬϵͳ
+#define Sgit_FTDC_FC_SyncSystemData '8'
+///ͬ˾
+#define Sgit_FTDC_FC_SyncBrokerData '9'
+///ͬ˾
+#define Sgit_FTDC_FC_BachSyncBrokerData 'A'
+///ѯ
+#define Sgit_FTDC_FC_SuperQuery 'B'
+///
+#define Sgit_FTDC_FC_ParkedOrderInsert 'C'
+///
+#define Sgit_FTDC_FC_ParkedOrderAction 'D'
+///̬ͬ
+#define Sgit_FTDC_FC_SyncOTP 'E'
+
+typedef char TSgitFtdcFunctionCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerFunctionCodeTypeһ˾ܴ
+/////////////////////////////////////////////////////////////////////////
+///ǿûdz
+#define Sgit_FTDC_BFC_ForceUserLogout '1'
+///û
+#define Sgit_FTDC_BFC_UserPasswordUpdate '2'
+///ͬ˾
+#define Sgit_FTDC_BFC_SyncBrokerData '3'
+///ͬ˾
+#define Sgit_FTDC_BFC_BachSyncBrokerData '4'
+///
+#define Sgit_FTDC_BFC_OrderInsert '5'
+///
+#define Sgit_FTDC_BFC_OrderAction '6'
+///ȫѯ
+#define Sgit_FTDC_BFC_AllQuery '7'
+///ϵͳܣ/dz/
+#define Sgit_FTDC_BFC_log 'a'
+///ѯѯݣԼȳ
+#define Sgit_FTDC_BFC_BaseQry 'b'
+///ײѯɽί
+#define Sgit_FTDC_BFC_TradeQry 'c'
+///ܣ
+#define Sgit_FTDC_BFC_Trade 'd'
+///ת
+#define Sgit_FTDC_BFC_Virement 'e'
+///ռ
+#define Sgit_FTDC_BFC_Risk 'f'
+///ѯ/ѯỰ˵
+#define Sgit_FTDC_BFC_Session 'g'
+///֪ͨ
+#define Sgit_FTDC_BFC_RiskNoticeCtl 'h'
+///֪ͨ
+#define Sgit_FTDC_BFC_RiskNotice 'i'
+///쿴˾ʽȨ
+#define Sgit_FTDC_BFC_BrokerDeposit 'j'
+///ʽѯ
+#define Sgit_FTDC_BFC_QueryFund 'k'
+///ѯ
+#define Sgit_FTDC_BFC_QueryOrder 'l'
+///ɽѯ
+#define Sgit_FTDC_BFC_QueryTrade 'm'
+///ֲֲѯ
+#define Sgit_FTDC_BFC_QueryPosition 'n'
+///ѯ
+#define Sgit_FTDC_BFC_QueryMarketData 'o'
+///û¼ѯ
+#define Sgit_FTDC_BFC_QueryUserEvent 'p'
+///֪ͨѯ
+#define Sgit_FTDC_BFC_QueryRiskNotify 'q'
+///ѯ
+#define Sgit_FTDC_BFC_QueryFundChange 'r'
+///ͶϢѯ
+#define Sgit_FTDC_BFC_QueryInvestor 's'
+///ױѯ
+#define Sgit_FTDC_BFC_QueryTradingCode 't'
+///ǿƽ
+#define Sgit_FTDC_BFC_ForceClose 'u'
+///ѹ
+#define Sgit_FTDC_BFC_PressTest 'v'
+///Ȩ淴
+#define Sgit_FTDC_BFC_RemainCalc 'w'
+///ֱֲָ֤
+#define Sgit_FTDC_BFC_NetPositionInd 'x'
+///Ԥ
+#define Sgit_FTDC_BFC_RiskPredict 'y'
+///ݵ
+#define Sgit_FTDC_BFC_DataExport 'z'
+///ָ
+#define Sgit_FTDC_BFC_RiskTargetSetup 'A'
+///Ԥ
+#define Sgit_FTDC_BFC_MarketDataWarn 'B'
+///ҵ֪ͨѯ
+#define Sgit_FTDC_BFC_QryBizNotice 'C'
+///ҵ֪ͨģ
+#define Sgit_FTDC_BFC_CfgBizNotice 'D'
+///̬ͬ
+#define Sgit_FTDC_BFC_SyncOTP 'E'
+///ҵ֪ͨ
+#define Sgit_FTDC_BFC_SendBizNotice 'F'
+///ռ
+#define Sgit_FTDC_BFC_CfgRiskLevelStd 'G'
+
+typedef char TSgitFtdcBrokerFunctionCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderActionStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ѿύ
+#define Sgit_FTDC_OAS_Submitted 'a'
+///Ѿ
+#define Sgit_FTDC_OAS_Accepted 'b'
+///Ѿܾ
+#define Sgit_FTDC_OAS_Rejected 'c'
+
+typedef char TSgitFtdcOrderActionStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///ȫɽ
+#define Sgit_FTDC_OST_AllTraded '0'
+///ֳɽڶ
+#define Sgit_FTDC_OST_PartTradedQueueing '1'
+///ֳɽڶ
+#define Sgit_FTDC_OST_PartTradedNotQueueing '2'
+///δɽڶ
+#define Sgit_FTDC_OST_NoTradeQueueing '3'
+///δɽڶ
+#define Sgit_FTDC_OST_NoTradeNotQueueing '4'
+///
+#define Sgit_FTDC_OST_Canceled '5'
+///δ֪
+#define Sgit_FTDC_OST_Unknown 'a'
+///δ
+#define Sgit_FTDC_OST_NotTouched 'b'
+///Ѵ
+#define Sgit_FTDC_OST_Touched 'c'
+
+typedef char TSgitFtdcOrderStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderSubmitStatusTypeһύ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ѿύ
+#define Sgit_FTDC_OSS_InsertSubmitted '0'
+///Ѿύ
+#define Sgit_FTDC_OSS_CancelSubmitted '1'
+///Ѿύ
+#define Sgit_FTDC_OSS_ModifySubmitted '2'
+///Ѿ
+#define Sgit_FTDC_OSS_Accepted '3'
+///Ѿܾ
+#define Sgit_FTDC_OSS_InsertRejected '4'
+///Ѿܾ
+#define Sgit_FTDC_OSS_CancelRejected '5'
+///ĵѾܾ
+#define Sgit_FTDC_OSS_ModifyRejected '6'
+
+typedef char TSgitFtdcOrderSubmitStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPositionDateTypeһֲ
+/////////////////////////////////////////////////////////////////////////
+///ճֲ
+#define Sgit_FTDC_PSD_Today '1'
+///ʷֲ
+#define Sgit_FTDC_PSD_History '2'
+
+typedef char TSgitFtdcPositionDateType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPositionDateTypeTypeһֲ
+/////////////////////////////////////////////////////////////////////////
+///ʹʷֲ
+#define Sgit_FTDC_PDT_UseHistory '1'
+///ʹʷֲ
+#define Sgit_FTDC_PDT_NoUseHistory '2'
+
+typedef char TSgitFtdcPositionDateTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradingRoleTypeһɫ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_ER_Broker '1'
+///Ӫ
+#define Sgit_FTDC_ER_Host '2'
+///
+#define Sgit_FTDC_ER_Maker '3'
+
+typedef char TSgitFtdcTradingRoleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProductClassTypeһƷ
+/////////////////////////////////////////////////////////////////////////
+///ڻ
+#define Sgit_FTDC_PC_Futures '1'
+///Ȩ
+#define Sgit_FTDC_PC_Options '2'
+///
+#define Sgit_FTDC_PC_Combination '3'
+///
+#define Sgit_FTDC_PC_Spot '4'
+///ת
+#define Sgit_FTDC_PC_EFP '5'
+
+typedef char TSgitFtdcProductClassType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstLifePhaseTypeһԼ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_IP_NotStart '0'
+///
+#define Sgit_FTDC_IP_Started '1'
+///ͣ
+#define Sgit_FTDC_IP_Pause '2'
+///
+#define Sgit_FTDC_IP_Expired '3'
+
+typedef char TSgitFtdcInstLifePhaseType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDirectionTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_D_Buy '0'
+///
+#define Sgit_FTDC_D_Sell '1'
+
+typedef char TSgitFtdcDirectionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPositionTypeTypeһֲ
+/////////////////////////////////////////////////////////////////////////
+///ֲ
+#define Sgit_FTDC_PT_Net '1'
+///ۺϳֲ
+#define Sgit_FTDC_PT_Gross '2'
+
+typedef char TSgitFtdcPositionTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPosiDirectionTypeһֲֶշ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_PD_Net '1'
+///ͷ
+#define Sgit_FTDC_PD_Long '2'
+///ͷ
+#define Sgit_FTDC_PD_Short '3'
+
+typedef char TSgitFtdcPosiDirectionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSysSettlementStatusTypeһϵͳ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ծ
+#define Sgit_FTDC_SS_NonActive '1'
+///
+#define Sgit_FTDC_SS_Startup '2'
+///
+#define Sgit_FTDC_SS_Operating '3'
+///
+#define Sgit_FTDC_SS_Settlement '4'
+///
+#define Sgit_FTDC_SS_SettlementFinished '5'
+
+typedef char TSgitFtdcSysSettlementStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRatioAttrTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_RA_Trade '0'
+///
+#define Sgit_FTDC_RA_Settlement '1'
+
+typedef char TSgitFtdcRatioAttrType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcHedgeFlagTypeһͶױ־
+/////////////////////////////////////////////////////////////////////////
+///Ͷ
+#define Sgit_FTDC_HF_Speculation '1'
+///
+#define Sgit_FTDC_HF_Arbitrage '2'
+///ױ
+#define Sgit_FTDC_HF_Hedge '3'
+
+typedef char TSgitFtdcHedgeFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBillHedgeFlagTypeһͶױ־
+/////////////////////////////////////////////////////////////////////////
+///Ͷ
+#define Sgit_FTDC_BHF_Speculation '1'
+///
+#define Sgit_FTDC_BHF_Arbitrage '2'
+///ױ
+#define Sgit_FTDC_BHF_Hedge '3'
+
+typedef char TSgitFtdcBillHedgeFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClientIDTypeTypeһױ
+/////////////////////////////////////////////////////////////////////////
+///Ͷ
+#define Sgit_FTDC_CIDT_Speculation '1'
+///
+#define Sgit_FTDC_CIDT_Arbitrage '2'
+///ױ
+#define Sgit_FTDC_CIDT_Hedge '3'
+
+typedef char TSgitFtdcClientIDTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderPriceTypeTypeһ۸
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_OPT_AnyPrice '1'
+///
+#define Sgit_FTDC_OPT_LimitPrice '2'
+///ż
+#define Sgit_FTDC_OPT_BestPrice '3'
+///¼
+#define Sgit_FTDC_OPT_LastPrice '4'
+///¼۸ϸ1ticks
+#define Sgit_FTDC_OPT_LastPricePlusOneTicks '5'
+///¼۸ϸ2ticks
+#define Sgit_FTDC_OPT_LastPricePlusTwoTicks '6'
+///¼۸ϸ3ticks
+#define Sgit_FTDC_OPT_LastPricePlusThreeTicks '7'
+///һ
+#define Sgit_FTDC_OPT_AskPrice1 '8'
+///һ۸ϸ1ticks
+#define Sgit_FTDC_OPT_AskPrice1PlusOneTicks '9'
+///һ۸ϸ2ticks
+#define Sgit_FTDC_OPT_AskPrice1PlusTwoTicks 'A'
+///һ۸ϸ3ticks
+#define Sgit_FTDC_OPT_AskPrice1PlusThreeTicks 'B'
+///һ
+#define Sgit_FTDC_OPT_BidPrice1 'C'
+///һ۸ϸ1ticks
+#define Sgit_FTDC_OPT_BidPrice1PlusOneTicks 'D'
+///һ۸ϸ2ticks
+#define Sgit_FTDC_OPT_BidPrice1PlusTwoTicks 'E'
+///һ۸ϸ3ticks
+#define Sgit_FTDC_OPT_BidPrice1PlusThreeTicks 'F'
+
+typedef char TSgitFtdcOrderPriceTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOffsetFlagTypeһƽ־
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_OF_Open '0'
+///ƽ
+#define Sgit_FTDC_OF_Close '1'
+///ǿƽ
+#define Sgit_FTDC_OF_ForceClose '2'
+///ƽ
+#define Sgit_FTDC_OF_CloseToday '3'
+///ƽ
+#define Sgit_FTDC_OF_CloseYesterday '4'
+///ǿ
+#define Sgit_FTDC_OF_ForceOff '5'
+///ǿƽ
+#define Sgit_FTDC_OF_LocalForceClose '6'
+
+typedef char TSgitFtdcOffsetFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcForceCloseReasonTypeһǿƽԭ
+/////////////////////////////////////////////////////////////////////////
+///ǿƽ
+#define Sgit_FTDC_FCC_NotForceClose '0'
+///ʽ
+#define Sgit_FTDC_FCC_LackDeposit '1'
+///ͻ
+#define Sgit_FTDC_FCC_ClientOverPositionLimit '2'
+///Ա
+#define Sgit_FTDC_FCC_MemberOverPositionLimit '3'
+///ֲַ
+#define Sgit_FTDC_FCC_NotMultiple '4'
+///Υ
+#define Sgit_FTDC_FCC_Violation '5'
+///
+#define Sgit_FTDC_FCC_Other '6'
+///Ȼٽ
+#define Sgit_FTDC_FCC_PersonDeliv '7'
+
+typedef char TSgitFtdcForceCloseReasonType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_ORDT_Normal '0'
+///
+#define Sgit_FTDC_ORDT_DeriveFromQuote '1'
+///
+#define Sgit_FTDC_ORDT_DeriveFromCombination '2'
+///ϱ
+#define Sgit_FTDC_ORDT_Combination '3'
+///
+#define Sgit_FTDC_ORDT_ConditionalOrder '4'
+///
+#define Sgit_FTDC_ORDT_Swap '5'
+
+typedef char TSgitFtdcOrderTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTimeConditionTypeһЧ
+/////////////////////////////////////////////////////////////////////////
+///ɣ
+#define Sgit_FTDC_TC_IOC '1'
+///Ч
+#define Sgit_FTDC_TC_GFS '2'
+///Ч
+#define Sgit_FTDC_TC_GFD '3'
+///ָǰЧ
+#define Sgit_FTDC_TC_GTD '4'
+///ǰЧ
+#define Sgit_FTDC_TC_GTC '5'
+///ϾЧ
+#define Sgit_FTDC_TC_GFA '6'
+
+typedef char TSgitFtdcTimeConditionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVolumeConditionTypeһɽ
+/////////////////////////////////////////////////////////////////////////
+///κ
+#define Sgit_FTDC_VC_AV '1'
+///С
+#define Sgit_FTDC_VC_MV '2'
+///ȫ
+#define Sgit_FTDC_VC_CV '3'
+
+typedef char TSgitFtdcVolumeConditionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcContingentConditionTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_CC_Immediately '1'
+///ֹ
+#define Sgit_FTDC_CC_Touch '2'
+///ֹӮ
+#define Sgit_FTDC_CC_TouchProfit '3'
+///Ԥ
+#define Sgit_FTDC_CC_ParkedOrder '4'
+///¼۴
+#define Sgit_FTDC_CC_LastPriceGreaterThanStopPrice '5'
+///¼۴ڵ
+#define Sgit_FTDC_CC_LastPriceGreaterEqualStopPrice '6'
+///¼С
+#define Sgit_FTDC_CC_LastPriceLesserThanStopPrice '7'
+///¼Сڵ
+#define Sgit_FTDC_CC_LastPriceLesserEqualStopPrice '8'
+///һ۴
+#define Sgit_FTDC_CC_AskPriceGreaterThanStopPrice '9'
+///һ۴ڵ
+#define Sgit_FTDC_CC_AskPriceGreaterEqualStopPrice 'A'
+///һС
+#define Sgit_FTDC_CC_AskPriceLesserThanStopPrice 'B'
+///һСڵ
+#define Sgit_FTDC_CC_AskPriceLesserEqualStopPrice 'C'
+///һ۴
+#define Sgit_FTDC_CC_BidPriceGreaterThanStopPrice 'D'
+///һ۴ڵ
+#define Sgit_FTDC_CC_BidPriceGreaterEqualStopPrice 'E'
+///һС
+#define Sgit_FTDC_CC_BidPriceLesserThanStopPrice 'F'
+///һСڵ
+#define Sgit_FTDC_CC_BidPriceLesserEqualStopPrice 'H'
+
+typedef char TSgitFtdcContingentConditionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcActionFlagTypeһ־
+/////////////////////////////////////////////////////////////////////////
+///ɾ
+#define Sgit_FTDC_AF_Delete '0'
+///
+#define Sgit_FTDC_AF_Modify '3'
+
+typedef char TSgitFtdcActionFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradingRightTypeһȨ
+/////////////////////////////////////////////////////////////////////////
+///Խ
+#define Sgit_FTDC_TR_Allow '0'
+///ֻƽ
+#define Sgit_FTDC_TR_CloseOnly '1'
+///ܽ
+#define Sgit_FTDC_TR_Forbidden '2'
+
+typedef char TSgitFtdcTradingRightType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderSourceTypeһԴ
+/////////////////////////////////////////////////////////////////////////
+///Բ
+#define Sgit_FTDC_OSRC_Participant '0'
+///ԹԱ
+#define Sgit_FTDC_OSRC_Administrator '1'
+
+typedef char TSgitFtdcOrderSourceType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeTypeTypeһɽ
+/////////////////////////////////////////////////////////////////////////
+///ͨɽ
+#define Sgit_FTDC_TRDT_Common '0'
+///Ȩִ
+#define Sgit_FTDC_TRDT_OptionsExecution '1'
+///OTCɽ
+#define Sgit_FTDC_TRDT_OTC '2'
+///תɽ
+#define Sgit_FTDC_TRDT_EFPDerived '3'
+///ɽ
+#define Sgit_FTDC_TRDT_CombinationDerived '4'
+
+typedef char TSgitFtdcTradeTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPriceSourceTypeһɽԴ
+/////////////////////////////////////////////////////////////////////////
+///ǰɽ
+#define Sgit_FTDC_PSRC_LastPrice '0'
+///ίм
+#define Sgit_FTDC_PSRC_Buy '1'
+///ίм
+#define Sgit_FTDC_PSRC_Sell '2'
+
+typedef char TSgitFtdcPriceSourceType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstrumentStatusTypeһԼ״̬
+/////////////////////////////////////////////////////////////////////////
+///ǰ
+#define Sgit_FTDC_IS_BeforeTrading '0'
+///ǽ
+#define Sgit_FTDC_IS_NoTrading '1'
+///
+#define Sgit_FTDC_IS_Continous '2'
+///Ͼ۱
+#define Sgit_FTDC_IS_AuctionOrdering '3'
+///Ͼۼ۸ƽ
+#define Sgit_FTDC_IS_AuctionBalance '4'
+///Ͼ۴
+#define Sgit_FTDC_IS_AuctionMatch '5'
+///
+#define Sgit_FTDC_IS_Closed '6'
+
+typedef char TSgitFtdcInstrumentStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstStatusEnterReasonTypeһƷֽ뽻״̬ԭ
+/////////////////////////////////////////////////////////////////////////
+///Զл
+#define Sgit_FTDC_IER_Automatic '1'
+///ֶл
+#define Sgit_FTDC_IER_Manual '2'
+///۶
+#define Sgit_FTDC_IER_Fuse '3'
+
+typedef char TSgitFtdcInstStatusEnterReasonType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrderActionRefTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcOrderActionRefType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstallCountTypeһװ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcInstallCountType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstallIDTypeһװ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcInstallIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcErrorIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcErrorIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettlementIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSettlementIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVolumeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcVolumeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFrontIDTypeһǰñ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcFrontIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSessionIDTypeһỰ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSessionIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSequenceNoTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSequenceNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommandNoTypeһDB
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcCommandNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMillisecTypeһʱ䣨룩
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcMillisecType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVolumeMultipleTypeһԼ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcVolumeMultipleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradingSegmentSNTypeһα
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcTradingSegmentSNType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRequestIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcRequestIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcYearTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcYearType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMonthTypeһ·
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcMonthType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBoolTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcBoolType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPriceTypeһ۸
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcPriceType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCombOffsetFlagTypeһϿƽ־
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCombOffsetFlagType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCombHedgeFlagTypeһͶױ־
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCombHedgeFlagType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRatioTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcRatioType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMoneyTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcMoneyType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLargeVolumeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcLargeVolumeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSequenceSeriesTypeһϵк
+/////////////////////////////////////////////////////////////////////////
+typedef short TSgitFtdcSequenceSeriesType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommPhaseNoTypeһͨѶʱα
+/////////////////////////////////////////////////////////////////////////
+typedef short TSgitFtdcCommPhaseNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSequenceLabelTypeһб
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSequenceLabelType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPriorityTypeһȼ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcPriorityType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcContractCodeTypeһͬ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcContractCodeType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCityTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCityType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIsStockTypeһǷ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcIsStockType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcChannelTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcChannelType[51];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAddressTypeһͨѶַ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAddressType[101];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcZipCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcZipCodeType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTelephoneTypeһϵ绰
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTelephoneType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFaxTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFaxType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMobileTypeһֻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcMobileType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEMailTypeһʼ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcEMailType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMemoTypeһע
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcMemoType[161];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCompanyCodeTypeһҵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCompanyCodeType[51];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcWebsiteTypeһվַ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcWebsiteType[51];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTaxNoTypeһ˰ǼǺ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTaxNoType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBatchStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///δϴ
+#define Sgit_FTDC_BS_NoUpload '1'
+///ϴ
+#define Sgit_FTDC_BS_Uploaded '2'
+///ʧ
+#define Sgit_FTDC_BS_Failed '3'
+
+typedef char TSgitFtdcBatchStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPropertyIDTypeһԴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPropertyIDType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPropertyNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPropertyNameType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLicenseNoTypeһӪҵִպ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcLicenseNoType[51];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAgentIDTypeһ˴
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAgentIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAgentNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAgentNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAgentGroupIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAgentGroupIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAgentGroupNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAgentGroupNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReturnStyleTypeһƷַʽ
+/////////////////////////////////////////////////////////////////////////
+///Ʒ
+#define Sgit_FTDC_RS_All '1'
+///Ʒ
+#define Sgit_FTDC_RS_ByProduct '2'
+
+typedef char TSgitFtdcReturnStyleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReturnPatternTypeһģʽ
+/////////////////////////////////////////////////////////////////////////
+///ɽ
+#define Sgit_FTDC_RP_ByVolume '1'
+///
+#define Sgit_FTDC_RP_ByFeeOnHand '2'
+
+typedef char TSgitFtdcReturnPatternType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReturnLevelTypeһ
+/////////////////////////////////////////////////////////////////////////
+///1
+#define Sgit_FTDC_RL_Level1 '1'
+///2
+#define Sgit_FTDC_RL_Level2 '2'
+///3
+#define Sgit_FTDC_RL_Level3 '3'
+///4
+#define Sgit_FTDC_RL_Level4 '4'
+///5
+#define Sgit_FTDC_RL_Level5 '5'
+///6
+#define Sgit_FTDC_RL_Level6 '6'
+///7
+#define Sgit_FTDC_RL_Level7 '7'
+///8
+#define Sgit_FTDC_RL_Level8 '8'
+///9
+#define Sgit_FTDC_RL_Level9 '9'
+
+typedef char TSgitFtdcReturnLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReturnStandardTypeһ
+/////////////////////////////////////////////////////////////////////////
+///ֽη
+#define Sgit_FTDC_RSD_ByPeriod '1'
+///ijһ
+#define Sgit_FTDC_RSD_ByStandard '2'
+
+typedef char TSgitFtdcReturnStandardType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMortgageTypeTypeһѺ
+/////////////////////////////////////////////////////////////////////////
+///ʳ
+#define Sgit_FTDC_MT_Out '0'
+///
+#define Sgit_FTDC_MT_In '1'
+
+typedef char TSgitFtdcMortgageTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorSettlementParamIDTypeһͶ߽
+/////////////////////////////////////////////////////////////////////////
+///֤
+#define Sgit_FTDC_ISPI_BaseMargin '1'
+///Ȩ
+#define Sgit_FTDC_ISPI_LowestInterest '2'
+///Ѻ
+#define Sgit_FTDC_ISPI_MortgageRatio '4'
+///֤㷨
+#define Sgit_FTDC_ISPI_MarginWay '5'
+///㵥()Ȩڽ
+#define Sgit_FTDC_ISPI_BillDeposit '9'
+
+typedef char TSgitFtdcInvestorSettlementParamIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeSettlementParamIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+///Ѻ
+#define Sgit_FTDC_ESPI_MortgageRatio '1'
+///ʽ
+#define Sgit_FTDC_ESPI_OtherFundItem '2'
+///ʽ뽻
+#define Sgit_FTDC_ESPI_OtherFundImport '3'
+///ȡʽ
+#define Sgit_FTDC_ESPI_SHFEDelivFee '4'
+///ȡʽ
+#define Sgit_FTDC_ESPI_DCEDelivFee '5'
+///нͿý
+#define Sgit_FTDC_ESPI_CFFEXMinPrepa '6'
+
+typedef char TSgitFtdcExchangeSettlementParamIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSystemParamIDTypeһϵͳ
+/////////////////////////////////////////////////////////////////////////
+///ͶߴС
+#define Sgit_FTDC_SPI_InvestorIDMinLength '1'
+///ͶʺŴС
+#define Sgit_FTDC_SPI_AccountIDMinLength '2'
+///Ͷ߿Ĭϵ¼Ȩ
+#define Sgit_FTDC_SPI_UserRightLogon '3'
+///Ͷ߽㵥ɽܷʽ
+#define Sgit_FTDC_SPI_SettlementBillTrade '4'
+///ͳһ½ױ뷽ʽ
+#define Sgit_FTDC_SPI_TradingCode '5'
+///Ƿжϴδ˵ijͷʽ
+#define Sgit_FTDC_SPI_CheckFund '6'
+///ǷģȨ
+#define Sgit_FTDC_SPI_CommModelRight '7'
+///Ƿ淶ûܼ
+#define Sgit_FTDC_SPI_IsStandardActive '8'
+///ϴĽļ·
+#define Sgit_FTDC_SPI_UploadSettlementFile 'U'
+///ϱ֤ļ·
+#define Sgit_FTDC_SPI_DownloadCSRCFile 'D'
+///ɵĽ㵥ļ·
+#define Sgit_FTDC_SPI_SettlementBillFile 'S'
+///֤ļʶ
+#define Sgit_FTDC_SPI_CSRCOthersFile 'C'
+///ͶƬ·
+#define Sgit_FTDC_SPI_InvestorPhoto 'P'
+///ȫᾭ˾ϴļ·
+#define Sgit_FTDC_SPI_CSRCData 'R'
+///¼뷽ʽ
+#define Sgit_FTDC_SPI_InvestorPwdModel 'I'
+///Ͷнļ·
+#define Sgit_FTDC_SPI_CFFEXInvestorSettleFile 'F'
+///Ͷߴ뷽ʽ
+#define Sgit_FTDC_SPI_InvestorIDType 'a'
+
+typedef char TSgitFtdcSystemParamIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeParamIDTypeһϵͳ
+/////////////////////////////////////////////////////////////////////////
+///ϵͳ㷨
+#define Sgit_FTDC_TPID_EncryptionStandard 'E'
+///ϵͳ㷨
+#define Sgit_FTDC_TPID_RiskMode 'R'
+///ϵͳ㷨Ƿȫ 0- 1-
+#define Sgit_FTDC_TPID_RiskModeGlobal 'G'
+
+typedef char TSgitFtdcTradeParamIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettlementParamValueTypeһֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSettlementParamValueType[256];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCounterIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCounterIDType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorGroupNameTypeһͶ߷
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInvestorGroupNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrandCodeTypeһƺ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBrandCodeType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcWarehouseTypeһֿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcWarehouseType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProductDateTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProductDateType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcGradeTypeһȼ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcGradeType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClassifyTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClassifyType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPositionTypeһλ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPositionType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcYieldlyTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcYieldlyType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcWeightTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcWeightType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSubEntryFundNoTypeһʽˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSubEntryFundNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileIDTypeһļʶ
+/////////////////////////////////////////////////////////////////////////
+///ʽ
+#define Sgit_FTDC_FI_SettlementFund 'F'
+///ɽ
+#define Sgit_FTDC_FI_Trade 'T'
+///Ͷֲ߳
+#define Sgit_FTDC_FI_InvestorPosition 'P'
+///Ͷ߷ʽ
+#define Sgit_FTDC_FI_SubEntryFund 'O'
+///֣ϳֲ
+#define Sgit_FTDC_FI_CZCECombinationPos 'C'
+///ϱ֤
+#define Sgit_FTDC_FI_CSRCData 'R'
+
+typedef char TSgitFtdcFileIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileNameTypeһļ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFileNameType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileTypeTypeһļϴ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_FUT_Settlement '0'
+///˶
+#define Sgit_FTDC_FUT_Check '1'
+
+typedef char TSgitFtdcFileTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileFormatTypeһļʽ
+/////////////////////////////////////////////////////////////////////////
+///ıļ(.txt)
+#define Sgit_FTDC_FFT_Txt '0'
+///ѹļ(.zip)
+#define Sgit_FTDC_FFT_Zip '1'
+///DBFļ(.dbf)
+#define Sgit_FTDC_FFT_DBF '2'
+
+typedef char TSgitFtdcFileFormatType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileUploadStatusTypeһļ״̬
+/////////////////////////////////////////////////////////////////////////
+///ϴɹ
+#define Sgit_FTDC_FUS_SucceedUpload '1'
+///ϴʧ
+#define Sgit_FTDC_FUS_FailedUpload '2'
+///ɹ
+#define Sgit_FTDC_FUS_SucceedLoad '3'
+///벿ֳɹ
+#define Sgit_FTDC_FUS_PartSucceedLoad '4'
+///ʧ
+#define Sgit_FTDC_FUS_FailedLoad '5'
+
+typedef char TSgitFtdcFileUploadStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTransferDirectionTypeһƲַ
+/////////////////////////////////////////////////////////////////////////
+///Ƴ
+#define Sgit_FTDC_TD_Out '0'
+///
+#define Sgit_FTDC_TD_In '1'
+
+typedef char TSgitFtdcTransferDirectionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUploadModeTypeһϴļ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUploadModeType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAccountIDTypeһͶʺ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAccountIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankFlagTypeһͳһʶ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_BF_ICBC '1'
+///ũҵ
+#define Sgit_FTDC_BF_ABC '2'
+///й
+#define Sgit_FTDC_BF_BC '3'
+///
+#define Sgit_FTDC_BF_CBC '4'
+///ͨ
+#define Sgit_FTDC_BF_BOC '5'
+///
+#define Sgit_FTDC_BF_Other 'Z'
+
+typedef char TSgitFtdcBankFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankAccountTypeһ˻
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankAccountType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOpenNameTypeһ˻Ŀ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOpenNameType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOpenBankTypeһ˻Ŀ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOpenBankType[101];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankNameType[101];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPublishPathTypeһ·
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPublishPathType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOperatorIDTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOperatorIDType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMonthCountTypeһ·
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcMonthCountType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAdvanceMonthArrayTypeһ·ǰ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAdvanceMonthArrayType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDateExprTypeһڱʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDateExprType[1025];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstrumentIDExprTypeһԼʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInstrumentIDExprType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstrumentNameExprTypeһԼƱʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInstrumentNameExprType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSpecialCreateRuleTypeһĴ
+/////////////////////////////////////////////////////////////////////////
+///ûⴴ
+#define Sgit_FTDC_SC_NoSpecialRule '0'
+///
+#define Sgit_FTDC_SC_NoSpringFestival '1'
+
+typedef char TSgitFtdcSpecialCreateRuleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBasisPriceTypeTypeһƻ
+/////////////////////////////////////////////////////////////////////////
+///һԼ
+#define Sgit_FTDC_IPT_LastSettlement '1'
+///һԼ̼
+#define Sgit_FTDC_IPT_LaseClose '2'
+
+typedef char TSgitFtdcBasisPriceTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProductLifePhaseTypeһƷ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ծ
+#define Sgit_FTDC_PLP_Active '1'
+///Ծ
+#define Sgit_FTDC_PLP_NonActive '2'
+///ע
+#define Sgit_FTDC_PLP_Canceled '3'
+
+typedef char TSgitFtdcProductLifePhaseType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDeliveryModeTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+///ֽ
+#define Sgit_FTDC_DM_CashDeliv '1'
+///ʵサ
+#define Sgit_FTDC_DM_CommodityDeliv '2'
+
+typedef char TSgitFtdcDeliveryModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLogLevelTypeһ־
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcLogLevelType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProcessNameTypeһ洢
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProcessNameType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOperationMemoTypeһժҪ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOperationMemoType[1025];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFundIOTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_FIOT_FundIO '1'
+///ת
+#define Sgit_FTDC_FIOT_Transfer '2'
+
+typedef char TSgitFtdcFundIOTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFundTypeTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+///д
+#define Sgit_FTDC_FT_Deposite '1'
+///ʽ
+#define Sgit_FTDC_FT_ItemFund '2'
+///˾
+#define Sgit_FTDC_FT_Company '3'
+
+typedef char TSgitFtdcFundTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFundDirectionTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_FD_In '1'
+///
+#define Sgit_FTDC_FD_Out '2'
+
+typedef char TSgitFtdcFundDirectionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFundStatusTypeһʽ״̬
+/////////////////////////////////////////////////////////////////////////
+///¼
+#define Sgit_FTDC_FS_Record '1'
+///Ѹ
+#define Sgit_FTDC_FS_Check '2'
+///ѳ
+#define Sgit_FTDC_FS_Charge '3'
+
+typedef char TSgitFtdcFundStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBillNoTypeһƱݺ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBillNoType[15];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBillNameTypeһƱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBillNameType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPublishStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_PS_None '1'
+///ڷ
+#define Sgit_FTDC_PS_Publishing '2'
+///ѷ
+#define Sgit_FTDC_PS_Published '3'
+
+typedef char TSgitFtdcPublishStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEnumValueIDTypeһöֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcEnumValueIDType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEnumValueTypeTypeһöֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcEnumValueTypeType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEnumValueLabelTypeһöֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcEnumValueLabelType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEnumValueResultTypeһöֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcEnumValueResultType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSystemStatusTypeһϵͳ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ծ
+#define Sgit_FTDC_ES_NonActive '1'
+///
+#define Sgit_FTDC_ES_Startup '2'
+///ʼʼ
+#define Sgit_FTDC_ES_Initialize '3'
+///ɳʼ
+#define Sgit_FTDC_ES_Initialized '4'
+///пʼ
+#define Sgit_FTDC_ES_Close '5'
+///
+#define Sgit_FTDC_ES_Closed '6'
+///
+#define Sgit_FTDC_ES_Settlement '7'
+
+typedef char TSgitFtdcSystemStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettlementStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///ʼ
+#define Sgit_FTDC_STS_Initialize '0'
+///
+#define Sgit_FTDC_STS_Settlementing '1'
+///ѽ
+#define Sgit_FTDC_STS_Settlemented '2'
+///
+#define Sgit_FTDC_STS_Finished '3'
+
+typedef char TSgitFtdcSettlementStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRangeIntTypeTypeһֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRangeIntTypeType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRangeIntFromTypeһֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRangeIntFromType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRangeIntToTypeһֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRangeIntToType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFunctionIDTypeһܴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFunctionIDType[25];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFunctionValueCodeTypeһܱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFunctionValueCodeType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFunctionNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFunctionNameType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRoleIDTypeһɫ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRoleIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRoleNameTypeһɫ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRoleNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDescriptionTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDescriptionType[401];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCombineIDTypeһϱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCombineIDType[25];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCombineTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCombineTypeType[25];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorTypeTypeһͶ
+/////////////////////////////////////////////////////////////////////////
+///Ȼ
+#define Sgit_FTDC_CT_Person '0'
+///
+#define Sgit_FTDC_CT_Company '1'
+///Ͷʻ
+#define Sgit_FTDC_CT_Fund '2'
+
+typedef char TSgitFtdcInvestorTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerTypeTypeһ˾
+/////////////////////////////////////////////////////////////////////////
+///Ա
+#define Sgit_FTDC_BT_Trade '0'
+///Ա
+#define Sgit_FTDC_BT_TradeSettle '1'
+
+typedef char TSgitFtdcBrokerTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRiskLevelTypeһյȼ
+/////////////////////////////////////////////////////////////////////////
+///ͷտͻ
+#define Sgit_FTDC_FAS_Low '1'
+///ͨͻ
+#define Sgit_FTDC_FAS_Normal '2'
+///עͻ
+#define Sgit_FTDC_FAS_Focus '3'
+///տͻ
+#define Sgit_FTDC_FAS_Risk '4'
+
+typedef char TSgitFtdcRiskLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFeeAcceptStyleTypeһȡʽ
+/////////////////////////////////////////////////////////////////////////
+///ȡ
+#define Sgit_FTDC_FAS_ByTrade '1'
+///ȡ
+#define Sgit_FTDC_FAS_ByDeliv '2'
+///
+#define Sgit_FTDC_FAS_None '3'
+///ָȡ
+#define Sgit_FTDC_FAS_FixFee '4'
+
+typedef char TSgitFtdcFeeAcceptStyleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPasswordTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_PWDT_Trade '1'
+///ʽ
+#define Sgit_FTDC_PWDT_Account '2'
+
+typedef char TSgitFtdcPasswordTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAlgorithmTypeһӯ㷨
+/////////////////////////////////////////////////////////////////////////
+///ӯ
+#define Sgit_FTDC_AG_All '1'
+///ӯƣ
+#define Sgit_FTDC_AG_OnlyLost '2'
+///ӯƣ
+#define Sgit_FTDC_AG_OnlyGain '3'
+///ӯ
+#define Sgit_FTDC_AG_None '4'
+
+typedef char TSgitFtdcAlgorithmType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIncludeCloseProfitTypeһǷƽӯ
+/////////////////////////////////////////////////////////////////////////
+///ƽӯ
+#define Sgit_FTDC_ICP_Include '0'
+///ƽӯ
+#define Sgit_FTDC_ICP_NotInclude '2'
+
+typedef char TSgitFtdcIncludeCloseProfitType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAllWithoutTradeTypeһǷܿ
+/////////////////////////////////////////////////////////////////////////
+///ܿ
+#define Sgit_FTDC_AWT_Enable '0'
+///ܿ
+#define Sgit_FTDC_AWT_Disable '2'
+
+typedef char TSgitFtdcAllWithoutTradeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommentTypeһӯ㷨˵
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCommentType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVersionTypeһ汾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcVersionType[4];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeCodeTypeһ״
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTradeCodeType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeDateTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTradeDateType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeTimeTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTradeTimeType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeSerialTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTradeSerialType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeSerialNoTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcTradeSerialNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureIDTypeһڻ˾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankIDTypeһд
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankIDType[4];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankBrchIDTypeһзĴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankBrchIDType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankBranchIDTypeһĴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankBranchIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOperNoTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOperNoType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDeviceIDTypeһ־
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDeviceIDType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRecordNumTypeһ¼
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRecordNumType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureAccountTypeһڻʽ˺
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureAccountType[22];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFuturePwdFlagTypeһʽ˶Ա־
+/////////////////////////////////////////////////////////////////////////
+///˶
+#define Sgit_FTDC_FPWD_UnCheck '0'
+///˶
+#define Sgit_FTDC_FPWD_Check '1'
+
+typedef char TSgitFtdcFuturePwdFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTransferTypeTypeһת
+/////////////////////////////////////////////////////////////////////////
+///תڻ
+#define Sgit_FTDC_TT_BankToFuture '0'
+///ڻת
+#define Sgit_FTDC_TT_FutureToBank '1'
+
+typedef char TSgitFtdcTransferTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureAccPwdTypeһڻʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureAccPwdType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCurrencyCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCurrencyCodeType[4];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRetCodeTypeһӦ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRetCodeType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRetInfoTypeһӦϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRetInfoType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeAmtTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTradeAmtType[20];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUseAmtTypeһп
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUseAmtType[20];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFetchAmtTypeһпȡ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFetchAmtType[20];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTransferValidFlagTypeһתЧ־
+/////////////////////////////////////////////////////////////////////////
+///Чʧ
+#define Sgit_FTDC_TVF_Invalid '0'
+///Ч
+#define Sgit_FTDC_TVF_Valid '1'
+///
+#define Sgit_FTDC_TVF_Reverse '2'
+
+typedef char TSgitFtdcTransferValidFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCertCodeTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCertCodeType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReasonTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_RN_CD '0'
+///ʽ;
+#define Sgit_FTDC_RN_ZT '1'
+///
+#define Sgit_FTDC_RN_QT '2'
+
+typedef char TSgitFtdcReasonType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFundProjectIDTypeһʽĿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFundProjectIDType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSexTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+///δ֪
+#define Sgit_FTDC_SEX_None '0'
+///
+#define Sgit_FTDC_SEX_Man '1'
+///Ů
+#define Sgit_FTDC_SEX_Woman '2'
+
+typedef char TSgitFtdcSexType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProfessionTypeһְҵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProfessionType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcNationalTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcNationalType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProvinceTypeһʡ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProvinceType[16];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRegionTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRegionType[16];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCountryTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCountryType[16];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLicenseNOTypeһӪҵִ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcLicenseNOType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCompanyTypeTypeһҵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCompanyTypeType[16];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBusinessScopeTypeһӪΧ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBusinessScopeType[1001];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCapitalCurrencyTypeһעʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCapitalCurrencyType[4];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserTypeTypeһû
+/////////////////////////////////////////////////////////////////////////
+///Ͷ
+#define Sgit_FTDC_UT_Investor '0'
+///Ա
+#define Sgit_FTDC_UT_Operator '1'
+///Ա
+#define Sgit_FTDC_UT_SuperUser '2'
+
+typedef char TSgitFtdcUserTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRateTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///֤
+#define Sgit_FTDC_RATETYPE_MarginRate '2'
+
+typedef char TSgitFtdcRateTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcNoteTypeTypeһ֪ͨ
+/////////////////////////////////////////////////////////////////////////
+///㵥
+#define Sgit_FTDC_NOTETYPE_TradeSettleBill '1'
+///±
+#define Sgit_FTDC_NOTETYPE_TradeSettleMonth '2'
+///ӱ֤֪ͨ
+#define Sgit_FTDC_NOTETYPE_CallMarginNotes '3'
+///ǿƽ֪ͨ
+#define Sgit_FTDC_NOTETYPE_ForceCloseNotes '4'
+///ɽ֪ͨ
+#define Sgit_FTDC_NOTETYPE_TradeNotes '5'
+///֪ͨ
+#define Sgit_FTDC_NOTETYPE_DelivNotes '6'
+
+typedef char TSgitFtdcNoteTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettlementStyleTypeһ㵥ʽ
+/////////////////////////////////////////////////////////////////////////
+///ն
+#define Sgit_FTDC_SBS_Day '1'
+///ʶԳ
+#define Sgit_FTDC_SBS_Volume '2'
+
+typedef char TSgitFtdcSettlementStyleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerDNSTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBrokerDNSType[256];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSentenceTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSentenceType[501];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettlementBillTypeTypeһ㵥
+/////////////////////////////////////////////////////////////////////////
+///ձ
+#define Sgit_FTDC_ST_Day '0'
+///±
+#define Sgit_FTDC_ST_Month '1'
+
+typedef char TSgitFtdcSettlementBillTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserRightTypeTypeһͻȨ
+/////////////////////////////////////////////////////////////////////////
+///¼
+#define Sgit_FTDC_URT_Logon '1'
+///ת
+#define Sgit_FTDC_URT_Transfer '2'
+///ʼĽ㵥
+#define Sgit_FTDC_URT_EMail '3'
+///㵥
+#define Sgit_FTDC_URT_Fax '4'
+///
+#define Sgit_FTDC_URT_ConditionOrder '5'
+
+typedef char TSgitFtdcUserRightTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMarginPriceTypeTypeһ֤۸
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_MPT_PreSettlementPrice '1'
+///¼
+#define Sgit_FTDC_MPT_SettlementPrice '2'
+///ɽ
+#define Sgit_FTDC_MPT_AveragePrice '3'
+///ּ
+#define Sgit_FTDC_MPT_OpenPrice '4'
+
+typedef char TSgitFtdcMarginPriceTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBillGenStatusTypeһ㵥״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_BGS_None '0'
+///δ
+#define Sgit_FTDC_BGS_NoGenerated '1'
+///
+#define Sgit_FTDC_BGS_Generated '2'
+
+typedef char TSgitFtdcBillGenStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAlgoTypeTypeһ㷨
+/////////////////////////////////////////////////////////////////////////
+///ֲִ㷨
+#define Sgit_FTDC_AT_HandlePositionAlgo '1'
+///Ѱұ֤㷨
+#define Sgit_FTDC_AT_FindMarginRateAlgo '2'
+
+typedef char TSgitFtdcAlgoTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcHandlePositionAlgoIDTypeһֲִ㷨
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_HPA_Base '1'
+///Ʒ
+#define Sgit_FTDC_HPA_DCE '2'
+///֣Ʒ
+#define Sgit_FTDC_HPA_CZCE '3'
+
+typedef char TSgitFtdcHandlePositionAlgoIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFindMarginRateAlgoIDTypeһѰұ֤㷨
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_FMRA_Base '1'
+///Ʒ
+#define Sgit_FTDC_FMRA_DCE '2'
+///֣Ʒ
+#define Sgit_FTDC_FMRA_CZCE '3'
+
+typedef char TSgitFtdcFindMarginRateAlgoIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcHandleTradingAccountAlgoIDTypeһʽ㷨
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_HTAA_Base '1'
+///Ʒ
+#define Sgit_FTDC_HTAA_DCE '2'
+///֣Ʒ
+#define Sgit_FTDC_HTAA_CZCE '3'
+
+typedef char TSgitFtdcHandleTradingAccountAlgoIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPersonTypeTypeһϵ
+/////////////////////////////////////////////////////////////////////////
+///ָµ
+#define Sgit_FTDC_PST_Order '1'
+///Ȩ
+#define Sgit_FTDC_PST_Open '2'
+///ʽ
+#define Sgit_FTDC_PST_Fund '3'
+///㵥ȷ
+#define Sgit_FTDC_PST_Settlement '4'
+///
+#define Sgit_FTDC_PST_Company '5'
+///˴
+#define Sgit_FTDC_PST_Corporation '6'
+///Ͷϵ
+#define Sgit_FTDC_PST_LinkMan '7'
+
+typedef char TSgitFtdcPersonTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcQueryInvestorRangeTypeһѯΧ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_QIR_All '1'
+///ѯ
+#define Sgit_FTDC_QIR_Group '2'
+///һͶ
+#define Sgit_FTDC_QIR_Single '3'
+
+typedef char TSgitFtdcQueryInvestorRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorRiskStatusTypeһͶ߷״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_IRS_Normal '1'
+///
+#define Sgit_FTDC_IRS_Warn '2'
+///
+#define Sgit_FTDC_IRS_Call '3'
+///ǿƽ
+#define Sgit_FTDC_IRS_Force '4'
+///쳣
+#define Sgit_FTDC_IRS_Exception '5'
+
+typedef char TSgitFtdcInvestorRiskStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLegIDTypeһȱ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcLegIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLegMultipleTypeһȳ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcLegMultipleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcImplyLevelTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcImplyLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClearAccountTypeһ˻
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClearAccountType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganNOTypeһ˻
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrganNOType[6];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClearbarchIDTypeһ˻к
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClearbarchIDType[6];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserEventTypeTypeһû¼
+/////////////////////////////////////////////////////////////////////////
+///¼
+#define Sgit_FTDC_UET_Login '1'
+///dz
+#define Sgit_FTDC_UET_Logout '2'
+///׳ɹ
+#define Sgit_FTDC_UET_Trading '3'
+///ʧ
+#define Sgit_FTDC_UET_TradingError '4'
+///
+#define Sgit_FTDC_UET_UpdatePassword '5'
+///ͻ֤
+#define Sgit_FTDC_UET_Authenticate '6'
+///
+#define Sgit_FTDC_UET_Other '9'
+
+typedef char TSgitFtdcUserEventTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserEventInfoTypeһû¼Ϣ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUserEventInfoType[1025];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCloseStyleTypeһƽַʽ
+/////////////////////////////////////////////////////////////////////////
+///ȿƽ
+#define Sgit_FTDC_ICS_Close '0'
+///ƽƽ
+#define Sgit_FTDC_ICS_CloseToday '1'
+
+typedef char TSgitFtdcCloseStyleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcStatModeTypeһͳƷʽ
+/////////////////////////////////////////////////////////////////////////
+///----
+#define Sgit_FTDC_SM_Non '0'
+///Լͳ
+#define Sgit_FTDC_SM_Instrument '1'
+///Ʒͳ
+#define Sgit_FTDC_SM_Product '2'
+///Ͷͳ
+#define Sgit_FTDC_SM_Investor '3'
+
+typedef char TSgitFtdcStatModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParkedOrderStatusTypeһԤ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_PAOS_NotSend '1'
+///ѷ
+#define Sgit_FTDC_PAOS_Send '2'
+///ɾ
+#define Sgit_FTDC_PAOS_Deleted '3'
+
+typedef char TSgitFtdcParkedOrderStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParkedOrderIDTypeһԤ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcParkedOrderIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParkedOrderActionIDTypeһԤ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcParkedOrderActionIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVirDealStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///ڴ
+#define Sgit_FTDC_VDS_Dealing '1'
+///ɹ
+#define Sgit_FTDC_VDS_DeaclSucceed '2'
+
+typedef char TSgitFtdcVirDealStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrgSystemIDTypeһԭϵͳ
+/////////////////////////////////////////////////////////////////////////
+///ۺϽƽ̨
+#define Sgit_FTDC_ORGS_Standard '0'
+///ʢϵͳ
+#define Sgit_FTDC_ORGS_ESunny '1'
+///˴V6ϵͳ
+#define Sgit_FTDC_ORGS_KingStarV6 '2'
+
+typedef char TSgitFtdcOrgSystemIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVirTradeStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_VTS_NaturalDeal '0'
+///ɹ
+#define Sgit_FTDC_VTS_SucceedEnd '1'
+///ʧܽ
+#define Sgit_FTDC_VTS_FailedEND '2'
+///쳣
+#define Sgit_FTDC_VTS_Exception '3'
+///˹쳣
+#define Sgit_FTDC_VTS_ManualDeal '4'
+///ͨѶ쳣 ˹
+#define Sgit_FTDC_VTS_MesException '5'
+///ϵͳ˹
+#define Sgit_FTDC_VTS_SysException '6'
+
+typedef char TSgitFtdcVirTradeStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVirBankAccTypeTypeһʻ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_VBAT_BankBook '1'
+///
+#define Sgit_FTDC_VBAT_BankCard '2'
+///ÿ
+#define Sgit_FTDC_VBAT_CreditCard '3'
+
+typedef char TSgitFtdcVirBankAccTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVirementStatusTypeһʻ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_VMS_Natural '0'
+///
+#define Sgit_FTDC_VMS_Canceled '9'
+
+typedef char TSgitFtdcVirementStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVirementAvailAbilityTypeһЧ־
+/////////////////////////////////////////////////////////////////////////
+///δȷ
+#define Sgit_FTDC_VAA_NoAvailAbility '0'
+///Ч
+#define Sgit_FTDC_VAA_AvailAbility '1'
+///
+#define Sgit_FTDC_VAA_Repeal '2'
+
+typedef char TSgitFtdcVirementAvailAbilityType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcVirementTradeCodeTypeһ״
+/////////////////////////////////////////////////////////////////////////
+///зʽתڻ
+#define Sgit_FTDC_VTC_BankBankToFuture '102001'
+///зڻʽת
+#define Sgit_FTDC_VTC_BankFutureToBank '102002'
+///ڻʽתڻ
+#define Sgit_FTDC_VTC_FutureBankToFuture '202001'
+///ڻڻʽת
+#define Sgit_FTDC_VTC_FutureFutureToBank '202002'
+
+typedef char TSgitFtdcVirementTradeCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPhotoTypeNameTypeһӰ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPhotoTypeNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPhotoTypeIDTypeһӰʹ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPhotoTypeIDType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPhotoNameTypeһӰ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPhotoNameType[161];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTopicIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcTopicIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReportTypeIDTypeһױͱʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcReportTypeIDType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCharacterIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCharacterIDType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLParamIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLParamIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLInvestorTypeTypeһͶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLInvestorTypeType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLIdCardTypeTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLIdCardTypeType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLTradeDirectTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLTradeDirectType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLTradeModelTypeһʽʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLTradeModelType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLParamIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLParamIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLOpParamValueTypeһҵֵ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcAMLOpParamValueType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLCustomerCardTypeTypeһͻ֤/֤ļ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLCustomerCardTypeType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLInstitutionNameTypeһڻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLInstitutionNameType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLDistrictIDTypeһڻڵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLDistrictIDType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLRelationShipTypeһڻĹϵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLRelationShipType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLInstitutionTypeTypeһڻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLInstitutionTypeType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLInstitutionIDTypeһڻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLInstitutionIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLAccountTypeTypeһ˻
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLAccountTypeType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLTradingTypeTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLTradingTypeType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLTransactClassTypeһ֧
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLTransactClassType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLCapitalIOTypeһʽոʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLCapitalIOType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLSiteTypeһص
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLSiteType[10];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLCapitalPurposeTypeһʽ;
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLCapitalPurposeType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLReportTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLReportTypeType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLSerialNoTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLSerialNoType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLStatusType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLGenStatusTypeһAmlɷʽ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_GEN_Program '0'
+///˹
+#define Sgit_FTDC_GEN_HandWork '1'
+
+typedef char TSgitFtdcAMLGenStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLSeqCodeTypeһҵʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLSeqCodeType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLFileNameTypeһAMLļ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLFileNameType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLMoneyTypeһϴǮʽ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcAMLMoneyType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLFileAmountTypeһϴǮʽ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcAMLFileAmountType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCFMMCKeyTypeһԿ(֤)
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCFMMCKeyType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCFMMCKeyKindTypeһ̬Կ(֤)
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_CFMMCKK_REQUEST 'R'
+///CFMMCԶ
+#define Sgit_FTDC_CFMMCKK_AUTO 'A'
+///CFMMCֶ
+#define Sgit_FTDC_CFMMCKK_MANUAL 'M'
+
+typedef char TSgitFtdcCFMMCKeyKindType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLReportNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAMLReportNameType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIndividualNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcIndividualNameType[51];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCurrencyIDTypeһִ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCurrencyIDType[4];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCustNumberTypeһͻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCustNumberType[36];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrganCodeType[36];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrganNameType[71];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSuperOrganCodeTypeһϼ,ڻ˾ܲ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSuperOrganCodeType[12];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSubBranchIDTypeһ֧
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSubBranchIDType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSubBranchNameTypeһ֧
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSubBranchNameType[71];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBranchNetCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBranchNetCodeType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBranchNetNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBranchNetNameType[71];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganFlagTypeһʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOrganFlagType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankCodingForFutureTypeһжڻ˾ı
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankCodingForFutureType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankReturnCodeTypeһжԷĶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankReturnCodeType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPlateReturnCodeTypeһתƽ̨ԷĶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPlateReturnCodeType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankSubBranchIDTypeһз֧
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankSubBranchIDType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureBranchIDTypeһڻ֧
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureBranchIDType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReturnCodeTypeһش
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcReturnCodeType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOperatorCodeTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOperatorCodeType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClearDepIDTypeһʻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClearDepIDType[6];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClearBrchIDTypeһʻк
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClearBrchIDType[6];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClearNameTypeһʻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClearNameType[71];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankAccountNameTypeһʻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankAccountNameType[71];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvDepIDTypeһͶ˺Ż
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInvDepIDType[6];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvBrchIDTypeһͶк
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInvBrchIDType[6];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMessageFormatVersionTypeһϢʽ汾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcMessageFormatVersionType[36];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDigestTypeһժҪ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDigestType[36];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAuthenticDataTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAuthenticDataType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPasswordKeyTypeһԿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPasswordKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureAccountNameTypeһڻʻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureAccountNameType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMobilePhoneTypeһֻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcMobilePhoneType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureMainKeyTypeһڻ˾Կ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureMainKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureWorkKeyTypeһڻ˾Կ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureWorkKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureTransKeyTypeһڻ˾Կ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFutureTransKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankMainKeyTypeһԿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankMainKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankWorkKeyTypeһйԿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankWorkKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankTransKeyTypeһдԿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankTransKeyType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankServerDescriptionTypeһзϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankServerDescriptionType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAddInfoTypeһϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAddInfoType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDescrInfoForReturnCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDescrInfoForReturnCodeType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCountryCodeTypeһҴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCountryCodeType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSerialTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSerialType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPlateSerialTypeһƽ̨ˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcPlateSerialType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankSerialTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankSerialType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCorrectSerialTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcCorrectSerialType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureSerialTypeһڻ˾ˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcFutureSerialType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcApplicationIDTypeһӦñʶ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcApplicationIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankProxyIDTypeһдʶ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcBankProxyIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTCoreIDTypeһתʺϵͳʶ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcFBTCoreIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcServerPortTypeһ˿ں
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcServerPortType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRepealedTimesTypeһѾ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcRepealedTimesType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRepealTimeIntervalTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcRepealTimeIntervalType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTotalTimesTypeһÿۼתʴ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcTotalTimesType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTRequestIDTypeһID
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcFBTRequestIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTIDTypeһID
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcTIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeAmountTypeһԪ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcTradeAmountType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCustFeeTypeһӦտͻãԪ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcCustFeeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureFeeTypeһӦڻ˾ãԪ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcFutureFeeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSingleMaxAmtTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcSingleMaxAmtType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSingleMinAmtTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcSingleMinAmtType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTotalAmtTypeһÿۼתʶ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcTotalAmtType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCertificationTypeTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+///֤
+#define Sgit_FTDC_CFT_IDCard '0'
+///
+#define Sgit_FTDC_CFT_Passport '1'
+///֤
+#define Sgit_FTDC_CFT_OfficerIDCard '2'
+///ʿ֤
+#define Sgit_FTDC_CFT_SoldierIDCard '3'
+///֤
+#define Sgit_FTDC_CFT_HomeComingCard '4'
+///ڲ
+#define Sgit_FTDC_CFT_HouseholdRegister '5'
+///Ӫҵִպ
+#define Sgit_FTDC_CFT_LicenseNo '6'
+///֤֯
+#define Sgit_FTDC_CFT_InstitutionCodeCard '7'
+///ʱӪҵִպ
+#define Sgit_FTDC_CFT_TempLicenseNo '8'
+///ҵǼ֤
+#define Sgit_FTDC_CFT_NoEnterpriseLicenseNo '9'
+///֤
+#define Sgit_FTDC_CFT_OtherCard 'x'
+///ܲ
+#define Sgit_FTDC_CFT_SuperDepAgree 'a'
+
+typedef char TSgitFtdcCertificationTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileBusinessCodeTypeһļҵ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_FBC_Others '0'
+///ת˽ϸ
+#define Sgit_FTDC_FBC_TransferDetails '1'
+///ͻ˻״̬
+#define Sgit_FTDC_FBC_CustAccStatus '2'
+///˻ཻϸ
+#define Sgit_FTDC_FBC_AccountTradeDetails '3'
+///ڻ˻Ϣϸ
+#define Sgit_FTDC_FBC_FutureAccountChangeInfoDetails '4'
+///ͻʽ̨ϸ
+#define Sgit_FTDC_FBC_CustMoneyDetail '5'
+///ͻϢϸ
+#define Sgit_FTDC_FBC_CustCancelAccountInfo '6'
+///ͻʽ˽
+#define Sgit_FTDC_FBC_CustMoneyResult '7'
+///쳣ļ
+#define Sgit_FTDC_FBC_OthersExceptionResult '8'
+///ͻϢϸ
+#define Sgit_FTDC_FBC_CustInterestNetMoneyDetails '9'
+///ͻʽϸ
+#define Sgit_FTDC_FBC_CustMoneySendAndReceiveDetails 'a'
+///˴ʽջ
+#define Sgit_FTDC_FBC_CorporationMoneyTotal 'b'
+///ʽջ
+#define Sgit_FTDC_FBC_MainbodyMoneyTotal 'c'
+///ܷƽ
+#define Sgit_FTDC_FBC_MainPartMonitorData 'd'
+///б
+#define Sgit_FTDC_FBC_PreparationMoney 'e'
+///Эʽ
+#define Sgit_FTDC_FBC_BankMoneyMonitorData 'f'
+
+typedef char TSgitFtdcFileBusinessCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCashExchangeCodeTypeһ㳮־
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_CEC_Exchange '1'
+///
+#define Sgit_FTDC_CEC_Cash '2'
+
+typedef char TSgitFtdcCashExchangeCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcYesNoIndicatorTypeһǻʶ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_YNI_Yes '0'
+///
+#define Sgit_FTDC_YNI_No '1'
+
+typedef char TSgitFtdcYesNoIndicatorType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBanlanceTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///ǰ
+#define Sgit_FTDC_BLT_CurrentMoney '0'
+///
+#define Sgit_FTDC_BLT_UsableMoney '1'
+///ȡ
+#define Sgit_FTDC_BLT_FetchableMoney '2'
+///
+#define Sgit_FTDC_BLT_FreezeMoney '3'
+
+typedef char TSgitFtdcBanlanceTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcGenderTypeһԱ
+/////////////////////////////////////////////////////////////////////////
+///δ֪״̬
+#define Sgit_FTDC_GD_Unknown '0'
+///
+#define Sgit_FTDC_GD_Male '1'
+///Ů
+#define Sgit_FTDC_GD_Female '2'
+
+typedef char TSgitFtdcGenderType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFeePayFlagTypeһ֧־
+/////////////////////////////////////////////////////////////////////////
+///淽֧
+#define Sgit_FTDC_FPF_BEN '0'
+///ɷͷ֧
+#define Sgit_FTDC_FPF_OUR '1'
+///ɷͷ֧ķã淽֧ܵķ
+#define Sgit_FTDC_FPF_SHA '2'
+
+typedef char TSgitFtdcFeePayFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPassWordKeyTypeTypeһԿ
+/////////////////////////////////////////////////////////////////////////
+///Կ
+#define Sgit_FTDC_PWKT_ExchangeKey '0'
+///Կ
+#define Sgit_FTDC_PWKT_PassWordKey '1'
+///MACԿ
+#define Sgit_FTDC_PWKT_MACKey '2'
+///Կ
+#define Sgit_FTDC_PWKT_MessageKey '3'
+
+typedef char TSgitFtdcPassWordKeyTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTPassWordTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///ѯ
+#define Sgit_FTDC_PWT_Query '0'
+///ȡ
+#define Sgit_FTDC_PWT_Fetch '1'
+///ת
+#define Sgit_FTDC_PWT_Transfer '2'
+///
+#define Sgit_FTDC_PWT_Trade '3'
+
+typedef char TSgitFtdcFBTPassWordTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTEncryModeTypeһܷʽ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_EM_NoEncry '0'
+///DES
+#define Sgit_FTDC_EM_DES '1'
+///3DES
+#define Sgit_FTDC_EM_3DES '2'
+
+typedef char TSgitFtdcFBTEncryModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankRepealFlagTypeһг־
+/////////////////////////////////////////////////////////////////////////
+///Զ
+#define Sgit_FTDC_BRF_BankNotNeedRepeal '0'
+///дԶ
+#define Sgit_FTDC_BRF_BankWaitingRepeal '1'
+///Զ
+#define Sgit_FTDC_BRF_BankBeenRepealed '2'
+
+typedef char TSgitFtdcBankRepealFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerRepealFlagTypeһ̳־
+/////////////////////////////////////////////////////////////////////////
+///Զ
+#define Sgit_FTDC_BRORF_BrokerNotNeedRepeal '0'
+///̴Զ
+#define Sgit_FTDC_BRORF_BrokerWaitingRepeal '1'
+///Զ
+#define Sgit_FTDC_BRORF_BrokerBeenRepealed '2'
+
+typedef char TSgitFtdcBrokerRepealFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstitutionTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_TS_Bank '0'
+///
+#define Sgit_FTDC_TS_Future '1'
+///ȯ
+#define Sgit_FTDC_TS_Store '2'
+
+typedef char TSgitFtdcInstitutionTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLastFragmentTypeһƬ־
+/////////////////////////////////////////////////////////////////////////
+///Ƭ
+#define Sgit_FTDC_LF_Yes '0'
+///Ƭ
+#define Sgit_FTDC_LF_No '1'
+
+typedef char TSgitFtdcLastFragmentType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankAccStatusTypeһ˻״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_BAS_Normal '0'
+///
+#define Sgit_FTDC_BAS_Freeze '1'
+///ʧ
+#define Sgit_FTDC_BAS_ReportLoss '2'
+
+typedef char TSgitFtdcBankAccStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMoneyAccountStatusTypeһʽ˻״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_MAS_Normal '0'
+///
+#define Sgit_FTDC_MAS_Cancel '1'
+
+typedef char TSgitFtdcMoneyAccountStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcManageStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///ָ
+#define Sgit_FTDC_MSS_Point '0'
+///Ԥָ
+#define Sgit_FTDC_MSS_PrePoint '1'
+///ָ
+#define Sgit_FTDC_MSS_CancelPoint '2'
+
+typedef char TSgitFtdcManageStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSystemTypeTypeһӦϵͳ
+/////////////////////////////////////////////////////////////////////////
+///ת
+#define Sgit_FTDC_SYT_FutureBankTransfer '0'
+///֤ת
+#define Sgit_FTDC_SYT_StockBankTransfer '1'
+///
+#define Sgit_FTDC_SYT_TheThirdPartStore '2'
+
+typedef char TSgitFtdcSystemTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTxnEndFlagTypeһתʻת־
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_TEF_NormalProcessing '0'
+///ɹ
+#define Sgit_FTDC_TEF_Success '1'
+///ʧܽ
+#define Sgit_FTDC_TEF_Failed '2'
+///쳣
+#define Sgit_FTDC_TEF_Abnormal '3'
+///˹쳣
+#define Sgit_FTDC_TEF_ManualProcessedForException '4'
+///ͨѶ쳣 ˹
+#define Sgit_FTDC_TEF_CommuFailedNeedManualProcess '5'
+///ϵͳ˹
+#define Sgit_FTDC_TEF_SysErrorNeedManualProcess '6'
+
+typedef char TSgitFtdcTxnEndFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProcessStatusTypeһתʷ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_PSS_NotProcess '0'
+///ʼ
+#define Sgit_FTDC_PSS_StartProcess '1'
+///
+#define Sgit_FTDC_PSS_Finished '2'
+
+typedef char TSgitFtdcProcessStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCustTypeTypeһͻ
+/////////////////////////////////////////////////////////////////////////
+///Ȼ
+#define Sgit_FTDC_CUSTT_Person '0'
+///
+#define Sgit_FTDC_CUSTT_Institution '1'
+
+typedef char TSgitFtdcCustTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTTransferDirectionTypeһתʷ
+/////////////////////////////////////////////////////////////////////////
+///תڻ
+#define Sgit_FTDC_FBTTD_FromBankToFuture '1'
+///ڻת
+#define Sgit_FTDC_FBTTD_FromFutureToBank '2'
+
+typedef char TSgitFtdcFBTTransferDirectionType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOpenOrDestroyTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_OOD_Open '1'
+///
+#define Sgit_FTDC_OOD_Destroy '0'
+
+typedef char TSgitFtdcOpenOrDestroyType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAvailabilityFlagTypeһЧ־
+/////////////////////////////////////////////////////////////////////////
+///δȷ
+#define Sgit_FTDC_AVAF_Invalid '0'
+///Ч
+#define Sgit_FTDC_AVAF_Valid '1'
+///
+#define Sgit_FTDC_AVAF_Repeal '2'
+
+typedef char TSgitFtdcAvailabilityFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///д
+#define Sgit_FTDC_OT_Bank '1'
+///ǰ
+#define Sgit_FTDC_OT_Future '2'
+///תƽ̨
+#define Sgit_FTDC_OT_PlateForm '9'
+
+typedef char TSgitFtdcOrganTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganLevelTypeһ
+/////////////////////////////////////////////////////////////////////////
+///лܲ
+#define Sgit_FTDC_OL_HeadQuarters '1'
+///зĻڻ˾Ӫҵ
+#define Sgit_FTDC_OL_Branch '2'
+
+typedef char TSgitFtdcOrganLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProtocalIDTypeһЭ
+/////////////////////////////////////////////////////////////////////////
+///Э
+#define Sgit_FTDC_PID_FutureProtocal '0'
+///Э
+#define Sgit_FTDC_PID_ICBCProtocal '1'
+///ũЭ
+#define Sgit_FTDC_PID_ABCProtocal '2'
+///йЭ
+#define Sgit_FTDC_PID_CBCProtocal '3'
+///Э
+#define Sgit_FTDC_PID_CCBProtocal '4'
+///Э
+#define Sgit_FTDC_PID_BOCOMProtocal '5'
+///תƽ̨Э
+#define Sgit_FTDC_PID_FBTPlateFormProtocal 'X'
+
+typedef char TSgitFtdcProtocalIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcConnectModeTypeһӷʽ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_CM_ShortConnect '0'
+///
+#define Sgit_FTDC_CM_LongConnect '1'
+
+typedef char TSgitFtdcConnectModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSyncModeTypeһͨŷʽ
+/////////////////////////////////////////////////////////////////////////
+///첽
+#define Sgit_FTDC_SRM_ASync '0'
+///ͬ
+#define Sgit_FTDC_SRM_Sync '1'
+
+typedef char TSgitFtdcSyncModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankAccTypeTypeһʺ
+/////////////////////////////////////////////////////////////////////////
+///д
+#define Sgit_FTDC_BAT_BankBook '1'
+///
+#define Sgit_FTDC_BAT_SavingCard '2'
+///ÿ
+#define Sgit_FTDC_BAT_CreditCard '3'
+
+typedef char TSgitFtdcBankAccTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureAccTypeTypeһڻ˾ʺ
+/////////////////////////////////////////////////////////////////////////
+///д
+#define Sgit_FTDC_FAT_BankBook '1'
+///
+#define Sgit_FTDC_FAT_SavingCard '2'
+///ÿ
+#define Sgit_FTDC_FAT_CreditCard '3'
+
+typedef char TSgitFtdcFutureAccTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOrganStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_OS_Ready '0'
+///ǩ
+#define Sgit_FTDC_OS_CheckIn '1'
+///ǩ
+#define Sgit_FTDC_OS_CheckOut '2'
+///ļ
+#define Sgit_FTDC_OS_CheckFileArrived '3'
+///
+#define Sgit_FTDC_OS_CheckDetail '4'
+///
+#define Sgit_FTDC_OS_DayEndClean '5'
+///ע
+#define Sgit_FTDC_OS_Invalid '9'
+
+typedef char TSgitFtdcOrganStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCCBFeeModeTypeһշģʽ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_CCBFM_ByAmount '1'
+///¿
+#define Sgit_FTDC_CCBFM_ByMonth '2'
+
+typedef char TSgitFtdcCCBFeeModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommApiTypeTypeһͨѶAPI
+/////////////////////////////////////////////////////////////////////////
+///ͻ
+#define Sgit_FTDC_CAPIT_Client '1'
+///
+#define Sgit_FTDC_CAPIT_Server '2'
+///ϵͳUserApi
+#define Sgit_FTDC_CAPIT_UserApi '3'
+
+typedef char TSgitFtdcCommApiTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcServiceIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcServiceIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcServiceLineNoTypeһ·
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcServiceLineNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcServiceNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcServiceNameType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLinkStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ѿ
+#define Sgit_FTDC_LS_Connected '1'
+///û
+#define Sgit_FTDC_LS_Disconnected '2'
+
+typedef char TSgitFtdcLinkStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommApiPointerTypeһͨѶAPIָ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcCommApiPointerType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPwdFlagTypeһ˶Ա־
+/////////////////////////////////////////////////////////////////////////
+///˶
+#define Sgit_FTDC_BPWDF_NoCheck '0'
+///ĺ˶
+#define Sgit_FTDC_BPWDF_BlankCheck '1'
+///ĺ˶
+#define Sgit_FTDC_BPWDF_EncryptCheck '2'
+
+typedef char TSgitFtdcPwdFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSecuAccTypeTypeһڻʺ
+/////////////////////////////////////////////////////////////////////////
+///ʽʺ
+#define Sgit_FTDC_SAT_AccountID '1'
+///ʽ
+#define Sgit_FTDC_SAT_CardID '2'
+///Ϻɶʺ
+#define Sgit_FTDC_SAT_SHStockholderID '3'
+///ڹɶʺ
+#define Sgit_FTDC_SAT_SZStockholderID '4'
+
+typedef char TSgitFtdcSecuAccTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTransferStatusTypeһת˽״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_TRFS_Normal '0'
+///
+#define Sgit_FTDC_TRFS_Repealed '1'
+
+typedef char TSgitFtdcTransferStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSponsorTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_SPTYPE_Broker '0'
+///
+#define Sgit_FTDC_SPTYPE_Bank '1'
+
+typedef char TSgitFtdcSponsorTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcReqRspTypeTypeһӦ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_REQRSP_Request '0'
+///Ӧ
+#define Sgit_FTDC_REQRSP_Response '1'
+
+typedef char TSgitFtdcReqRspTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTUserEventTypeTypeһתû¼
+/////////////////////////////////////////////////////////////////////////
+///ǩ
+#define Sgit_FTDC_FBTUET_SignIn '0'
+///תڻ
+#define Sgit_FTDC_FBTUET_FromBankToFuture '1'
+///ڻת
+#define Sgit_FTDC_FBTUET_FromFutureToBank '2'
+///
+#define Sgit_FTDC_FBTUET_OpenAccount '3'
+///
+#define Sgit_FTDC_FBTUET_CancelAccount '4'
+///˻
+#define Sgit_FTDC_FBTUET_ChangeAccount '5'
+///תڻ
+#define Sgit_FTDC_FBTUET_RepealFromBankToFuture '6'
+///ڻת
+#define Sgit_FTDC_FBTUET_RepealFromFutureToBank '7'
+///ѯ˻
+#define Sgit_FTDC_FBTUET_QueryBankAccount '8'
+///ѯڻ˻
+#define Sgit_FTDC_FBTUET_QueryFutureAccount '9'
+///ǩ
+#define Sgit_FTDC_FBTUET_SignOut 'A'
+///Կͬ
+#define Sgit_FTDC_FBTUET_SyncKey 'B'
+///
+#define Sgit_FTDC_FBTUET_Other 'Z'
+
+typedef char TSgitFtdcFBTUserEventTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankIDByBankTypeһԼı
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcBankIDByBankType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcNotifyClassTypeһ֪ͨ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_NC_NOERROR '0'
+///ʾ
+#define Sgit_FTDC_NC_Warn '1'
+///
+#define Sgit_FTDC_NC_Call '2'
+///ǿƽ
+#define Sgit_FTDC_NC_Force '3'
+///
+#define Sgit_FTDC_NC_CHUANCANG '4'
+///쳣
+#define Sgit_FTDC_NC_Exception '5'
+
+typedef char TSgitFtdcNotifyClassType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRiskNofityInfoTypeһͻ֪ͨϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRiskNofityInfoType[257];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcForceCloseSceneIdTypeһǿƽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcForceCloseSceneIdType[24];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcForceCloseTypeTypeһǿƽ
+/////////////////////////////////////////////////////////////////////////
+///ֹǿƽ
+#define Sgit_FTDC_FCT_Manual '0'
+///һͶ߸ǿƽ
+#define Sgit_FTDC_FCT_Single '1'
+///Ͷ߸ǿƽ
+#define Sgit_FTDC_FCT_Group '2'
+
+typedef char TSgitFtdcForceCloseTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInstrumentIDsTypeһƷ,+ָ,cu+zn
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInstrumentIDsType[101];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRiskNotifyMethodTypeһ֪ͨ;
+/////////////////////////////////////////////////////////////////////////
+///ϵͳ֪ͨ
+#define Sgit_FTDC_RNM_System '0'
+///֪ͨ
+#define Sgit_FTDC_RNM_SMS '1'
+///ʼ֪ͨ
+#define Sgit_FTDC_RNM_EMail '2'
+///˹֪ͨ
+#define Sgit_FTDC_RNM_Manual '3'
+
+typedef char TSgitFtdcRiskNotifyMethodType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRiskNotifyStatusTypeһ֪ͨ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_RNS_NotGen '0'
+///δ
+#define Sgit_FTDC_RNS_Generated '1'
+///ʧ
+#define Sgit_FTDC_RNS_SendError '2'
+///ѷδ
+#define Sgit_FTDC_RNS_SendOk '3'
+///ѽδȷ
+#define Sgit_FTDC_RNS_Received '4'
+///ȷ
+#define Sgit_FTDC_RNS_Confirmed '5'
+
+typedef char TSgitFtdcRiskNotifyStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRiskUserEventTypeһû¼
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_RUE_ExportData '0'
+
+typedef char TSgitFtdcRiskUserEventType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParamIDTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcParamIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParamNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcParamNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcParamValueTypeһֵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcParamValueType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcConditionalOrderSortTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///ʹ¼
+#define Sgit_FTDC_COST_LastPriceAsc '0'
+///ʹ¼۽
+#define Sgit_FTDC_COST_LastPriceDesc '1'
+///ʹ
+#define Sgit_FTDC_COST_AskPriceAsc '2'
+///ʹ۽
+#define Sgit_FTDC_COST_AskPriceDesc '3'
+///ʹ
+#define Sgit_FTDC_COST_BidPriceAsc '4'
+///ʹ۽
+#define Sgit_FTDC_COST_BidPriceDesc '5'
+
+typedef char TSgitFtdcConditionalOrderSortTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSendTypeTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_UOAST_NoSend '0'
+///ѷ
+#define Sgit_FTDC_UOAST_Sended '1'
+///
+#define Sgit_FTDC_UOAST_Generated '2'
+///ʧ
+#define Sgit_FTDC_UOAST_SendFail '3'
+///ճɹ
+#define Sgit_FTDC_UOAST_Success '4'
+///ʧ
+#define Sgit_FTDC_UOAST_Fail '5'
+///ȡ
+#define Sgit_FTDC_UOAST_Cancel '6'
+
+typedef char TSgitFtdcSendTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClientIDStatusTypeһױ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_UOACS_NoApply '1'
+///ύ
+#define Sgit_FTDC_UOACS_Submited '2'
+///ѷ
+#define Sgit_FTDC_UOACS_Sended '3'
+///
+#define Sgit_FTDC_UOACS_Success '4'
+///ܾ
+#define Sgit_FTDC_UOACS_Refuse '5'
+///ѳ
+#define Sgit_FTDC_UOACS_Cancel '6'
+
+typedef char TSgitFtdcClientIDStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIndustryIDTypeһҵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcIndustryIDType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcQuestionIDTypeһϢ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcQuestionIDType[5];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcQuestionContentTypeһϢ˵
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcQuestionContentType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOptionIDTypeһѡ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOptionIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOptionContentTypeһѡ˵
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOptionContentType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcQuestionTypeTypeһϢ
+/////////////////////////////////////////////////////////////////////////
+///ѡ
+#define Sgit_FTDC_QT_Radio '1'
+///ѡ
+#define Sgit_FTDC_QT_Option '2'
+///
+#define Sgit_FTDC_QT_Blank '3'
+
+typedef char TSgitFtdcQuestionTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProcessIDTypeһҵˮ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcProcessIDType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSeqNoTypeһˮ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSeqNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUOAProcessStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUOAProcessStatusType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcProcessTypeTypeһ̹
+/////////////////////////////////////////////////////////////////////////
+///뽻ױ
+#define Sgit_FTDC_PT_ApplyTradingCode '1'
+///ױ
+#define Sgit_FTDC_PT_CancelTradingCode '2'
+///Ϣ
+#define Sgit_FTDC_PT_ModifyIDCard '3'
+///һϢ
+#define Sgit_FTDC_PT_ModifyNoIDCard '4'
+///
+#define Sgit_FTDC_PT_ExchOpenBak '5'
+///
+#define Sgit_FTDC_PT_ExchCancelBak '6'
+///淶
+#define Sgit_FTDC_PT_StandardAccount '7'
+///˻
+#define Sgit_FTDC_PT_FreezeAccount '8'
+///˻
+#define Sgit_FTDC_PT_ActiveFreezeAccount '9'
+
+typedef char TSgitFtdcProcessTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBusinessTypeTypeһҵ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_BT_Request '1'
+///Ӧ
+#define Sgit_FTDC_BT_Response '2'
+///֪ͨ
+#define Sgit_FTDC_BT_Notice '3'
+
+typedef char TSgitFtdcBusinessTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCfmmcReturnCodeTypeһķ
+/////////////////////////////////////////////////////////////////////////
+///ɹ
+#define Sgit_FTDC_CRC_Success '0'
+///ÿͻѾڴ
+#define Sgit_FTDC_CRC_Working '1'
+///пͻϼʧ
+#define Sgit_FTDC_CRC_InfoFail '2'
+///ʵƼʧ
+#define Sgit_FTDC_CRC_IDCardFail '3'
+///
+#define Sgit_FTDC_CRC_OtherFail '4'
+
+typedef char TSgitFtdcCfmmcReturnCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExReturnCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcExReturnCodeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClientTypeTypeһͻ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_CfMMCCT_All '0'
+///
+#define Sgit_FTDC_CfMMCCT_Person '1'
+///λ
+#define Sgit_FTDC_CfMMCCT_Company '2'
+
+typedef char TSgitFtdcClientTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExchangeIDTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///Ϻڻ
+#define Sgit_FTDC_EIDT_SHFE 'S'
+///֣Ʒ
+#define Sgit_FTDC_EIDT_CZCE 'Z'
+///Ʒ
+#define Sgit_FTDC_EIDT_DCE 'D'
+///йڻ
+#define Sgit_FTDC_EIDT_CFFEX 'J'
+///ƽ
+#define Sgit_FTDC_EIDT_GOLD 'G'
+///PAT
+#define Sgit_FTDC_EIDT_PAT 'P'
+///
+#define Sgit_FTDC_EIDT_LTS 'L'
+
+typedef char TSgitFtdcExchangeIDTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExClientIDTypeTypeһױ
+/////////////////////////////////////////////////////////////////////////
+///ױ
+#define Sgit_FTDC_ECIDT_Hedge '1'
+///
+#define Sgit_FTDC_ECIDT_Arbitrage '2'
+///Ͷ
+#define Sgit_FTDC_ECIDT_Speculation '3'
+
+typedef char TSgitFtdcExClientIDTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcClientClassifyTypeһͻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcClientClassifyType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUOAOrganTypeTypeһλ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUOAOrganTypeType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUOACountryCodeTypeһҴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUOACountryCodeType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAreaCodeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAreaCodeType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFuturesIDTypeһΪͻĴ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFuturesIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCffmcDateTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCffmcDateType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCffmcTimeTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCffmcTimeType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcNocIDTypeһ֯
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcNocIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUpdateFlagTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_UF_NoUpdate '0'
+///ȫϢɹ
+#define Sgit_FTDC_UF_Success '1'
+///ȫϢʧ
+#define Sgit_FTDC_UF_Fail '2'
+///½ױɹ
+#define Sgit_FTDC_UF_TCSuccess '3'
+///½ױʧ
+#define Sgit_FTDC_UF_TCFail '4'
+///Ѷ
+#define Sgit_FTDC_UF_Cancel '5'
+
+typedef char TSgitFtdcUpdateFlagType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcApplyOperateIDTypeһ붯
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_AOID_OpenInvestor '1'
+///Ϣ
+#define Sgit_FTDC_AOID_ModifyIDCard '2'
+///һϢ
+#define Sgit_FTDC_AOID_ModifyNoIDCard '3'
+///뽻ױ
+#define Sgit_FTDC_AOID_ApplyTradingCode '4'
+///ױ
+#define Sgit_FTDC_AOID_CancelTradingCode '5'
+///
+#define Sgit_FTDC_AOID_CancelInvestor '6'
+///˻
+#define Sgit_FTDC_AOID_FreezeAccount '8'
+///˻
+#define Sgit_FTDC_AOID_ActiveFreezeAccount '9'
+
+typedef char TSgitFtdcApplyOperateIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcApplyStatusIDTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///δȫ
+#define Sgit_FTDC_ASID_NoComplete '1'
+///ύ
+#define Sgit_FTDC_ASID_Submited '2'
+///
+#define Sgit_FTDC_ASID_Checked '3'
+///Ѿܾ
+#define Sgit_FTDC_ASID_Refused '4'
+///ɾ
+#define Sgit_FTDC_ASID_Deleted '5'
+
+typedef char TSgitFtdcApplyStatusIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSendMethodTypeһͷʽ
+/////////////////////////////////////////////////////////////////////////
+///ļ
+#define Sgit_FTDC_UOASM_ByAPI '1'
+///ӷ
+#define Sgit_FTDC_UOASM_ByFile '2'
+
+typedef char TSgitFtdcSendMethodType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEventTypeTypeһҵ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcEventTypeType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcEventModeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_EvM_ADD '1'
+///
+#define Sgit_FTDC_EvM_UPDATE '2'
+///ɾ
+#define Sgit_FTDC_EvM_DELETE '3'
+///
+#define Sgit_FTDC_EvM_CHECK '4'
+///
+#define Sgit_FTDC_EvM_COPY '5'
+///ע
+#define Sgit_FTDC_EvM_CANCEL '6'
+///
+#define Sgit_FTDC_EvM_Reverse '7'
+
+typedef char TSgitFtdcEventModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUOAAutoSendTypeһͳһԶ
+/////////////////////////////////////////////////////////////////////////
+///ԶͲ
+#define Sgit_FTDC_UOAA_ASR '1'
+///ԶͣԶ
+#define Sgit_FTDC_UOAA_ASNR '2'
+///ԶͣԶ
+#define Sgit_FTDC_UOAA_NSAR '3'
+///ԶͣҲԶ
+#define Sgit_FTDC_UOAA_NSR '4'
+
+typedef char TSgitFtdcUOAAutoSendType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcQueryDepthTypeһѯ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcQueryDepthType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDataCenterIDTypeһĴ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcDataCenterIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFlowIDTypeһID
+/////////////////////////////////////////////////////////////////////////
+///Ͷ߶ӦͶ
+#define Sgit_FTDC_EvM_InvestorGroupFlow '1'
+///Ͷ
+#define Sgit_FTDC_EvM_InvestorRate '2'
+///Ͷģϵ
+#define Sgit_FTDC_EvM_InvestorCommRateModel '3'
+
+typedef char TSgitFtdcFlowIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCheckLevelTypeһ˼
+/////////////////////////////////////////////////////////////////////////
+///㼶
+#define Sgit_FTDC_CL_Zero '0'
+///һ
+#define Sgit_FTDC_CL_One '1'
+///
+#define Sgit_FTDC_CL_Two '2'
+
+typedef char TSgitFtdcCheckLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCheckNoTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcCheckNoType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCheckStatusTypeһ˼
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_CHS_Init '0'
+///
+#define Sgit_FTDC_CHS_Checking '1'
+///Ѹ
+#define Sgit_FTDC_CHS_Checked '2'
+///ܾ
+#define Sgit_FTDC_CHS_Refuse '3'
+///
+#define Sgit_FTDC_CHS_Cancel '4'
+
+typedef char TSgitFtdcCheckStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUsedStatusTypeһЧ״̬
+/////////////////////////////////////////////////////////////////////////
+///δЧ
+#define Sgit_FTDC_CHU_Unused '0'
+///Ч
+#define Sgit_FTDC_CHU_Used '1'
+///Чʧ
+#define Sgit_FTDC_CHU_Fail '2'
+
+typedef char TSgitFtdcUsedStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRateTemplateNameTypeһģ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRateTemplateNameType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPropertyStringTypeһڲѯͶֶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcPropertyStringType[2049];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBankAcountOriginTypeһ˻Դ
+/////////////////////////////////////////////////////////////////////////
+///ֹ¼
+#define Sgit_FTDC_BAO_ByAccProperty '0'
+///ת
+#define Sgit_FTDC_BAO_ByFBTransfer '1'
+
+typedef char TSgitFtdcBankAcountOriginType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcMonthBillTradeSumTypeһ㵥±ɽܷʽ
+/////////////////////////////////////////////////////////////////////////
+///ͬͬԼ
+#define Sgit_FTDC_MBTS_ByInstrument '0'
+///ͬͬԼͬ۸
+#define Sgit_FTDC_MBTS_ByDayInsPrc '1'
+///ͬԼ
+#define Sgit_FTDC_MBTS_ByDayIns '2'
+
+typedef char TSgitFtdcMonthBillTradeSumType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTTradeCodeEnumTypeһڽ״ö
+/////////////////////////////////////////////////////////////////////////
+///зתڻ
+#define Sgit_FTDC_FTC_BankLaunchBankToBroker '102001'
+///ڻתڻ
+#define Sgit_FTDC_FTC_BrokerLaunchBankToBroker '202001'
+///зڻת
+#define Sgit_FTDC_FTC_BankLaunchBrokerToBank '102002'
+///ڻڻת
+#define Sgit_FTDC_FTC_BrokerLaunchBrokerToBank '202002'
+
+typedef char TSgitFtdcFBTTradeCodeEnumType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRateTemplateIDTypeһģʹ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRateTemplateIDType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRiskRateTypeһն
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRiskRateType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTimestampTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcTimestampType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorIDRuleNameTypeһŶι
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInvestorIDRuleNameType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcInvestorIDRuleExprTypeһŶιʽ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcInvestorIDRuleExprType[513];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLastDriftTypeһϴOTPƯֵ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcLastDriftType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLastSuccessTypeһϴOTPɹֵ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcLastSuccessType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAuthKeyTypeһԿ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAuthKeyType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSerialNumberTypeһк
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSerialNumberType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOTPTypeTypeһ̬
+/////////////////////////////////////////////////////////////////////////
+///̬
+#define Sgit_FTDC_OTP_NONE '0'
+///ʱ
+#define Sgit_FTDC_OTP_TOTP '1'
+
+typedef char TSgitFtdcOTPTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOTPVendorsIDTypeһ̬ṩ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOTPVendorsIDType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOTPVendorsNameTypeһ̬ṩ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcOTPVendorsNameType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcOTPStatusTypeһ̬״̬
+/////////////////////////////////////////////////////////////////////////
+///δʹ
+#define Sgit_FTDC_OTPS_Unused '0'
+///ʹ
+#define Sgit_FTDC_OTPS_Used '1'
+///ע
+#define Sgit_FTDC_OTPS_Disuse '2'
+
+typedef char TSgitFtdcOTPStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcBrokerUserTypeTypeһù˾û
+/////////////////////////////////////////////////////////////////////////
+///Ͷ
+#define Sgit_FTDC_BUT_Investor '1'
+///Ա
+#define Sgit_FTDC_BUT_BrokerUser '2'
+
+typedef char TSgitFtdcBrokerUserTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFutureTypeTypeһڻ
+/////////////////////////////////////////////////////////////////////////
+///Ʒڻ
+#define Sgit_FTDC_FUTT_Commodity '1'
+///ڻ
+#define Sgit_FTDC_FUTT_Financial '2'
+
+typedef char TSgitFtdcFutureTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFundEventTypeTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+///ת
+#define Sgit_FTDC_FET_Restriction '0'
+///ת
+#define Sgit_FTDC_FET_TodayRestriction '1'
+///ˮ
+#define Sgit_FTDC_FET_Transfer '2'
+///ʽ
+#define Sgit_FTDC_FET_Credit '3'
+///Ͷ߿ʽ
+#define Sgit_FTDC_FET_InvestorWithdrawAlm '4'
+///ʻת
+#define Sgit_FTDC_FET_BankRestriction '5'
+///ǩԼ˻
+#define Sgit_FTDC_FET_Accountregister '6'
+///
+#define Sgit_FTDC_FET_ExchangeFundIO '7'
+///Ͷ߳
+#define Sgit_FTDC_FET_InvestorFundIO '8'
+
+typedef char TSgitFtdcFundEventTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAccountSourceTypeTypeһʽ˻Դ
+/////////////////////////////////////////////////////////////////////////
+///ͬ
+#define Sgit_FTDC_AST_FBTransfer '0'
+///ֹ¼
+#define Sgit_FTDC_AST_ManualEntry '1'
+
+typedef char TSgitFtdcAccountSourceTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCodeSourceTypeTypeһױԴ
+/////////////////////////////////////////////////////////////////////////
+///ͳһ(ѹ淶)
+#define Sgit_FTDC_CST_UnifyAccount '0'
+///ֹ¼(δ淶)
+#define Sgit_FTDC_CST_ManualEntry '1'
+
+typedef char TSgitFtdcCodeSourceTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserRangeTypeһԱΧ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_UR_All '0'
+///һԱ
+#define Sgit_FTDC_UR_Single '1'
+
+typedef char TSgitFtdcUserRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTimeSpanTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcTimeSpanType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcImportSequenceIDTypeһ̬Ƶα
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcImportSequenceIDType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcByGroupTypeһͳƱͻͳƷʽ
+/////////////////////////////////////////////////////////////////////////
+///Ͷͳ
+#define Sgit_FTDC_BG_Investor '2'
+///ͳ
+#define Sgit_FTDC_BG_Group '1'
+
+typedef char TSgitFtdcByGroupType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeSumStatModeTypeһͳƱΧͳƷʽ
+/////////////////////////////////////////////////////////////////////////
+///Լͳ
+#define Sgit_FTDC_TSSM_Instrument '1'
+///Ʒͳ
+#define Sgit_FTDC_TSSM_Product '2'
+///ͳ
+#define Sgit_FTDC_TSSM_Exchange '3'
+
+typedef char TSgitFtdcTradeSumStatModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcComTypeTypeһϳɽ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcComTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserProductIDTypeһƷʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUserProductIDType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserProductNameTypeһƷ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUserProductNameType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcUserProductMemoTypeһƷ˵
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcUserProductMemoType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCCancelFlagTypeһ־
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCCancelFlagType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCDateTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCDateType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCInvestorNameTypeһͻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCInvestorNameType[81];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCInvestorIDTypeһͻ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCInvestorIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCIdentifiedCardNoTypeһ֤
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCIdentifiedCardNoType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCClientIDTypeһױ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCClientIDType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCBankFlagTypeһбʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCBankFlagType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCBankAccountTypeһ˻
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCBankAccountType[23];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCOpenNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCOpenNameType[41];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCMemoTypeһ˵
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCMemoType[101];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCTimeTypeһʱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCTimeType[11];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCTradeIDTypeһɽˮ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCTradeIDType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCExchangeInstIDTypeһԼ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCExchangeInstIDType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCMortgageNameTypeһѺƷ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCMortgageNameType[7];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCReasonTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCReasonType[3];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcIsSettlementTypeһǷΪǽԱ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcIsSettlementType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCMoneyTypeһʽ
+/////////////////////////////////////////////////////////////////////////
+typedef double TSgitFtdcCSRCMoneyType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommModelNameTypeһģ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCommModelNameType[161];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCommModelMemoTypeһģ屸ע
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCommModelMemoType[1025];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRateInvestorRangeTypeһͶ߷Χ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_RIR_All '1'
+///ģ
+#define Sgit_FTDC_RIR_Model '2'
+///һͶ
+#define Sgit_FTDC_RIR_Single '3'
+
+typedef char TSgitFtdcRateInvestorRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAgentBrokerIDTypeһ˾
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAgentBrokerIDType[13];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDRIdentityIDTypeһĴ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcDRIdentityIDType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDRIdentityNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDRIdentityNameType[65];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDBLinkIDTypeһDBLinkʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDBLinkIDType[31];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSyncDataStatusTypeһϵͳͬ״̬
+/////////////////////////////////////////////////////////////////////////
+///δͬ
+#define Sgit_FTDC_SDS_Initialize '0'
+///ͬ
+#define Sgit_FTDC_SDS_Settlementing '1'
+///ͬ
+#define Sgit_FTDC_SDS_Settlemented '2'
+
+typedef char TSgitFtdcSyncDataStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcTradeSourceTypeһɽԴ
+/////////////////////////////////////////////////////////////////////////
+///Խͨر
+#define Sgit_FTDC_TSRC_NORMAL '0'
+///Բѯ
+#define Sgit_FTDC_TSRC_QUERY '1'
+
+typedef char TSgitFtdcTradeSourceType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFlexStatModeTypeһƷԼͳƷʽ
+/////////////////////////////////////////////////////////////////////////
+///Ʒͳ
+#define Sgit_FTDC_FSM_Product '1'
+///ͳ
+#define Sgit_FTDC_FSM_Exchange '2'
+///ͳ
+#define Sgit_FTDC_FSM_All '3'
+
+typedef char TSgitFtdcFlexStatModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcByInvestorRangeTypeһͶ߷ΧͳƷʽ
+/////////////////////////////////////////////////////////////////////////
+///ͳ
+#define Sgit_FTDC_BIR_Property '1'
+///ͳ
+#define Sgit_FTDC_BIR_All '2'
+
+typedef char TSgitFtdcByInvestorRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSRiskRateTypeһն
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSRiskRateType[21];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFBTBankIDTypeһбʶ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFBTBankIDType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSequenceNo12Typeһ
+/////////////////////////////////////////////////////////////////////////
+typedef int TSgitFtdcSequenceNo12Type;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcPropertyInvestorRangeTypeһͶ߷Χ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_PIR_All '1'
+///Ͷ
+#define Sgit_FTDC_PIR_Property '2'
+///һͶ
+#define Sgit_FTDC_PIR_Single '3'
+
+typedef char TSgitFtdcPropertyInvestorRangeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileStatusTypeһļ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_FIS_NoCreate '0'
+///
+#define Sgit_FTDC_FIS_Created '1'
+///ʧ
+#define Sgit_FTDC_FIS_Failed '2'
+
+typedef char TSgitFtdcFileStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFileGenStyleTypeһļɷʽ
+/////////////////////////////////////////////////////////////////////////
+///·
+#define Sgit_FTDC_FGS_FileTransmit '0'
+///
+#define Sgit_FTDC_FGS_FileGen '1'
+
+typedef char TSgitFtdcFileGenStyleType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSysOperModeTypeһϵͳ־
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_SoM_Add '1'
+///
+#define Sgit_FTDC_SoM_Update '2'
+///ɾ
+#define Sgit_FTDC_SoM_Delete '3'
+///
+#define Sgit_FTDC_SoM_Copy '4'
+///
+#define Sgit_FTDC_SoM_AcTive '5'
+///ע
+#define Sgit_FTDC_SoM_CanCel '6'
+///
+#define Sgit_FTDC_SoM_ReSet '7'
+
+typedef char TSgitFtdcSysOperModeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSysOperTypeTypeһϵͳ־
+/////////////////////////////////////////////////////////////////////////
+///IJԱ
+#define Sgit_FTDC_SoT_UpdatePassword '0'
+///Աܹ֯ϵ
+#define Sgit_FTDC_SoT_UserDepartment '1'
+///ɫ
+#define Sgit_FTDC_SoT_RoleManager '2'
+///ɫ
+#define Sgit_FTDC_SoT_RoleFunction '3'
+///
+#define Sgit_FTDC_SoT_BaseParam '4'
+///òԱ
+#define Sgit_FTDC_SoT_SetUserID '5'
+///ûɫ
+#define Sgit_FTDC_SoT_SetUserRole '6'
+///ûIP
+#define Sgit_FTDC_SoT_UserIpRestriction '7'
+///ܹ֯
+#define Sgit_FTDC_SoT_DepartmentManager '8'
+///ܹ֯ѯิ
+#define Sgit_FTDC_SoT_DepartmentCopy '9'
+///ױ
+#define Sgit_FTDC_SoT_Tradingcode 'A'
+///Ͷ״̬ά
+#define Sgit_FTDC_SoT_InvestorStatus 'B'
+///ͶȨ
+#define Sgit_FTDC_SoT_InvestorAuthority 'C'
+///
+#define Sgit_FTDC_SoT_PropertySet 'D'
+///Ͷ
+#define Sgit_FTDC_SoT_ReSetInvestorPasswd 'E'
+///Ͷ߸Ϣά
+#define Sgit_FTDC_SoT_InvestorPersonalityInfo 'F'
+
+typedef char TSgitFtdcSysOperTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCDataQueyTypeTypeһϱݲѯ
+/////////////////////////////////////////////////////////////////////////
+///ѯǰձ͵
+#define Sgit_FTDC_CSRCQ_Current '0'
+///ѯʷ͵Ĵ˾
+#define Sgit_FTDC_CSRCQ_History '1'
+
+typedef char TSgitFtdcCSRCDataQueyTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFreezeStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///Ծ
+#define Sgit_FTDC_FRS_Normal '1'
+///
+#define Sgit_FTDC_FRS_Freeze '0'
+
+typedef char TSgitFtdcFreezeStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcStandardStatusTypeһ淶״̬
+/////////////////////////////////////////////////////////////////////////
+///ѹ淶
+#define Sgit_FTDC_STST_Standard '0'
+///δ淶
+#define Sgit_FTDC_STST_NonStandard '1'
+
+typedef char TSgitFtdcStandardStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCSRCFreezeStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCSRCFreezeStatusType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRightParamTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_RPT_Freeze '1'
+///
+#define Sgit_FTDC_RPT_FreezeActive '2'
+
+typedef char TSgitFtdcRightParamTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRightTemplateIDTypeһģ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRightTemplateIDType[9];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcRightTemplateNameTypeһģ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcRightTemplateNameType[61];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDataStatusTypeһϴǮ˱״̬
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_AMLDS_Normal '0'
+///ɾ
+#define Sgit_FTDC_AMLDS_Deleted '1'
+
+typedef char TSgitFtdcDataStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAMLCheckStatusTypeһ״̬
+/////////////////////////////////////////////////////////////////////////
+///δ
+#define Sgit_FTDC_AMLCHS_Init '0'
+///
+#define Sgit_FTDC_AMLCHS_Checking '1'
+///Ѹ
+#define Sgit_FTDC_AMLCHS_Checked '2'
+///ܾϱ
+#define Sgit_FTDC_AMLCHS_RefuseReport '3'
+
+typedef char TSgitFtdcAMLCheckStatusType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAmlDateTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///
+#define Sgit_FTDC_AMLDT_DrawDay '0'
+///
+#define Sgit_FTDC_AMLDT_TouchDay '1'
+
+typedef char TSgitFtdcAmlDateTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAmlCheckLevelTypeһ˼
+/////////////////////////////////////////////////////////////////////////
+///㼶
+#define Sgit_FTDC_AMLCL_CheckLevel0 '0'
+///һ
+#define Sgit_FTDC_AMLCL_CheckLevel1 '1'
+///
+#define Sgit_FTDC_AMLCL_CheckLevel2 '2'
+///
+#define Sgit_FTDC_AMLCL_CheckLevel3 '3'
+
+typedef char TSgitFtdcAmlCheckLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAmlCheckFlowTypeһϴǮݳȡ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAmlCheckFlowType[2];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDataTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcDataTypeType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcExportFileTypeTypeһļ
+/////////////////////////////////////////////////////////////////////////
+///CSV
+#define Sgit_FTDC_EFT_CSV '0'
+///Excel
+#define Sgit_FTDC_EFT_EXCEL '1'
+///DBF
+#define Sgit_FTDC_EFT_DBF '2'
+
+typedef char TSgitFtdcExportFileTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettleManagerTypeTypeһ
+/////////////////////////////////////////////////////////////////////////
+///ǰ
+#define Sgit_FTDC_SMT_Before '1'
+///
+#define Sgit_FTDC_SMT_Settlement '2'
+///˶
+#define Sgit_FTDC_SMT_After '3'
+///
+#define Sgit_FTDC_SMT_Settlemented '4'
+
+typedef char TSgitFtdcSettleManagerTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettleManagerIDTypeһô
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSettleManagerIDType[33];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettleManagerNameTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcSettleManagerNameType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettleManagerLevelTypeһõȼ
+/////////////////////////////////////////////////////////////////////////
+///Ҫ
+#define Sgit_FTDC_SML_Must '1'
+///
+#define Sgit_FTDC_SML_Alarm '2'
+///ʾ
+#define Sgit_FTDC_SML_Prompt '3'
+///
+#define Sgit_FTDC_SML_Ignore '4'
+
+typedef char TSgitFtdcSettleManagerLevelType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcSettleManagerGroupTypeһģ
+/////////////////////////////////////////////////////////////////////////
+///˶
+#define Sgit_FTDC_SMG_Exhcange '1'
+///ڲ˶
+#define Sgit_FTDC_SMG_ASP '2'
+///ϱݺ˶
+#define Sgit_FTDC_SMG_CSRC '3'
+
+typedef char TSgitFtdcSettleManagerGroupType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcCheckResultMemoTypeһ˶Խ˵
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcCheckResultMemoType[1025];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcFunctionUrlTypeһ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcFunctionUrlType[1025];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAuthInfoTypeһͻ֤Ϣ
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAuthInfoType[129];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcAuthCodeTypeһͻ֤
+/////////////////////////////////////////////////////////////////////////
+typedef char TSgitFtdcAuthCodeType[17];
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcLimitUseTypeTypeһֵʹ
+/////////////////////////////////////////////////////////////////////////
+///ظʹ
+#define Sgit_FTDC_LUT_Repeatable '1'
+///ظʹ
+#define Sgit_FTDC_LUT_Unrepeatable '2'
+
+typedef char TSgitFtdcLimitUseTypeType;
+
+/////////////////////////////////////////////////////////////////////////
+///TFtdcDataResourceTypeһԴ
+/////////////////////////////////////////////////////////////////////////
+///ϵͳ
+#define Sgit_FTDC_DAR_Settle '1'
+///
+#define Sgit_FTDC_DAR_Exchange '2'
+///
+#define Sgit_FTDC_DAR_CSRC '3'
+
+typedef char TSgitFtdcDataResourceType;
+
+#endif
diff --git a/include/FeiShu/SgitFtdcUserApiStruct.h b/include/FeiShu/SgitFtdcUserApiStruct.h
new file mode 100644
index 0000000..c263756
--- /dev/null
+++ b/include/FeiShu/SgitFtdcUserApiStruct.h
@@ -0,0 +1,5862 @@
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+
+#if !defined(Sgit_FTDCSTRUCT_H)
+#define Sgit_FTDCSTRUCT_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "SgitFtdcUserApiDataType.h"
+
+///Ϣַ
+struct CSgitFtdcDisseminationField
+{
+ ///ϵк
+ TSgitFtdcSequenceSeriesType SequenceSeries;
+ ///к
+ TSgitFtdcSequenceNoType SequenceNo;
+};
+
+///û¼
+struct CSgitFtdcReqUserLoginField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///
+ TSgitFtdcPasswordType Password;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///ӿڶ˲ƷϢ
+ TSgitFtdcProductInfoType InterfaceProductInfo;
+ ///ЭϢ
+ TSgitFtdcProtocolInfoType ProtocolInfo;
+ ///Macַ
+ TSgitFtdcMacAddressType MacAddress;
+ ///̬
+ TSgitFtdcPasswordType OneTimePassword;
+ ///նIPַ
+ TSgitFtdcIPAddressType ClientIPAddress;
+};
+
+///û¼Ӧ
+struct CSgitFtdcRspUserLoginField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///¼ɹʱ
+ TSgitFtdcTimeType LoginTime;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///ϵͳ
+ TSgitFtdcSystemNameType SystemName;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///
+ TSgitFtdcOrderRefType MaxOrderRef;
+ ///ʱ
+ TSgitFtdcTimeType SHFETime;
+ ///ʱ
+ TSgitFtdcTimeType DCETime;
+ ///֣ʱ
+ TSgitFtdcTimeType CZCETime;
+ ///нʱ
+ TSgitFtdcTimeType FFEXTime;
+};
+
+///ûdz
+struct CSgitFtdcUserLogoutField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ǿƽԱ˳
+struct CSgitFtdcForceUserLogoutField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ͻ֤
+struct CSgitFtdcReqAuthenticateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///֤
+ TSgitFtdcAuthCodeType AuthCode;
+};
+
+///ͻ֤Ӧ
+struct CSgitFtdcRspAuthenticateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+};
+
+///ͻ֤Ϣ
+struct CSgitFtdcAuthenticationInfoField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///֤Ϣ
+ TSgitFtdcAuthInfoType AuthInfo;
+ ///ǷΪ֤
+ TSgitFtdcBoolType IsResult;
+};
+
+///תʱͷ
+struct CSgitFtdcTransferHeaderField
+{
+ ///汾ţ1.0
+ TSgitFtdcVersionType Version;
+ ///״룬
+ TSgitFtdcTradeCodeType TradeCode;
+ ///ڣʽyyyymmdd
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ䣬ʽhhmmss
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮţN/A
+ TSgitFtdcTradeSerialType TradeSerial;
+ ///ڻ˾룬
+ TSgitFtdcFutureIDType FutureID;
+ ///д룬ݲѯеõ
+ TSgitFtdcBankIDType BankID;
+ ///зĴ룬ݲѯеõ
+ TSgitFtdcBankBrchIDType BankBrchID;
+ ///ԱN/A
+ TSgitFtdcOperNoType OperNo;
+ ///豸ͣN/A
+ TSgitFtdcDeviceIDType DeviceID;
+ ///¼N/A
+ TSgitFtdcRecordNumType RecordNum;
+ ///ỰţN/A
+ TSgitFtdcSessionIDType SessionID;
+ ///ţN/A
+ TSgitFtdcRequestIDType RequestID;
+};
+
+///ʽתڻTradeCode=202001
+struct CSgitFtdcTransferBankToFutureReqField
+{
+ ///ڻʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+ ///־
+ TSgitFtdcFuturePwdFlagType FuturePwdFlag;
+ ///
+ TSgitFtdcFutureAccPwdType FutureAccPwd;
+ ///ת˽
+ TSgitFtdcMoneyType TradeAmt;
+ ///ͻ
+ TSgitFtdcMoneyType CustFee;
+ ///֣RMB- USD-Բ HKD-Ԫ
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+};
+
+///ʽתڻӦ
+struct CSgitFtdcTransferBankToFutureRspField
+{
+ ///Ӧ
+ TSgitFtdcRetCodeType RetCode;
+ ///ӦϢ
+ TSgitFtdcRetInfoType RetInfo;
+ ///ʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+ ///תʽ
+ TSgitFtdcMoneyType TradeAmt;
+ ///Ӧտͻ
+ TSgitFtdcMoneyType CustFee;
+ ///
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+};
+
+///ڻʽתTradeCode=202002
+struct CSgitFtdcTransferFutureToBankReqField
+{
+ ///ڻʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+ ///־
+ TSgitFtdcFuturePwdFlagType FuturePwdFlag;
+ ///
+ TSgitFtdcFutureAccPwdType FutureAccPwd;
+ ///ת˽
+ TSgitFtdcMoneyType TradeAmt;
+ ///ͻ
+ TSgitFtdcMoneyType CustFee;
+ ///֣RMB- USD-Բ HKD-Ԫ
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+};
+
+///ڻʽתӦ
+struct CSgitFtdcTransferFutureToBankRspField
+{
+ ///Ӧ
+ TSgitFtdcRetCodeType RetCode;
+ ///ӦϢ
+ TSgitFtdcRetInfoType RetInfo;
+ ///ʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+ ///תʽ
+ TSgitFtdcMoneyType TradeAmt;
+ ///Ӧտͻ
+ TSgitFtdcMoneyType CustFee;
+ ///
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+};
+
+///ѯʽTradeCode=204002
+struct CSgitFtdcTransferQryBankReqField
+{
+ ///ڻʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+ ///־
+ TSgitFtdcFuturePwdFlagType FuturePwdFlag;
+ ///
+ TSgitFtdcFutureAccPwdType FutureAccPwd;
+ ///֣RMB- USD-Բ HKD-Ԫ
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+};
+
+///ѯʽӦ
+struct CSgitFtdcTransferQryBankRspField
+{
+ ///Ӧ
+ TSgitFtdcRetCodeType RetCode;
+ ///ӦϢ
+ TSgitFtdcRetInfoType RetInfo;
+ ///ʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+ ///
+ TSgitFtdcMoneyType TradeAmt;
+ ///п
+ TSgitFtdcMoneyType UseAmt;
+ ///пȡ
+ TSgitFtdcMoneyType FetchAmt;
+ ///
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+};
+
+///ѯнϸTradeCode=204999
+struct CSgitFtdcTransferQryDetailReqField
+{
+ ///ڻʽ˻
+ TSgitFtdcAccountIDType FutureAccount;
+};
+
+///ѯнϸӦ
+struct CSgitFtdcTransferQryDetailRspField
+{
+ ///
+ TSgitFtdcDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///״
+ TSgitFtdcTradeCodeType TradeCode;
+ ///ڻˮ
+ TSgitFtdcTradeSerialNoType FutureSerial;
+ ///ڻ˾
+ TSgitFtdcFutureIDType FutureID;
+ ///ʽʺ
+ TSgitFtdcFutureAccountType FutureAccount;
+ ///ˮ
+ TSgitFtdcTradeSerialNoType BankSerial;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///зĴ
+ TSgitFtdcBankBrchIDType BankBrchID;
+ ///˺
+ TSgitFtdcBankAccountType BankAccount;
+ ///֤
+ TSgitFtdcCertCodeType CertCode;
+ ///Ҵ
+ TSgitFtdcCurrencyCodeType CurrencyCode;
+ ///
+ TSgitFtdcMoneyType TxAmount;
+ ///Ч־
+ TSgitFtdcTransferValidFlagType Flag;
+};
+
+///ӦϢ
+struct CSgitFtdcRspInfoField
+{
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///
+struct CSgitFtdcExchangeField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcExchangeNameType ExchangeName;
+ ///
+ TSgitFtdcExchangePropertyType ExchangeProperty;
+};
+
+///Ʒ
+struct CSgitFtdcProductField
+{
+ ///Ʒ
+ TSgitFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TSgitFtdcProductNameType ProductName;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TSgitFtdcProductClassType ProductClass;
+ ///Լ
+ TSgitFtdcVolumeMultipleType VolumeMultiple;
+ ///С䶯λ
+ TSgitFtdcPriceType PriceTick;
+ ///м۵µ
+ TSgitFtdcVolumeType MaxMarketOrderVolume;
+ ///м۵Сµ
+ TSgitFtdcVolumeType MinMarketOrderVolume;
+ ///۵µ
+ TSgitFtdcVolumeType MaxLimitOrderVolume;
+ ///۵Сµ
+ TSgitFtdcVolumeType MinLimitOrderVolume;
+ ///ֲ
+ TSgitFtdcPositionTypeType PositionType;
+ ///ֲ
+ TSgitFtdcPositionDateTypeType PositionDateType;
+};
+
+///Լ
+struct CSgitFtdcInstrumentField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TSgitFtdcInstrumentNameType InstrumentName;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///Ʒ
+ TSgitFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TSgitFtdcProductClassType ProductClass;
+ ///
+ TSgitFtdcYearType DeliveryYear;
+ ///
+ TSgitFtdcMonthType DeliveryMonth;
+ ///м۵µ
+ TSgitFtdcVolumeType MaxMarketOrderVolume;
+ ///м۵Сµ
+ TSgitFtdcVolumeType MinMarketOrderVolume;
+ ///۵µ
+ TSgitFtdcVolumeType MaxLimitOrderVolume;
+ ///۵Сµ
+ TSgitFtdcVolumeType MinLimitOrderVolume;
+ ///Լ
+ TSgitFtdcVolumeMultipleType VolumeMultiple;
+ ///С䶯λ
+ TSgitFtdcPriceType PriceTick;
+ ///
+ TSgitFtdcDateType CreateDate;
+ ///
+ TSgitFtdcDateType OpenDate;
+ ///
+ TSgitFtdcDateType ExpireDate;
+ ///ʼ
+ TSgitFtdcDateType StartDelivDate;
+ ///
+ TSgitFtdcDateType EndDelivDate;
+ ///Լ״̬
+ TSgitFtdcInstLifePhaseType InstLifePhase;
+ ///ǰǷ
+ TSgitFtdcBoolType IsTrading;
+ ///ֲ
+ TSgitFtdcPositionTypeType PositionType;
+ ///ֲ
+ TSgitFtdcPositionDateTypeType PositionDateType;
+ ///ͷ֤
+ TSgitFtdcRatioType LongMarginRatio;
+ ///ͷ֤
+ TSgitFtdcRatioType ShortMarginRatio;
+};
+
+///˾
+struct CSgitFtdcBrokerField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///˾
+ TSgitFtdcBrokerAbbrType BrokerAbbr;
+ ///˾
+ TSgitFtdcBrokerNameType BrokerName;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+};
+
+///Ա
+struct CSgitFtdcTraderField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallCountType InstallCount;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///Ͷ
+struct CSgitFtdcInvestorField
+{
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TSgitFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ
+ TSgitFtdcPartyNameType InvestorName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdentifiedCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+ ///ϵ绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ͨѶַ
+ TSgitFtdcAddressType Address;
+ ///
+ TSgitFtdcDateType OpenDate;
+ ///ֻ
+ TSgitFtdcMobileType Mobile;
+ ///ģ
+ TSgitFtdcInvestorIDType CommModelID;
+};
+
+///ױ
+struct CSgitFtdcTradingCodeField
+{
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+ ///ױ
+ TSgitFtdcClientIDTypeType ClientIDType;
+};
+
+///Ա;˾ձ
+struct CSgitFtdcPartBrokerField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+};
+
+///û
+struct CSgitFtdcSuperUserField
+{
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û
+ TSgitFtdcUserNameType UserName;
+ ///
+ TSgitFtdcPasswordType Password;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+};
+
+///ûȨ
+struct CSgitFtdcSuperUserFunctionField
+{
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///ܴ
+ TSgitFtdcFunctionCodeType FunctionCode;
+};
+
+///Ͷ
+struct CSgitFtdcInvestorGroupField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TSgitFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ߷
+ TSgitFtdcInvestorGroupNameType InvestorGroupName;
+};
+
+///ʽ˻
+struct CSgitFtdcTradingAccountField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ϴѺ
+ TSgitFtdcMoneyType PreMortgage;
+ ///ϴö
+ TSgitFtdcMoneyType PreCredit;
+ ///ϴδ
+ TSgitFtdcMoneyType PreDeposit;
+ ///ϴν
+ TSgitFtdcMoneyType PreBalance;
+ ///ϴռõı֤
+ TSgitFtdcMoneyType PreMargin;
+ ///Ϣ
+ TSgitFtdcMoneyType InterestBase;
+ ///Ϣ
+ TSgitFtdcMoneyType Interest;
+ ///
+ TSgitFtdcMoneyType Deposit;
+ ///
+ TSgitFtdcMoneyType Withdraw;
+ ///ı֤
+ TSgitFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TSgitFtdcMoneyType FrozenCash;
+ ///
+ TSgitFtdcMoneyType FrozenCommission;
+ ///ǰ֤ܶ
+ TSgitFtdcMoneyType CurrMargin;
+ ///ʽ
+ TSgitFtdcMoneyType CashIn;
+ ///
+ TSgitFtdcMoneyType Commission;
+ ///ƽӯ
+ TSgitFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TSgitFtdcMoneyType PositionProfit;
+ ///ڻ
+ TSgitFtdcMoneyType Balance;
+ ///ʽ
+ TSgitFtdcMoneyType Available;
+ ///ȡʽ
+ TSgitFtdcMoneyType WithdrawQuota;
+ ///
+ TSgitFtdcMoneyType Reserve;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///ö
+ TSgitFtdcMoneyType Credit;
+ ///Ѻ
+ TSgitFtdcMoneyType Mortgage;
+ ///֤
+ TSgitFtdcMoneyType ExchangeMargin;
+ ///Ͷ߽֤
+ TSgitFtdcMoneyType DeliveryMargin;
+ ///֤
+ TSgitFtdcMoneyType ExchangeDeliveryMargin;
+};
+
+///Ͷֲ߳
+struct CSgitFtdcInvestorPositionField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ֲֶշ
+ TSgitFtdcPosiDirectionType PosiDirection;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///ֲ
+ TSgitFtdcPositionDateType PositionDate;
+ ///ճֲ
+ TSgitFtdcVolumeType YdPosition;
+ ///ճֲ
+ TSgitFtdcVolumeType Position;
+ ///ͷ
+ TSgitFtdcVolumeType LongFrozen;
+ ///ͷ
+ TSgitFtdcVolumeType ShortFrozen;
+ ///ֶ
+ TSgitFtdcMoneyType LongFrozenAmount;
+ ///ֶ
+ TSgitFtdcMoneyType ShortFrozenAmount;
+ ///
+ TSgitFtdcVolumeType OpenVolume;
+ ///ƽ
+ TSgitFtdcVolumeType CloseVolume;
+ ///ֽ
+ TSgitFtdcMoneyType OpenAmount;
+ ///ƽֽ
+ TSgitFtdcMoneyType CloseAmount;
+ ///ֲֳɱ
+ TSgitFtdcMoneyType PositionCost;
+ ///ϴռõı֤
+ TSgitFtdcMoneyType PreMargin;
+ ///ռõı֤
+ TSgitFtdcMoneyType UseMargin;
+ ///ı֤
+ TSgitFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TSgitFtdcMoneyType FrozenCash;
+ ///
+ TSgitFtdcMoneyType FrozenCommission;
+ ///ʽ
+ TSgitFtdcMoneyType CashIn;
+ ///
+ TSgitFtdcMoneyType Commission;
+ ///ƽӯ
+ TSgitFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TSgitFtdcMoneyType PositionProfit;
+ ///ϴν
+ TSgitFtdcPriceType PreSettlementPrice;
+ ///ν
+ TSgitFtdcPriceType SettlementPrice;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///ֳɱ
+ TSgitFtdcMoneyType OpenCost;
+ ///֤
+ TSgitFtdcMoneyType ExchangeMargin;
+ ///ϳɽγɵijֲ
+ TSgitFtdcVolumeType CombPosition;
+ ///϶ͷ
+ TSgitFtdcVolumeType CombLongFrozen;
+ ///Ͽͷ
+ TSgitFtdcVolumeType CombShortFrozen;
+ ///նƽӯ
+ TSgitFtdcMoneyType CloseProfitByDate;
+ ///ʶԳƽӯ
+ TSgitFtdcMoneyType CloseProfitByTrade;
+ ///ճֲ
+ TSgitFtdcVolumeType TodayPosition;
+ ///֤
+ TSgitFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TSgitFtdcRatioType MarginRateByVolume;
+};
+
+///Լ֤
+struct CSgitFtdcInstrumentMarginRateField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TSgitFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TSgitFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TSgitFtdcBoolType IsRelative;
+};
+
+///Լ
+struct CSgitFtdcInstrumentCommissionRateField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcRatioType OpenRatioByMoney;
+ ///
+ TSgitFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TSgitFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TSgitFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TSgitFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TSgitFtdcRatioType CloseTodayRatioByVolume;
+};
+
+///
+struct CSgitFtdcDepthMarketDataField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///¼
+ TSgitFtdcPriceType LastPrice;
+ ///ϴν
+ TSgitFtdcPriceType PreSettlementPrice;
+ ///
+ TSgitFtdcPriceType PreClosePrice;
+ ///ֲ
+ TSgitFtdcLargeVolumeType PreOpenInterest;
+ ///
+ TSgitFtdcPriceType OpenPrice;
+ ///
+ TSgitFtdcPriceType HighestPrice;
+ ///ͼ
+ TSgitFtdcPriceType LowestPrice;
+ ///
+ TSgitFtdcVolumeType Volume;
+ ///ɽ
+ TSgitFtdcMoneyType Turnover;
+ ///ֲ
+ TSgitFtdcLargeVolumeType OpenInterest;
+ ///
+ TSgitFtdcPriceType ClosePrice;
+ ///ν
+ TSgitFtdcPriceType SettlementPrice;
+ ///ͣ
+ TSgitFtdcPriceType UpperLimitPrice;
+ ///ͣ
+ TSgitFtdcPriceType LowerLimitPrice;
+ ///ʵ
+ TSgitFtdcRatioType PreDelta;
+ ///ʵ
+ TSgitFtdcRatioType CurrDelta;
+ ///ʱ
+ TSgitFtdcTimeType UpdateTime;
+ ///ĺ
+ TSgitFtdcMillisecType UpdateMillisec;
+ ///һ
+ TSgitFtdcPriceType BidPrice1;
+ ///һ
+ TSgitFtdcVolumeType BidVolume1;
+ ///һ
+ TSgitFtdcPriceType AskPrice1;
+ ///һ
+ TSgitFtdcVolumeType AskVolume1;
+ ///۶
+ TSgitFtdcPriceType BidPrice2;
+ ///
+ TSgitFtdcVolumeType BidVolume2;
+ ///۶
+ TSgitFtdcPriceType AskPrice2;
+ ///
+ TSgitFtdcVolumeType AskVolume2;
+ ///
+ TSgitFtdcPriceType BidPrice3;
+ ///
+ TSgitFtdcVolumeType BidVolume3;
+ ///
+ TSgitFtdcPriceType AskPrice3;
+ ///
+ TSgitFtdcVolumeType AskVolume3;
+ ///
+ TSgitFtdcPriceType BidPrice4;
+ ///
+ TSgitFtdcVolumeType BidVolume4;
+ ///
+ TSgitFtdcPriceType AskPrice4;
+ ///
+ TSgitFtdcVolumeType AskVolume4;
+ ///
+ TSgitFtdcPriceType BidPrice5;
+ ///
+ TSgitFtdcVolumeType BidVolume5;
+ ///
+ TSgitFtdcPriceType AskPrice5;
+ ///
+ TSgitFtdcVolumeType AskVolume5;
+ ///վ
+ TSgitFtdcPriceType AveragePrice;
+};
+
+///ͶߺԼȨ
+struct CSgitFtdcInstrumentTradingRightField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ȩ
+ TSgitFtdcTradingRightType TradingRight;
+};
+
+///˾û
+struct CSgitFtdcBrokerUserField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û
+ TSgitFtdcUserNameType UserName;
+ ///û
+ TSgitFtdcUserTypeType UserType;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+ ///Ƿʹ
+ TSgitFtdcBoolType IsUsingOTP;
+};
+
+///˾û
+struct CSgitFtdcBrokerUserPasswordField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///
+ TSgitFtdcPasswordType Password;
+};
+
+///˾ûȨ
+struct CSgitFtdcBrokerUserFunctionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///˾ܴ
+ TSgitFtdcBrokerFunctionCodeType BrokerFunctionCode;
+};
+
+///Ա̻
+struct CSgitFtdcTraderOfferField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///Ա״̬
+ TSgitFtdcTraderConnectStatusType TraderConnectStatus;
+ ///
+ TSgitFtdcDateType ConnectRequestDate;
+ ///ʱ
+ TSgitFtdcTimeType ConnectRequestTime;
+ ///ϴα
+ TSgitFtdcDateType LastReportDate;
+ ///ϴαʱ
+ TSgitFtdcTimeType LastReportTime;
+ ///
+ TSgitFtdcDateType ConnectDate;
+ ///ʱ
+ TSgitFtdcTimeType ConnectTime;
+ ///
+ TSgitFtdcDateType StartDate;
+ ///ʱ
+ TSgitFtdcTimeType StartTime;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ϯλɽ
+ TSgitFtdcTradeIDType MaxTradeID;
+ ///ϯλ
+ TSgitFtdcReturnCodeType MaxOrderMessageReference;
+};
+
+///Ͷ߽
+struct CSgitFtdcSettlementInfoField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///Ϣ
+ TSgitFtdcContentType Content;
+};
+
+///Լ֤ʵ
+struct CSgitFtdcInstrumentMarginRateAdjustField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TSgitFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TSgitFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TSgitFtdcBoolType IsRelative;
+};
+
+///֤
+struct CSgitFtdcExchangeMarginRateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TSgitFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TSgitFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType ShortMarginRatioByVolume;
+};
+
+///֤ʵ
+struct CSgitFtdcExchangeMarginRateAdjustField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///潻Ͷ߶ͷ֤
+ TSgitFtdcRatioType LongMarginRatioByMoney;
+ ///潻Ͷ߶ͷ֤
+ TSgitFtdcMoneyType LongMarginRatioByVolume;
+ ///潻Ͷ߿ͷ֤
+ TSgitFtdcRatioType ShortMarginRatioByMoney;
+ ///潻Ͷ߿ͷ֤
+ TSgitFtdcMoneyType ShortMarginRatioByVolume;
+ ///ͷ֤
+ TSgitFtdcRatioType ExchLongMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType ExchLongMarginRatioByVolume;
+ ///ͷ֤
+ TSgitFtdcRatioType ExchShortMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType ExchShortMarginRatioByVolume;
+ ///潻Ͷ߶ͷ֤
+ TSgitFtdcRatioType NoLongMarginRatioByMoney;
+ ///潻Ͷ߶ͷ֤
+ TSgitFtdcMoneyType NoLongMarginRatioByVolume;
+ ///潻Ͷ߿ͷ֤
+ TSgitFtdcRatioType NoShortMarginRatioByMoney;
+ ///潻Ͷ߿ͷ֤
+ TSgitFtdcMoneyType NoShortMarginRatioByVolume;
+};
+
+///
+struct CSgitFtdcSettlementRefField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+};
+
+///ǰʱ
+struct CSgitFtdcCurrentTimeField
+{
+ ///ǰ
+ TSgitFtdcDateType CurrDate;
+ ///ǰʱ
+ TSgitFtdcTimeType CurrTime;
+ ///ǰʱ䣨룩
+ TSgitFtdcMillisecType CurrMillisec;
+};
+
+///ͨѶ
+struct CSgitFtdcCommPhaseField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///ͨѶʱα
+ TSgitFtdcCommPhaseNoType CommPhaseNo;
+};
+
+///¼Ϣ
+struct CSgitFtdcLoginInfoField
+{
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///¼
+ TSgitFtdcDateType LoginDate;
+ ///¼ʱ
+ TSgitFtdcTimeType LoginTime;
+ ///IPַ
+ TSgitFtdcIPAddressType IPAddress;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///ӿڶ˲ƷϢ
+ TSgitFtdcProductInfoType InterfaceProductInfo;
+ ///ЭϢ
+ TSgitFtdcProtocolInfoType ProtocolInfo;
+ ///ϵͳ
+ TSgitFtdcSystemNameType SystemName;
+ ///
+ TSgitFtdcPasswordType Password;
+ ///
+ TSgitFtdcOrderRefType MaxOrderRef;
+ ///ʱ
+ TSgitFtdcTimeType SHFETime;
+ ///ʱ
+ TSgitFtdcTimeType DCETime;
+ ///֣ʱ
+ TSgitFtdcTimeType CZCETime;
+ ///нʱ
+ TSgitFtdcTimeType FFEXTime;
+ ///Macַ
+ TSgitFtdcMacAddressType MacAddress;
+ ///̬
+ TSgitFtdcPasswordType OneTimePassword;
+};
+
+///¼Ϣ
+struct CSgitFtdcLogoutAllField
+{
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ϵͳ
+ TSgitFtdcSystemNameType SystemName;
+};
+
+///ǰ״̬
+struct CSgitFtdcFrontStatusField
+{
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///ϴα
+ TSgitFtdcDateType LastReportDate;
+ ///ϴαʱ
+ TSgitFtdcTimeType LastReportTime;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+};
+
+///û
+struct CSgitFtdcUserPasswordUpdateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///ԭĿ
+ TSgitFtdcPasswordType OldPassword;
+ ///µĿ
+ TSgitFtdcPasswordType NewPassword;
+};
+
+///뱨
+struct CSgitFtdcInputOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///۸
+ TSgitFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TSgitFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///
+ TSgitFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TSgitFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TSgitFtdcDateType GTDDate;
+ ///ɽ
+ TSgitFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TSgitFtdcVolumeType MinVolume;
+ ///
+ TSgitFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TSgitFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TSgitFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TSgitFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ûǿ־
+ TSgitFtdcBoolType UserForceClose;
+};
+
+///
+struct CSgitFtdcOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///۸
+ TSgitFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TSgitFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///
+ TSgitFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TSgitFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TSgitFtdcDateType GTDDate;
+ ///ɽ
+ TSgitFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TSgitFtdcVolumeType MinVolume;
+ ///
+ TSgitFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TSgitFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TSgitFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TSgitFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ύ״̬
+ TSgitFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TSgitFtdcSequenceNoType NotifySequence;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///Դ
+ TSgitFtdcOrderSourceType OrderSource;
+ ///״̬
+ TSgitFtdcOrderStatusType OrderStatus;
+ ///
+ TSgitFtdcOrderTypeType OrderType;
+ ///ɽ
+ TSgitFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TSgitFtdcVolumeType VolumeTotal;
+ ///
+ TSgitFtdcDateType InsertDate;
+ ///ίʱ
+ TSgitFtdcTimeType InsertTime;
+ ///ʱ
+ TSgitFtdcTimeType ActiveTime;
+ ///ʱ
+ TSgitFtdcTimeType SuspendTime;
+ ///ʱ
+ TSgitFtdcTimeType UpdateTime;
+ ///ʱ
+ TSgitFtdcTimeType CancelTime;
+ ///ĽԱ
+ TSgitFtdcTraderIDType ActiveTraderID;
+ ///Ա
+ TSgitFtdcParticipantIDType ClearingPartID;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TSgitFtdcErrorMsgType StatusMsg;
+ ///ûǿ־
+ TSgitFtdcBoolType UserForceClose;
+ ///û
+ TSgitFtdcUserIDType ActiveUserID;
+ ///˾
+ TSgitFtdcSequenceNoType BrokerOrderSeq;
+ ///ر
+ TSgitFtdcOrderSysIDType RelativeOrderSysID;
+};
+
+///
+struct CSgitFtdcExchangeOrderField
+{
+ ///۸
+ TSgitFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TSgitFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///
+ TSgitFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TSgitFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TSgitFtdcDateType GTDDate;
+ ///ɽ
+ TSgitFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TSgitFtdcVolumeType MinVolume;
+ ///
+ TSgitFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TSgitFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TSgitFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TSgitFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ύ״̬
+ TSgitFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TSgitFtdcSequenceNoType NotifySequence;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///Դ
+ TSgitFtdcOrderSourceType OrderSource;
+ ///״̬
+ TSgitFtdcOrderStatusType OrderStatus;
+ ///
+ TSgitFtdcOrderTypeType OrderType;
+ ///ɽ
+ TSgitFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TSgitFtdcVolumeType VolumeTotal;
+ ///
+ TSgitFtdcDateType InsertDate;
+ ///ίʱ
+ TSgitFtdcTimeType InsertTime;
+ ///ʱ
+ TSgitFtdcTimeType ActiveTime;
+ ///ʱ
+ TSgitFtdcTimeType SuspendTime;
+ ///ʱ
+ TSgitFtdcTimeType UpdateTime;
+ ///ʱ
+ TSgitFtdcTimeType CancelTime;
+ ///ĽԱ
+ TSgitFtdcTraderIDType ActiveTraderID;
+ ///Ա
+ TSgitFtdcParticipantIDType ClearingPartID;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+};
+
+///ʧ
+struct CSgitFtdcExchangeOrderInsertErrorField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///뱨
+struct CSgitFtdcInputOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcOrderActionRefType OrderActionRef;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///־
+ TSgitFtdcActionFlagType ActionFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///仯
+ TSgitFtdcVolumeType VolumeChange;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///
+struct CSgitFtdcOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcOrderActionRefType OrderActionRef;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///־
+ TSgitFtdcActionFlagType ActionFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///仯
+ TSgitFtdcVolumeType VolumeChange;
+ ///
+ TSgitFtdcDateType ActionDate;
+ ///ʱ
+ TSgitFtdcTimeType ActionTime;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TSgitFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TSgitFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TSgitFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///
+struct CSgitFtdcExchangeOrderActionField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///־
+ TSgitFtdcActionFlagType ActionFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///仯
+ TSgitFtdcVolumeType VolumeChange;
+ ///
+ TSgitFtdcDateType ActionDate;
+ ///ʱ
+ TSgitFtdcTimeType ActionTime;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TSgitFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TSgitFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ʧ
+struct CSgitFtdcExchangeOrderActionErrorField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TSgitFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ɽ
+struct CSgitFtdcExchangeTradeField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ɽ
+ TSgitFtdcTradeIDType TradeID;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ɫ
+ TSgitFtdcTradingRoleType TradingRole;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///ƽ־
+ TSgitFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///۸
+ TSgitFtdcPriceType Price;
+ ///
+ TSgitFtdcVolumeType Volume;
+ ///ɽʱ
+ TSgitFtdcDateType TradeDate;
+ ///ɽʱ
+ TSgitFtdcTimeType TradeTime;
+ ///ɽ
+ TSgitFtdcTradeTypeType TradeType;
+ ///ɽԴ
+ TSgitFtdcPriceSourceType PriceSource;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///Ա
+ TSgitFtdcParticipantIDType ClearingPartID;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///ɽԴ
+ TSgitFtdcTradeSourceType TradeSource;
+};
+
+///ɽ
+struct CSgitFtdcTradeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ɽ
+ TSgitFtdcTradeIDType TradeID;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ɫ
+ TSgitFtdcTradingRoleType TradingRole;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///ƽ־
+ TSgitFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///۸
+ TSgitFtdcPriceType Price;
+ ///
+ TSgitFtdcVolumeType Volume;
+ ///ɽʱ
+ TSgitFtdcDateType TradeDate;
+ ///ɽʱ
+ TSgitFtdcTimeType TradeTime;
+ ///ɽ
+ TSgitFtdcTradeTypeType TradeType;
+ ///ɽԴ
+ TSgitFtdcPriceSourceType PriceSource;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///Ա
+ TSgitFtdcParticipantIDType ClearingPartID;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///˾
+ TSgitFtdcSequenceNoType BrokerOrderSeq;
+ ///ɽԴ
+ TSgitFtdcTradeSourceType TradeSource;
+};
+
+///ûỰ
+struct CSgitFtdcUserSessionField
+{
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///¼
+ TSgitFtdcDateType LoginDate;
+ ///¼ʱ
+ TSgitFtdcTimeType LoginTime;
+ ///IPַ
+ TSgitFtdcIPAddressType IPAddress;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///ӿڶ˲ƷϢ
+ TSgitFtdcProductInfoType InterfaceProductInfo;
+ ///ЭϢ
+ TSgitFtdcProtocolInfoType ProtocolInfo;
+ ///Macַ
+ TSgitFtdcMacAddressType MacAddress;
+};
+
+///ѯ
+struct CSgitFtdcQueryMaxOrderVolumeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///ƽ־
+ TSgitFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///
+ TSgitFtdcVolumeType MaxVolume;
+};
+
+///Ͷ߽ȷϢ
+struct CSgitFtdcSettlementInfoConfirmField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ȷ
+ TSgitFtdcDateType ConfirmDate;
+ ///ȷʱ
+ TSgitFtdcTimeType ConfirmTime;
+};
+
+///ͬ
+struct CSgitFtdcSyncDepositField
+{
+ ///ˮ
+ TSgitFtdcDepositSeqNoType DepositSeqNo;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcMoneyType Deposit;
+ ///Ƿǿƽ
+ TSgitFtdcBoolType IsForce;
+};
+
+///˾ͬ
+struct CSgitFtdcBrokerSyncField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///ͬеͶ
+struct CSgitFtdcSyncingInvestorField
+{
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TSgitFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ
+ TSgitFtdcPartyNameType InvestorName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdentifiedCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+ ///ϵ绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ͨѶַ
+ TSgitFtdcAddressType Address;
+ ///
+ TSgitFtdcDateType OpenDate;
+ ///ֻ
+ TSgitFtdcMobileType Mobile;
+ ///ģ
+ TSgitFtdcInvestorIDType CommModelID;
+};
+
+///ͬеĽ״
+struct CSgitFtdcSyncingTradingCodeField
+{
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+ ///ױ
+ TSgitFtdcClientIDTypeType ClientIDType;
+};
+
+///ͬеͶ߷
+struct CSgitFtdcSyncingInvestorGroupField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TSgitFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ߷
+ TSgitFtdcInvestorGroupNameType InvestorGroupName;
+};
+
+///ͬеĽ˺
+struct CSgitFtdcSyncingTradingAccountField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ϴѺ
+ TSgitFtdcMoneyType PreMortgage;
+ ///ϴö
+ TSgitFtdcMoneyType PreCredit;
+ ///ϴδ
+ TSgitFtdcMoneyType PreDeposit;
+ ///ϴν
+ TSgitFtdcMoneyType PreBalance;
+ ///ϴռõı֤
+ TSgitFtdcMoneyType PreMargin;
+ ///Ϣ
+ TSgitFtdcMoneyType InterestBase;
+ ///Ϣ
+ TSgitFtdcMoneyType Interest;
+ ///
+ TSgitFtdcMoneyType Deposit;
+ ///
+ TSgitFtdcMoneyType Withdraw;
+ ///ı֤
+ TSgitFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TSgitFtdcMoneyType FrozenCash;
+ ///
+ TSgitFtdcMoneyType FrozenCommission;
+ ///ǰ֤ܶ
+ TSgitFtdcMoneyType CurrMargin;
+ ///ʽ
+ TSgitFtdcMoneyType CashIn;
+ ///
+ TSgitFtdcMoneyType Commission;
+ ///ƽӯ
+ TSgitFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TSgitFtdcMoneyType PositionProfit;
+ ///ڻ
+ TSgitFtdcMoneyType Balance;
+ ///ʽ
+ TSgitFtdcMoneyType Available;
+ ///ȡʽ
+ TSgitFtdcMoneyType WithdrawQuota;
+ ///
+ TSgitFtdcMoneyType Reserve;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///ö
+ TSgitFtdcMoneyType Credit;
+ ///Ѻ
+ TSgitFtdcMoneyType Mortgage;
+ ///֤
+ TSgitFtdcMoneyType ExchangeMargin;
+ ///Ͷ߽֤
+ TSgitFtdcMoneyType DeliveryMargin;
+ ///֤
+ TSgitFtdcMoneyType ExchangeDeliveryMargin;
+};
+
+///ͬеͶֲ߳
+struct CSgitFtdcSyncingInvestorPositionField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ֲֶշ
+ TSgitFtdcPosiDirectionType PosiDirection;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///ֲ
+ TSgitFtdcPositionDateType PositionDate;
+ ///ճֲ
+ TSgitFtdcVolumeType YdPosition;
+ ///ճֲ
+ TSgitFtdcVolumeType Position;
+ ///ͷ
+ TSgitFtdcVolumeType LongFrozen;
+ ///ͷ
+ TSgitFtdcVolumeType ShortFrozen;
+ ///ֶ
+ TSgitFtdcMoneyType LongFrozenAmount;
+ ///ֶ
+ TSgitFtdcMoneyType ShortFrozenAmount;
+ ///
+ TSgitFtdcVolumeType OpenVolume;
+ ///ƽ
+ TSgitFtdcVolumeType CloseVolume;
+ ///ֽ
+ TSgitFtdcMoneyType OpenAmount;
+ ///ƽֽ
+ TSgitFtdcMoneyType CloseAmount;
+ ///ֲֳɱ
+ TSgitFtdcMoneyType PositionCost;
+ ///ϴռõı֤
+ TSgitFtdcMoneyType PreMargin;
+ ///ռõı֤
+ TSgitFtdcMoneyType UseMargin;
+ ///ı֤
+ TSgitFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TSgitFtdcMoneyType FrozenCash;
+ ///
+ TSgitFtdcMoneyType FrozenCommission;
+ ///ʽ
+ TSgitFtdcMoneyType CashIn;
+ ///
+ TSgitFtdcMoneyType Commission;
+ ///ƽӯ
+ TSgitFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TSgitFtdcMoneyType PositionProfit;
+ ///ϴν
+ TSgitFtdcPriceType PreSettlementPrice;
+ ///ν
+ TSgitFtdcPriceType SettlementPrice;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///ֳɱ
+ TSgitFtdcMoneyType OpenCost;
+ ///֤
+ TSgitFtdcMoneyType ExchangeMargin;
+ ///ϳɽγɵijֲ
+ TSgitFtdcVolumeType CombPosition;
+ ///϶ͷ
+ TSgitFtdcVolumeType CombLongFrozen;
+ ///Ͽͷ
+ TSgitFtdcVolumeType CombShortFrozen;
+ ///նƽӯ
+ TSgitFtdcMoneyType CloseProfitByDate;
+ ///ʶԳƽӯ
+ TSgitFtdcMoneyType CloseProfitByTrade;
+ ///ճֲ
+ TSgitFtdcVolumeType TodayPosition;
+ ///֤
+ TSgitFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TSgitFtdcRatioType MarginRateByVolume;
+};
+
+///ͬеĺԼ֤
+struct CSgitFtdcSyncingInstrumentMarginRateField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TSgitFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TSgitFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TSgitFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TSgitFtdcBoolType IsRelative;
+};
+
+///ͬеĺԼ
+struct CSgitFtdcSyncingInstrumentCommissionRateField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcRatioType OpenRatioByMoney;
+ ///
+ TSgitFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TSgitFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TSgitFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TSgitFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TSgitFtdcRatioType CloseTodayRatioByVolume;
+};
+
+///ͬеĺԼȨ
+struct CSgitFtdcSyncingInstrumentTradingRightField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ȩ
+ TSgitFtdcTradingRightType TradingRight;
+};
+
+///ѯ
+struct CSgitFtdcQryOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///ʼʱ
+ TSgitFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TSgitFtdcTimeType InsertTimeEnd;
+};
+
+///ѯɽ
+struct CSgitFtdcQryTradeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ɽ
+ TSgitFtdcTradeIDType TradeID;
+ ///ʼʱ
+ TSgitFtdcTimeType TradeTimeStart;
+ ///ʱ
+ TSgitFtdcTimeType TradeTimeEnd;
+};
+
+///ѯͶֲ߳
+struct CSgitFtdcQryInvestorPositionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///ѯʽ˻
+struct CSgitFtdcQryTradingAccountField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///ѯͶ
+struct CSgitFtdcQryInvestorField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///ѯױ
+struct CSgitFtdcQryTradingCodeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ױ
+ TSgitFtdcClientIDTypeType ClientIDType;
+};
+
+///ѯױ
+struct CSgitFtdcQryInvestorGroupField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///ѯױ
+struct CSgitFtdcQryInstrumentMarginRateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+};
+
+///ѯױ
+struct CSgitFtdcQryInstrumentCommissionRateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///ѯױ
+struct CSgitFtdcQryInstrumentTradingRightField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///ѯ˾
+struct CSgitFtdcQryBrokerField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///ѯԱ
+struct CSgitFtdcQryTraderField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+};
+
+///ѯ˾Ա
+struct CSgitFtdcQryPartBrokerField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+};
+
+///ѯûȨ
+struct CSgitFtdcQrySuperUserFunctionField
+{
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ѯûỰ
+struct CSgitFtdcQryUserSessionField
+{
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ѯǰ״̬
+struct CSgitFtdcQryFrontStatusField
+{
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+};
+
+///ѯ
+struct CSgitFtdcQryExchangeOrderField
+{
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+};
+
+///ѯ
+struct CSgitFtdcQryOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+};
+
+///ѯ
+struct CSgitFtdcQryExchangeOrderActionField
+{
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+};
+
+///ѯû
+struct CSgitFtdcQrySuperUserField
+{
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ѯ
+struct CSgitFtdcQryExchangeField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+};
+
+///ѯƷ
+struct CSgitFtdcQryProductField
+{
+ ///Ʒ
+ TSgitFtdcInstrumentIDType ProductID;
+};
+
+///ѯԼ
+struct CSgitFtdcQryInstrumentField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///Ʒ
+ TSgitFtdcInstrumentIDType ProductID;
+};
+
+///ѯ
+struct CSgitFtdcQryDepthMarketDataField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///ѯ˾û
+struct CSgitFtdcQryBrokerUserField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ѯ˾ûȨ
+struct CSgitFtdcQryBrokerUserFunctionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+};
+
+///ѯԱ̻
+struct CSgitFtdcQryTraderOfferField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+};
+
+///ѯˮ
+struct CSgitFtdcQrySyncDepositField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ˮ
+ TSgitFtdcDepositSeqNoType DepositSeqNo;
+};
+
+///ѯͶ߽
+struct CSgitFtdcQrySettlementInfoField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcDateType TradingDay;
+};
+
+///ѯ
+struct CSgitFtdcQryHisOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///ʼʱ
+ TSgitFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TSgitFtdcTimeType InsertTimeEnd;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+};
+
+///г
+struct CSgitFtdcMarketDataField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///¼
+ TSgitFtdcPriceType LastPrice;
+ ///ϴν
+ TSgitFtdcPriceType PreSettlementPrice;
+ ///
+ TSgitFtdcPriceType PreClosePrice;
+ ///ֲ
+ TSgitFtdcLargeVolumeType PreOpenInterest;
+ ///
+ TSgitFtdcPriceType OpenPrice;
+ ///
+ TSgitFtdcPriceType HighestPrice;
+ ///ͼ
+ TSgitFtdcPriceType LowestPrice;
+ ///
+ TSgitFtdcVolumeType Volume;
+ ///ɽ
+ TSgitFtdcMoneyType Turnover;
+ ///ֲ
+ TSgitFtdcLargeVolumeType OpenInterest;
+ ///
+ TSgitFtdcPriceType ClosePrice;
+ ///ν
+ TSgitFtdcPriceType SettlementPrice;
+ ///ͣ
+ TSgitFtdcPriceType UpperLimitPrice;
+ ///ͣ
+ TSgitFtdcPriceType LowerLimitPrice;
+ ///ʵ
+ TSgitFtdcRatioType PreDelta;
+ ///ʵ
+ TSgitFtdcRatioType CurrDelta;
+ ///ʱ
+ TSgitFtdcTimeType UpdateTime;
+ ///ĺ
+ TSgitFtdcMillisecType UpdateMillisec;
+};
+
+///
+struct CSgitFtdcMarketDataBaseField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///ϴν
+ TSgitFtdcPriceType PreSettlementPrice;
+ ///
+ TSgitFtdcPriceType PreClosePrice;
+ ///ֲ
+ TSgitFtdcLargeVolumeType PreOpenInterest;
+ ///ʵ
+ TSgitFtdcRatioType PreDelta;
+};
+
+///龲̬
+struct CSgitFtdcMarketDataStaticField
+{
+ ///
+ TSgitFtdcPriceType OpenPrice;
+ ///
+ TSgitFtdcPriceType HighestPrice;
+ ///ͼ
+ TSgitFtdcPriceType LowestPrice;
+ ///
+ TSgitFtdcPriceType ClosePrice;
+ ///ͣ
+ TSgitFtdcPriceType UpperLimitPrice;
+ ///ͣ
+ TSgitFtdcPriceType LowerLimitPrice;
+ ///ν
+ TSgitFtdcPriceType SettlementPrice;
+ ///ʵ
+ TSgitFtdcRatioType CurrDelta;
+};
+
+///³ɽ
+struct CSgitFtdcMarketDataLastMatchField
+{
+ ///¼
+ TSgitFtdcPriceType LastPrice;
+ ///
+ TSgitFtdcVolumeType Volume;
+ ///ɽ
+ TSgitFtdcMoneyType Turnover;
+ ///ֲ
+ TSgitFtdcLargeVolumeType OpenInterest;
+};
+
+///ż
+struct CSgitFtdcMarketDataBestPriceField
+{
+ ///һ
+ TSgitFtdcPriceType BidPrice1;
+ ///һ
+ TSgitFtdcVolumeType BidVolume1;
+ ///һ
+ TSgitFtdcPriceType AskPrice1;
+ ///һ
+ TSgitFtdcVolumeType AskVolume1;
+};
+
+///
+struct CSgitFtdcMarketDataBid23Field
+{
+ ///۶
+ TSgitFtdcPriceType BidPrice2;
+ ///
+ TSgitFtdcVolumeType BidVolume2;
+ ///
+ TSgitFtdcPriceType BidPrice3;
+ ///
+ TSgitFtdcVolumeType BidVolume3;
+};
+
+///
+struct CSgitFtdcMarketDataAsk23Field
+{
+ ///۶
+ TSgitFtdcPriceType AskPrice2;
+ ///
+ TSgitFtdcVolumeType AskVolume2;
+ ///
+ TSgitFtdcPriceType AskPrice3;
+ ///
+ TSgitFtdcVolumeType AskVolume3;
+};
+
+///ġ
+struct CSgitFtdcMarketDataBid45Field
+{
+ ///
+ TSgitFtdcPriceType BidPrice4;
+ ///
+ TSgitFtdcVolumeType BidVolume4;
+ ///
+ TSgitFtdcPriceType BidPrice5;
+ ///
+ TSgitFtdcVolumeType BidVolume5;
+};
+
+///ġ
+struct CSgitFtdcMarketDataAsk45Field
+{
+ ///
+ TSgitFtdcPriceType AskPrice4;
+ ///
+ TSgitFtdcVolumeType AskVolume4;
+ ///
+ TSgitFtdcPriceType AskPrice5;
+ ///
+ TSgitFtdcVolumeType AskVolume5;
+};
+
+///ʱ
+struct CSgitFtdcMarketDataUpdateTimeField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///ʱ
+ TSgitFtdcTimeType UpdateTime;
+ ///ĺ
+ TSgitFtdcMillisecType UpdateMillisec;
+};
+
+///齻
+struct CSgitFtdcMarketDataExchangeField
+{
+ ///
+ TSgitFtdcPriceType ExchangeID;
+};
+
+///ָĺԼ
+struct CSgitFtdcSpecificInstrumentField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///Լ״̬
+struct CSgitFtdcInstrumentStatusField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TSgitFtdcSettlementGroupIDType SettlementGroupID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Լ״̬
+ TSgitFtdcInstrumentStatusType InstrumentStatus;
+ ///α
+ TSgitFtdcTradingSegmentSNType TradingSegmentSN;
+ ///뱾״̬ʱ
+ TSgitFtdcTimeType EnterTime;
+ ///뱾״̬ԭ
+ TSgitFtdcInstStatusEnterReasonType EnterReason;
+};
+
+///ѯԼ״̬
+struct CSgitFtdcQryInstrumentStatusField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+};
+
+///Ͷ˻
+struct CSgitFtdcInvestorAccountField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+};
+
+///ӯ㷨
+struct CSgitFtdcPositionProfitAlgorithmField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ӯ㷨
+ TSgitFtdcAlgorithmType Algorithm;
+ ///ע
+ TSgitFtdcMemoType Memo;
+};
+
+///Աʽۿ
+struct CSgitFtdcDiscountField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ʽۿ۱
+ TSgitFtdcRatioType Discount;
+};
+
+///ѯת
+struct CSgitFtdcQryTransferBankField
+{
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///зĴ
+ TSgitFtdcBankBrchIDType BankBrchID;
+};
+
+///ת
+struct CSgitFtdcTransferBankField
+{
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///зĴ
+ TSgitFtdcBankBrchIDType BankBrchID;
+ ///
+ TSgitFtdcBankNameType BankName;
+ ///ǷԾ
+ TSgitFtdcBoolType IsActive;
+};
+
+///ѯͶֲ߳ϸ
+struct CSgitFtdcQryInvestorPositionDetailField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///Ͷֲ߳ϸ
+struct CSgitFtdcInvestorPositionDetailField
+{
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///
+ TSgitFtdcDateType OpenDate;
+ ///ɽ
+ TSgitFtdcTradeIDType TradeID;
+ ///
+ TSgitFtdcVolumeType Volume;
+ ///ּ
+ TSgitFtdcPriceType OpenPrice;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///ɽ
+ TSgitFtdcTradeTypeType TradeType;
+ ///ϺԼ
+ TSgitFtdcInstrumentIDType CombInstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///նƽӯ
+ TSgitFtdcMoneyType CloseProfitByDate;
+ ///ʶԳƽӯ
+ TSgitFtdcMoneyType CloseProfitByTrade;
+ ///նгֲӯ
+ TSgitFtdcMoneyType PositionProfitByDate;
+ ///ʶԳֲӯ
+ TSgitFtdcMoneyType PositionProfitByTrade;
+ ///Ͷ֤߱
+ TSgitFtdcMoneyType Margin;
+ ///֤
+ TSgitFtdcMoneyType ExchMargin;
+ ///֤
+ TSgitFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TSgitFtdcRatioType MarginRateByVolume;
+ ///
+ TSgitFtdcPriceType LastSettlementPrice;
+ ///
+ TSgitFtdcPriceType SettlementPrice;
+ ///ƽ
+ TSgitFtdcVolumeType CloseVolume;
+ ///ƽֽ
+ TSgitFtdcMoneyType CloseAmount;
+};
+
+///ʽ˻
+struct CSgitFtdcTradingAccountPasswordField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///
+ TSgitFtdcPasswordType Password;
+};
+
+///鱨̻
+struct CSgitFtdcMDTraderOfferField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///Ա״̬
+ TSgitFtdcTraderConnectStatusType TraderConnectStatus;
+ ///
+ TSgitFtdcDateType ConnectRequestDate;
+ ///ʱ
+ TSgitFtdcTimeType ConnectRequestTime;
+ ///ϴα
+ TSgitFtdcDateType LastReportDate;
+ ///ϴαʱ
+ TSgitFtdcTimeType LastReportTime;
+ ///
+ TSgitFtdcDateType ConnectDate;
+ ///ʱ
+ TSgitFtdcTimeType ConnectTime;
+ ///
+ TSgitFtdcDateType StartDate;
+ ///ʱ
+ TSgitFtdcTimeType StartTime;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ϯλɽ
+ TSgitFtdcTradeIDType MaxTradeID;
+ ///ϯλ
+ TSgitFtdcReturnCodeType MaxOrderMessageReference;
+};
+
+///ѯ鱨̻
+struct CSgitFtdcQryMDTraderOfferField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+};
+
+///ѯͻ֪ͨ
+struct CSgitFtdcQryNoticeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///ͻ֪ͨ
+struct CSgitFtdcNoticeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ϣ
+ TSgitFtdcContentType Content;
+ ///˾֪ͨк
+ TSgitFtdcSequenceLabelType SequenceLabel;
+};
+
+///ûȨ
+struct CSgitFtdcUserRightField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///ͻȨ
+ TSgitFtdcUserRightTypeType UserRightType;
+ ///Ƿֹ
+ TSgitFtdcBoolType IsForbidden;
+};
+
+///ѯϢȷ
+struct CSgitFtdcQrySettlementInfoConfirmField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///װؽϢ
+struct CSgitFtdcLoadSettlementInfoField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///˾ʽ㷨
+struct CSgitFtdcBrokerWithdrawAlgorithmField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ʽ㷨
+ TSgitFtdcAlgorithmType WithdrawAlgorithm;
+ ///ʽʹ
+ TSgitFtdcRatioType UsingRatio;
+ ///Ƿƽӯ
+ TSgitFtdcIncludeCloseProfitType IncludeCloseProfit;
+ ///ɽͻǷܿ
+ TSgitFtdcAllWithoutTradeType AllWithoutTrade;
+ ///Ƿƽӯ
+ TSgitFtdcIncludeCloseProfitType AvailIncludeCloseProfit;
+ ///Ƿû¼
+ TSgitFtdcBoolType IsBrokerUserEvent;
+};
+
+///ʽ˻
+struct CSgitFtdcTradingAccountPasswordUpdateV1Field
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ԭĿ
+ TSgitFtdcPasswordType OldPassword;
+ ///µĿ
+ TSgitFtdcPasswordType NewPassword;
+};
+
+///ʽ˻
+struct CSgitFtdcTradingAccountPasswordUpdateField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ԭĿ
+ TSgitFtdcPasswordType OldPassword;
+ ///µĿ
+ TSgitFtdcPasswordType NewPassword;
+};
+
+///ѯϺԼ
+struct CSgitFtdcQryCombinationLegField
+{
+ ///ϺԼ
+ TSgitFtdcInstrumentIDType CombInstrumentID;
+ ///ȱ
+ TSgitFtdcLegIDType LegID;
+ ///ȺԼ
+ TSgitFtdcInstrumentIDType LegInstrumentID;
+};
+
+///ѯϺԼ
+struct CSgitFtdcQrySyncStatusField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+};
+
+///ϽԼĵ
+struct CSgitFtdcCombinationLegField
+{
+ ///ϺԼ
+ TSgitFtdcInstrumentIDType CombInstrumentID;
+ ///ȱ
+ TSgitFtdcLegIDType LegID;
+ ///ȺԼ
+ TSgitFtdcInstrumentIDType LegInstrumentID;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///ȳ
+ TSgitFtdcLegMultipleType LegMultiple;
+ ///
+ TSgitFtdcImplyLevelType ImplyLevel;
+};
+
+///ͬ״̬
+struct CSgitFtdcSyncStatusField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///ͬ״̬
+ TSgitFtdcDataSyncStatusType DataSyncStatus;
+};
+
+///ѯϵ
+struct CSgitFtdcQryLinkManField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///ϵ
+struct CSgitFtdcLinkManField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ϵ
+ TSgitFtdcPersonTypeType PersonType;
+ ///֤
+ TSgitFtdcIdCardTypeType IdentifiedCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///
+ TSgitFtdcPartyNameType PersonName;
+ ///ϵ绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ͨѶַ
+ TSgitFtdcAddressType Address;
+ ///
+ TSgitFtdcZipCodeType ZipCode;
+ ///ȼ
+ TSgitFtdcPriorityType Priority;
+};
+
+///ѯ˾û¼
+struct CSgitFtdcQryBrokerUserEventField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û¼
+ TSgitFtdcUserEventTypeType UserEventType;
+};
+
+///ѯ˾û¼
+struct CSgitFtdcBrokerUserEventField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///û¼
+ TSgitFtdcUserEventTypeType UserEventType;
+ ///û¼
+ TSgitFtdcSequenceNoType EventSequenceNo;
+ ///¼
+ TSgitFtdcDateType EventDate;
+ ///¼ʱ
+ TSgitFtdcTimeType EventTime;
+ ///û¼Ϣ
+ TSgitFtdcUserEventInfoType UserEventInfo;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///ѯǩԼ
+struct CSgitFtdcQryContractBankField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///зĴ
+ TSgitFtdcBankBrchIDType BankBrchID;
+};
+
+///ѯǩԼӦ
+struct CSgitFtdcContractBankField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///зĴ
+ TSgitFtdcBankBrchIDType BankBrchID;
+ ///
+ TSgitFtdcBankNameType BankName;
+};
+
+///Ͷϳֲϸ
+struct CSgitFtdcInvestorPositionCombineDetailField
+{
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcDateType OpenDate;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ϱ
+ TSgitFtdcTradeIDType ComTradeID;
+ ///ϱ
+ TSgitFtdcTradeIDType TradeID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///ֲ
+ TSgitFtdcVolumeType TotalAmt;
+ ///Ͷ֤߱
+ TSgitFtdcMoneyType Margin;
+ ///֤
+ TSgitFtdcMoneyType ExchMargin;
+ ///֤
+ TSgitFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TSgitFtdcRatioType MarginRateByVolume;
+ ///ȱ
+ TSgitFtdcLegIDType LegID;
+ ///ȳ
+ TSgitFtdcLegMultipleType LegMultiple;
+ ///ϳֲֺԼ
+ TSgitFtdcInstrumentIDType CombInstrumentID;
+};
+
+///Ԥ
+struct CSgitFtdcParkedOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///۸
+ TSgitFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TSgitFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///
+ TSgitFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TSgitFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TSgitFtdcDateType GTDDate;
+ ///ɽ
+ TSgitFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TSgitFtdcVolumeType MinVolume;
+ ///
+ TSgitFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TSgitFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TSgitFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TSgitFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ûǿ־
+ TSgitFtdcBoolType UserForceClose;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ԥ
+ TSgitFtdcParkedOrderIDType ParkedOrderID;
+ ///û
+ TSgitFtdcUserTypeType UserType;
+ ///Ԥ״̬
+ TSgitFtdcParkedOrderStatusType Status;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///Ԥ
+struct CSgitFtdcParkedOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcOrderActionRefType OrderActionRef;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///־
+ TSgitFtdcActionFlagType ActionFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///仯
+ TSgitFtdcVolumeType VolumeChange;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///Ԥ
+ TSgitFtdcParkedOrderActionIDType ParkedOrderActionID;
+ ///û
+ TSgitFtdcUserTypeType UserType;
+ ///Ԥ״̬
+ TSgitFtdcParkedOrderStatusType Status;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯԤ
+struct CSgitFtdcQryParkedOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+};
+
+///ѯԤ
+struct CSgitFtdcQryParkedOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+};
+
+///ɾԤ
+struct CSgitFtdcRemoveParkedOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ԥ
+ TSgitFtdcParkedOrderIDType ParkedOrderID;
+};
+
+///ɾԤ
+struct CSgitFtdcRemoveParkedOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Ԥ
+ TSgitFtdcParkedOrderActionIDType ParkedOrderActionID;
+};
+
+///˾ʽ㷨
+struct CSgitFtdcInvestorWithdrawAlgorithmField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ʽ
+ TSgitFtdcRatioType UsingRatio;
+};
+
+///ѯϳֲϸ
+struct CSgitFtdcQryInvestorPositionCombineDetailField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ϳֲֺԼ
+ TSgitFtdcInstrumentIDType CombInstrumentID;
+};
+
+///ɽ
+struct CSgitFtdcMarketDataAveragePriceField
+{
+ ///վ
+ TSgitFtdcPriceType AveragePrice;
+};
+
+///УͶ
+struct CSgitFtdcVerifyInvestorPasswordField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcPasswordType Password;
+};
+
+///ûIP
+struct CSgitFtdcUserIPField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///IPַ
+ TSgitFtdcIPAddressType IPAddress;
+ ///IPַ
+ TSgitFtdcIPAddressType IPMask;
+ ///Macַ
+ TSgitFtdcMacAddressType MacAddress;
+};
+
+///û¼֪ͨϢ
+struct CSgitFtdcTradingNoticeInfoField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ʱ
+ TSgitFtdcTimeType SendTime;
+ ///Ϣ
+ TSgitFtdcContentType FieldContent;
+ ///ϵк
+ TSgitFtdcSequenceSeriesType SequenceSeries;
+ ///к
+ TSgitFtdcSequenceNoType SequenceNo;
+};
+
+///û¼֪ͨ
+struct CSgitFtdcTradingNoticeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷ߷Χ
+ TSgitFtdcInvestorRangeType InvestorRange;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ϵк
+ TSgitFtdcSequenceSeriesType SequenceSeries;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///ʱ
+ TSgitFtdcTimeType SendTime;
+ ///к
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///Ϣ
+ TSgitFtdcContentType FieldContent;
+};
+
+///ѯ¼֪ͨ
+struct CSgitFtdcQryTradingNoticeField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///ѯ
+struct CSgitFtdcQryErrOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///
+struct CSgitFtdcErrOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///۸
+ TSgitFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TSgitFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///
+ TSgitFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TSgitFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TSgitFtdcDateType GTDDate;
+ ///ɽ
+ TSgitFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TSgitFtdcVolumeType MinVolume;
+ ///
+ TSgitFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TSgitFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TSgitFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TSgitFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ûǿ־
+ TSgitFtdcBoolType UserForceClose;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯ
+struct CSgitFtdcErrorConditionalOrderField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///۸
+ TSgitFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TSgitFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///
+ TSgitFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TSgitFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TSgitFtdcDateType GTDDate;
+ ///ɽ
+ TSgitFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TSgitFtdcVolumeType MinVolume;
+ ///
+ TSgitFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TSgitFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TSgitFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TSgitFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TSgitFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ύ״̬
+ TSgitFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TSgitFtdcSequenceNoType NotifySequence;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///
+ TSgitFtdcSettlementIDType SettlementID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///Դ
+ TSgitFtdcOrderSourceType OrderSource;
+ ///״̬
+ TSgitFtdcOrderStatusType OrderStatus;
+ ///
+ TSgitFtdcOrderTypeType OrderType;
+ ///ɽ
+ TSgitFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TSgitFtdcVolumeType VolumeTotal;
+ ///
+ TSgitFtdcDateType InsertDate;
+ ///ίʱ
+ TSgitFtdcTimeType InsertTime;
+ ///ʱ
+ TSgitFtdcTimeType ActiveTime;
+ ///ʱ
+ TSgitFtdcTimeType SuspendTime;
+ ///ʱ
+ TSgitFtdcTimeType UpdateTime;
+ ///ʱ
+ TSgitFtdcTimeType CancelTime;
+ ///ĽԱ
+ TSgitFtdcTraderIDType ActiveTraderID;
+ ///Ա
+ TSgitFtdcParticipantIDType ClearingPartID;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TSgitFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TSgitFtdcErrorMsgType StatusMsg;
+ ///ûǿ־
+ TSgitFtdcBoolType UserForceClose;
+ ///û
+ TSgitFtdcUserIDType ActiveUserID;
+ ///˾
+ TSgitFtdcSequenceNoType BrokerOrderSeq;
+ ///ر
+ TSgitFtdcOrderSysIDType RelativeOrderSysID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯ
+struct CSgitFtdcQryErrOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///
+struct CSgitFtdcErrOrderActionField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcOrderActionRefType OrderActionRef;
+ ///
+ TSgitFtdcOrderRefType OrderRef;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ǰñ
+ TSgitFtdcFrontIDType FrontID;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcOrderSysIDType OrderSysID;
+ ///־
+ TSgitFtdcActionFlagType ActionFlag;
+ ///۸
+ TSgitFtdcPriceType LimitPrice;
+ ///仯
+ TSgitFtdcVolumeType VolumeChange;
+ ///
+ TSgitFtdcDateType ActionDate;
+ ///ʱ
+ TSgitFtdcTimeType ActionTime;
+ ///Ա
+ TSgitFtdcTraderIDType TraderID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ر
+ TSgitFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TSgitFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TSgitFtdcClientIDType ClientID;
+ ///ҵԪ
+ TSgitFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TSgitFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TSgitFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯ״̬
+struct CSgitFtdcQryExchangeSequenceField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+};
+
+///״̬
+struct CSgitFtdcExchangeSequenceField
+{
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///
+ TSgitFtdcSequenceNoType SequenceNo;
+ ///Լ״̬
+ TSgitFtdcInstrumentStatusType MarketStatus;
+};
+
+///ݼ۸ѯ
+struct CSgitFtdcQueryMaxOrderVolumeWithPriceField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///ƽ־
+ TSgitFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///
+ TSgitFtdcVolumeType MaxVolume;
+ ///۸
+ TSgitFtdcPriceType Price;
+};
+
+///ѯ˾ײ
+struct CSgitFtdcQryBrokerTradingParamsField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///˾ײ
+struct CSgitFtdcBrokerTradingParamsField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///֤۸
+ TSgitFtdcMarginPriceTypeType MarginPriceType;
+ ///ӯ㷨
+ TSgitFtdcAlgorithmType Algorithm;
+ ///Ƿƽӯ
+ TSgitFtdcIncludeCloseProfitType AvailIncludeCloseProfit;
+};
+
+///ѯ˾㷨
+struct CSgitFtdcQryBrokerTradingAlgosField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///˾㷨
+struct CSgitFtdcBrokerTradingAlgosField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///ֲִ㷨
+ TSgitFtdcHandlePositionAlgoIDType HandlePositionAlgoID;
+ ///Ѱұ֤㷨
+ TSgitFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID;
+ ///ʽ㷨
+ TSgitFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID;
+};
+
+///ѯ˾ʽ
+struct CSgitFtdcQueryBrokerDepositField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+};
+
+///˾ʽ
+struct CSgitFtdcBrokerDepositField
+{
+ ///
+ TSgitFtdcTradeDateType TradingDay;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ա
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///ϴν
+ TSgitFtdcMoneyType PreBalance;
+ ///ǰ֤ܶ
+ TSgitFtdcMoneyType CurrMargin;
+ ///ƽӯ
+ TSgitFtdcMoneyType CloseProfit;
+ ///ڻ
+ TSgitFtdcMoneyType Balance;
+ ///
+ TSgitFtdcMoneyType Deposit;
+ ///
+ TSgitFtdcMoneyType Withdraw;
+ ///ʽ
+ TSgitFtdcMoneyType Available;
+ ///
+ TSgitFtdcMoneyType Reserve;
+ ///ı֤
+ TSgitFtdcMoneyType FrozenMargin;
+};
+
+///ѯ֤ϵͳ˾Կ
+struct CSgitFtdcQryCFMMCBrokerKeyField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+};
+
+///֤ϵͳ˾Կ
+struct CSgitFtdcCFMMCBrokerKeyField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///˾ͳһ
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///Կ
+ TSgitFtdcDateType CreateDate;
+ ///Կʱ
+ TSgitFtdcTimeType CreateTime;
+ ///Կ
+ TSgitFtdcSequenceNoType KeyID;
+ ///̬Կ
+ TSgitFtdcCFMMCKeyType CurrentKey;
+ ///̬Կ
+ TSgitFtdcCFMMCKeyKindType KeyKind;
+};
+
+///֤ϵͳ˾ʽ˻Կ
+struct CSgitFtdcCFMMCTradingAccountKeyField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///˾ͳһ
+ TSgitFtdcParticipantIDType ParticipantID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///Կ
+ TSgitFtdcSequenceNoType KeyID;
+ ///̬Կ
+ TSgitFtdcCFMMCKeyType CurrentKey;
+};
+
+///ѯ֤ϵͳ˾ʽ˻Կ
+struct CSgitFtdcQryCFMMCTradingAccountKeyField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+};
+
+///û̬Ʋ
+struct CSgitFtdcBrokerUserOTPParamField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///̬ṩ
+ TSgitFtdcOTPVendorsIDType OTPVendorsID;
+ ///̬к
+ TSgitFtdcSerialNumberType SerialNumber;
+ ///Կ
+ TSgitFtdcAuthKeyType AuthKey;
+ ///Ưֵ
+ TSgitFtdcLastDriftType LastDrift;
+ ///ɹֵ
+ TSgitFtdcLastSuccessType LastSuccess;
+ ///̬
+ TSgitFtdcOTPTypeType OTPType;
+};
+
+///ֹͬû̬
+struct CSgitFtdcManualSyncBrokerUserOTPField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///̬
+ TSgitFtdcOTPTypeType OTPType;
+ ///һ̬
+ TSgitFtdcPasswordType FirstOTP;
+ ///ڶ̬
+ TSgitFtdcPasswordType SecondOTP;
+};
+
+///Ͷģ
+struct CSgitFtdcCommRateModelField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ģ
+ TSgitFtdcInvestorIDType CommModelID;
+ ///ģ
+ TSgitFtdcCommModelNameType CommModelName;
+};
+
+///ѯͶģ
+struct CSgitFtdcQryCommRateModelField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ģ
+ TSgitFtdcInvestorIDType CommModelID;
+};
+
+///ֵ۵Ϣ
+struct CSgitFtdcEWarrantOffsetField
+{
+ ///
+ TSgitFtdcTradeDateType TradingDay;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+ ///
+ TSgitFtdcDirectionType Direction;
+ ///Ͷױ־
+ TSgitFtdcHedgeFlagType HedgeFlag;
+ ///
+ TSgitFtdcVolumeType Volume;
+};
+
+///ѯֵ۵Ϣ
+struct CSgitFtdcQryEWarrantOffsetField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TSgitFtdcInstrumentIDType InstrumentID;
+};
+
+///תʿ
+struct CSgitFtdcReqOpenAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TSgitFtdcGenderType Gender;
+ ///Ҵ
+ TSgitFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ַ
+ TSgitFtdcAddressType Address;
+ ///ʱ
+ TSgitFtdcZipCodeType ZipCode;
+ ///绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ֻ
+ TSgitFtdcMobilePhoneType MobilePhone;
+ ///
+ TSgitFtdcFaxType Fax;
+ ///ʼ
+ TSgitFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TSgitFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TSgitFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///ת
+struct CSgitFtdcReqCancelAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TSgitFtdcGenderType Gender;
+ ///Ҵ
+ TSgitFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ַ
+ TSgitFtdcAddressType Address;
+ ///ʱ
+ TSgitFtdcZipCodeType ZipCode;
+ ///绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ֻ
+ TSgitFtdcMobilePhoneType MobilePhone;
+ ///
+ TSgitFtdcFaxType Fax;
+ ///ʼ
+ TSgitFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TSgitFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TSgitFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///˻
+struct CSgitFtdcReqChangeAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TSgitFtdcGenderType Gender;
+ ///Ҵ
+ TSgitFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ַ
+ TSgitFtdcAddressType Address;
+ ///ʱ
+ TSgitFtdcZipCodeType ZipCode;
+ ///绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ֻ
+ TSgitFtdcMobilePhoneType MobilePhone;
+ ///
+ TSgitFtdcFaxType Fax;
+ ///ʼ
+ TSgitFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TSgitFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///ʺ
+ TSgitFtdcBankAccountType NewBankAccount;
+ ///
+ TSgitFtdcPasswordType NewBankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+};
+
+///ת
+struct CSgitFtdcReqTransferField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TSgitFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TSgitFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TSgitFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TSgitFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TSgitFtdcAddInfoType Message;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ת˽״̬
+ TSgitFtdcTransferStatusType TransferStatus;
+};
+
+///зʽתڻӦ
+struct CSgitFtdcRspTransferField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TSgitFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TSgitFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TSgitFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TSgitFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TSgitFtdcAddInfoType Message;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ת˽״̬
+ TSgitFtdcTransferStatusType TransferStatus;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///
+struct CSgitFtdcReqRepealField
+{
+ ///ʱ
+ TSgitFtdcRepealTimeIntervalType RepealTimeInterval;
+ ///Ѿ
+ TSgitFtdcRepealedTimesType RepealedTimes;
+ ///г־
+ TSgitFtdcBankRepealFlagType BankRepealFlag;
+ ///̳־
+ TSgitFtdcBrokerRepealFlagType BrokerRepealFlag;
+ ///ƽ̨ˮ
+ TSgitFtdcPlateSerialType PlateRepealSerial;
+ ///ˮ
+ TSgitFtdcBankSerialType BankRepealSerial;
+ ///ڻˮ
+ TSgitFtdcFutureSerialType FutureRepealSerial;
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TSgitFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TSgitFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TSgitFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TSgitFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TSgitFtdcAddInfoType Message;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ת˽״̬
+ TSgitFtdcTransferStatusType TransferStatus;
+};
+
+///Ӧ
+struct CSgitFtdcRspRepealField
+{
+ ///ʱ
+ TSgitFtdcRepealTimeIntervalType RepealTimeInterval;
+ ///Ѿ
+ TSgitFtdcRepealedTimesType RepealedTimes;
+ ///г־
+ TSgitFtdcBankRepealFlagType BankRepealFlag;
+ ///̳־
+ TSgitFtdcBrokerRepealFlagType BrokerRepealFlag;
+ ///ƽ̨ˮ
+ TSgitFtdcPlateSerialType PlateRepealSerial;
+ ///ˮ
+ TSgitFtdcBankSerialType BankRepealSerial;
+ ///ڻˮ
+ TSgitFtdcFutureSerialType FutureRepealSerial;
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TSgitFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TSgitFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TSgitFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TSgitFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TSgitFtdcAddInfoType Message;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ת˽״̬
+ TSgitFtdcTransferStatusType TransferStatus;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯ˻Ϣ
+struct CSgitFtdcReqQueryAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///ѯ˻ϢӦ
+struct CSgitFtdcRspQueryAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///пý
+ TSgitFtdcTradeAmountType BankUseAmount;
+ ///пȡ
+ TSgitFtdcTradeAmountType BankFetchAmount;
+};
+
+///ǩǩ
+struct CSgitFtdcFutureSignIOField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///ǩӦ
+struct CSgitFtdcRspFutureSignInField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+ ///PINԿ
+ TSgitFtdcPasswordKeyType PinKey;
+ ///MACԿ
+ TSgitFtdcPasswordKeyType MacKey;
+};
+
+///ǩ
+struct CSgitFtdcReqFutureSignOutField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///ǩӦ
+struct CSgitFtdcRspFutureSignOutField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯָˮŵĽ
+struct CSgitFtdcReqQueryTradeResultBySerialField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ˮ
+ TSgitFtdcSerialType Reference;
+ ///ˮŷߵĻ
+ TSgitFtdcInstitutionTypeType RefrenceIssureType;
+ ///ˮŷ
+ TSgitFtdcOrganCodeType RefrenceIssure;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+};
+
+///ѯָˮŵĽӦ
+struct CSgitFtdcRspQueryTradeResultBySerialField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+ ///ˮ
+ TSgitFtdcSerialType Reference;
+ ///ˮŷߵĻ
+ TSgitFtdcInstitutionTypeType RefrenceIssureType;
+ ///ˮŷ
+ TSgitFtdcOrganCodeType RefrenceIssure;
+ ///ԭʼش
+ TSgitFtdcReturnCodeType OriginReturnCode;
+ ///ԭʼ
+ TSgitFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+};
+
+///ļ
+struct CSgitFtdcReqDayEndFileReadyField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ļҵ
+ TSgitFtdcFileBusinessCodeType FileBusinessCode;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+};
+
+///ؽ
+struct CSgitFtdcReturnResultField
+{
+ ///ش
+ TSgitFtdcReturnCodeType ReturnCode;
+ ///
+ TSgitFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode;
+};
+
+///֤ڻʽ
+struct CSgitFtdcVerifyFuturePasswordField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///֤ͻϢ
+struct CSgitFtdcVerifyCustInfoField
+{
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+};
+
+///֤ڻʽͿͻϢ
+struct CSgitFtdcVerifyFuturePasswordAndCustInfoField
+{
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+};
+
+///֤ڻʽͿͻϢ
+struct CSgitFtdcDepositResultInformField
+{
+ ///ˮţˮΪڱ̷صˮ
+ TSgitFtdcDepositSeqNoType DepositSeqNo;
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///
+ TSgitFtdcMoneyType Deposit;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ش
+ TSgitFtdcReturnCodeType ReturnCode;
+ ///
+ TSgitFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode;
+};
+
+///ڱ̷Կͬ
+struct CSgitFtdcReqSyncKeyField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ĸڱ̵Ϣ
+ TSgitFtdcAddInfoType Message;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+};
+
+///ڱ̷ԿͬӦ
+struct CSgitFtdcRspSyncKeyField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ĸڱ̵Ϣ
+ TSgitFtdcAddInfoType Message;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯ˻Ϣ֪ͨ
+struct CSgitFtdcNotifyQueryAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///пý
+ TSgitFtdcTradeAmountType BankUseAmount;
+ ///пȡ
+ TSgitFtdcTradeAmountType BankFetchAmount;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ת˽ˮ
+struct CSgitFtdcTransferSerialField
+{
+ ///ƽ̨ˮ
+ TSgitFtdcPlateSerialType PlateSerial;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///
+ TSgitFtdcDateType TradingDay;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///״
+ TSgitFtdcTradeCodeType TradeCode;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///б
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ڻ˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///ڻ˾ʺ
+ TSgitFtdcFutureAccTypeType FutureAccType;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///Ͷߴ
+ TSgitFtdcInvestorIDType InvestorID;
+ ///ڻ˾ˮ
+ TSgitFtdcFutureSerialType FutureSerial;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///
+ TSgitFtdcTradeAmountType TradeAmount;
+ ///Ӧտͻ
+ TSgitFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TSgitFtdcFutureFeeType BrokerFee;
+ ///Ч־
+ TSgitFtdcAvailabilityFlagType AvailabilityFlag;
+ ///Ա
+ TSgitFtdcOperatorCodeType OperatorCode;
+ ///ʺ
+ TSgitFtdcBankAccountType BankNewAccount;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯתˮ
+struct CSgitFtdcQryTransferSerialField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///б
+ TSgitFtdcBankIDType BankID;
+};
+
+///ǩ֪ͨ
+struct CSgitFtdcNotifyFutureSignInField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+ ///PINԿ
+ TSgitFtdcPasswordKeyType PinKey;
+ ///MACԿ
+ TSgitFtdcPasswordKeyType MacKey;
+};
+
+///ǩ֪ͨ
+struct CSgitFtdcNotifyFutureSignOutField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ڱ̷Կ֪ͬͨ
+struct CSgitFtdcNotifySyncKeyField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///ûʶ
+ TSgitFtdcUserIDType UserID;
+ ///ĸڱ̵Ϣ
+ TSgitFtdcAddInfoType Message;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///
+ TSgitFtdcRequestIDType RequestID;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ѯǩԼϵ
+struct CSgitFtdcQryAccountregisterField
+{
+ ///˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///б
+ TSgitFtdcBankIDType BankID;
+};
+
+///ͻϢ
+struct CSgitFtdcAccountregisterField
+{
+ ///
+ TSgitFtdcTradeDateType TradeDay;
+ ///б
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///ڻ˾
+ TSgitFtdcBrokerIDType BrokerID;
+ ///ڻ˾֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///
+ TSgitFtdcOpenOrDestroyType OpenOrDestroy;
+ ///ǩԼ
+ TSgitFtdcTradeDateType RegDate;
+ ///Լ
+ TSgitFtdcTradeDateType OutDate;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+};
+
+///ڿϢ
+struct CSgitFtdcOpenAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TSgitFtdcGenderType Gender;
+ ///Ҵ
+ TSgitFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ַ
+ TSgitFtdcAddressType Address;
+ ///ʱ
+ TSgitFtdcZipCodeType ZipCode;
+ ///绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ֻ
+ TSgitFtdcMobilePhoneType MobilePhone;
+ ///
+ TSgitFtdcFaxType Fax;
+ ///ʼ
+ TSgitFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TSgitFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TSgitFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///Ϣ
+struct CSgitFtdcCancelAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TSgitFtdcGenderType Gender;
+ ///Ҵ
+ TSgitFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ַ
+ TSgitFtdcAddressType Address;
+ ///ʱ
+ TSgitFtdcZipCodeType ZipCode;
+ ///绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ֻ
+ TSgitFtdcMobilePhoneType MobilePhone;
+ ///
+ TSgitFtdcFaxType Fax;
+ ///ʼ
+ TSgitFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TSgitFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TSgitFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///־
+ TSgitFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TSgitFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TSgitFtdcBankAccountType BankSecuAcc;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TSgitFtdcOperNoType OperNo;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ڱ˺Ϣ
+struct CSgitFtdcChangeAccountField
+{
+ ///ҵ
+ TSgitFtdcTradeCodeType TradeCode;
+ ///д
+ TSgitFtdcBankIDType BankID;
+ ///з֧
+ TSgitFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TSgitFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TSgitFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TSgitFtdcTradeDateType TradeDate;
+ ///ʱ
+ TSgitFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TSgitFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TSgitFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TSgitFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TSgitFtdcLastFragmentType LastFragment;
+ ///Ự
+ TSgitFtdcSessionIDType SessionID;
+ ///ͻ
+ TSgitFtdcIndividualNameType CustomerName;
+ ///֤
+ TSgitFtdcIdCardTypeType IdCardType;
+ ///֤
+ TSgitFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TSgitFtdcGenderType Gender;
+ ///Ҵ
+ TSgitFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TSgitFtdcCustTypeType CustType;
+ ///ַ
+ TSgitFtdcAddressType Address;
+ ///ʱ
+ TSgitFtdcZipCodeType ZipCode;
+ ///绰
+ TSgitFtdcTelephoneType Telephone;
+ ///ֻ
+ TSgitFtdcMobilePhoneType MobilePhone;
+ ///
+ TSgitFtdcFaxType Fax;
+ ///ʼ
+ TSgitFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TSgitFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TSgitFtdcBankAccountType BankAccount;
+ ///
+ TSgitFtdcPasswordType BankPassWord;
+ ///ʺ
+ TSgitFtdcBankAccountType NewBankAccount;
+ ///
+ TSgitFtdcPasswordType NewBankPassWord;
+ ///Ͷʺ
+ TSgitFtdcAccountIDType AccountID;
+ ///ڻ
+ TSgitFtdcPasswordType Password;
+ ///ʺ
+ TSgitFtdcBankAccTypeType BankAccType;
+ ///װ
+ TSgitFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TSgitFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TSgitFtdcCurrencyIDType CurrencyID;
+ ///ڻ˾б
+ TSgitFtdcBankCodingForFutureType BrokerIDByBank;
+ ///־
+ TSgitFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TSgitFtdcPwdFlagType SecuPwdFlag;
+ ///ID
+ TSgitFtdcTIDType TID;
+ ///ժҪ
+ TSgitFtdcDigestType Digest;
+ ///
+ TSgitFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TSgitFtdcErrorMsgType ErrorMsg;
+};
+
+///ֱĽȨ
+struct CSgitFtdcUserRightsAssignField
+{
+ ///ӦõԪ
+ TSgitFtdcBrokerIDType BrokerID;
+ ///û
+ TSgitFtdcUserIDType UserID;
+ ///Ĵ
+ TSgitFtdcDRIdentityIDType DRIdentityID;
+};
+
+///ù˾ǷڱʾĽȨ
+struct CSgitFtdcBrokerUserRightAssignField
+{
+ ///ӦõԪ
+ TSgitFtdcBrokerIDType BrokerID;
+ ///Ĵ
+ TSgitFtdcDRIdentityIDType DRIdentityID;
+ ///ܷ
+ TSgitFtdcBoolType Tradeable;
+};
+
+///ֱת
+struct CSgitFtdcDRTransferField
+{
+ ///ԭĴ
+ TSgitFtdcDRIdentityIDType OrigDRIdentityID;
+ ///Ŀ꽻Ĵ
+ TSgitFtdcDRIdentityIDType DestDRIdentityID;
+ ///ԭӦõԪ
+ TSgitFtdcBrokerIDType OrigBrokerID;
+ ///ĿõԪ
+ TSgitFtdcBrokerIDType DestBrokerID;
+};
+
+//Լλѯ
+struct CSgitMBLQuotReq
+{
+ TSgitFtdcInstrumentIDType StartContractID; //ʼԼ
+ TSgitFtdcInstrumentIDType EndContractID; //Լ
+ TSgitFtdcDirectionType BsFlag; //־
+};
+
+//Լλ
+struct CSgitMBLQuotData
+{
+ TSgitFtdcInstrumentIDType ContractID; //Լ
+ TSgitFtdcDirectionType BsFlag; //־
+ TSgitFtdcPriceType Price; //۸
+ TSgitFtdcVolumeType Qty; //
+};
+
+//ĺԼ
+struct CSgitSubQuotField
+{
+ TSgitFtdcInstrumentIDType ContractID; //Լ
+};
+
+#endif
diff --git "a/include/FeiShu/api\345\274\200\345\217\221\350\257\264\346\230\216.pdf" "b/include/FeiShu/api\345\274\200\345\217\221\350\257\264\346\230\216.pdf"
new file mode 100644
index 0000000..4167c8a
Binary files /dev/null and "b/include/FeiShu/api\345\274\200\345\217\221\350\257\264\346\230\216.pdf" differ
diff --git a/include/FeiShu/linux64/libsgitquotapi.so.64 b/include/FeiShu/linux64/libsgitquotapi.so.64
new file mode 100644
index 0000000..25c5b2d
Binary files /dev/null and b/include/FeiShu/linux64/libsgitquotapi.so.64 differ
diff --git a/include/FeiShu/linux64/libsgittradeapi.so.64 b/include/FeiShu/linux64/libsgittradeapi.so.64
new file mode 100644
index 0000000..12b22da
Binary files /dev/null and b/include/FeiShu/linux64/libsgittradeapi.so.64 differ
diff --git "a/include/FeiShu/sgitApi\351\224\231\350\257\257\347\240\201.txt" "b/include/FeiShu/sgitApi\351\224\231\350\257\257\347\240\201.txt"
new file mode 100644
index 0000000..c0d4c80
--- /dev/null
+++ "b/include/FeiShu/sgitApi\351\224\231\350\257\257\347\240\201.txt"
@@ -0,0 +1,60 @@
+//---- ´ǽӦϢ(CSgitFtdcRspInfoField)д ----//
+10001,"ϯλ!";
+10002,"Ϊÿͻ!"
+10004,"¼δɹܾͽ!"
+10005,"δ¼!"
+10013,"¼!"
+
+#11000ʾίм
+11000,"ýӿڲʹ!"
+11000,"رظ!";
+11000,"ǰ״̬!"
+11000,"ͻʽʺ"
+11000,"ʽʺޱ֤"
+11000,"ʽʺż¼"
+11000,"ʽ!"
+
+11010,"ʧ!");
+12000,"ֲֿƽ!"
+20000,"Գɽ!"
+
+
+//---- ´apiֵ(Join/Ready/ReqXXXXXX) ----//
+//---- 121010000ǻֵ ----//
+
+API
+121010000 + iErrCode
+
+#ifndef _API_ERROR_CODE_H
+#define _API_ERROR_CODE_H
+#define REACTOR_NO_INITIALIZE 1//Ϣ߳δ
+#define CA_NO_INITIALIZE 2//CAģδ
+#define APICONTROL_NO_INITIALIZE 3//API Controlģδ
+#define CHNL_CREATE_FAIL 4//TCPʧ
+#define SYNC_CALL_TIMEOUT 5//ͬóʱ
+#define CHNL_ERR 6//ӳ
+#define CA_SIGN_ERROR 7//CA֤ģǩ
+#define RE_CERT 8//ظ֤
+#define CA_CHECKSIGN_ERROR 9//֤ǩʧ
+#define RE_LOGIN 10//ظ½
+#define NO_CERT 11//δͨCA֤
+#define NO_LOGIN 12//δ¼ǰ
+#define CA_INIT_ERR 13//CAģʼʧ
+#define NO_SERVICE 14//ûǰÿ
+#define NO_SYNCTIMEOUT 15//ͬʱΪ
+#define RE_SESSION 16//ظỰ
+#define NO_SESSION 17//֤֮ǰδͨỰ
+#define DIFF_TRADERNO 18//Ự֤ϯλŲͬ
+#define CA_CERT_ERR 19//CA֤ʼ
+#define CA_DECODE_ERR 20//֤ӦCA֤ʧ
+#define CA_ERROR_LOAD_LIBRARY 21//װض̬
+#define CA_ERROR_PRIVATE_KEY_DEV 22//д˽Կ豸ʧ
+#define CA_ERROR_PRI_KEY_PASS 23//˽Կ
+#define CA_ERROR_INITIAL_SESSION 24//ʼ
+#define CA_ERROR_MEMORY 25//ڴ
+#define CA_ERROR_CERT_DATE 26//ȡ֤Чڴ
+#endif
+
+
+
+
diff --git "a/include/FeiShu/sigtApi\345\274\200\345\217\221\351\227\256\351\242\230\347\255\224\347\226\221.doc" "b/include/FeiShu/sigtApi\345\274\200\345\217\221\351\227\256\351\242\230\347\255\224\347\226\221.doc"
new file mode 100644
index 0000000..9aa8974
Binary files /dev/null and "b/include/FeiShu/sigtApi\345\274\200\345\217\221\351\227\256\351\242\230\347\255\224\347\226\221.doc" differ
diff --git a/include/FeiShu/win32/sgitquotapi.dll b/include/FeiShu/win32/sgitquotapi.dll
new file mode 100644
index 0000000..fbcd34d
Binary files /dev/null and b/include/FeiShu/win32/sgitquotapi.dll differ
diff --git a/include/FeiShu/win32/sgitquotapi.lib b/include/FeiShu/win32/sgitquotapi.lib
new file mode 100644
index 0000000..0d15870
Binary files /dev/null and b/include/FeiShu/win32/sgitquotapi.lib differ
diff --git a/include/FeiShu/win32/sgittradeapi.dll b/include/FeiShu/win32/sgittradeapi.dll
new file mode 100644
index 0000000..fa5c87f
Binary files /dev/null and b/include/FeiShu/win32/sgittradeapi.dll differ
diff --git a/include/FeiShu/win32/sgittradeapi.lib b/include/FeiShu/win32/sgittradeapi.lib
new file mode 100644
index 0000000..0bd1349
Binary files /dev/null and b/include/FeiShu/win32/sgittradeapi.lib differ
diff --git "a/include/FeiShu/\344\273\277CTP\346\216\245\345\217\243\344\275\277\347\224\250\350\257\264\346\230\216.txt" "b/include/FeiShu/\344\273\277CTP\346\216\245\345\217\243\344\275\277\347\224\250\350\257\264\346\230\216.txt"
new file mode 100644
index 0000000..a2d9de9
--- /dev/null
+++ "b/include/FeiShu/\344\273\277CTP\346\216\245\345\217\243\344\275\277\347\224\250\350\257\264\346\230\216.txt"
@@ -0,0 +1,33 @@
+1apiʱ,δָĿ¼,dllļĿ¼ϼĿ¼һҪstoreĿ¼,Ϊʱļ洢Ŀ¼.
+2رű12λǰ0¼ɹᣬյMaxOrderRef,رŴյرϿʼۼơ
+3ͶIDдָӦĽױ롣
+4ָҪдExchangeIDInvestorIDOrderSysIDInstrumentID
+ UserIDдϵͳĽԱš
+ ExchangeIDд'S''Z''D''J'һSgitFtdcUserApiDataType.hض塣Sgit_FTDC_EIDT_SHFE ʾ
+ InvestorIDдӦĽױ롣
+ OrderSysIDдӦصĽšעнϵͳǰпոָʱյһ¡
+ رOnRspOrderAction.
+
+5ίбָɹɹʧܶͨOnRtnOrder֪ͨӦյOnRtnOrderʾӦıӦ
+
+6עǵķctpӿڱӦOnRtnOrderctpһctpļ̳ʵ֣ղӦ
+
+7ָɹɹͨOnRspOrderAction֪ͨӦOnRspOrderActionزCSgitFtdcInputOrderActionFieldVolumeChangeʾɹ
+ ע⣺вд ϵͳ ᳷ɹղر
+
+8ctpӿڱָ֧FAK
+
+9CSgitFtdcInvestorPositionDetailFieldOpenPriceֲ־ ExchMarginֲ
+
+10ԼͻָƽίеĿƽֱ־Ϊƽ/ƽ/ƽ
+ ͻָƽֱ־Ϊ ƽ֣ ί ƽᱻܾϢֲֿƽ
+ ͻָƽֱ־Ϊ ƽ ƽٽв
+ ʹ°汾sgitapiԼίлر ɽرƽ/ƽ־ƽ֡
+
+11apiӿCSgitFtdcMdApi֧鶩ģҪڵ¼ɹ֮Ready֮ǰġյкԼ顣
+ Ready֮ǰ飬ںпٴζ顣
+ Ready֮ǰûж飬ںвŶ飬
+
+12ֲֲѯӦ YdPositionPosition ǰܲλTodayPosition = Position + YdPosition ֲ longfrozenʾƽֲֶ shortFrozenʾƽֶᡣ
+
+13Ҫöಥģʽ飩ҪSetMultiCastAddr
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSCosApi.h b/include/Kingstar/IncEx/KSCosApi.h
new file mode 100644
index 0000000..d58d75c
--- /dev/null
+++ b/include/Kingstar/IncEx/KSCosApi.h
@@ -0,0 +1,118 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSCosApi.h
+///@brief ˿ͻӿ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSCOSAPI_H_INCLUDED_
+#define __KSCOSAPI_H_INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiStructEx.h"
+#include "KSVocApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32) && !defined(KSTRADEAPI_STATIC_LIB)
+
+#ifdef LIB_TRADER_API_EXPORT
+#define TRADER_COSAPI_EXPORT __declspec(dllexport)
+#else
+#define TRADER_COSAPI_EXPORT __declspec(dllimport)
+#endif
+#else
+#ifdef WIN32
+#define TRADER_COSAPI_EXPORT
+#else
+#define TRADER_COSAPI_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif
+
+namespace KingstarAPI
+{
+
+ class CKSCosSpi
+ {
+ public:
+ ///¼Ӧ
+ virtual void OnRspInitInsertConditionalOrder(CKSConditionalOrderOperResultField *pInitInsertConditionalOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѯӦ
+ virtual void OnRspQueryConditionalOrder(CKSConditionalOrderOperResultField *pQueryConditionalOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///Ӧ
+ virtual void OnRspModifyConditionalOrder(CKSConditionalOrderOperResultField *pModifyConditionalOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ͣӦ
+ virtual void OnRspPauseConditionalOrder(CKSConditionalOrderOperResultField *pPauseConditionalOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ɾӦ
+ virtual void OnRspRemoveConditionalOrder(CKSConditionalOrderRspResultField *pRemoveConditionalOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѡӦ
+ virtual void OnRspSelectConditionalOrder(CKSConditionalOrderRspResultField *pSelectConditionalOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ֹֹӯ¼Ӧ
+ virtual void OnRspInsertProfitAndLossOrder(CKSProfitAndLossOrderOperResultField *pInsertProfitAndLossOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ֹֹӯӦ
+ virtual void OnRspModifyProfitAndLossOrder(CKSProfitAndLossOrderOperResultField *pModifyProfitAndLossOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ֹֹӯɾӦ
+ virtual void OnRspRemoveProfitAndLossOrder(CKSProfitAndLossOrderRemoveField *pRemoveProfitAndLossOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ֹֹӯѯӦ
+ virtual void OnRspQueryProfitAndLossOrder(CKSProfitAndLossOrderOperResultField *pQueryProfitAndLossOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѡ֪ͨ
+ virtual void OnRtnCOSAskSelect(CKSCOSAskSelectField *pCOSAskSelect) {};
+
+ ///״̬֪ͨ
+ virtual void OnRtnCOSStatus(CKSCOSStatusField *pCOSStatus) {};
+
+ ///ֹֹӯ״̬֪ͨ
+ virtual void OnRtnPLStatus(CKSPLStatusField *pPLStatus) {};
+ };
+
+ class TRADER_COSAPI_EXPORT CKSCosApi
+ {
+ public:
+ ///¼
+ virtual int ReqInitInsertConditionalOrder(CKSConditionalOrderInitInsert *pConditionalOrderInitInsert, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQueryConditionalOrder(CKSConditionalOrderQuery *pConditionalOrderQuery, int nRequestID) = 0;
+
+ ///
+ virtual int ReqModifyConditionalOrder(CKSConditionalOrderModify *pConditionalOrderModify, int nRequestID) = 0;
+
+ ///ɾ
+ virtual int ReqRemoveConditionalOrder(CKSConditionalOrderRemove *pConditionalOrderRemove, int nRequestID) = 0;
+
+ ///ͣ
+ virtual int ReqStateAlterConditionalOrder(CKSConditionalOrderStateAlter *pConditionalOrderStateAlter, int nRequestID) = 0;
+
+ ///ѡ
+ virtual int ReqSelectConditionalOrder(CKSConditionalOrderSelect *pConditionalOrderSelect, int nRequestID) = 0;
+
+ ///ֹֹӯ¼
+ virtual int ReqInsertProfitAndLossOrder(CKSProfitAndLossOrderInsert *pProfitAndLossOrderInsert, int nRequestID) = 0;
+
+ ///ֹֹӯ
+ virtual int ReqModifyProfitAndLossOrder(CKSProfitAndLossOrderModify *pProfitAndLossOrderModify, int nRequestID) = 0;
+
+ ///ֹֹӯɾ
+ virtual int ReqRemoveProfitAndLossOrder(CKSProfitAndLossOrderRemove *pProfitAndLossOrderRemove, int nRequestID) = 0;
+
+ ///ֹֹӯѯ
+ virtual int ReqQueryProfitAndLossOrder(CKSProfitAndLossOrderQuery *pProfitAndLossOrderQuery, int nRequestID) = 0;
+
+ protected:
+ ~CKSCosApi(){};
+ };
+
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSMdApiEx.h b/include/Kingstar/IncEx/KSMdApiEx.h
new file mode 100644
index 0000000..deae2f8
--- /dev/null
+++ b/include/Kingstar/IncEx/KSMdApiEx.h
@@ -0,0 +1,173 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSMdApiEx.h
+///@brief ˿ͻ˽ӿ
+/////////////////////////////////////////////////////////////////////////
+
+#if !defined(KINSTARAPI_FTDCMDAPI_H)
+#define KINSTARAPI_FTDCMDAPI_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiStructEx.h"
+#include "KSVocApiDataType.h"
+
+#if defined(ISLIB) && defined(WIN32)&& !defined(KSMDAPI_STATIC_LIB)
+#ifdef LIB_MD_API_EXPORT
+#define MD_API_EXPORT __declspec(dllexport)
+#else
+#define MD_API_EXPORT __declspec(dllimport)
+#endif
+#else
+#ifdef WIN32
+#define MD_API_EXPORT
+#else
+#define MD_API_EXPORT __attribute__((visibility("default")))
+#endif
+#endif
+
+namespace KingstarAPI
+{
+
+ class CThostFtdcMdSpi
+ {
+ public:
+ ///ͻ뽻̨ͨʱδ¼ǰ÷á
+ virtual void OnFrontConnected(){};
+
+ ///ͻ뽻̨ͨӶϿʱ÷áAPIԶӣͻ˿ɲ
+ ///@param nReason ԭ
+ /// 0x1001 ʧ
+ /// 0x1002 дʧ
+ /// 0x2001 ʱ
+ /// 0x2002 ʧ
+ /// 0x2003 յ
+ virtual void OnFrontDisconnected(int nReason){};
+
+ ///ʱ档ʱδյʱ÷á
+ ///@param nTimeLapse ϴνձĵʱ
+ virtual void OnHeartBeatWarning(int nTimeLapse){};
+
+
+ ///¼Ӧ
+ virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///dzӦ
+ virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ȡӦ
+ virtual void OnRspUnSubMarketData(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ȡѯӦ
+ virtual void OnRspUnSubForQuoteRsp(CThostFtdcSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///֪ͨ
+ virtual void OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData) {};
+
+ ///ѯ֪ͨ
+ virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {};
+ };
+
+ class MD_API_EXPORT CThostFtdcMdApi
+ {
+ public:
+ ///MdApi
+ ///@param pszFlowPath ϢļĿ¼ĬΪǰĿ¼
+ ///@return UserApi
+ ///modify for udp marketdata
+ static CThostFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "", const bool bIsUsingUdp=false, const bool bIsMulticast=false);
+
+ ///ȡAPIİ汾Ϣ
+ ///@retrun ȡİ汾
+ static const char *GetApiVersion();
+
+ ///ɾӿڶ
+ ///@remark ʹñӿڶʱ,øúɾӿڶ
+ virtual void Release() = 0;
+
+ ///ʼ
+ ///@remark ʼл,ֻеú,ӿڲſʼ
+ virtual void Init() = 0;
+
+ ///ȴӿ߳̽
+ ///@return ߳˳
+ virtual int Join() = 0;
+
+ ///ȡǰ
+ ///@retrun ȡĽ
+ ///@remark ֻе¼ɹ,ܵõȷĽ
+ virtual const char *GetTradingDay() = 0;
+
+ ///עǰûַ
+ ///@param pszFrontAddressǰûַ
+ ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:17001
+ ///@remark tcpЭ飬127.0.0.1ַ17001˿ںš
+ virtual void RegisterFront(char *pszFrontAddress) = 0;
+
+ ///עַַ
+ ///@param pszNsAddressַַ
+ ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:12001
+ ///@remark tcpЭ飬127.0.0.1ַ12001˿ںš
+ ///@remark RegisterNameServerRegisterFront
+ virtual void RegisterNameServer(char *pszNsAddress) = 0;
+
+ ///עַûϢ
+ ///@param pFensUserInfoûϢ
+ virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0;
+
+ ///עصӿ
+ ///@param pSpi Իصӿʵ
+ virtual void RegisterSpi(CThostFtdcMdSpi *pSpi) = 0;
+
+ ///顣
+ ///@param ppInstrumentID ԼID
+ ///@param nCount Ҫ/˶ĺԼ
+ ///@remark
+ virtual int SubscribeMarketData(char *ppInstrumentID[], int nCount) = 0;
+
+ ///˶顣
+ ///@param ppInstrumentID ԼID
+ ///@param nCount Ҫ/˶ĺԼ
+ ///@remark
+ virtual int UnSubscribeMarketData(char *ppInstrumentID[], int nCount) = 0;
+
+ ///ѯۡ
+ ///@param ppInstrumentID ԼID
+ ///@param nCount Ҫ/˶ĺԼ
+ ///@remark
+ virtual int SubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0;
+
+ ///˶ѯۡ
+ ///@param ppInstrumentID ԼID
+ ///@param nCount Ҫ/˶ĺԼ
+ ///@remark
+ virtual int UnSubscribeForQuoteRsp(char *ppInstrumentID[], int nCount) = 0;
+
+ ///û¼
+ virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0;
+
+ ///dz
+ virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0;
+
+ ///չAPIʵ
+ virtual void * LoadExtMdApi(void *pSpi, KS_EXTAPI_TYPE nExtApiType) = 0;
+
+ protected:
+ ~CThostFtdcMdApi(){};
+ };
+
+} // end of namespace KingstarAPI
+
+#endif
diff --git a/include/Kingstar/IncEx/KSOptionApi.h b/include/Kingstar/IncEx/KSOptionApi.h
new file mode 100644
index 0000000..c40b7eb
--- /dev/null
+++ b/include/Kingstar/IncEx/KSOptionApi.h
@@ -0,0 +1,140 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSOptionApi.h
+///@brief ˿ͻȨӿ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSOPTIONAPI_H_INCLUDED__
+#define __KSOPTIONAPI_H_INCLUDED__
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSVocApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32) && !defined(KSTRADEAPI_STATIC_LIB)
+#ifdef LIB_TRADER_API_EXPORT
+#define TRADER_OPTIONAPI_EXPORT __declspec(dllexport)
+#else
+#define TRADER_OPTIONAPI_EXPORT __declspec(dllimport)
+#endif
+#else
+#ifdef WIN32
+#define TRADER_OPTIONAPI_EXPORT
+#else
+#define TRADER_OPTIONAPI_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif
+
+namespace KingstarAPI
+{
+
+ class CKSOptionSpi
+ {
+ public:
+ ///ѯָָֻ
+ virtual void OnRspQryIndexPrice(CKSIndexPriceField *pIndexPrice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѯָָֻ
+ virtual void OnRspQryOptionInstrGuard(CKSOptionInstrGuardField *pOptionInstrGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѯӦ
+ virtual void OnRspQryExecOrderVolume(CKSExecOrderVolumeField *pExecOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѯȨָϢӦ
+ virtual void OnRspQryStockOptionAssignment(CKSStockOptionAssignmentField *pStockOptionAssignment, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͻӦ
+ virtual void OnRspQryInvestorTradeLevel(CKSInvestorTradeLevelField *pInvestorTradeLevel, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryPurchaseLimitAmt(CKSPurchaseLimitAmtField *pPurchaseLimitAmt, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯֶӦ
+ virtual void OnRspQryPositionLimitVol(CKSPositionLimitVolField *pPositionLimitVol, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯʷӦ
+ virtual void OnRspQryHistoryOrder(CKSHistoryOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯʷɽӦ
+ virtual void OnRspQryHistoryTrade(CKSHistoryTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯʷȨָϸӦ
+ virtual void OnRspQryStockOptionHistoryAssignment(CKSHistoryAssignmentField *pHistoryAssignment, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯȨϸӦ
+ virtual void OnRspQryStockOptionDelivDetail(CKSSODelivDetailField *pSODelivDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ԶȨִвӦ
+ virtual void OnRspAutoExecOrderAction(CKSAutoExecOrderActionField *pAutoExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///¼Ӧ
+ virtual void OnRspCombActionInsert(CKSInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯϳֲϸӦ
+ virtual void OnRspQryInvestorCombinePosition(CKSInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ɿϿɲӦ
+ virtual void OnRspQryCombActionVolume(CKSCombActionVolumeField *pCombActionVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ϲί֪ͨ
+ virtual void OnRtnCombAction(CKSCombActionField *pCombAction) {};
+ };
+
+ class TRADER_OPTIONAPI_EXPORT CKSOptionApi
+ {
+ public:
+ ///ѯָָֻ
+ virtual int ReqQryIndexPrice(CKSQryIndexPriceField *pIndexPrice, int nRequestID) = 0;
+
+ ///ѯȨԼϵ
+ virtual int ReqQryOptionInstrGuard(CKSQryOptionInstrGuardField *pQryOptionInstrGuard, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryExecOrderVolume(CKSQryExecOrderVolumeField *pQryExecOrderVolume, int nRequestID) = 0;
+
+ ///ѯȨָϢ
+ virtual int ReqQryStockOptionAssignment(CKSQryStockOptionAssignmentField *pQryStockOptionAssignment, int nRequestID) = 0;
+
+ ///ѯͻ
+ virtual int ReqQryInvestorTradeLevel(CKSQryInvestorTradeLevelField *pQryInvestorTradeLevel, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryPurchaseLimitAmt(CKSQryPurchaseLimitAmtField *pQryPurchaseLimitAmt, int nRequestID) = 0;
+
+ ///ѯֶ
+ virtual int ReqQryPositionLimitVol(CKSQryPositionLimitVolField *pQryPositionLimitVol, int nRequestID) = 0;
+
+ ///ѯʷ
+ virtual int ReqQryHistoryOrder(CKSQryHistoryOrderField *pQryHistoryOrder, int nRequestID) = 0;
+
+ ///ѯʷɽ
+ virtual int ReqQryHistoryTrade(CKSQryHistoryTradeField *pQryHistoryTrade, int nRequestID) = 0;
+
+ ///ѯʷȨָϸ
+ virtual int ReqQryStockOptionHistoryAssignment(CKSQryHistoryAssignmentField *pQryHistoryAssignment, int nRequestID) = 0;
+
+ ///ѯȨϸ
+ virtual int ReqQryStockOptionDelivDetail(CKSQrySODelivDetailField *pQrySODelivDetail, int nRequestID) = 0;
+
+ ///ԶȨִв
+ virtual int ReqAutoExecOrderAction(CKSAutoExecOrderActionField *pAutoExecOrderAction, int nRequestID) = 0;
+
+ ///ϲί
+ virtual int ReqCombActionInsert(CKSInputCombActionField *pInputCombAction, int nRequestID) = 0;
+
+ ///ѯϳֲϸ
+ virtual int ReqQryInvestorCombinePosition(CKSQryInvestorPositionCombineDetailField *pQryInvestorCombinePosition, int nRequestID) = 0;
+
+ ///ѯɿϿɲ
+ virtual int ReqQryCombActionVolume(CKSQryCombActionVolumeField *pQryCombActionVolume, int nRequestID) = 0;
+
+ protected:
+ ~CKSOptionApi(){};
+ };
+
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSPrdApi.h b/include/Kingstar/IncEx/KSPrdApi.h
new file mode 100644
index 0000000..3db5e8c
--- /dev/null
+++ b/include/Kingstar/IncEx/KSPrdApi.h
@@ -0,0 +1,53 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSPrdApi.h
+///@brief ˿ͻҵӿ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSPRDAPI_H_INCLUDED__
+#define __KSPRDAPI_H_INCLUDED__
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiStructEx.h"
+#include "KSVocApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32) && !defined(KSTRADEAPI_STATIC_LIB)
+
+#ifdef LIB_TRADER_API_EXPORT
+#define TRADER_PRDAPI_EXPORT __declspec(dllexport)
+#else
+#define TRADER_PRDAPI_EXPORT __declspec(dllimport)
+#endif
+#else
+#ifdef WIN32
+#define TRADER_PRDAPI_EXPORT
+#else
+#define TRADER_PRDAPI_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif
+
+namespace KingstarAPI
+{
+ class CKSPrdSpi
+ {
+ public:
+ ///ҵӦ
+ virtual void OnRspSubPrimeData(CKSPrimeDataBusinessField *pPrimeDataBusiness, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+ };
+
+ class TRADER_PRDAPI_EXPORT CKSPrdApi
+ {
+ ///ҵ
+ virtual int ReqSubPrimeData(CKSSubPrimeDataBusinessField *pSubPrimeDataBusiness, int nRequestID) = 0;
+
+ protected:
+ ~CKSPrdApi(){};
+ };
+
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSTraderApiEx.h b/include/Kingstar/IncEx/KSTraderApiEx.h
new file mode 100644
index 0000000..2e02643
--- /dev/null
+++ b/include/Kingstar/IncEx/KSTraderApiEx.h
@@ -0,0 +1,668 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file ThostFtdcTraderApi.h
+///@brief ˿ͻ˽ӿ
+/////////////////////////////////////////////////////////////////////////
+
+#if !defined(KINSTARAPI_FTDCTRADERAPI_H)
+#define KINSTARAPI_FTDCTRADERAPI_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiStructEx.h"
+#include "KSVocApiDataType.h"
+
+#if defined(ISLIB) && defined(WIN32) && !defined(KSTRADEAPI_STATIC_LIB)
+
+#ifdef LIB_TRADER_API_EXPORT
+#define TRADER_API_EXPORT __declspec(dllexport)
+#else
+#define TRADER_API_EXPORT __declspec(dllimport)
+#endif
+
+#else
+#ifdef WIN32
+#define TRADER_API_EXPORT
+#else
+#define TRADER_API_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif
+
+namespace KingstarAPI
+{
+
+ class CThostFtdcTraderSpi
+ {
+ public:
+ ///ͻ뽻̨ͨʱδ¼ǰ÷á
+ virtual void OnFrontConnected(){};
+
+ ///ͻ뽻̨ͨӶϿʱ÷áAPIԶӣͻ˿ɲ
+ ///@param nReason ԭ
+ /// 0x1001 ʧ
+ /// 0x1002 дʧ
+ /// 0x2001 ʱ
+ /// 0x2002 ʧ
+ /// 0x2003 յ
+ virtual void OnFrontDisconnected(int nReason){};
+
+ ///ʱ档ʱδյʱ÷á
+ ///@param nTimeLapse ϴνձĵʱ
+ virtual void OnHeartBeatWarning(int nTimeLapse){};
+
+ ///ͻ֤Ӧ
+ virtual void OnRspAuthenticate(CThostFtdcRspAuthenticateField *pRspAuthenticateField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+
+ ///¼Ӧ
+ virtual void OnRspUserLogin(CThostFtdcRspUserLoginField *pRspUserLogin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///dzӦ
+ virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ûӦ
+ virtual void OnRspUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ʽ˻Ӧ
+ virtual void OnRspTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///¼Ӧ
+ virtual void OnRspOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ԥ¼Ӧ
+ virtual void OnRspParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ԥ¼Ӧ
+ virtual void OnRspParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ͷ߽ȷӦ
+ virtual void OnRspSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ɾԤӦ
+ virtual void OnRspRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ɾԤӦ
+ virtual void OnRspRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ִ¼Ӧ
+ virtual void OnRspExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ִӦ
+ virtual void OnRspExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ¼Ӧ
+ virtual void OnRspForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///¼Ӧ
+ virtual void OnRspQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///۲Ӧ
+ virtual void OnRspQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspLockInsert(CThostFtdcInputLockField *pInputLock, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///¼Ӧ
+ virtual void OnRspCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryOrder(CThostFtdcOrderField *pOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯɽӦ
+ virtual void OnRspQryTrade(CThostFtdcTradeField *pTrade, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶֲ߳Ӧ
+ virtual void OnRspQryInvestorPosition(CThostFtdcInvestorPositionField *pInvestorPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯʽ˻Ӧ
+ virtual void OnRspQryTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶӦ
+ virtual void OnRspQryInvestor(CThostFtdcInvestorField *pInvestor, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯױӦ
+ virtual void OnRspQryTradingCode(CThostFtdcTradingCodeField *pTradingCode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼ֤Ӧ
+ virtual void OnRspQryInstrumentMarginRate(CThostFtdcInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼӦ
+ virtual void OnRspQryInstrumentCommissionRate(CThostFtdcInstrumentCommissionRateField *pInstrumentCommissionRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryExchange(CThostFtdcExchangeField *pExchange, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯƷӦ
+ virtual void OnRspQryProduct(CThostFtdcProductField *pProduct, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼӦ
+ virtual void OnRspQryInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMarketData, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶ߽Ӧ
+ virtual void OnRspQrySettlementInfo(CThostFtdcSettlementInfoField *pSettlementInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯתӦ
+ virtual void OnRspQryTransferBank(CThostFtdcTransferBankField *pTransferBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶֲ߳ϸӦ
+ virtual void OnRspQryInvestorPositionDetail(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͻ֪ͨӦ
+ virtual void OnRspQryNotice(CThostFtdcNoticeField *pNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯϢȷӦ
+ virtual void OnRspQrySettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶֲ߳ϸӦ
+ virtual void OnRspQryInvestorPositionCombineDetail(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ֤ϵͳ˾ʽ˻ԿӦ
+ virtual void OnRspQryCFMMCTradingAccountKey(CThostFtdcCFMMCTradingAccountKeyField *pCFMMCTradingAccountKey, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯֵ۵ϢӦ
+ virtual void OnRspQryEWarrantOffset(CThostFtdcEWarrantOffsetField *pEWarrantOffset, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯͶƷ/Ʒֱ֤Ӧ
+ virtual void OnRspQryInvestorProductGroupMargin(CThostFtdcInvestorProductGroupMarginField *pInvestorProductGroupMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ֤Ӧ
+ virtual void OnRspQryExchangeMarginRate(CThostFtdcExchangeMarginRateField *pExchangeMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ֤Ӧ
+ virtual void OnRspQryExchangeMarginRateAdjust(CThostFtdcExchangeMarginRateAdjustField *pExchangeMarginRateAdjust, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryExchangeRate(CThostFtdcExchangeRateField *pExchangeRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԱȨӦ
+ virtual void OnRspQrySecAgentACIDMap(CThostFtdcSecAgentACIDMapField *pSecAgentACIDMap, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯƷۻ
+ virtual void OnRspQryProductExchRate(CThostFtdcProductExchRateField *pProductExchRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯƷ
+ virtual void OnRspQryProductGroup(CThostFtdcProductGroupField *pProductGroup, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryInstrumentOrderCommRate(CThostFtdcInstrumentOrderCommRateField *pInstrumentOrderCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯȨ׳ɱӦ
+ virtual void OnRspQryOptionInstrTradeCost(CThostFtdcOptionInstrTradeCostField *pOptionInstrTradeCost, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯȨԼӦ
+ virtual void OnRspQryOptionInstrCommRate(CThostFtdcOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯִӦ
+ virtual void OnRspQryExecOrder(CThostFtdcExecOrderField *pExecOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯѯӦ
+ virtual void OnRspQryForQuote(CThostFtdcForQuoteField *pForQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryQuote(CThostFtdcQuoteField *pQuote, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryLock(CThostFtdcLockField *pLock, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ֤ȯλӦ
+ virtual void OnRspQryLockPosition(CThostFtdcLockPositionField *pLockPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯϺԼȫϵӦ
+ virtual void OnRspQryCombInstrumentGuard(CThostFtdcCombInstrumentGuardField *pCombInstrumentGuard, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯӦ
+ virtual void OnRspQryCombAction(CThostFtdcCombActionField *pCombAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯתˮӦ
+ virtual void OnRspQryTransferSerial(CThostFtdcTransferSerialField *pTransferSerial, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯǩԼϵӦ
+ virtual void OnRspQryAccountregister(CThostFtdcAccountregisterField *pAccountregister, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspError(CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///֪ͨ
+ virtual void OnRtnOrder(CThostFtdcOrderField *pOrder) {};
+
+ ///ɽ֪ͨ
+ virtual void OnRtnTrade(CThostFtdcTradeField *pTrade) {};
+
+ ///¼ر
+ virtual void OnErrRtnOrderInsert(CThostFtdcInputOrderField *pInputOrder, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ر
+ virtual void OnErrRtnOrderAction(CThostFtdcOrderActionField *pOrderAction, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///Լ״̬֪ͨ
+ virtual void OnRtnInstrumentStatus(CThostFtdcInstrumentStatusField *pInstrumentStatus) {};
+
+ ///֪ͨ
+ virtual void OnRtnTradingNotice(CThostFtdcTradingNoticeInfoField *pTradingNoticeInfo) {};
+
+ ///ʾУ
+ virtual void OnRtnErrorConditionalOrder(CThostFtdcErrorConditionalOrderField *pErrorConditionalOrder) {};
+
+ ///ִ֪ͨ
+ virtual void OnRtnExecOrder(CThostFtdcExecOrderField *pExecOrder) {};
+
+ ///ִ¼ر
+ virtual void OnErrRtnExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ִر
+ virtual void OnErrRtnExecOrderAction(CThostFtdcExecOrderActionField *pExecOrderAction, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ѯ¼ر
+ virtual void OnErrRtnForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///֪ͨ
+ virtual void OnRtnQuote(CThostFtdcQuoteField *pQuote) {};
+
+ ///¼ر
+ virtual void OnErrRtnQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///۲ر
+ virtual void OnErrRtnQuoteAction(CThostFtdcQuoteActionField *pQuoteAction, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ѯ֪ͨ
+ virtual void OnRtnForQuoteRsp(CThostFtdcForQuoteRspField *pForQuoteRsp) {};
+
+ ///֤û
+ virtual void OnRtnCFMMCTradingAccountToken(CThostFtdcCFMMCTradingAccountTokenField *pCFMMCTradingAccountToken) {};
+
+ ///֪ͨ
+ virtual void OnRtnLock(CThostFtdcLockField *pLock) {};
+
+ ///֪ͨ
+ virtual void OnErrRtnLockInsert(CThostFtdcInputLockField *pInputLock, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///֪ͨ
+ virtual void OnRtnCombAction(CThostFtdcCombActionField *pCombAction) {};
+
+ ///¼ر
+ virtual void OnErrRtnCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ѯǩԼӦ
+ virtual void OnRspQryContractBank(CThostFtdcContractBankField *pContractBank, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԤӦ
+ virtual void OnRspQryParkedOrder(CThostFtdcParkedOrderField *pParkedOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԤӦ
+ virtual void OnRspQryParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ֪ͨӦ
+ virtual void OnRspQryTradingNotice(CThostFtdcTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ˾ײӦ
+ virtual void OnRspQryBrokerTradingParams(CThostFtdcBrokerTradingParamsField *pBrokerTradingParams, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ˾㷨Ӧ
+ virtual void OnRspQryBrokerTradingAlgos(CThostFtdcBrokerTradingAlgosField *pBrokerTradingAlgos, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯû
+ virtual void OnRspQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///зʽתڻ֪ͨ
+ virtual void OnRtnFromBankToFutureByBank(CThostFtdcRspTransferField *pRspTransfer) {};
+
+ ///зڻʽת֪ͨ
+ virtual void OnRtnFromFutureToBankByBank(CThostFtdcRspTransferField *pRspTransfer) {};
+
+ ///зתڻ֪ͨ
+ virtual void OnRtnRepealFromBankToFutureByBank(CThostFtdcRspRepealField *pRspRepeal) {};
+
+ ///зڻת֪ͨ
+ virtual void OnRtnRepealFromFutureToBankByBank(CThostFtdcRspRepealField *pRspRepeal) {};
+
+ ///ڻʽתڻ֪ͨ
+ virtual void OnRtnFromBankToFutureByFuture(CThostFtdcRspTransferField *pRspTransfer) {};
+
+ ///ڻڻʽת֪ͨ
+ virtual void OnRtnFromFutureToBankByFuture(CThostFtdcRspTransferField *pRspTransfer) {};
+
+ ///ϵͳʱڻֹתڻдϺ̷ص֪ͨ
+ virtual void OnRtnRepealFromBankToFutureByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {};
+
+ ///ϵͳʱڻֹڻתдϺ̷ص֪ͨ
+ virtual void OnRtnRepealFromFutureToBankByFutureManual(CThostFtdcRspRepealField *pRspRepeal) {};
+
+ ///ڻѯ֪ͨ
+ virtual void OnRtnQueryBankBalanceByFuture(CThostFtdcNotifyQueryAccountField *pNotifyQueryAccount) {};
+
+ ///ڻʽתڻر
+ virtual void OnErrRtnBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ڻڻʽתдر
+ virtual void OnErrRtnFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ϵͳʱڻֹתڻر
+ virtual void OnErrRtnRepealBankToFutureByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ϵͳʱڻֹڻתдر
+ virtual void OnErrRtnRepealFutureToBankByFutureManual(CThostFtdcReqRepealField *pReqRepeal, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ڻѯر
+ virtual void OnErrRtnQueryBankBalanceByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo) {};
+
+ ///ڻתڻдϺ̷ص֪ͨ
+ virtual void OnRtnRepealFromBankToFutureByFuture(CThostFtdcRspRepealField *pRspRepeal) {};
+
+ ///ڻڻתдϺ̷ص֪ͨ
+ virtual void OnRtnRepealFromFutureToBankByFuture(CThostFtdcRspRepealField *pRspRepeal) {};
+
+ ///ڻʽתڻӦ
+ virtual void OnRspFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ڻڻʽתӦ
+ virtual void OnRspFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ڻѯӦ
+ virtual void OnRspQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///зڿ֪ͨ
+ virtual void OnRtnOpenAccountByBank(CThostFtdcOpenAccountField *pOpenAccount) {};
+
+ ///з֪ͨ
+ virtual void OnRtnCancelAccountByBank(CThostFtdcCancelAccountField *pCancelAccount) {};
+
+ ///з˺֪ͨ
+ virtual void OnRtnChangeAccountByBank(CThostFtdcChangeAccountField *pChangeAccount) {};
+ };
+
+ class TRADER_API_EXPORT CThostFtdcTraderApi
+ {
+ public:
+ ///TraderApi
+ ///@param pszFlowPath ϢļĿ¼ĬΪǰĿ¼
+ ///@return UserApi
+ static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = "");
+
+ ///ȡAPIİ汾Ϣ
+ ///@retrun ȡİ汾
+ static const char *GetApiVersion();
+
+ ///ɾӿڶ
+ ///@remark ʹñӿڶʱ,øúɾӿڶ
+ virtual void Release() = 0;
+
+ ///ʼ
+ ///@remark ʼл,ֻеú,ӿڲſʼ
+ virtual void Init() = 0;
+
+ ///ȴӿ߳̽
+ ///@return ߳˳
+ virtual int Join() = 0;
+
+ ///ȡǰ
+ ///@retrun ȡĽ
+ ///@remark ֻе¼ɹ,ܵõȷĽ
+ virtual const char *GetTradingDay() = 0;
+
+ ///עǰûַ
+ ///@param pszFrontAddressǰûַ
+ ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:17001
+ ///@remark tcpЭ飬127.0.0.1ַ17001˿ںš
+ virtual void RegisterFront(char *pszFrontAddress) = 0;
+
+ ///עַַ
+ ///@param pszNsAddressַַ
+ ///@remark ַĸʽΪprotocol://ipaddress:port磺tcp://127.0.0.1:12001
+ ///@remark tcpЭ飬127.0.0.1ַ12001˿ںš
+ ///@remark RegisterNameServerRegisterFront
+ virtual void RegisterNameServer(char *pszNsAddress) = 0;
+
+ ///עַûϢ
+ ///@param pFensUserInfoûϢ
+ virtual void RegisterFensUserInfo(CThostFtdcFensUserInfoField * pFensUserInfo) = 0;
+
+ ///עصӿ
+ ///@param pSpi Իصӿʵ
+ virtual void RegisterSpi(CThostFtdcTraderSpi *pSpi) = 0;
+
+ ///˽
+ ///@param nResumeType ˽شʽ
+ /// THOST_TERT_RESTART:ӱտʼش
+ /// THOST_TERT_RESUME:ϴյ
+ /// THOST_TERT_QUICK:ֻ͵¼˽
+ ///@remark ÷ҪInitǰáյ˽ݡ
+ virtual void SubscribePrivateTopic(THOST_TE_RESUME_TYPE nResumeType) = 0;
+
+ ///Ĺ
+ ///@param nResumeType شʽ
+ /// THOST_TERT_RESTART:ӱտʼش
+ /// THOST_TERT_RESUME:ϴյ
+ /// THOST_TERT_QUICK:ֻ͵¼
+ ///@remark ÷ҪInitǰáյݡ
+ virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0;
+
+ ///ͻ֤
+ virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0;
+
+ ///û¼
+ virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0;
+
+ ///dz
+ virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0;
+
+ ///û
+ virtual int ReqUserPasswordUpdate(CThostFtdcUserPasswordUpdateField *pUserPasswordUpdate, int nRequestID) = 0;
+
+ ///ʽ˻
+ virtual int ReqTradingAccountPasswordUpdate(CThostFtdcTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, int nRequestID) = 0;
+
+ ///¼
+ virtual int ReqOrderInsert(CThostFtdcInputOrderField *pInputOrder, int nRequestID) = 0;
+
+ ///Ԥ¼
+ virtual int ReqParkedOrderInsert(CThostFtdcParkedOrderField *pParkedOrder, int nRequestID) = 0;
+
+ ///Ԥ¼
+ virtual int ReqParkedOrderAction(CThostFtdcParkedOrderActionField *pParkedOrderAction, int nRequestID) = 0;
+
+ ///
+ virtual int ReqOrderAction(CThostFtdcInputOrderActionField *pInputOrderAction, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQueryMaxOrderVolume(CThostFtdcQueryMaxOrderVolumeField *pQueryMaxOrderVolume, int nRequestID) = 0;
+
+ ///Ͷ߽ȷ
+ virtual int ReqSettlementInfoConfirm(CThostFtdcSettlementInfoConfirmField *pSettlementInfoConfirm, int nRequestID) = 0;
+
+ ///ɾԤ
+ virtual int ReqRemoveParkedOrder(CThostFtdcRemoveParkedOrderField *pRemoveParkedOrder, int nRequestID) = 0;
+
+ ///ɾԤ
+ virtual int ReqRemoveParkedOrderAction(CThostFtdcRemoveParkedOrderActionField *pRemoveParkedOrderAction, int nRequestID) = 0;
+
+ ///ִ¼
+ virtual int ReqExecOrderInsert(CThostFtdcInputExecOrderField *pInputExecOrder, int nRequestID) = 0;
+
+ ///ִ
+ virtual int ReqExecOrderAction(CThostFtdcInputExecOrderActionField *pInputExecOrderAction, int nRequestID) = 0;
+
+ ///ѯ¼
+ virtual int ReqForQuoteInsert(CThostFtdcInputForQuoteField *pInputForQuote, int nRequestID) = 0;
+
+ ///¼
+ virtual int ReqQuoteInsert(CThostFtdcInputQuoteField *pInputQuote, int nRequestID) = 0;
+
+ ///۲
+ virtual int ReqQuoteAction(CThostFtdcInputQuoteActionField *pInputQuoteAction, int nRequestID) = 0;
+
+ ///
+ virtual int ReqLockInsert(CThostFtdcInputLockField *pInputLock, int nRequestID) = 0;
+
+ ///¼
+ virtual int ReqCombActionInsert(CThostFtdcInputCombActionField *pInputCombAction, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryOrder(CThostFtdcQryOrderField *pQryOrder, int nRequestID) = 0;
+
+ ///ѯɽ
+ virtual int ReqQryTrade(CThostFtdcQryTradeField *pQryTrade, int nRequestID) = 0;
+
+ ///ѯͶֲ߳
+ virtual int ReqQryInvestorPosition(CThostFtdcQryInvestorPositionField *pQryInvestorPosition, int nRequestID) = 0;
+
+ ///ѯʽ˻
+ virtual int ReqQryTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0;
+
+ ///ѯͶ
+ virtual int ReqQryInvestor(CThostFtdcQryInvestorField *pQryInvestor, int nRequestID) = 0;
+
+ ///ѯױ
+ virtual int ReqQryTradingCode(CThostFtdcQryTradingCodeField *pQryTradingCode, int nRequestID) = 0;
+
+ ///ѯԼ֤
+ virtual int ReqQryInstrumentMarginRate(CThostFtdcQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0;
+
+ ///ѯԼ
+ virtual int ReqQryInstrumentCommissionRate(CThostFtdcQryInstrumentCommissionRateField *pQryInstrumentCommissionRate, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryExchange(CThostFtdcQryExchangeField *pQryExchange, int nRequestID) = 0;
+
+ ///ѯƷ
+ virtual int ReqQryProduct(CThostFtdcQryProductField *pQryProduct, int nRequestID) = 0;
+
+ ///ѯԼ
+ virtual int ReqQryInstrument(CThostFtdcQryInstrumentField *pQryInstrument, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryDepthMarketData(CThostFtdcQryDepthMarketDataField *pQryDepthMarketData, int nRequestID) = 0;
+
+ ///ѯͶ߽
+ virtual int ReqQrySettlementInfo(CThostFtdcQrySettlementInfoField *pQrySettlementInfo, int nRequestID) = 0;
+
+ ///ѯת
+ virtual int ReqQryTransferBank(CThostFtdcQryTransferBankField *pQryTransferBank, int nRequestID) = 0;
+
+ ///ѯͶֲ߳ϸ
+ virtual int ReqQryInvestorPositionDetail(CThostFtdcQryInvestorPositionDetailField *pQryInvestorPositionDetail, int nRequestID) = 0;
+
+ ///ѯͻ֪ͨ
+ virtual int ReqQryNotice(CThostFtdcQryNoticeField *pQryNotice, int nRequestID) = 0;
+
+ ///ѯϢȷ
+ virtual int ReqQrySettlementInfoConfirm(CThostFtdcQrySettlementInfoConfirmField *pQrySettlementInfoConfirm, int nRequestID) = 0;
+
+ ///ѯͶֲ߳ϸ
+ virtual int ReqQryInvestorPositionCombineDetail(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorPositionCombineDetail, int nRequestID) = 0;
+
+ ///ѯ֤ϵͳ˾ʽ˻Կ
+ virtual int ReqQryCFMMCTradingAccountKey(CThostFtdcQryCFMMCTradingAccountKeyField *pQryCFMMCTradingAccountKey, int nRequestID) = 0;
+
+ ///ѯֵ۵Ϣ
+ virtual int ReqQryEWarrantOffset(CThostFtdcQryEWarrantOffsetField *pQryEWarrantOffset, int nRequestID) = 0;
+
+ ///ѯͶƷ/Ʒֱ֤
+ virtual int ReqQryInvestorProductGroupMargin(CThostFtdcQryInvestorProductGroupMarginField *pQryInvestorProductGroupMargin, int nRequestID) = 0;
+
+ ///ѯ֤
+ virtual int ReqQryExchangeMarginRate(CThostFtdcQryExchangeMarginRateField *pQryExchangeMarginRate, int nRequestID) = 0;
+
+ ///ѯ֤
+ virtual int ReqQryExchangeMarginRateAdjust(CThostFtdcQryExchangeMarginRateAdjustField *pQryExchangeMarginRateAdjust, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryExchangeRate(CThostFtdcQryExchangeRateField *pQryExchangeRate, int nRequestID) = 0;
+
+ ///ѯԱȨ
+ virtual int ReqQrySecAgentACIDMap(CThostFtdcQrySecAgentACIDMapField *pQrySecAgentACIDMap, int nRequestID) = 0;
+
+ ///ѯƷۻ
+ virtual int ReqQryProductExchRate(CThostFtdcQryProductExchRateField *pQryProductExchRate, int nRequestID) = 0;
+
+ ///ѯƷ
+ virtual int ReqQryProductGroup(CThostFtdcQryProductGroupField *pQryProductGroup, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0;
+
+ ///ѯȨ׳ɱ
+ virtual int ReqQryOptionInstrTradeCost(CThostFtdcQryOptionInstrTradeCostField *pQryOptionInstrTradeCost, int nRequestID) = 0;
+
+ ///ѯȨԼ
+ virtual int ReqQryOptionInstrCommRate(CThostFtdcQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0;
+
+ ///ѯִ
+ virtual int ReqQryExecOrder(CThostFtdcQryExecOrderField *pQryExecOrder, int nRequestID) = 0;
+
+ ///ѯѯ
+ virtual int ReqQryForQuote(CThostFtdcQryForQuoteField *pQryForQuote, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryQuote(CThostFtdcQryQuoteField *pQryQuote, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryLock(CThostFtdcQryLockField *pQryLock, int nRequestID) = 0;
+
+ ///ѯ֤ȯλ
+ virtual int ReqQryLockPosition(CThostFtdcQryLockPositionField *pQryLockPosition, int nRequestID) = 0;
+
+ ///ѯϺԼȫϵ
+ virtual int ReqQryCombInstrumentGuard(CThostFtdcQryCombInstrumentGuardField *pQryCombInstrumentGuard, int nRequestID) = 0;
+
+ ///ѯ
+ virtual int ReqQryCombAction(CThostFtdcQryCombActionField *pQryCombAction, int nRequestID) = 0;
+
+ ///ѯתˮ
+ virtual int ReqQryTransferSerial(CThostFtdcQryTransferSerialField *pQryTransferSerial, int nRequestID) = 0;
+
+ ///ѯǩԼϵ
+ virtual int ReqQryAccountregister(CThostFtdcQryAccountregisterField *pQryAccountregister, int nRequestID) = 0;
+
+ ///ѯǩԼ
+ virtual int ReqQryContractBank(CThostFtdcQryContractBankField *pQryContractBank, int nRequestID) = 0;
+
+ ///ѯԤ
+ virtual int ReqQryParkedOrder(CThostFtdcQryParkedOrderField *pQryParkedOrder, int nRequestID) = 0;
+
+ ///ѯԤ
+ virtual int ReqQryParkedOrderAction(CThostFtdcQryParkedOrderActionField *pQryParkedOrderAction, int nRequestID) = 0;
+
+ ///ѯ֪ͨ
+ virtual int ReqQryTradingNotice(CThostFtdcQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0;
+
+ ///ѯ˾ײ
+ virtual int ReqQryBrokerTradingParams(CThostFtdcQryBrokerTradingParamsField *pQryBrokerTradingParams, int nRequestID) = 0;
+
+ ///ѯ˾㷨
+ virtual int ReqQryBrokerTradingAlgos(CThostFtdcQryBrokerTradingAlgosField *pQryBrokerTradingAlgos, int nRequestID) = 0;
+
+ ///ѯû
+ virtual int ReqQueryCFMMCTradingAccountToken(CThostFtdcQueryCFMMCTradingAccountTokenField *pQueryCFMMCTradingAccountToken, int nRequestID) = 0;
+
+ ///ڻʽתڻ
+ virtual int ReqFromBankToFutureByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0;
+
+ ///ڻڻʽת
+ virtual int ReqFromFutureToBankByFuture(CThostFtdcReqTransferField *pReqTransfer, int nRequestID) = 0;
+
+ ///ڻѯ
+ virtual int ReqQueryBankAccountMoneyByFuture(CThostFtdcReqQueryAccountField *pReqQueryAccount, int nRequestID) = 0;
+
+ ///չAPIʵ
+ virtual void * LoadExtApi(void *pSpi, KS_EXTAPI_TYPE nExtApiType) = 0;
+
+ protected:
+ ~CThostFtdcTraderApi(){};
+ };
+
+} // end of namespace KingstarAPI
+
+#endif
diff --git a/include/Kingstar/IncEx/KSUserApiDataTypeEx.h b/include/Kingstar/IncEx/KSUserApiDataTypeEx.h
new file mode 100644
index 0000000..a5c0138
--- /dev/null
+++ b/include/Kingstar/IncEx/KSUserApiDataTypeEx.h
@@ -0,0 +1,6420 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSUserApiDataTypeEx.h
+///@brief ˿ͻ˽ӿʹõҵ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef KINSTARAPI_FTDCDATATYPE_H
+ #define KINSTARAPI_FTDCDATATYPE_H
+
+namespace KingstarAPI
+{
+
+ enum THOST_TE_RESUME_TYPE
+ {
+ THOST_TERT_RESTART = 0,
+ THOST_TERT_RESUME,
+ THOST_TERT_QUICK
+ };
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTraderIDTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTraderIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorIDTypeһͶߴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvestorIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerIDTypeһ˾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBrokerIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerAbbrTypeһ˾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBrokerAbbrType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerNameTypeһ˾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBrokerNameType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeInstIDTypeһԼڽĴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcExchangeInstIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderRefTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrderRefType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParticipantIDTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcParticipantIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserIDTypeһû
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUserIDType[16];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPasswordTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPasswordType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientIDTypeһױ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClientIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentIDTypeһԼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInstrumentIDType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentCodeTypeһԼʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInstrumentCodeType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMarketIDTypeһг
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcMarketIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProductNameTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProductNameType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcExchangeIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcExchangeNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeAbbrTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcExchangeAbbrType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeFlagTypeһ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcExchangeFlagType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMacAddressTypeһMacַ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcMacAddressType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSystemIDTypeһϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSystemIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangePropertyTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_EXP_Normal '0'
+ ///ݳɽɱ
+ #define THOST_FTDC_EXP_GenOrderByTrade '1'
+
+ typedef char TThostFtdcExchangePropertyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDateType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTimeTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTimeType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLongTimeTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcLongTimeType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentNameTypeһԼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInstrumentNameType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettlementGroupIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSettlementGroupIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderSysIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrderSysIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeIDTypeһɽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTradeIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommandTypeTypeһDB
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCommandTypeType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIPAddressTypeһIPַ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcIPAddressType[16];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIPPortTypeһIP˿
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcIPPortType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProductInfoTypeһƷϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProductInfoType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProtocolInfoTypeһЭϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProtocolInfoType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBusinessUnitTypeһҵԪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBusinessUnitType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDepositSeqNoTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDepositSeqNoType[15];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIdentifiedCardNoTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcIdentifiedCardNoType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIdCardTypeTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ ///֯
+ #define THOST_FTDC_ICT_EID '0'
+ ///й֤
+ #define THOST_FTDC_ICT_IDCard '1'
+ ///֤
+ #define THOST_FTDC_ICT_OfficerIDCard '2'
+ ///֤
+ #define THOST_FTDC_ICT_PoliceIDCard '3'
+ ///ʿ֤
+ #define THOST_FTDC_ICT_SoldierIDCard '4'
+ ///ڲ
+ #define THOST_FTDC_ICT_HouseholdRegister '5'
+ ///
+ #define THOST_FTDC_ICT_Passport '6'
+ ///̨֤
+ #define THOST_FTDC_ICT_TaiwanCompatriotIDCard '7'
+ ///֤
+ #define THOST_FTDC_ICT_HomeComingCard '8'
+ ///Ӫҵִպ
+ #define THOST_FTDC_ICT_LicenseNo '9'
+ ///˰ǼǺ/˰ID
+ #define THOST_FTDC_ICT_TaxNo 'A'
+ ///۰ľڵ֤ͨ
+ #define THOST_FTDC_ICT_HMMainlandTravelPermit 'B'
+ ///̨½֤ͨ
+ #define THOST_FTDC_ICT_TwMainlandTravelPermit 'C'
+ ///
+ #define THOST_FTDC_ICT_DrivingLicense 'D'
+ ///籣ID
+ #define THOST_FTDC_ICT_SocialID 'F'
+ ///֤
+ #define THOST_FTDC_ICT_LocalID 'G'
+ ///ҵǼ֤
+ #define THOST_FTDC_ICT_BusinessRegistration 'H'
+ ///۰Ծ֤
+ #define THOST_FTDC_ICT_HKMCIDCard 'I'
+ ///п֤
+ #define THOST_FTDC_ICT_AccountsPermits 'J'
+ ///֤
+ #define THOST_FTDC_ICT_OtherCard 'x'
+
+ typedef char TThostFtdcIdCardTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderLocalIDTypeһر
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrderLocalIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserNameTypeһû
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUserNameType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPartyNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPartyNameType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcErrorMsgTypeһϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcErrorMsgType[256];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFieldNameTypeһֶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFieldNameType[2049];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFieldContentTypeһֶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFieldContentType[2049];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSystemNameTypeһϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSystemNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcContentTypeһϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcContentType[501];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorRangeTypeһͶ߷Χ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_IR_All '1'
+ ///Ͷ
+ #define THOST_FTDC_IR_Group '2'
+ ///һͶ
+ #define THOST_FTDC_IR_Single '3'
+
+ typedef char TThostFtdcInvestorRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDepartmentRangeTypeһͶ߷Χ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_DR_All '1'
+ ///ܹ֯
+ #define THOST_FTDC_DR_Group '2'
+ ///һͶ
+ #define THOST_FTDC_DR_Single '3'
+
+ typedef char TThostFtdcDepartmentRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDataSyncStatusTypeһͬ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δͬ
+ #define THOST_FTDC_DS_Asynchronous '1'
+ ///ͬ
+ #define THOST_FTDC_DS_Synchronizing '2'
+ ///ͬ
+ #define THOST_FTDC_DS_Synchronized '3'
+
+ typedef char TThostFtdcDataSyncStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerDataSyncStatusTypeһ˾ͬ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ͬ
+ #define THOST_FTDC_BDS_Synchronized '1'
+ ///ͬ
+ #define THOST_FTDC_BDS_Synchronizing '2'
+
+ typedef char TThostFtdcBrokerDataSyncStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeConnectStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ûκ
+ #define THOST_FTDC_ECS_NoConnection '1'
+ ///ѾԼѯ
+ #define THOST_FTDC_ECS_QryInstrumentSent '2'
+ ///ѾȡϢ
+ #define THOST_FTDC_ECS_GotInformation '9'
+
+ typedef char TThostFtdcExchangeConnectStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTraderConnectStatusTypeһԱ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ûκ
+ #define THOST_FTDC_TCS_NotConnected '1'
+ ///Ѿ
+ #define THOST_FTDC_TCS_Connected '2'
+ ///ѾԼѯ
+ #define THOST_FTDC_TCS_QryInstrumentSent '3'
+ ///˽
+ #define THOST_FTDC_TCS_SubPrivateFlow '4'
+
+ typedef char TThostFtdcTraderConnectStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFunctionCodeTypeһܴ
+ /////////////////////////////////////////////////////////////////////////
+ ///첽
+ #define THOST_FTDC_FC_DataAsync '1'
+ ///ǿûdz
+ #define THOST_FTDC_FC_ForceUserLogout '2'
+ ///û
+ #define THOST_FTDC_FC_UserPasswordUpdate '3'
+ ///˾
+ #define THOST_FTDC_FC_BrokerPasswordUpdate '4'
+ ///Ͷ߿
+ #define THOST_FTDC_FC_InvestorPasswordUpdate '5'
+ ///
+ #define THOST_FTDC_FC_OrderInsert '6'
+ ///
+ #define THOST_FTDC_FC_OrderAction '7'
+ ///ͬϵͳ
+ #define THOST_FTDC_FC_SyncSystemData '8'
+ ///ͬ˾
+ #define THOST_FTDC_FC_SyncBrokerData '9'
+ ///ͬ˾
+ #define THOST_FTDC_FC_BachSyncBrokerData 'A'
+ ///ѯ
+ #define THOST_FTDC_FC_SuperQuery 'B'
+ ///Ԥ
+ #define THOST_FTDC_FC_ParkedOrderInsert 'C'
+ ///Ԥ
+ #define THOST_FTDC_FC_ParkedOrderAction 'D'
+ ///̬ͬ
+ #define THOST_FTDC_FC_SyncOTP 'E'
+ ///ɾδ֪
+ #define THOST_FTDC_FC_DeleteOrder 'F'
+ ///Ȩ
+ #define THOST_FTDC_FC_LockInsert 'G'
+
+ typedef char TThostFtdcFunctionCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerFunctionCodeTypeһ˾ܴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ǿûdz
+ #define THOST_FTDC_BFC_ForceUserLogout '1'
+ ///û
+ #define THOST_FTDC_BFC_UserPasswordUpdate '2'
+ ///ͬ˾
+ #define THOST_FTDC_BFC_SyncBrokerData '3'
+ ///ͬ˾
+ #define THOST_FTDC_BFC_BachSyncBrokerData '4'
+ ///
+ #define THOST_FTDC_BFC_OrderInsert '5'
+ ///
+ #define THOST_FTDC_BFC_OrderAction '6'
+ ///ȫѯ
+ #define THOST_FTDC_BFC_AllQuery '7'
+ ///ϵͳܣ/dz/
+ #define THOST_FTDC_BFC_log 'a'
+ ///ѯѯݣԼȳ
+ #define THOST_FTDC_BFC_BaseQry 'b'
+ ///ײѯɽί
+ #define THOST_FTDC_BFC_TradeQry 'c'
+ ///ܣ
+ #define THOST_FTDC_BFC_Trade 'd'
+ ///ת
+ #define THOST_FTDC_BFC_Virement 'e'
+ ///ռ
+ #define THOST_FTDC_BFC_Risk 'f'
+ ///ѯ/ѯỰ˵
+ #define THOST_FTDC_BFC_Session 'g'
+ ///֪ͨ
+ #define THOST_FTDC_BFC_RiskNoticeCtl 'h'
+ ///֪ͨ
+ #define THOST_FTDC_BFC_RiskNotice 'i'
+ ///쿴˾ʽȨ
+ #define THOST_FTDC_BFC_BrokerDeposit 'j'
+ ///ʽѯ
+ #define THOST_FTDC_BFC_QueryFund 'k'
+ ///ѯ
+ #define THOST_FTDC_BFC_QueryOrder 'l'
+ ///ɽѯ
+ #define THOST_FTDC_BFC_QueryTrade 'm'
+ ///ֲֲѯ
+ #define THOST_FTDC_BFC_QueryPosition 'n'
+ ///ѯ
+ #define THOST_FTDC_BFC_QueryMarketData 'o'
+ ///û¼ѯ
+ #define THOST_FTDC_BFC_QueryUserEvent 'p'
+ ///֪ͨѯ
+ #define THOST_FTDC_BFC_QueryRiskNotify 'q'
+ ///ѯ
+ #define THOST_FTDC_BFC_QueryFundChange 'r'
+ ///ͶϢѯ
+ #define THOST_FTDC_BFC_QueryInvestor 's'
+ ///ױѯ
+ #define THOST_FTDC_BFC_QueryTradingCode 't'
+ ///ǿƽ
+ #define THOST_FTDC_BFC_ForceClose 'u'
+ ///ѹ
+ #define THOST_FTDC_BFC_PressTest 'v'
+ ///Ȩ淴
+ #define THOST_FTDC_BFC_RemainCalc 'w'
+ ///ֱֲָ֤
+ #define THOST_FTDC_BFC_NetPositionInd 'x'
+ ///Ԥ
+ #define THOST_FTDC_BFC_RiskPredict 'y'
+ ///ݵ
+ #define THOST_FTDC_BFC_DataExport 'z'
+ ///ָ
+ #define THOST_FTDC_BFC_RiskTargetSetup 'A'
+ ///Ԥ
+ #define THOST_FTDC_BFC_MarketDataWarn 'B'
+ ///ҵ֪ͨѯ
+ #define THOST_FTDC_BFC_QryBizNotice 'C'
+ ///ҵ֪ͨģ
+ #define THOST_FTDC_BFC_CfgBizNotice 'D'
+ ///̬ͬ
+ #define THOST_FTDC_BFC_SyncOTP 'E'
+ ///ҵ֪ͨ
+ #define THOST_FTDC_BFC_SendBizNotice 'F'
+ ///ռ
+ #define THOST_FTDC_BFC_CfgRiskLevelStd 'G'
+ ///նӦ
+ #define THOST_FTDC_BFC_TbCommand 'H'
+ ///ɾδ֪
+ #define THOST_FTDC_BFC_DeleteOrder 'J'
+ ///Ԥ
+ #define THOST_FTDC_BFC_ParkedOrderInsert 'K'
+ ///Ԥ
+ #define THOST_FTDC_BFC_ParkedOrderAction 'L'
+ ///Ȩ
+ #define THOST_FTDC_BFC_LockInsert 'M'
+
+ typedef char TThostFtdcBrokerFunctionCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderActionStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѿύ
+ #define THOST_FTDC_OAS_Submitted 'a'
+ ///Ѿ
+ #define THOST_FTDC_OAS_Accepted 'b'
+ ///Ѿܾ
+ #define THOST_FTDC_OAS_Rejected 'c'
+
+ typedef char TThostFtdcOrderActionStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ȫɽ
+ #define THOST_FTDC_OST_AllTraded '0'
+ ///ֳɽڶ
+ #define THOST_FTDC_OST_PartTradedQueueing '1'
+ ///ֳɽڶ
+ #define THOST_FTDC_OST_PartTradedNotQueueing '2'
+ ///δɽڶ
+ #define THOST_FTDC_OST_NoTradeQueueing '3'
+ ///δɽڶ
+ #define THOST_FTDC_OST_NoTradeNotQueueing '4'
+ ///
+ #define THOST_FTDC_OST_Canceled '5'
+ ///δ֪
+ #define THOST_FTDC_OST_Unknown 'a'
+ ///δ
+ #define THOST_FTDC_OST_NotTouched 'b'
+ ///Ѵ
+ #define THOST_FTDC_OST_Touched 'c'
+
+ typedef char TThostFtdcOrderStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderSubmitStatusTypeһύ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѿύ
+ #define THOST_FTDC_OSS_InsertSubmitted '0'
+ ///Ѿύ
+ #define THOST_FTDC_OSS_CancelSubmitted '1'
+ ///Ѿύ
+ #define THOST_FTDC_OSS_ModifySubmitted '2'
+ ///Ѿ
+ #define THOST_FTDC_OSS_Accepted '3'
+ ///Ѿܾ
+ #define THOST_FTDC_OSS_InsertRejected '4'
+ ///Ѿܾ
+ #define THOST_FTDC_OSS_CancelRejected '5'
+ ///ĵѾܾ
+ #define THOST_FTDC_OSS_ModifyRejected '6'
+
+ typedef char TThostFtdcOrderSubmitStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPositionDateTypeһֲ
+ /////////////////////////////////////////////////////////////////////////
+ ///ճֲ
+ #define THOST_FTDC_PSD_Today '1'
+ ///ʷֲ
+ #define THOST_FTDC_PSD_History '2'
+
+ typedef char TThostFtdcPositionDateType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPositionDateTypeTypeһֲ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʹʷֲ
+ #define THOST_FTDC_PDT_UseHistory '1'
+ ///ʹʷֲ
+ #define THOST_FTDC_PDT_NoUseHistory '2'
+
+ typedef char TThostFtdcPositionDateTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradingRoleTypeһɫ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_ER_Broker '1'
+ ///Ӫ
+ #define THOST_FTDC_ER_Host '2'
+ ///
+ #define THOST_FTDC_ER_Maker '3'
+
+ typedef char TThostFtdcTradingRoleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProductClassTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ
+ #define THOST_FTDC_PC_Futures '1'
+ ///ڻȨ
+ #define THOST_FTDC_PC_Options '2'
+ ///
+ #define THOST_FTDC_PC_Combination '3'
+ ///
+ #define THOST_FTDC_PC_Spot '4'
+ ///ת
+ #define THOST_FTDC_PC_EFP '5'
+ ///ֻȨ
+ #define THOST_FTDC_PC_SpotOption '6'
+ ///Ȩ
+ #define THOST_FTDC_PC_ETFOption '7'
+ ///֤ȯ
+ #define THOST_FTDC_PC_Stock '8'
+
+ typedef char TThostFtdcProductClassType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstLifePhaseTypeһԼ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_IP_NotStart '0'
+ ///
+ #define THOST_FTDC_IP_Started '1'
+ ///ͣ
+ #define THOST_FTDC_IP_Pause '2'
+ ///
+ #define THOST_FTDC_IP_Expired '3'
+
+ typedef char TThostFtdcInstLifePhaseType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDirectionTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_D_Buy '0'
+ ///
+ #define THOST_FTDC_D_Sell '1'
+
+ typedef char TThostFtdcDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPositionTypeTypeһֲ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֲ
+ #define THOST_FTDC_PT_Net '1'
+ ///ۺϳֲ
+ #define THOST_FTDC_PT_Gross '2'
+
+ typedef char TThostFtdcPositionTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPosiDirectionTypeһֲֶշ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_PD_Net '1'
+ ///ͷ
+ #define THOST_FTDC_PD_Long '2'
+ ///ͷ
+ #define THOST_FTDC_PD_Short '3'
+
+ typedef char TThostFtdcPosiDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSysSettlementStatusTypeһϵͳ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ծ
+ #define THOST_FTDC_SS_NonActive '1'
+ ///
+ #define THOST_FTDC_SS_Startup '2'
+ ///
+ #define THOST_FTDC_SS_Operating '3'
+ ///
+ #define THOST_FTDC_SS_Settlement '4'
+ ///
+ #define THOST_FTDC_SS_SettlementFinished '5'
+
+ typedef char TThostFtdcSysSettlementStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRatioAttrTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_RA_Trade '0'
+ ///
+ #define THOST_FTDC_RA_Settlement '1'
+
+ typedef char TThostFtdcRatioAttrType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcHedgeFlagTypeһͶױ־
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷ
+ #define THOST_FTDC_HF_Speculation '1'
+ ///
+ #define THOST_FTDC_HF_Arbitrage '2'
+ ///ױ
+ #define THOST_FTDC_HF_Hedge '3'
+ ///
+ #define THOST_FTDC_HF_Covered '4'
+
+ typedef char TThostFtdcHedgeFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBillHedgeFlagTypeһͶױ־
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷ
+ #define THOST_FTDC_BHF_Speculation '1'
+ ///
+ #define THOST_FTDC_BHF_Arbitrage '2'
+ ///ױ
+ #define THOST_FTDC_BHF_Hedge '3'
+
+ typedef char TThostFtdcBillHedgeFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientIDTypeTypeһױ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷ
+ #define THOST_FTDC_CIDT_Speculation '1'
+ ///
+ #define THOST_FTDC_CIDT_Arbitrage '2'
+ ///ױ
+ #define THOST_FTDC_CIDT_Hedge '3'
+
+ typedef char TThostFtdcClientIDTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderPriceTypeTypeһ۸
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_OPT_AnyPrice '1'
+ ///
+ #define THOST_FTDC_OPT_LimitPrice '2'
+ ///ż
+ #define THOST_FTDC_OPT_BestPrice '3'
+ ///¼
+ #define THOST_FTDC_OPT_LastPrice '4'
+ ///¼۸ϸ1ticks
+ #define THOST_FTDC_OPT_LastPricePlusOneTicks '5'
+ ///¼۸ϸ2ticks
+ #define THOST_FTDC_OPT_LastPricePlusTwoTicks '6'
+ ///¼۸ϸ3ticks
+ #define THOST_FTDC_OPT_LastPricePlusThreeTicks '7'
+ ///һ
+ #define THOST_FTDC_OPT_AskPrice1 '8'
+ ///һ۸ϸ1ticks
+ #define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9'
+ ///һ۸ϸ2ticks
+ #define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A'
+ ///һ۸ϸ3ticks
+ #define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B'
+ ///һ
+ #define THOST_FTDC_OPT_BidPrice1 'C'
+ ///һ۸ϸ1ticks
+ #define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D'
+ ///һ۸ϸ2ticks
+ #define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E'
+ ///һ۸ϸ3ticks
+ #define THOST_FTDC_OPT_BidPrice1PlusThreeTicks 'F'
+ ///嵵
+ #define THOST_FTDC_OPT_FiveLevelPrice 'G'
+
+ typedef char TThostFtdcOrderPriceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOffsetFlagTypeһƽ־
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_OF_Open '0'
+ ///ƽ
+ #define THOST_FTDC_OF_Close '1'
+ ///ǿƽ
+ #define THOST_FTDC_OF_ForceClose '2'
+ ///ƽ
+ #define THOST_FTDC_OF_CloseToday '3'
+ ///ƽ
+ #define THOST_FTDC_OF_CloseYesterday '4'
+ ///ǿ
+ #define THOST_FTDC_OF_ForceOff '5'
+ ///ǿƽ
+ #define THOST_FTDC_OF_LocalForceClose '6'
+
+ typedef char TThostFtdcOffsetFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcForceCloseReasonTypeһǿƽԭ
+ /////////////////////////////////////////////////////////////////////////
+ ///ǿƽ
+ #define THOST_FTDC_FCC_NotForceClose '0'
+ ///ʽ
+ #define THOST_FTDC_FCC_LackDeposit '1'
+ ///ͻ
+ #define THOST_FTDC_FCC_ClientOverPositionLimit '2'
+ ///Ա
+ #define THOST_FTDC_FCC_MemberOverPositionLimit '3'
+ ///ֲַ
+ #define THOST_FTDC_FCC_NotMultiple '4'
+ ///Υ
+ #define THOST_FTDC_FCC_Violation '5'
+ ///
+ #define THOST_FTDC_FCC_Other '6'
+ ///Ȼٽ
+ #define THOST_FTDC_FCC_PersonDeliv '7'
+
+ typedef char TThostFtdcForceCloseReasonType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_ORDT_Normal '0'
+ ///
+ #define THOST_FTDC_ORDT_DeriveFromQuote '1'
+ ///
+ #define THOST_FTDC_ORDT_DeriveFromCombination '2'
+ ///ϱ
+ #define THOST_FTDC_ORDT_Combination '3'
+ ///
+ #define THOST_FTDC_ORDT_ConditionalOrder '4'
+ ///
+ #define THOST_FTDC_ORDT_Swap '5'
+
+ typedef char TThostFtdcOrderTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTimeConditionTypeһЧ
+ /////////////////////////////////////////////////////////////////////////
+ ///ɣ
+ #define THOST_FTDC_TC_IOC '1'
+ ///Ч
+ #define THOST_FTDC_TC_GFS '2'
+ ///Ч
+ #define THOST_FTDC_TC_GFD '3'
+ ///ָǰЧ
+ #define THOST_FTDC_TC_GTD '4'
+ ///ǰЧ
+ #define THOST_FTDC_TC_GTC '5'
+ ///ϾЧ
+ #define THOST_FTDC_TC_GFA '6'
+
+ typedef char TThostFtdcTimeConditionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVolumeConditionTypeһɽ
+ /////////////////////////////////////////////////////////////////////////
+ ///κ
+ #define THOST_FTDC_VC_AV '1'
+ ///С
+ #define THOST_FTDC_VC_MV '2'
+ ///ȫ
+ #define THOST_FTDC_VC_CV '3'
+
+ typedef char TThostFtdcVolumeConditionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcContingentConditionTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CC_Immediately '1'
+ ///ֹ
+ #define THOST_FTDC_CC_Touch '2'
+ ///ֹӮ
+ #define THOST_FTDC_CC_TouchProfit '3'
+ ///Ԥ
+ #define THOST_FTDC_CC_ParkedOrder '4'
+ ///¼۴
+ #define THOST_FTDC_CC_LastPriceGreaterThanStopPrice '5'
+ ///¼۴ڵ
+ #define THOST_FTDC_CC_LastPriceGreaterEqualStopPrice '6'
+ ///¼С
+ #define THOST_FTDC_CC_LastPriceLesserThanStopPrice '7'
+ ///¼Сڵ
+ #define THOST_FTDC_CC_LastPriceLesserEqualStopPrice '8'
+ ///һ۴
+ #define THOST_FTDC_CC_AskPriceGreaterThanStopPrice '9'
+ ///һ۴ڵ
+ #define THOST_FTDC_CC_AskPriceGreaterEqualStopPrice 'A'
+ ///һС
+ #define THOST_FTDC_CC_AskPriceLesserThanStopPrice 'B'
+ ///һСڵ
+ #define THOST_FTDC_CC_AskPriceLesserEqualStopPrice 'C'
+ ///һ۴
+ #define THOST_FTDC_CC_BidPriceGreaterThanStopPrice 'D'
+ ///һ۴ڵ
+ #define THOST_FTDC_CC_BidPriceGreaterEqualStopPrice 'E'
+ ///һС
+ #define THOST_FTDC_CC_BidPriceLesserThanStopPrice 'F'
+ ///һСڵ
+ #define THOST_FTDC_CC_BidPriceLesserEqualStopPrice 'H'
+
+ typedef char TThostFtdcContingentConditionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcActionFlagTypeһ־
+ /////////////////////////////////////////////////////////////////////////
+ ///ɾ
+ #define THOST_FTDC_AF_Delete '0'
+ ///
+ #define THOST_FTDC_AF_Modify '3'
+
+ typedef char TThostFtdcActionFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradingRightTypeһȨ
+ /////////////////////////////////////////////////////////////////////////
+ ///Խ
+ #define THOST_FTDC_TR_Allow '0'
+ ///ֻƽ
+ #define THOST_FTDC_TR_CloseOnly '1'
+ ///ܽ
+ #define THOST_FTDC_TR_Forbidden '2'
+
+ typedef char TThostFtdcTradingRightType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderSourceTypeһԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///Բ
+ #define THOST_FTDC_OSRC_Participant '0'
+ ///ԹԱ
+ #define THOST_FTDC_OSRC_Administrator '1'
+
+ typedef char TThostFtdcOrderSourceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeTypeTypeһɽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ϳֲֲΪһֲ,ʼӦ͵ijֲ
+ #define THOST_FTDC_TRDT_SplitCombination '#'
+ ///ͨɽ
+ #define THOST_FTDC_TRDT_Common '0'
+ ///Ȩִ
+ #define THOST_FTDC_TRDT_OptionsExecution '1'
+ ///OTCɽ
+ #define THOST_FTDC_TRDT_OTC '2'
+ ///תɽ
+ #define THOST_FTDC_TRDT_EFPDerived '3'
+ ///ɽ
+ #define THOST_FTDC_TRDT_CombinationDerived '4'
+
+ typedef char TThostFtdcTradeTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPriceSourceTypeһɽԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ǰɽ
+ #define THOST_FTDC_PSRC_LastPrice '0'
+ ///ίм
+ #define THOST_FTDC_PSRC_Buy '1'
+ ///ίм
+ #define THOST_FTDC_PSRC_Sell '2'
+
+ typedef char TThostFtdcPriceSourceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentStatusTypeһԼ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ǰ
+ #define THOST_FTDC_IS_BeforeTrading '0'
+ ///ǽ
+ #define THOST_FTDC_IS_NoTrading '1'
+ ///
+ #define THOST_FTDC_IS_Continous '2'
+ ///Ͼ۱
+ #define THOST_FTDC_IS_AuctionOrdering '3'
+ ///Ͼۼ۸ƽ
+ #define THOST_FTDC_IS_AuctionBalance '4'
+ ///Ͼ۴
+ #define THOST_FTDC_IS_AuctionMatch '5'
+ ///
+ #define THOST_FTDC_IS_Closed '6'
+
+ typedef char TThostFtdcInstrumentStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstStatusEnterReasonTypeһƷֽ뽻״̬ԭ
+ /////////////////////////////////////////////////////////////////////////
+ ///Զл
+ #define THOST_FTDC_IER_Automatic '1'
+ ///ֶл
+ #define THOST_FTDC_IER_Manual '2'
+ ///۶
+ #define THOST_FTDC_IER_Fuse '3'
+
+ typedef char TThostFtdcInstStatusEnterReasonType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrderActionRefTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcOrderActionRefType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstallCountTypeһװ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcInstallCountType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstallIDTypeһװ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcInstallIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcErrorIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcErrorIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettlementIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSettlementIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVolumeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcVolumeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFrontIDTypeһǰñ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcFrontIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSessionIDTypeһỰ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSessionIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSequenceNoTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSequenceNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommandNoTypeһDB
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcCommandNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMillisecTypeһʱ䣨룩
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcMillisecType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVolumeMultipleTypeһԼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcVolumeMultipleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradingSegmentSNTypeһα
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTradingSegmentSNType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRequestIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcRequestIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcYearTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcYearType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMonthTypeһ·
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcMonthType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBoolTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcBoolType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPriceTypeһ۸
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcPriceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombOffsetFlagTypeһϿƽ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCombOffsetFlagType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombHedgeFlagTypeһͶױ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCombHedgeFlagType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRatioTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcRatioType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMoneyTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcMoneyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLargeVolumeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcLargeVolumeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSequenceSeriesTypeһϵк
+ /////////////////////////////////////////////////////////////////////////
+ typedef short TThostFtdcSequenceSeriesType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommPhaseNoTypeһͨѶʱα
+ /////////////////////////////////////////////////////////////////////////
+ typedef short TThostFtdcCommPhaseNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSequenceLabelTypeһб
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSequenceLabelType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUnderlyingMultipleTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcUnderlyingMultipleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPriorityTypeһȼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcPriorityType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcContractCodeTypeһͬ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcContractCodeType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCityTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCityType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIsStockTypeһǷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcIsStockType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcChannelTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcChannelType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAddressTypeһͨѶַ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAddressType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcZipCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcZipCodeType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTelephoneTypeһϵ绰
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTelephoneType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFaxTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFaxType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMobileTypeһֻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcMobileType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEMailTypeһʼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcEMailType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMemoTypeһע
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcMemoType[161];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCompanyCodeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCompanyCodeType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcWebsiteTypeһվַ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcWebsiteType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTaxNoTypeһ˰ǼǺ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTaxNoType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBatchStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δϴ
+ #define THOST_FTDC_BS_NoUpload '1'
+ ///ϴ
+ #define THOST_FTDC_BS_Uploaded '2'
+ ///ʧ
+ #define THOST_FTDC_BS_Failed '3'
+
+ typedef char TThostFtdcBatchStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPropertyIDTypeһԴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPropertyIDType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPropertyNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPropertyNameType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLicenseNoTypeһӪҵִպ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcLicenseNoType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAgentIDTypeһ˴
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAgentIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAgentNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAgentNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAgentGroupIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAgentGroupIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAgentGroupNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAgentGroupNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReturnStyleTypeһƷַʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ʒ
+ #define THOST_FTDC_RS_All '1'
+ ///Ʒ
+ #define THOST_FTDC_RS_ByProduct '2'
+
+ typedef char TThostFtdcReturnStyleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReturnPatternTypeһģʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ɽ
+ #define THOST_FTDC_RP_ByVolume '1'
+ ///
+ #define THOST_FTDC_RP_ByFeeOnHand '2'
+
+ typedef char TThostFtdcReturnPatternType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReturnLevelTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///1
+ #define THOST_FTDC_RL_Level1 '1'
+ ///2
+ #define THOST_FTDC_RL_Level2 '2'
+ ///3
+ #define THOST_FTDC_RL_Level3 '3'
+ ///4
+ #define THOST_FTDC_RL_Level4 '4'
+ ///5
+ #define THOST_FTDC_RL_Level5 '5'
+ ///6
+ #define THOST_FTDC_RL_Level6 '6'
+ ///7
+ #define THOST_FTDC_RL_Level7 '7'
+ ///8
+ #define THOST_FTDC_RL_Level8 '8'
+ ///9
+ #define THOST_FTDC_RL_Level9 '9'
+
+ typedef char TThostFtdcReturnLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReturnStandardTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֽη
+ #define THOST_FTDC_RSD_ByPeriod '1'
+ ///ijһ
+ #define THOST_FTDC_RSD_ByStandard '2'
+
+ typedef char TThostFtdcReturnStandardType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMortgageTypeTypeһѺ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʳ
+ #define THOST_FTDC_MT_Out '0'
+ ///
+ #define THOST_FTDC_MT_In '1'
+
+ typedef char TThostFtdcMortgageTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorSettlementParamIDTypeһͶ߽
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѻ
+ #define THOST_FTDC_ISPI_MortgageRatio '4'
+ ///֤㷨
+ #define THOST_FTDC_ISPI_MarginWay '5'
+ ///㵥ǷѺ
+ #define THOST_FTDC_ISPI_BillDeposit '9'
+
+ typedef char TThostFtdcInvestorSettlementParamIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeSettlementParamIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѻ
+ #define THOST_FTDC_ESPI_MortgageRatio '1'
+ ///ʽ
+ #define THOST_FTDC_ESPI_OtherFundItem '2'
+ ///ʽ뽻
+ #define THOST_FTDC_ESPI_OtherFundImport '3'
+ ///нͿý
+ #define THOST_FTDC_ESPI_CFFEXMinPrepa '6'
+ ///֣㷽ʽ
+ #define THOST_FTDC_ESPI_CZCESettlementType '7'
+ ///ȡʽ
+ #define THOST_FTDC_ESPI_ExchDelivFeeMode '9'
+ ///Ͷ߽ȡʽ
+ #define THOST_FTDC_ESPI_DelivFeeMode '0'
+ ///֣ϳֱֲ֤ȡʽ
+ #define THOST_FTDC_ESPI_CZCEComMarginType 'A'
+ ///֤ǷŻ
+ #define THOST_FTDC_ESPI_DceComMarginType 'B'
+ ///ֵȨ֤Żݱ
+ #define THOST_FTDC_ESPI_OptOutDisCountRate 'a'
+ ///ͱϵ
+ #define THOST_FTDC_ESPI_OptMiniGuarantee 'b'
+
+ typedef char TThostFtdcExchangeSettlementParamIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSystemParamIDTypeһϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͶߴС
+ #define THOST_FTDC_SPI_InvestorIDMinLength '1'
+ ///ͶʺŴС
+ #define THOST_FTDC_SPI_AccountIDMinLength '2'
+ ///Ͷ߿Ĭϵ¼Ȩ
+ #define THOST_FTDC_SPI_UserRightLogon '3'
+ ///Ͷ߽㵥ɽܷʽ
+ #define THOST_FTDC_SPI_SettlementBillTrade '4'
+ ///ͳһ½ױ뷽ʽ
+ #define THOST_FTDC_SPI_TradingCode '5'
+ ///Ƿжϴδ˵ijͷʽ
+ #define THOST_FTDC_SPI_CheckFund '6'
+ ///ǷģȨ
+ #define THOST_FTDC_SPI_CommModelRight '7'
+ ///Ƿñ֤ģȨ
+ #define THOST_FTDC_SPI_MarginModelRight '9'
+ ///Ƿ淶ûܼ
+ #define THOST_FTDC_SPI_IsStandardActive '8'
+ ///ϴĽļ·
+ #define THOST_FTDC_SPI_UploadSettlementFile 'U'
+ ///ϱ֤ļ·
+ #define THOST_FTDC_SPI_DownloadCSRCFile 'D'
+ ///ɵĽ㵥ļ·
+ #define THOST_FTDC_SPI_SettlementBillFile 'S'
+ ///֤ļʶ
+ #define THOST_FTDC_SPI_CSRCOthersFile 'C'
+ ///ͶƬ·
+ #define THOST_FTDC_SPI_InvestorPhoto 'P'
+ ///ȫᾭ˾ϴļ·
+ #define THOST_FTDC_SPI_CSRCData 'R'
+ ///¼뷽ʽ
+ #define THOST_FTDC_SPI_InvestorPwdModel 'I'
+ ///Ͷнļ·
+ #define THOST_FTDC_SPI_CFFEXInvestorSettleFile 'F'
+ ///Ͷߴ뷽ʽ
+ #define THOST_FTDC_SPI_InvestorIDType 'a'
+ ///Ȩ
+ #define THOST_FTDC_SPI_FreezeMaxReMain 'r'
+ ///زʵʱϳ
+ #define THOST_FTDC_SPI_IsSync 'A'
+ ///Ȩ
+ #define THOST_FTDC_SPI_RelieveOpenLimit 'O'
+ ///Ƿ淶û
+ #define THOST_FTDC_SPI_IsStandardFreeze 'X'
+ ///֣ǷƷױ
+ #define THOST_FTDC_SPI_CZCENormalProductHedge 'B'
+
+ typedef char TThostFtdcSystemParamIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeParamIDTypeһϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ ///ϵͳ㷨
+ #define THOST_FTDC_TPID_EncryptionStandard 'E'
+ ///ϵͳ㷨
+ #define THOST_FTDC_TPID_RiskMode 'R'
+ ///ϵͳ㷨Ƿȫ 0- 1-
+ #define THOST_FTDC_TPID_RiskModeGlobal 'G'
+ ///㷨
+ #define THOST_FTDC_TPID_modeEncode 'P'
+ ///۸Сλ
+ #define THOST_FTDC_TPID_tickMode 'T'
+ ///ûỰ
+ #define THOST_FTDC_TPID_SingleUserSessionMaxNum 'S'
+ ///¼ʧ
+ #define THOST_FTDC_TPID_LoginFailMaxNum 'L'
+ ///Ƿǿ֤
+ #define THOST_FTDC_TPID_IsAuthForce 'A'
+ ///ǷǮͬ
+ #define THOST_FTDC_TPID_IsPositionInOut 'I'
+
+ typedef char TThostFtdcTradeParamIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettlementParamValueTypeһֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSettlementParamValueType[256];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCounterIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCounterIDType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorGroupNameTypeһͶ߷
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvestorGroupNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrandCodeTypeһƺ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBrandCodeType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcWarehouseTypeһֿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcWarehouseType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProductDateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProductDateType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcGradeTypeһȼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcGradeType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClassifyTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClassifyType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPositionTypeһλ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPositionType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcYieldlyTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcYieldlyType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcWeightTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcWeightType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSubEntryFundNoTypeһʽˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSubEntryFundNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileIDTypeһļʶ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʽ
+ #define THOST_FTDC_FI_SettlementFund 'F'
+ ///ɽ
+ #define THOST_FTDC_FI_Trade 'T'
+ ///Ͷֲ߳
+ #define THOST_FTDC_FI_InvestorPosition 'P'
+ ///Ͷ߷ʽ
+ #define THOST_FTDC_FI_SubEntryFund 'O'
+ ///ϳֲ
+ #define THOST_FTDC_FI_CZCECombinationPos 'C'
+ ///ϱ֤
+ #define THOST_FTDC_FI_CSRCData 'R'
+ ///֣ƽ˽
+ #define THOST_FTDC_FI_CZCEClose 'L'
+ ///֣ƽ˽
+ #define THOST_FTDC_FI_CZCENoClose 'N'
+ ///ֲϸ
+ #define THOST_FTDC_FI_PositionDtl 'D'
+ ///Ȩִļ
+ #define THOST_FTDC_FI_OptionStrike 'S'
+ ///۱ȶļ
+ #define THOST_FTDC_FI_SettlementPriceComparison 'M'
+ ///dzֱֲ䶯ϸ
+ #define THOST_FTDC_FI_NonTradePosChange 'B'
+
+ typedef char TThostFtdcFileIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileNameTypeһļ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFileNameType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileTypeTypeһļϴ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FUT_Settlement '0'
+ ///˶
+ #define THOST_FTDC_FUT_Check '1'
+
+ typedef char TThostFtdcFileTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileFormatTypeһļʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ıļ(.txt)
+ #define THOST_FTDC_FFT_Txt '0'
+ ///ѹļ(.zip)
+ #define THOST_FTDC_FFT_Zip '1'
+ ///DBFļ(.dbf)
+ #define THOST_FTDC_FFT_DBF '2'
+
+ typedef char TThostFtdcFileFormatType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileUploadStatusTypeһļ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ϴɹ
+ #define THOST_FTDC_FUS_SucceedUpload '1'
+ ///ϴʧ
+ #define THOST_FTDC_FUS_FailedUpload '2'
+ ///ɹ
+ #define THOST_FTDC_FUS_SucceedLoad '3'
+ ///벿ֳɹ
+ #define THOST_FTDC_FUS_PartSucceedLoad '4'
+ ///ʧ
+ #define THOST_FTDC_FUS_FailedLoad '5'
+
+ typedef char TThostFtdcFileUploadStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTransferDirectionTypeһƲַ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ƴ
+ #define THOST_FTDC_TD_Out '0'
+ ///
+ #define THOST_FTDC_TD_In '1'
+
+ typedef char TThostFtdcTransferDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUploadModeTypeһϴļ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUploadModeType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAccountIDTypeһͶʺ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAccountIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankFlagTypeһͳһʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankFlagType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankAccountTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankAccountType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOpenNameTypeһ˻Ŀ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOpenNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOpenBankTypeһ˻Ŀ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOpenBankType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankNameType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPublishPathTypeһ·
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPublishPathType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOperatorIDTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOperatorIDType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMonthCountTypeһ·
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcMonthCountType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAdvanceMonthArrayTypeһ·ǰ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAdvanceMonthArrayType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDateExprTypeһڱʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDateExprType[1025];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentIDExprTypeһԼʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInstrumentIDExprType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentNameExprTypeһԼƱʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInstrumentNameExprType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSpecialCreateRuleTypeһĴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ûⴴ
+ #define THOST_FTDC_SC_NoSpecialRule '0'
+ ///
+ #define THOST_FTDC_SC_NoSpringFestival '1'
+
+ typedef char TThostFtdcSpecialCreateRuleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBasisPriceTypeTypeһƻ
+ /////////////////////////////////////////////////////////////////////////
+ ///һԼ
+ #define THOST_FTDC_IPT_LastSettlement '1'
+ ///һԼ̼
+ #define THOST_FTDC_IPT_LaseClose '2'
+
+ typedef char TThostFtdcBasisPriceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProductLifePhaseTypeһƷ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ծ
+ #define THOST_FTDC_PLP_Active '1'
+ ///Ծ
+ #define THOST_FTDC_PLP_NonActive '2'
+ ///ע
+ #define THOST_FTDC_PLP_Canceled '3'
+
+ typedef char TThostFtdcProductLifePhaseType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDeliveryModeTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֽ
+ #define THOST_FTDC_DM_CashDeliv '1'
+ ///ʵサ
+ #define THOST_FTDC_DM_CommodityDeliv '2'
+
+ typedef char TThostFtdcDeliveryModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLogLevelTypeһ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcLogLevelType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProcessNameTypeһ洢
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProcessNameType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOperationMemoTypeһժҪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOperationMemoType[1025];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundIOTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FIOT_FundIO '1'
+ ///ת
+ #define THOST_FTDC_FIOT_Transfer '2'
+ ///ڻ
+ #define THOST_FTDC_FIOT_SwapCurrency '3'
+
+ typedef char TThostFtdcFundIOTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundTypeTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///д
+ #define THOST_FTDC_FT_Deposite '1'
+ ///ʽ
+ #define THOST_FTDC_FT_ItemFund '2'
+ ///˾
+ #define THOST_FTDC_FT_Company '3'
+ ///ʽת
+ #define THOST_FTDC_FT_InnerTransfer '4'
+
+ typedef char TThostFtdcFundTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundDirectionTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FD_In '1'
+ ///
+ #define THOST_FTDC_FD_Out '2'
+
+ typedef char TThostFtdcFundDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundStatusTypeһʽ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///¼
+ #define THOST_FTDC_FS_Record '1'
+ ///Ѹ
+ #define THOST_FTDC_FS_Check '2'
+ ///ѳ
+ #define THOST_FTDC_FS_Charge '3'
+
+ typedef char TThostFtdcFundStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBillNoTypeһƱݺ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBillNoType[15];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBillNameTypeһƱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBillNameType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPublishStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_PS_None '1'
+ ///ڷ
+ #define THOST_FTDC_PS_Publishing '2'
+ ///ѷ
+ #define THOST_FTDC_PS_Published '3'
+
+ typedef char TThostFtdcPublishStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEnumValueIDTypeһöֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcEnumValueIDType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEnumValueTypeTypeһöֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcEnumValueTypeType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEnumValueLabelTypeһöֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcEnumValueLabelType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEnumValueResultTypeһöֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcEnumValueResultType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSystemStatusTypeһϵͳ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ծ
+ #define THOST_FTDC_ES_NonActive '1'
+ ///
+ #define THOST_FTDC_ES_Startup '2'
+ ///ʼʼ
+ #define THOST_FTDC_ES_Initialize '3'
+ ///ɳʼ
+ #define THOST_FTDC_ES_Initialized '4'
+ ///пʼ
+ #define THOST_FTDC_ES_Close '5'
+ ///
+ #define THOST_FTDC_ES_Closed '6'
+ ///
+ #define THOST_FTDC_ES_Settlement '7'
+
+ typedef char TThostFtdcSystemStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettlementStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ʼ
+ #define THOST_FTDC_STS_Initialize '0'
+ ///
+ #define THOST_FTDC_STS_Settlementing '1'
+ ///ѽ
+ #define THOST_FTDC_STS_Settlemented '2'
+ ///
+ #define THOST_FTDC_STS_Finished '3'
+
+ typedef char TThostFtdcSettlementStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRangeIntTypeTypeһֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRangeIntTypeType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRangeIntFromTypeһֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRangeIntFromType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRangeIntToTypeһֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRangeIntToType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFunctionIDTypeһܴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFunctionIDType[25];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFunctionValueCodeTypeһܱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFunctionValueCodeType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFunctionNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFunctionNameType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRoleIDTypeһɫ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRoleIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRoleNameTypeһɫ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRoleNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDescriptionTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDescriptionType[401];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombineIDTypeһϱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCombineIDType[25];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombineTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCombineTypeType[25];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorTypeTypeһͶ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ȼ
+ #define THOST_FTDC_CT_Person '0'
+ ///
+ #define THOST_FTDC_CT_Company '1'
+ ///Ͷʻ
+ #define THOST_FTDC_CT_Fund '2'
+ ///ⷨ
+ #define THOST_FTDC_CT_SpecialOrgan '3'
+ ///ʹܻ
+ #define THOST_FTDC_CT_Asset '4'
+
+ typedef char TThostFtdcInvestorTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerTypeTypeһ˾
+ /////////////////////////////////////////////////////////////////////////
+ ///Ա
+ #define THOST_FTDC_BT_Trade '0'
+ ///Ա
+ #define THOST_FTDC_BT_TradeSettle '1'
+
+ typedef char TThostFtdcBrokerTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRiskLevelTypeһյȼ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͷտͻ
+ #define THOST_FTDC_FAS_Low '1'
+ ///ͨͻ
+ #define THOST_FTDC_FAS_Normal '2'
+ ///עͻ
+ #define THOST_FTDC_FAS_Focus '3'
+ ///տͻ
+ #define THOST_FTDC_FAS_Risk '4'
+
+ typedef char TThostFtdcRiskLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFeeAcceptStyleTypeһȡʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ȡ
+ #define THOST_FTDC_FAS_ByTrade '1'
+ ///ȡ
+ #define THOST_FTDC_FAS_ByDeliv '2'
+ ///
+ #define THOST_FTDC_FAS_None '3'
+ ///ָȡ
+ #define THOST_FTDC_FAS_FixFee '4'
+
+ typedef char TThostFtdcFeeAcceptStyleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPasswordTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_PWDT_Trade '1'
+ ///ʽ
+ #define THOST_FTDC_PWDT_Account '2'
+
+ typedef char TThostFtdcPasswordTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAlgorithmTypeһӯ㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///ӯ
+ #define THOST_FTDC_AG_All '1'
+ ///ӯƣ
+ #define THOST_FTDC_AG_OnlyLost '2'
+ ///ӯƣ
+ #define THOST_FTDC_AG_OnlyGain '3'
+ ///ӯ
+ #define THOST_FTDC_AG_None '4'
+
+ typedef char TThostFtdcAlgorithmType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIncludeCloseProfitTypeһǷƽӯ
+ /////////////////////////////////////////////////////////////////////////
+ ///ƽӯ
+ #define THOST_FTDC_ICP_Include '0'
+ ///ƽӯ
+ #define THOST_FTDC_ICP_NotInclude '2'
+
+ typedef char TThostFtdcIncludeCloseProfitType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAllWithoutTradeTypeһǷܿ
+ /////////////////////////////////////////////////////////////////////////
+ ///ɽܿ
+ #define THOST_FTDC_AWT_Enable '0'
+ ///ܿ
+ #define THOST_FTDC_AWT_Disable '2'
+ ///ֲܿ
+ #define THOST_FTDC_AWT_NoHoldEnable '3'
+
+ typedef char TThostFtdcAllWithoutTradeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommentTypeһӯ㷨˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCommentType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVersionTypeһ汾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcVersionType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeCodeTypeһ״
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTradeCodeType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeDateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTradeDateType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeTimeTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTradeTimeType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeSerialTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTradeSerialType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeSerialNoTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTradeSerialNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureIDTypeһڻ˾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankIDTypeһд
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankIDType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankBrchIDTypeһзĴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankBrchIDType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankBranchIDTypeһĴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankBranchIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOperNoTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOperNoType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDeviceIDTypeһ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDeviceIDType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRecordNumTypeһ¼
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRecordNumType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureAccountTypeһڻʽ˺
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureAccountType[22];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFuturePwdFlagTypeһʽ˶Ա־
+ /////////////////////////////////////////////////////////////////////////
+ ///˶
+ #define THOST_FTDC_FPWD_UnCheck '0'
+ ///˶
+ #define THOST_FTDC_FPWD_Check '1'
+
+ typedef char TThostFtdcFuturePwdFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTransferTypeTypeһת
+ /////////////////////////////////////////////////////////////////////////
+ ///תڻ
+ #define THOST_FTDC_TT_BankToFuture '0'
+ ///ڻת
+ #define THOST_FTDC_TT_FutureToBank '1'
+
+ typedef char TThostFtdcTransferTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureAccPwdTypeһڻʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureAccPwdType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencyCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCurrencyCodeType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRetCodeTypeһӦ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRetCodeType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRetInfoTypeһӦϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRetInfoType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeAmtTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTradeAmtType[20];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUseAmtTypeһп
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUseAmtType[20];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFetchAmtTypeһпȡ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFetchAmtType[20];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTransferValidFlagTypeһתЧ־
+ /////////////////////////////////////////////////////////////////////////
+ ///Чʧ
+ #define THOST_FTDC_TVF_Invalid '0'
+ ///Ч
+ #define THOST_FTDC_TVF_Valid '1'
+ ///
+ #define THOST_FTDC_TVF_Reverse '2'
+
+ typedef char TThostFtdcTransferValidFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCertCodeTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCertCodeType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReasonTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_RN_CD '0'
+ ///ʽ;
+ #define THOST_FTDC_RN_ZT '1'
+ ///
+ #define THOST_FTDC_RN_QT '2'
+
+ typedef char TThostFtdcReasonType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundProjectIDTypeһʽĿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFundProjectIDType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSexTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ ///δ֪
+ #define THOST_FTDC_SEX_None '0'
+ ///
+ #define THOST_FTDC_SEX_Man '1'
+ ///Ů
+ #define THOST_FTDC_SEX_Woman '2'
+
+ typedef char TThostFtdcSexType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProfessionTypeһְҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProfessionType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcNationalTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcNationalType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProvinceTypeһʡ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProvinceType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRegionTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRegionType[16];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCountryTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCountryType[16];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLicenseNOTypeһӪҵִ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcLicenseNOType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCompanyTypeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCompanyTypeType[16];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBusinessScopeTypeһӪΧ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBusinessScopeType[1001];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCapitalCurrencyTypeһעʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCapitalCurrencyType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserTypeTypeһû
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷ
+ #define THOST_FTDC_UT_Investor '0'
+ ///Ա
+ #define THOST_FTDC_UT_Operator '1'
+ ///Ա
+ #define THOST_FTDC_UT_SuperUser '2'
+
+ typedef char TThostFtdcUserTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBranchIDTypeһӪҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBranchIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRateTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///֤
+ #define THOST_FTDC_RATETYPE_MarginRate '2'
+
+ typedef char TThostFtdcRateTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcNoteTypeTypeһ֪ͨ
+ /////////////////////////////////////////////////////////////////////////
+ ///㵥
+ #define THOST_FTDC_NOTETYPE_TradeSettleBill '1'
+ ///±
+ #define THOST_FTDC_NOTETYPE_TradeSettleMonth '2'
+ ///ӱ֤֪ͨ
+ #define THOST_FTDC_NOTETYPE_CallMarginNotes '3'
+ ///ǿƽ֪ͨ
+ #define THOST_FTDC_NOTETYPE_ForceCloseNotes '4'
+ ///ɽ֪ͨ
+ #define THOST_FTDC_NOTETYPE_TradeNotes '5'
+ ///֪ͨ
+ #define THOST_FTDC_NOTETYPE_DelivNotes '6'
+
+ typedef char TThostFtdcNoteTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettlementStyleTypeһ㵥ʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ն
+ #define THOST_FTDC_SBS_Day '1'
+ ///ʶԳ
+ #define THOST_FTDC_SBS_Volume '2'
+
+ typedef char TThostFtdcSettlementStyleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerDNSTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBrokerDNSType[256];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSentenceTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSentenceType[501];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettlementBillTypeTypeһ㵥
+ /////////////////////////////////////////////////////////////////////////
+ ///ձ
+ #define THOST_FTDC_ST_Day '0'
+ ///±
+ #define THOST_FTDC_ST_Month '1'
+
+ typedef char TThostFtdcSettlementBillTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserRightTypeTypeһͻȨ
+ /////////////////////////////////////////////////////////////////////////
+ ///¼
+ #define THOST_FTDC_URT_Logon '1'
+ ///ת
+ #define THOST_FTDC_URT_Transfer '2'
+ ///ʼĽ㵥
+ #define THOST_FTDC_URT_EMail '3'
+ ///㵥
+ #define THOST_FTDC_URT_Fax '4'
+ ///
+ #define THOST_FTDC_URT_ConditionOrder '5'
+
+ typedef char TThostFtdcUserRightTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMarginPriceTypeTypeһ֤۸
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_MPT_PreSettlementPrice '1'
+ ///¼
+ #define THOST_FTDC_MPT_SettlementPrice '2'
+ ///ɽ
+ #define THOST_FTDC_MPT_AveragePrice '3'
+ ///ּ
+ #define THOST_FTDC_MPT_OpenPrice '4'
+
+ typedef char TThostFtdcMarginPriceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBillGenStatusTypeһ㵥״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_BGS_None '0'
+ ///
+ #define THOST_FTDC_BGS_NoGenerated '1'
+ ///
+ #define THOST_FTDC_BGS_Generated '2'
+
+ typedef char TThostFtdcBillGenStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAlgoTypeTypeһ㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///ֲִ㷨
+ #define THOST_FTDC_AT_HandlePositionAlgo '1'
+ ///Ѱұ֤㷨
+ #define THOST_FTDC_AT_FindMarginRateAlgo '2'
+
+ typedef char TThostFtdcAlgoTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcHandlePositionAlgoIDTypeһֲִ㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_HPA_Base '1'
+ ///Ʒ
+ #define THOST_FTDC_HPA_DCE '2'
+ ///֣Ʒ
+ #define THOST_FTDC_HPA_CZCE '3'
+
+ typedef char TThostFtdcHandlePositionAlgoIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFindMarginRateAlgoIDTypeһѰұ֤㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FMRA_Base '1'
+ ///Ʒ
+ #define THOST_FTDC_FMRA_DCE '2'
+ ///֣Ʒ
+ #define THOST_FTDC_FMRA_CZCE '3'
+
+ typedef char TThostFtdcFindMarginRateAlgoIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcHandleTradingAccountAlgoIDTypeһʽ㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_HTAA_Base '1'
+ ///Ʒ
+ #define THOST_FTDC_HTAA_DCE '2'
+ ///֣Ʒ
+ #define THOST_FTDC_HTAA_CZCE '3'
+
+ typedef char TThostFtdcHandleTradingAccountAlgoIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPersonTypeTypeһϵ
+ /////////////////////////////////////////////////////////////////////////
+ ///ָµ
+ #define THOST_FTDC_PST_Order '1'
+ ///Ȩ
+ #define THOST_FTDC_PST_Open '2'
+ ///ʽ
+ #define THOST_FTDC_PST_Fund '3'
+ ///㵥ȷ
+ #define THOST_FTDC_PST_Settlement '4'
+ ///
+ #define THOST_FTDC_PST_Company '5'
+ ///˴
+ #define THOST_FTDC_PST_Corporation '6'
+ ///Ͷϵ
+ #define THOST_FTDC_PST_LinkMan '7'
+ ///ֻʲ
+ #define THOST_FTDC_PST_Ledger '8'
+ ///У
+ #define THOST_FTDC_PST_Trustee '9'
+ ///Уܻ˴
+ #define THOST_FTDC_PST_TrusteeCorporation 'A'
+ ///УܻȨ
+ #define THOST_FTDC_PST_TrusteeOpen 'B'
+ ///Уܻϵ
+ #define THOST_FTDC_PST_TrusteeContact 'C'
+ ///Ȼ˲ο֤
+ #define THOST_FTDC_PST_ForeignerRefer 'D'
+ ///˴ο֤
+ #define THOST_FTDC_PST_CorporationRefer 'E'
+
+ typedef char TThostFtdcPersonTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcQueryInvestorRangeTypeһѯΧ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_QIR_All '1'
+ ///ѯ
+ #define THOST_FTDC_QIR_Group '2'
+ ///һͶ
+ #define THOST_FTDC_QIR_Single '3'
+
+ typedef char TThostFtdcQueryInvestorRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorRiskStatusTypeһͶ߷״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_IRS_Normal '1'
+ ///
+ #define THOST_FTDC_IRS_Warn '2'
+ ///
+ #define THOST_FTDC_IRS_Call '3'
+ ///ǿƽ
+ #define THOST_FTDC_IRS_Force '4'
+ ///쳣
+ #define THOST_FTDC_IRS_Exception '5'
+
+ typedef char TThostFtdcInvestorRiskStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLegIDTypeһȱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcLegIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLegMultipleTypeһȳ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcLegMultipleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcImplyLevelTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcImplyLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClearAccountTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClearAccountType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganNOTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrganNOType[6];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClearbarchIDTypeһ˻к
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClearbarchIDType[6];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserEventTypeTypeһû¼
+ /////////////////////////////////////////////////////////////////////////
+ ///¼
+ #define THOST_FTDC_UET_Login '1'
+ ///dz
+ #define THOST_FTDC_UET_Logout '2'
+ ///׳ɹ
+ #define THOST_FTDC_UET_Trading '3'
+ ///ʧ
+ #define THOST_FTDC_UET_TradingError '4'
+ ///
+ #define THOST_FTDC_UET_UpdatePassword '5'
+ ///ͻ֤
+ #define THOST_FTDC_UET_Authenticate '6'
+ ///
+ #define THOST_FTDC_UET_Other '9'
+
+ typedef char TThostFtdcUserEventTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserEventInfoTypeһû¼Ϣ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUserEventInfoType[1025];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCloseStyleTypeһƽַʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ȿƽ
+ #define THOST_FTDC_ICS_Close '0'
+ ///ƽƽ
+ #define THOST_FTDC_ICS_CloseToday '1'
+
+ typedef char TThostFtdcCloseStyleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStatModeTypeһͳƷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///----
+ #define THOST_FTDC_SM_Non '0'
+ ///Լͳ
+ #define THOST_FTDC_SM_Instrument '1'
+ ///Ʒͳ
+ #define THOST_FTDC_SM_Product '2'
+ ///Ͷͳ
+ #define THOST_FTDC_SM_Investor '3'
+
+ typedef char TThostFtdcStatModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParkedOrderStatusTypeһԤ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_PAOS_NotSend '1'
+ ///ѷ
+ #define THOST_FTDC_PAOS_Send '2'
+ ///ɾ
+ #define THOST_FTDC_PAOS_Deleted '3'
+
+ typedef char TThostFtdcParkedOrderStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParkedOrderIDTypeһԤ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcParkedOrderIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParkedOrderActionIDTypeһԤ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcParkedOrderActionIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVirDealStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ڴ
+ #define THOST_FTDC_VDS_Dealing '1'
+ ///ɹ
+ #define THOST_FTDC_VDS_DeaclSucceed '2'
+
+ typedef char TThostFtdcVirDealStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrgSystemIDTypeһԭϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ ///ۺϽƽ̨
+ #define THOST_FTDC_ORGS_Standard '0'
+ ///ʢϵͳ
+ #define THOST_FTDC_ORGS_ESunny '1'
+ ///˴V6ϵͳ
+ #define THOST_FTDC_ORGS_KingStarV6 '2'
+
+ typedef char TThostFtdcOrgSystemIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVirTradeStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_VTS_NaturalDeal '0'
+ ///ɹ
+ #define THOST_FTDC_VTS_SucceedEnd '1'
+ ///ʧܽ
+ #define THOST_FTDC_VTS_FailedEND '2'
+ ///쳣
+ #define THOST_FTDC_VTS_Exception '3'
+ ///˹쳣
+ #define THOST_FTDC_VTS_ManualDeal '4'
+ ///ͨѶ쳣 ˹
+ #define THOST_FTDC_VTS_MesException '5'
+ ///ϵͳ˹
+ #define THOST_FTDC_VTS_SysException '6'
+
+ typedef char TThostFtdcVirTradeStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVirBankAccTypeTypeһʻ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_VBAT_BankBook '1'
+ ///
+ #define THOST_FTDC_VBAT_BankCard '2'
+ ///ÿ
+ #define THOST_FTDC_VBAT_CreditCard '3'
+
+ typedef char TThostFtdcVirBankAccTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVirementStatusTypeһʻ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_VMS_Natural '0'
+ ///
+ #define THOST_FTDC_VMS_Canceled '9'
+
+ typedef char TThostFtdcVirementStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVirementAvailAbilityTypeһЧ־
+ /////////////////////////////////////////////////////////////////////////
+ ///δȷ
+ #define THOST_FTDC_VAA_NoAvailAbility '0'
+ ///Ч
+ #define THOST_FTDC_VAA_AvailAbility '1'
+ ///
+ #define THOST_FTDC_VAA_Repeal '2'
+
+ typedef char TThostFtdcVirementAvailAbilityType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcVirementTradeCodeTypeһ״
+ /////////////////////////////////////////////////////////////////////////
+ ///зʽתڻ
+ #define THOST_FTDC_VTC_BankBankToFuture '102001'
+ ///зڻʽת
+ #define THOST_FTDC_VTC_BankFutureToBank '102002'
+ ///ڻʽתڻ
+ #define THOST_FTDC_VTC_FutureBankToFuture '202001'
+ ///ڻڻʽת
+ #define THOST_FTDC_VTC_FutureFutureToBank '202002'
+
+ typedef char TThostFtdcVirementTradeCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPhotoTypeNameTypeһӰ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPhotoTypeNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPhotoTypeIDTypeһӰʹ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPhotoTypeIDType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPhotoNameTypeһӰ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPhotoNameType[161];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTopicIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTopicIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReportTypeIDTypeһױͱʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcReportTypeIDType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCharacterIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCharacterIDType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLParamIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLParamIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLInvestorTypeTypeһͶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLInvestorTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLIdCardTypeTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLIdCardTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLTradeDirectTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLTradeDirectType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLTradeModelTypeһʽʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLTradeModelType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLParamIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLParamIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLOpParamValueTypeһҵֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcAMLOpParamValueType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLCustomerCardTypeTypeһͻ֤/֤ļ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLCustomerCardTypeType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLInstitutionNameTypeһڻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLInstitutionNameType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLDistrictIDTypeһڻڵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLDistrictIDType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLRelationShipTypeһڻĹϵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLRelationShipType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLInstitutionTypeTypeһڻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLInstitutionTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLInstitutionIDTypeһڻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLInstitutionIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLAccountTypeTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLAccountTypeType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLTradingTypeTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLTradingTypeType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLTransactClassTypeһ֧
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLTransactClassType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLCapitalIOTypeһʽոʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLCapitalIOType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLSiteTypeһص
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLSiteType[10];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLCapitalPurposeTypeһʽ;
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLCapitalPurposeType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLReportTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLReportTypeType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLSerialNoTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLSerialNoType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLStatusType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLGenStatusTypeһAmlɷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_GEN_Program '0'
+ ///˹
+ #define THOST_FTDC_GEN_HandWork '1'
+
+ typedef char TThostFtdcAMLGenStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLSeqCodeTypeһҵʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLSeqCodeType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLFileNameTypeһAMLļ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLFileNameType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLMoneyTypeһϴǮʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcAMLMoneyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLFileAmountTypeһϴǮʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcAMLFileAmountType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCFMMCKeyTypeһԿ(֤)
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCFMMCKeyType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCFMMCTokenTypeһ(֤)
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCFMMCTokenType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCFMMCKeyKindTypeһ̬Կ(֤)
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CFMMCKK_REQUEST 'R'
+ ///CFMMCԶ
+ #define THOST_FTDC_CFMMCKK_AUTO 'A'
+ ///CFMMCֶ
+ #define THOST_FTDC_CFMMCKK_MANUAL 'M'
+
+ typedef char TThostFtdcCFMMCKeyKindType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLReportNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAMLReportNameType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBFComdTypeTypeһDBF
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDBFComdTypeType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBFComTimeTypeһDBFʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDBFComTimeType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBFComNoTypeһDBFˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDBFComNoType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBFFdNameTypeһDBFֶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDBFFdNameType[256];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBFFdContentTypeһDBFֶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDBFFdContentType[256];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIndividualNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcIndividualNameType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencyIDTypeһִ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCurrencyIDType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCustNumberTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCustNumberType[36];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrganCodeType[36];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrganNameType[71];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSuperOrganCodeTypeһϼ,ڻ˾ܲ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSuperOrganCodeType[12];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSubBranchIDTypeһ֧
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSubBranchIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSubBranchNameTypeһ֧
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSubBranchNameType[71];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBranchNetCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBranchNetCodeType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBranchNetNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBranchNetNameType[71];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganFlagTypeһʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOrganFlagType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankCodingForFutureTypeһжڻ˾ı
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankCodingForFutureType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankReturnCodeTypeһжԷĶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankReturnCodeType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPlateReturnCodeTypeһתƽ̨ԷĶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPlateReturnCodeType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankSubBranchIDTypeһз֧
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankSubBranchIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureBranchIDTypeһڻ֧
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureBranchIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReturnCodeTypeһش
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcReturnCodeType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOperatorCodeTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOperatorCodeType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClearDepIDTypeһʻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClearDepIDType[6];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClearBrchIDTypeһʻк
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClearBrchIDType[6];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClearNameTypeһʻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClearNameType[71];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankAccountNameTypeһʻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankAccountNameType[71];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvDepIDTypeһͶ˺Ż
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvDepIDType[6];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvBrchIDTypeһͶк
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvBrchIDType[6];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMessageFormatVersionTypeһϢʽ汾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcMessageFormatVersionType[36];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDigestTypeһժҪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDigestType[36];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAuthenticDataTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAuthenticDataType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPasswordKeyTypeһԿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPasswordKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureAccountNameTypeһڻʻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureAccountNameType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMobilePhoneTypeһֻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcMobilePhoneType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureMainKeyTypeһڻ˾Կ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureMainKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureWorkKeyTypeһڻ˾Կ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureWorkKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureTransKeyTypeһڻ˾Կ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFutureTransKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankMainKeyTypeһԿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankMainKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankWorkKeyTypeһйԿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankWorkKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankTransKeyTypeһдԿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankTransKeyType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankServerDescriptionTypeһзϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankServerDescriptionType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAddInfoTypeһϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAddInfoType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDescrInfoForReturnCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDescrInfoForReturnCodeType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCountryCodeTypeһҴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCountryCodeType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSerialTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSerialType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPlateSerialTypeһƽ̨ˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcPlateSerialType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankSerialTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankSerialType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCorrectSerialTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcCorrectSerialType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureSerialTypeһڻ˾ˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcFutureSerialType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcApplicationIDTypeһӦñʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcApplicationIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankProxyIDTypeһдʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcBankProxyIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTCoreIDTypeһתʺϵͳʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcFBTCoreIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcServerPortTypeһ˿ں
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcServerPortType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRepealedTimesTypeһѾ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcRepealedTimesType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRepealTimeIntervalTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcRepealTimeIntervalType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTotalTimesTypeһÿۼתʴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTotalTimesType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTRequestIDTypeһID
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcFBTRequestIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTIDTypeһID
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeAmountTypeһԪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcTradeAmountType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCustFeeTypeһӦտͻãԪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcCustFeeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureFeeTypeһӦڻ˾ãԪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcFutureFeeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSingleMaxAmtTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcSingleMaxAmtType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSingleMinAmtTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcSingleMinAmtType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTotalAmtTypeһÿۼתʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcTotalAmtType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCertificationTypeTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ ///֤
+ #define THOST_FTDC_CFT_IDCard '0'
+ ///
+ #define THOST_FTDC_CFT_Passport '1'
+ ///֤
+ #define THOST_FTDC_CFT_OfficerIDCard '2'
+ ///ʿ֤
+ #define THOST_FTDC_CFT_SoldierIDCard '3'
+ ///֤
+ #define THOST_FTDC_CFT_HomeComingCard '4'
+ ///ڲ
+ #define THOST_FTDC_CFT_HouseholdRegister '5'
+ ///Ӫҵִպ
+ #define THOST_FTDC_CFT_LicenseNo '6'
+ ///֤֯
+ #define THOST_FTDC_CFT_InstitutionCodeCard '7'
+ ///ʱӪҵִպ
+ #define THOST_FTDC_CFT_TempLicenseNo '8'
+ ///ҵǼ֤
+ #define THOST_FTDC_CFT_NoEnterpriseLicenseNo '9'
+ ///֤
+ #define THOST_FTDC_CFT_OtherCard 'x'
+ ///ܲ
+ #define THOST_FTDC_CFT_SuperDepAgree 'a'
+
+ typedef char TThostFtdcCertificationTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileBusinessCodeTypeһļҵ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FBC_Others '0'
+ ///ת˽ϸ
+ #define THOST_FTDC_FBC_TransferDetails '1'
+ ///ͻ˻״̬
+ #define THOST_FTDC_FBC_CustAccStatus '2'
+ ///˻ཻϸ
+ #define THOST_FTDC_FBC_AccountTradeDetails '3'
+ ///ڻ˻Ϣϸ
+ #define THOST_FTDC_FBC_FutureAccountChangeInfoDetails '4'
+ ///ͻʽ̨ϸ
+ #define THOST_FTDC_FBC_CustMoneyDetail '5'
+ ///ͻϢϸ
+ #define THOST_FTDC_FBC_CustCancelAccountInfo '6'
+ ///ͻʽ˽
+ #define THOST_FTDC_FBC_CustMoneyResult '7'
+ ///쳣ļ
+ #define THOST_FTDC_FBC_OthersExceptionResult '8'
+ ///ͻϢϸ
+ #define THOST_FTDC_FBC_CustInterestNetMoneyDetails '9'
+ ///ͻʽϸ
+ #define THOST_FTDC_FBC_CustMoneySendAndReceiveDetails 'a'
+ ///˴ʽջ
+ #define THOST_FTDC_FBC_CorporationMoneyTotal 'b'
+ ///ʽջ
+ #define THOST_FTDC_FBC_MainbodyMoneyTotal 'c'
+ ///ܷƽ
+ #define THOST_FTDC_FBC_MainPartMonitorData 'd'
+ ///б
+ #define THOST_FTDC_FBC_PreparationMoney 'e'
+ ///Эʽ
+ #define THOST_FTDC_FBC_BankMoneyMonitorData 'f'
+
+ typedef char TThostFtdcFileBusinessCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCashExchangeCodeTypeһ㳮־
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CEC_Exchange '1'
+ ///
+ #define THOST_FTDC_CEC_Cash '2'
+
+ typedef char TThostFtdcCashExchangeCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcYesNoIndicatorTypeһǻʶ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_YNI_Yes '0'
+ ///
+ #define THOST_FTDC_YNI_No '1'
+
+ typedef char TThostFtdcYesNoIndicatorType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBanlanceTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ǰ
+ #define THOST_FTDC_BLT_CurrentMoney '0'
+ ///
+ #define THOST_FTDC_BLT_UsableMoney '1'
+ ///ȡ
+ #define THOST_FTDC_BLT_FetchableMoney '2'
+ ///
+ #define THOST_FTDC_BLT_FreezeMoney '3'
+
+ typedef char TThostFtdcBanlanceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcGenderTypeһԱ
+ /////////////////////////////////////////////////////////////////////////
+ ///δ֪״̬
+ #define THOST_FTDC_GD_Unknown '0'
+ ///
+ #define THOST_FTDC_GD_Male '1'
+ ///Ů
+ #define THOST_FTDC_GD_Female '2'
+
+ typedef char TThostFtdcGenderType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFeePayFlagTypeһ֧־
+ /////////////////////////////////////////////////////////////////////////
+ ///淽֧
+ #define THOST_FTDC_FPF_BEN '0'
+ ///ɷͷ֧
+ #define THOST_FTDC_FPF_OUR '1'
+ ///ɷͷ֧ķã淽֧ܵķ
+ #define THOST_FTDC_FPF_SHA '2'
+
+ typedef char TThostFtdcFeePayFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPassWordKeyTypeTypeһԿ
+ /////////////////////////////////////////////////////////////////////////
+ ///Կ
+ #define THOST_FTDC_PWKT_ExchangeKey '0'
+ ///Կ
+ #define THOST_FTDC_PWKT_PassWordKey '1'
+ ///MACԿ
+ #define THOST_FTDC_PWKT_MACKey '2'
+ ///Կ
+ #define THOST_FTDC_PWKT_MessageKey '3'
+
+ typedef char TThostFtdcPassWordKeyTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTPassWordTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ѯ
+ #define THOST_FTDC_PWT_Query '0'
+ ///ȡ
+ #define THOST_FTDC_PWT_Fetch '1'
+ ///ת
+ #define THOST_FTDC_PWT_Transfer '2'
+ ///
+ #define THOST_FTDC_PWT_Trade '3'
+
+ typedef char TThostFtdcFBTPassWordTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTEncryModeTypeһܷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_EM_NoEncry '0'
+ ///DES
+ #define THOST_FTDC_EM_DES '1'
+ ///3DES
+ #define THOST_FTDC_EM_3DES '2'
+
+ typedef char TThostFtdcFBTEncryModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankRepealFlagTypeһг־
+ /////////////////////////////////////////////////////////////////////////
+ ///Զ
+ #define THOST_FTDC_BRF_BankNotNeedRepeal '0'
+ ///дԶ
+ #define THOST_FTDC_BRF_BankWaitingRepeal '1'
+ ///Զ
+ #define THOST_FTDC_BRF_BankBeenRepealed '2'
+
+ typedef char TThostFtdcBankRepealFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerRepealFlagTypeһ̳־
+ /////////////////////////////////////////////////////////////////////////
+ ///Զ
+ #define THOST_FTDC_BRORF_BrokerNotNeedRepeal '0'
+ ///̴Զ
+ #define THOST_FTDC_BRORF_BrokerWaitingRepeal '1'
+ ///Զ
+ #define THOST_FTDC_BRORF_BrokerBeenRepealed '2'
+
+ typedef char TThostFtdcBrokerRepealFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstitutionTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_TS_Bank '0'
+ ///
+ #define THOST_FTDC_TS_Future '1'
+ ///ȯ
+ #define THOST_FTDC_TS_Store '2'
+
+ typedef char TThostFtdcInstitutionTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLastFragmentTypeһƬ־
+ /////////////////////////////////////////////////////////////////////////
+ ///Ƭ
+ #define THOST_FTDC_LF_Yes '0'
+ ///Ƭ
+ #define THOST_FTDC_LF_No '1'
+
+ typedef char TThostFtdcLastFragmentType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankAccStatusTypeһ˻״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_BAS_Normal '0'
+ ///
+ #define THOST_FTDC_BAS_Freeze '1'
+ ///ʧ
+ #define THOST_FTDC_BAS_ReportLoss '2'
+
+ typedef char TThostFtdcBankAccStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMoneyAccountStatusTypeһʽ˻״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_MAS_Normal '0'
+ ///
+ #define THOST_FTDC_MAS_Cancel '1'
+
+ typedef char TThostFtdcMoneyAccountStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcManageStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ָ
+ #define THOST_FTDC_MSS_Point '0'
+ ///Ԥָ
+ #define THOST_FTDC_MSS_PrePoint '1'
+ ///ָ
+ #define THOST_FTDC_MSS_CancelPoint '2'
+
+ typedef char TThostFtdcManageStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSystemTypeTypeһӦϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ ///ת
+ #define THOST_FTDC_SYT_FutureBankTransfer '0'
+ ///֤ת
+ #define THOST_FTDC_SYT_StockBankTransfer '1'
+ ///
+ #define THOST_FTDC_SYT_TheThirdPartStore '2'
+
+ typedef char TThostFtdcSystemTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTxnEndFlagTypeһתʻת־
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_TEF_NormalProcessing '0'
+ ///ɹ
+ #define THOST_FTDC_TEF_Success '1'
+ ///ʧܽ
+ #define THOST_FTDC_TEF_Failed '2'
+ ///쳣
+ #define THOST_FTDC_TEF_Abnormal '3'
+ ///˹쳣
+ #define THOST_FTDC_TEF_ManualProcessedForException '4'
+ ///ͨѶ쳣 ˹
+ #define THOST_FTDC_TEF_CommuFailedNeedManualProcess '5'
+ ///ϵͳ˹
+ #define THOST_FTDC_TEF_SysErrorNeedManualProcess '6'
+
+ typedef char TThostFtdcTxnEndFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProcessStatusTypeһתʷ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_PSS_NotProcess '0'
+ ///ʼ
+ #define THOST_FTDC_PSS_StartProcess '1'
+ ///
+ #define THOST_FTDC_PSS_Finished '2'
+
+ typedef char TThostFtdcProcessStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCustTypeTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ȼ
+ #define THOST_FTDC_CUSTT_Person '0'
+ ///
+ #define THOST_FTDC_CUSTT_Institution '1'
+
+ typedef char TThostFtdcCustTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTTransferDirectionTypeһתʷ
+ /////////////////////////////////////////////////////////////////////////
+ ///תڻ
+ #define THOST_FTDC_FBTTD_FromBankToFuture '1'
+ ///ڻת
+ #define THOST_FTDC_FBTTD_FromFutureToBank '2'
+
+ typedef char TThostFtdcFBTTransferDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOpenOrDestroyTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_OOD_Open '1'
+ ///
+ #define THOST_FTDC_OOD_Destroy '0'
+
+ typedef char TThostFtdcOpenOrDestroyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAvailabilityFlagTypeһЧ־
+ /////////////////////////////////////////////////////////////////////////
+ ///δȷ
+ #define THOST_FTDC_AVAF_Invalid '0'
+ ///Ч
+ #define THOST_FTDC_AVAF_Valid '1'
+ ///
+ #define THOST_FTDC_AVAF_Repeal '2'
+
+ typedef char TThostFtdcAvailabilityFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///д
+ #define THOST_FTDC_OT_Bank '1'
+ ///ǰ
+ #define THOST_FTDC_OT_Future '2'
+ ///תƽ̨
+ #define THOST_FTDC_OT_PlateForm '9'
+
+ typedef char TThostFtdcOrganTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganLevelTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///лܲ
+ #define THOST_FTDC_OL_HeadQuarters '1'
+ ///зĻڻ˾Ӫҵ
+ #define THOST_FTDC_OL_Branch '2'
+
+ typedef char TThostFtdcOrganLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProtocalIDTypeһЭ
+ /////////////////////////////////////////////////////////////////////////
+ ///Э
+ #define THOST_FTDC_PID_FutureProtocal '0'
+ ///Э
+ #define THOST_FTDC_PID_ICBCProtocal '1'
+ ///ũЭ
+ #define THOST_FTDC_PID_ABCProtocal '2'
+ ///йЭ
+ #define THOST_FTDC_PID_CBCProtocal '3'
+ ///Э
+ #define THOST_FTDC_PID_CCBProtocal '4'
+ ///Э
+ #define THOST_FTDC_PID_BOCOMProtocal '5'
+ ///תƽ̨Э
+ #define THOST_FTDC_PID_FBTPlateFormProtocal 'X'
+
+ typedef char TThostFtdcProtocalIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcConnectModeTypeһӷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CM_ShortConnect '0'
+ ///
+ #define THOST_FTDC_CM_LongConnect '1'
+
+ typedef char TThostFtdcConnectModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSyncModeTypeһͨŷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///첽
+ #define THOST_FTDC_SRM_ASync '0'
+ ///ͬ
+ #define THOST_FTDC_SRM_Sync '1'
+
+ typedef char TThostFtdcSyncModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankAccTypeTypeһʺ
+ /////////////////////////////////////////////////////////////////////////
+ ///д
+ #define THOST_FTDC_BAT_BankBook '1'
+ ///
+ #define THOST_FTDC_BAT_SavingCard '2'
+ ///ÿ
+ #define THOST_FTDC_BAT_CreditCard '3'
+
+ typedef char TThostFtdcBankAccTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureAccTypeTypeһڻ˾ʺ
+ /////////////////////////////////////////////////////////////////////////
+ ///д
+ #define THOST_FTDC_FAT_BankBook '1'
+ ///
+ #define THOST_FTDC_FAT_SavingCard '2'
+ ///ÿ
+ #define THOST_FTDC_FAT_CreditCard '3'
+
+ typedef char TThostFtdcFutureAccTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOrganStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_OS_Ready '0'
+ ///ǩ
+ #define THOST_FTDC_OS_CheckIn '1'
+ ///ǩ
+ #define THOST_FTDC_OS_CheckOut '2'
+ ///ļ
+ #define THOST_FTDC_OS_CheckFileArrived '3'
+ ///
+ #define THOST_FTDC_OS_CheckDetail '4'
+ ///
+ #define THOST_FTDC_OS_DayEndClean '5'
+ ///ע
+ #define THOST_FTDC_OS_Invalid '9'
+
+ typedef char TThostFtdcOrganStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCCBFeeModeTypeһշģʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CCBFM_ByAmount '1'
+ ///¿
+ #define THOST_FTDC_CCBFM_ByMonth '2'
+
+ typedef char TThostFtdcCCBFeeModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommApiTypeTypeһͨѶAPI
+ /////////////////////////////////////////////////////////////////////////
+ ///ͻ
+ #define THOST_FTDC_CAPIT_Client '1'
+ ///
+ #define THOST_FTDC_CAPIT_Server '2'
+ ///ϵͳUserApi
+ #define THOST_FTDC_CAPIT_UserApi '3'
+
+ typedef char TThostFtdcCommApiTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcServiceIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcServiceIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcServiceLineNoTypeһ·
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcServiceLineNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcServiceNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcServiceNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLinkStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѿ
+ #define THOST_FTDC_LS_Connected '1'
+ ///û
+ #define THOST_FTDC_LS_Disconnected '2'
+
+ typedef char TThostFtdcLinkStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommApiPointerTypeһͨѶAPIָ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcCommApiPointerType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPwdFlagTypeһ˶Ա־
+ /////////////////////////////////////////////////////////////////////////
+ ///˶
+ #define THOST_FTDC_BPWDF_NoCheck '0'
+ ///ĺ˶
+ #define THOST_FTDC_BPWDF_BlankCheck '1'
+ ///ĺ˶
+ #define THOST_FTDC_BPWDF_EncryptCheck '2'
+
+ typedef char TThostFtdcPwdFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSecuAccTypeTypeһڻʺ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʽʺ
+ #define THOST_FTDC_SAT_AccountID '1'
+ ///ʽ
+ #define THOST_FTDC_SAT_CardID '2'
+ ///Ϻɶʺ
+ #define THOST_FTDC_SAT_SHStockholderID '3'
+ ///ڹɶʺ
+ #define THOST_FTDC_SAT_SZStockholderID '4'
+
+ typedef char TThostFtdcSecuAccTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTransferStatusTypeһת˽״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_TRFS_Normal '0'
+ ///
+ #define THOST_FTDC_TRFS_Repealed '1'
+
+ typedef char TThostFtdcTransferStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSponsorTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_SPTYPE_Broker '0'
+ ///
+ #define THOST_FTDC_SPTYPE_Bank '1'
+
+ typedef char TThostFtdcSponsorTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReqRspTypeTypeһӦ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_REQRSP_Request '0'
+ ///Ӧ
+ #define THOST_FTDC_REQRSP_Response '1'
+
+ typedef char TThostFtdcReqRspTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTUserEventTypeTypeһתû¼
+ /////////////////////////////////////////////////////////////////////////
+ ///ǩ
+ #define THOST_FTDC_FBTUET_SignIn '0'
+ ///תڻ
+ #define THOST_FTDC_FBTUET_FromBankToFuture '1'
+ ///ڻת
+ #define THOST_FTDC_FBTUET_FromFutureToBank '2'
+ ///
+ #define THOST_FTDC_FBTUET_OpenAccount '3'
+ ///
+ #define THOST_FTDC_FBTUET_CancelAccount '4'
+ ///˻
+ #define THOST_FTDC_FBTUET_ChangeAccount '5'
+ ///תڻ
+ #define THOST_FTDC_FBTUET_RepealFromBankToFuture '6'
+ ///ڻת
+ #define THOST_FTDC_FBTUET_RepealFromFutureToBank '7'
+ ///ѯ˻
+ #define THOST_FTDC_FBTUET_QueryBankAccount '8'
+ ///ѯڻ˻
+ #define THOST_FTDC_FBTUET_QueryFutureAccount '9'
+ ///ǩ
+ #define THOST_FTDC_FBTUET_SignOut 'A'
+ ///Կͬ
+ #define THOST_FTDC_FBTUET_SyncKey 'B'
+ ///
+ #define THOST_FTDC_FBTUET_Other 'Z'
+
+ typedef char TThostFtdcFBTUserEventTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankIDByBankTypeһԼı
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankIDByBankType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankOperNoTypeһвԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankOperNoType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankCustNoTypeһпͻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankCustNoType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBOPSeqNoTypeһк
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcDBOPSeqNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTableNameTypeһFBT
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTableNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPKNameTypeһFBT
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPKNameType[201];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPKValueTypeһFBTֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPKValueType[501];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBOperationTypeһ¼
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_DBOP_Insert '0'
+ ///
+ #define THOST_FTDC_DBOP_Update '1'
+ ///ɾ
+ #define THOST_FTDC_DBOP_Delete '2'
+
+ typedef char TThostFtdcDBOperationType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSyncFlagTypeһͬ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͬ
+ #define THOST_FTDC_SYNF_Yes '0'
+ ///δͬ
+ #define THOST_FTDC_SYNF_No '1'
+
+ typedef char TThostFtdcSyncFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTargetIDTypeһͬĿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTargetIDType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSyncTypeTypeһͬ
+ /////////////////////////////////////////////////////////////////////////
+ ///һͬ
+ #define THOST_FTDC_SYNT_OneOffSync '0'
+ ///ʱͬ
+ #define THOST_FTDC_SYNT_TimerSync '1'
+ ///ʱȫͬ
+ #define THOST_FTDC_SYNT_TimerFullSync '2'
+
+ typedef char TThostFtdcSyncTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBETimeTypeһֻʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBETimeType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEBankNoTypeһк
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEBankNoType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBECertNoTypeһƾ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBECertNoType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExDirectionTypeһ㷽
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FBEDIR_Settlement '0'
+ ///ۻ
+ #define THOST_FTDC_FBEDIR_Sale '1'
+
+ typedef char TThostFtdcExDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEBankAccountTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEBankAccountType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEBankAccountNameTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEBankAccountNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEAmtTypeһֻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcFBEAmtType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEBusinessTypeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEBusinessTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEPostScriptTypeһ㸽
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEPostScriptType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBERemarkTypeһ㱸ע
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBERemarkType[71];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExRateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcExRateType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEResultFlagTypeһɹ־
+ /////////////////////////////////////////////////////////////////////////
+ ///ɹ
+ #define THOST_FTDC_FBERES_Success '0'
+ ///˻
+ #define THOST_FTDC_FBERES_InsufficientBalance '1'
+ ///δ֪
+ #define THOST_FTDC_FBERES_UnknownTrading '8'
+ ///ʧ
+ #define THOST_FTDC_FBERES_Fail 'x'
+
+ typedef char TThostFtdcFBEResultFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBERtnMsgTypeһ㷵Ϣ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBERtnMsgType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEExtendMsgTypeһչϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEExtendMsgType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEBusinessSerialTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEBusinessSerialType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBESystemSerialTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBESystemSerialType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBETotalExCntTypeһ㽻ܱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcFBETotalExCntType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEExchStatusTypeһ㽻״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FBEES_Normal '0'
+ ///ط
+ #define THOST_FTDC_FBEES_ReExchange '1'
+
+ typedef char TThostFtdcFBEExchStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEFileFlagTypeһļ־
+ /////////////////////////////////////////////////////////////////////////
+ ///ݰ
+ #define THOST_FTDC_FBEFG_DataPackage '0'
+ ///ļ
+ #define THOST_FTDC_FBEFG_File '1'
+
+ typedef char TThostFtdcFBEFileFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEAlreadyTradeTypeһѽױ־
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_FBEAT_NotTrade '0'
+ ///ѽ
+ #define THOST_FTDC_FBEAT_Trade '1'
+
+ typedef char TThostFtdcFBEAlreadyTradeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEOpenBankTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEOpenBankType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEUserEventTypeTypeһڻû¼
+ /////////////////////////////////////////////////////////////////////////
+ ///ǩ
+ #define THOST_FTDC_FBEUET_SignIn '0'
+ ///
+ #define THOST_FTDC_FBEUET_Exchange '1'
+ ///ط
+ #define THOST_FTDC_FBEUET_ReExchange '2'
+ ///˻ѯ
+ #define THOST_FTDC_FBEUET_QueryBankAccount '3'
+ ///ϸѯ
+ #define THOST_FTDC_FBEUET_QueryExchDetial '4'
+ ///ܲѯ
+ #define THOST_FTDC_FBEUET_QueryExchSummary '5'
+ ///ʲѯ
+ #define THOST_FTDC_FBEUET_QueryExchRate '6'
+ ///ļ֪ͨ
+ #define THOST_FTDC_FBEUET_CheckBankAccount '7'
+ ///ǩ
+ #define THOST_FTDC_FBEUET_SignOut '8'
+ ///
+ #define THOST_FTDC_FBEUET_Other 'Z'
+
+ typedef char TThostFtdcFBEUserEventTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEFileNameTypeһļ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEFileNameType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEBatchSerialTypeһκ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFBEBatchSerialType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBEReqFlagTypeһ㷢ͱ־
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_FBERF_UnProcessed '0'
+ ///ȴ
+ #define THOST_FTDC_FBERF_WaitSend '1'
+ ///ͳɹ
+ #define THOST_FTDC_FBERF_SendSuccess '2'
+ ///ʧ
+ #define THOST_FTDC_FBERF_SendFailed '3'
+ ///ȴط
+ #define THOST_FTDC_FBERF_WaitReSend '4'
+
+ typedef char TThostFtdcFBEReqFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcNotifyClassTypeһ֪ͨ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_NC_NOERROR '0'
+ ///ʾ
+ #define THOST_FTDC_NC_Warn '1'
+ ///
+ #define THOST_FTDC_NC_Call '2'
+ ///ǿƽ
+ #define THOST_FTDC_NC_Force '3'
+ ///
+ #define THOST_FTDC_NC_CHUANCANG '4'
+ ///쳣
+ #define THOST_FTDC_NC_Exception '5'
+
+ typedef char TThostFtdcNotifyClassType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRiskNofityInfoTypeһͻ֪ͨϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRiskNofityInfoType[257];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcForceCloseSceneIdTypeһǿƽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcForceCloseSceneIdType[24];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcForceCloseTypeTypeһǿƽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֹǿƽ
+ #define THOST_FTDC_FCT_Manual '0'
+ ///һͶ߸ǿƽ
+ #define THOST_FTDC_FCT_Single '1'
+ ///Ͷ߸ǿƽ
+ #define THOST_FTDC_FCT_Group '2'
+
+ typedef char TThostFtdcForceCloseTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInstrumentIDsTypeһƷ,+ָ,cu+zn
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInstrumentIDsType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRiskNotifyMethodTypeһ֪ͨ;
+ /////////////////////////////////////////////////////////////////////////
+ ///ϵͳ֪ͨ
+ #define THOST_FTDC_RNM_System '0'
+ ///֪ͨ
+ #define THOST_FTDC_RNM_SMS '1'
+ ///ʼ֪ͨ
+ #define THOST_FTDC_RNM_EMail '2'
+ ///˹֪ͨ
+ #define THOST_FTDC_RNM_Manual '3'
+
+ typedef char TThostFtdcRiskNotifyMethodType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRiskNotifyStatusTypeһ֪ͨ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_RNS_NotGen '0'
+ ///δ
+ #define THOST_FTDC_RNS_Generated '1'
+ ///ʧ
+ #define THOST_FTDC_RNS_SendError '2'
+ ///ѷδ
+ #define THOST_FTDC_RNS_SendOk '3'
+ ///ѽδȷ
+ #define THOST_FTDC_RNS_Received '4'
+ ///ȷ
+ #define THOST_FTDC_RNS_Confirmed '5'
+
+ typedef char TThostFtdcRiskNotifyStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRiskUserEventTypeһû¼
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_RUE_ExportData '0'
+
+ typedef char TThostFtdcRiskUserEventType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParamIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcParamIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParamNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcParamNameType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcParamValueTypeһֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcParamValueType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcConditionalOrderSortTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʹ¼
+ #define THOST_FTDC_COST_LastPriceAsc '0'
+ ///ʹ¼۽
+ #define THOST_FTDC_COST_LastPriceDesc '1'
+ ///ʹ
+ #define THOST_FTDC_COST_AskPriceAsc '2'
+ ///ʹ۽
+ #define THOST_FTDC_COST_AskPriceDesc '3'
+ ///ʹ
+ #define THOST_FTDC_COST_BidPriceAsc '4'
+ ///ʹ۽
+ #define THOST_FTDC_COST_BidPriceDesc '5'
+
+ typedef char TThostFtdcConditionalOrderSortTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSendTypeTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_UOAST_NoSend '0'
+ ///ѷ
+ #define THOST_FTDC_UOAST_Sended '1'
+ ///
+ #define THOST_FTDC_UOAST_Generated '2'
+ ///ʧ
+ #define THOST_FTDC_UOAST_SendFail '3'
+ ///ճɹ
+ #define THOST_FTDC_UOAST_Success '4'
+ ///ʧ
+ #define THOST_FTDC_UOAST_Fail '5'
+ ///ȡ
+ #define THOST_FTDC_UOAST_Cancel '6'
+
+ typedef char TThostFtdcSendTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientIDStatusTypeһױ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_UOACS_NoApply '1'
+ ///ύ
+ #define THOST_FTDC_UOACS_Submited '2'
+ ///ѷ
+ #define THOST_FTDC_UOACS_Sended '3'
+ ///
+ #define THOST_FTDC_UOACS_Success '4'
+ ///ܾ
+ #define THOST_FTDC_UOACS_Refuse '5'
+ ///ѳ
+ #define THOST_FTDC_UOACS_Cancel '6'
+
+ typedef char TThostFtdcClientIDStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIndustryIDTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcIndustryIDType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcQuestionIDTypeһϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcQuestionIDType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcQuestionContentTypeһϢ˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcQuestionContentType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOptionIDTypeһѡ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOptionIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOptionContentTypeһѡ˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOptionContentType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcQuestionTypeTypeһϢ
+ /////////////////////////////////////////////////////////////////////////
+ ///ѡ
+ #define THOST_FTDC_QT_Radio '1'
+ ///ѡ
+ #define THOST_FTDC_QT_Option '2'
+ ///
+ #define THOST_FTDC_QT_Blank '3'
+
+ typedef char TThostFtdcQuestionTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProcessIDTypeһҵˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProcessIDType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSeqNoTypeһˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSeqNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAProcessStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOAProcessStatusType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProcessTypeTypeһ̹
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcProcessTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBusinessTypeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_BT_Request '1'
+ ///Ӧ
+ #define THOST_FTDC_BT_Response '2'
+ ///֪ͨ
+ #define THOST_FTDC_BT_Notice '3'
+
+ typedef char TThostFtdcBusinessTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCfmmcReturnCodeTypeһķ
+ /////////////////////////////////////////////////////////////////////////
+ ///ɹ
+ #define THOST_FTDC_CRC_Success '0'
+ ///ÿͻѾڴ
+ #define THOST_FTDC_CRC_Working '1'
+ ///пͻϼʧ
+ #define THOST_FTDC_CRC_InfoFail '2'
+ ///ʵƼʧ
+ #define THOST_FTDC_CRC_IDCardFail '3'
+ ///
+ #define THOST_FTDC_CRC_OtherFail '4'
+
+ typedef char TThostFtdcCfmmcReturnCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExReturnCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcExReturnCodeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientTypeTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CfMMCCT_All '0'
+ ///
+ #define THOST_FTDC_CfMMCCT_Person '1'
+ ///λ
+ #define THOST_FTDC_CfMMCCT_Company '2'
+ ///
+ #define THOST_FTDC_CfMMCCT_Other '3'
+ ///ⷨ
+ #define THOST_FTDC_CfMMCCT_SpecialOrgan '4'
+ ///ʹܻ
+ #define THOST_FTDC_CfMMCCT_Asset '5'
+
+ typedef char TThostFtdcClientTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeIDTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ϻڻ
+ #define THOST_FTDC_EIDT_SHFE 'S'
+ ///֣Ʒ
+ #define THOST_FTDC_EIDT_CZCE 'Z'
+ ///Ʒ
+ #define THOST_FTDC_EIDT_DCE 'D'
+ ///йڻ
+ #define THOST_FTDC_EIDT_CFFEX 'J'
+ ///ϺԴĹɷ˾
+ #define THOST_FTDC_EIDT_INE 'N'
+
+ typedef char TThostFtdcExchangeIDTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExClientIDTypeTypeһױ
+ /////////////////////////////////////////////////////////////////////////
+ ///ױ
+ #define THOST_FTDC_ECIDT_Hedge '1'
+ ///
+ #define THOST_FTDC_ECIDT_Arbitrage '2'
+ ///Ͷ
+ #define THOST_FTDC_ECIDT_Speculation '3'
+
+ typedef char TThostFtdcExClientIDTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientClassifyTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClientClassifyType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAOrganTypeTypeһλ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOAOrganTypeType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOACountryCodeTypeһҴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOACountryCodeType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAreaCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAreaCodeType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFuturesIDTypeһΪͻĴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFuturesIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCffmcDateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCffmcDateType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCffmcTimeTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCffmcTimeType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcNocIDTypeһ֯
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcNocIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUpdateFlagTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_UF_NoUpdate '0'
+ ///ȫϢɹ
+ #define THOST_FTDC_UF_Success '1'
+ ///ȫϢʧ
+ #define THOST_FTDC_UF_Fail '2'
+ ///½ױɹ
+ #define THOST_FTDC_UF_TCSuccess '3'
+ ///½ױʧ
+ #define THOST_FTDC_UF_TCFail '4'
+ ///Ѷ
+ #define THOST_FTDC_UF_Cancel '5'
+
+ typedef char TThostFtdcUpdateFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcApplyOperateIDTypeһ붯
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_AOID_OpenInvestor '1'
+ ///Ϣ
+ #define THOST_FTDC_AOID_ModifyIDCard '2'
+ ///һϢ
+ #define THOST_FTDC_AOID_ModifyNoIDCard '3'
+ ///뽻ױ
+ #define THOST_FTDC_AOID_ApplyTradingCode '4'
+ ///ױ
+ #define THOST_FTDC_AOID_CancelTradingCode '5'
+ ///
+ #define THOST_FTDC_AOID_CancelInvestor '6'
+ ///˻
+ #define THOST_FTDC_AOID_FreezeAccount '8'
+ ///˻
+ #define THOST_FTDC_AOID_ActiveFreezeAccount '9'
+
+ typedef char TThostFtdcApplyOperateIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcApplyStatusIDTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δȫ
+ #define THOST_FTDC_ASID_NoComplete '1'
+ ///ύ
+ #define THOST_FTDC_ASID_Submited '2'
+ ///
+ #define THOST_FTDC_ASID_Checked '3'
+ ///Ѿܾ
+ #define THOST_FTDC_ASID_Refused '4'
+ ///ɾ
+ #define THOST_FTDC_ASID_Deleted '5'
+
+ typedef char TThostFtdcApplyStatusIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSendMethodTypeһͷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ļ
+ #define THOST_FTDC_UOASM_ByAPI '1'
+ ///ӷ
+ #define THOST_FTDC_UOASM_ByFile '2'
+
+ typedef char TThostFtdcSendMethodType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEventTypeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcEventTypeType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcEventModeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_EvM_ADD '1'
+ ///
+ #define THOST_FTDC_EvM_UPDATE '2'
+ ///ɾ
+ #define THOST_FTDC_EvM_DELETE '3'
+ ///
+ #define THOST_FTDC_EvM_CHECK '4'
+ ///
+ #define THOST_FTDC_EvM_COPY '5'
+ ///ע
+ #define THOST_FTDC_EvM_CANCEL '6'
+ ///
+ #define THOST_FTDC_EvM_Reverse '7'
+
+ typedef char TThostFtdcEventModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAAutoSendTypeһͳһԶ
+ /////////////////////////////////////////////////////////////////////////
+ ///ԶͲ
+ #define THOST_FTDC_UOAA_ASR '1'
+ ///ԶͣԶ
+ #define THOST_FTDC_UOAA_ASNR '2'
+ ///ԶͣԶ
+ #define THOST_FTDC_UOAA_NSAR '3'
+ ///ԶͣҲԶ
+ #define THOST_FTDC_UOAA_NSR '4'
+
+ typedef char TThostFtdcUOAAutoSendType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcQueryDepthTypeһѯ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcQueryDepthType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDataCenterIDTypeһĴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcDataCenterIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFlowIDTypeһID
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷ߶ӦͶ
+ #define THOST_FTDC_EvM_InvestorGroupFlow '1'
+ ///Ͷ
+ #define THOST_FTDC_EvM_InvestorRate '2'
+ ///Ͷģϵ
+ #define THOST_FTDC_EvM_InvestorCommRateModel '3'
+
+ typedef char TThostFtdcFlowIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCheckLevelTypeһ˼
+ /////////////////////////////////////////////////////////////////////////
+ ///㼶
+ #define THOST_FTDC_CL_Zero '0'
+ ///һ
+ #define THOST_FTDC_CL_One '1'
+ ///
+ #define THOST_FTDC_CL_Two '2'
+
+ typedef char TThostFtdcCheckLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCheckNoTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcCheckNoType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCheckStatusTypeһ˼
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_CHS_Init '0'
+ ///
+ #define THOST_FTDC_CHS_Checking '1'
+ ///Ѹ
+ #define THOST_FTDC_CHS_Checked '2'
+ ///ܾ
+ #define THOST_FTDC_CHS_Refuse '3'
+ ///
+ #define THOST_FTDC_CHS_Cancel '4'
+
+ typedef char TThostFtdcCheckStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUsedStatusTypeһЧ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δЧ
+ #define THOST_FTDC_CHU_Unused '0'
+ ///Ч
+ #define THOST_FTDC_CHU_Used '1'
+ ///Чʧ
+ #define THOST_FTDC_CHU_Fail '2'
+
+ typedef char TThostFtdcUsedStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRateTemplateNameTypeһģ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRateTemplateNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPropertyStringTypeһڲѯͶֶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPropertyStringType[2049];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankAcountOriginTypeһ˻Դ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֹ¼
+ #define THOST_FTDC_BAO_ByAccProperty '0'
+ ///ת
+ #define THOST_FTDC_BAO_ByFBTransfer '1'
+
+ typedef char TThostFtdcBankAcountOriginType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMonthBillTradeSumTypeһ㵥±ɽܷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͬͬԼ
+ #define THOST_FTDC_MBTS_ByInstrument '0'
+ ///ͬͬԼͬ۸
+ #define THOST_FTDC_MBTS_ByDayInsPrc '1'
+ ///ͬԼ
+ #define THOST_FTDC_MBTS_ByDayIns '2'
+
+ typedef char TThostFtdcMonthBillTradeSumType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFBTTradeCodeEnumTypeһڽ״ö
+ /////////////////////////////////////////////////////////////////////////
+ ///зתڻ
+ #define THOST_FTDC_FTC_BankLaunchBankToBroker '102001'
+ ///ڻתڻ
+ #define THOST_FTDC_FTC_BrokerLaunchBankToBroker '202001'
+ ///зڻת
+ #define THOST_FTDC_FTC_BankLaunchBrokerToBank '102002'
+ ///ڻڻת
+ #define THOST_FTDC_FTC_BrokerLaunchBrokerToBank '202002'
+
+ typedef char TThostFtdcFBTTradeCodeEnumType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRateTemplateIDTypeһģʹ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRateTemplateIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRiskRateTypeһն
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRiskRateType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTimestampTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTimestampType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorIDRuleNameTypeһŶι
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvestorIDRuleNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorIDRuleExprTypeһŶιʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvestorIDRuleExprType[513];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLastDriftTypeһϴOTPƯֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcLastDriftType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLastSuccessTypeһϴOTPɹֵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcLastSuccessType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAuthKeyTypeһԿ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAuthKeyType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSerialNumberTypeһк
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSerialNumberType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOTPTypeTypeһ̬
+ /////////////////////////////////////////////////////////////////////////
+ ///̬
+ #define THOST_FTDC_OTP_NONE '0'
+ ///ʱ
+ #define THOST_FTDC_OTP_TOTP '1'
+
+ typedef char TThostFtdcOTPTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOTPVendorsIDTypeһ̬ṩ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOTPVendorsIDType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOTPVendorsNameTypeһ̬ṩ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOTPVendorsNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOTPStatusTypeһ̬״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δʹ
+ #define THOST_FTDC_OTPS_Unused '0'
+ ///ʹ
+ #define THOST_FTDC_OTPS_Used '1'
+ ///ע
+ #define THOST_FTDC_OTPS_Disuse '2'
+
+ typedef char TThostFtdcOTPStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBrokerUserTypeTypeһù˾û
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷ
+ #define THOST_FTDC_BUT_Investor '1'
+ ///Ա
+ #define THOST_FTDC_BUT_BrokerUser '2'
+
+ typedef char TThostFtdcBrokerUserTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFutureTypeTypeһڻ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ʒڻ
+ #define THOST_FTDC_FUTT_Commodity '1'
+ ///ڻ
+ #define THOST_FTDC_FUTT_Financial '2'
+
+ typedef char TThostFtdcFutureTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundEventTypeTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ת
+ #define THOST_FTDC_FET_Restriction '0'
+ ///ת
+ #define THOST_FTDC_FET_TodayRestriction '1'
+ ///ˮ
+ #define THOST_FTDC_FET_Transfer '2'
+ ///ʽ
+ #define THOST_FTDC_FET_Credit '3'
+ ///Ͷ߿ʽ
+ #define THOST_FTDC_FET_InvestorWithdrawAlm '4'
+ ///ʻת
+ #define THOST_FTDC_FET_BankRestriction '5'
+ ///ǩԼ˻
+ #define THOST_FTDC_FET_Accountregister '6'
+ ///
+ #define THOST_FTDC_FET_ExchangeFundIO '7'
+ ///Ͷ߳
+ #define THOST_FTDC_FET_InvestorFundIO '8'
+
+ typedef char TThostFtdcFundEventTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAccountSourceTypeTypeһʽ˻Դ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͬ
+ #define THOST_FTDC_AST_FBTransfer '0'
+ ///ֹ¼
+ #define THOST_FTDC_AST_ManualEntry '1'
+
+ typedef char TThostFtdcAccountSourceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCodeSourceTypeTypeһױԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͳһ(ѹ淶)
+ #define THOST_FTDC_CST_UnifyAccount '0'
+ ///ֹ¼(δ淶)
+ #define THOST_FTDC_CST_ManualEntry '1'
+
+ typedef char TThostFtdcCodeSourceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserRangeTypeһԱΧ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_UR_All '0'
+ ///һԱ
+ #define THOST_FTDC_UR_Single '1'
+
+ typedef char TThostFtdcUserRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTimeSpanTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcTimeSpanType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcImportSequenceIDTypeһ̬Ƶα
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcImportSequenceIDType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcByGroupTypeһͳƱͻͳƷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ͷͳ
+ #define THOST_FTDC_BG_Investor '2'
+ ///ͳ
+ #define THOST_FTDC_BG_Group '1'
+
+ typedef char TThostFtdcByGroupType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeSumStatModeTypeһͳƱΧͳƷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Լͳ
+ #define THOST_FTDC_TSSM_Instrument '1'
+ ///Ʒͳ
+ #define THOST_FTDC_TSSM_Product '2'
+ ///ͳ
+ #define THOST_FTDC_TSSM_Exchange '3'
+
+ typedef char TThostFtdcTradeSumStatModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcComTypeTypeһϳɽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcComTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserProductIDTypeһƷʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUserProductIDType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserProductNameTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUserProductNameType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUserProductMemoTypeһƷ˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUserProductMemoType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCCancelFlagTypeһ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCCancelFlagType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCDateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCDateType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCInvestorNameTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCInvestorNameType[201];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCOpenInvestorNameTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCOpenInvestorNameType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCInvestorIDTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCInvestorIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCIdentifiedCardNoTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCIdentifiedCardNoType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCClientIDTypeһױ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCClientIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCBankFlagTypeһбʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCBankFlagType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCBankAccountTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCBankAccountType[23];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCOpenNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCOpenNameType[401];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCMemoTypeһ˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCMemoType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCTimeTypeһʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCTimeType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCTradeIDTypeһɽˮ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCTradeIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCExchangeInstIDTypeһԼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCExchangeInstIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCMortgageNameTypeһѺƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCMortgageNameType[7];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCReasonTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCReasonType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIsSettlementTypeһǷΪǽԱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcIsSettlementType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCMoneyTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcCSRCMoneyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCPriceTypeһ۸
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcCSRCPriceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCOptionsTypeTypeһȨ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCOptionsTypeType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCStrikePriceTypeһִм
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcCSRCStrikePriceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCTargetProductIDTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCTargetProductIDType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCTargetInstrIDTypeһĺԼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCTargetInstrIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommModelNameTypeһģ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCommModelNameType[161];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCommModelMemoTypeһģ屸ע
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCommModelMemoType[1025];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExprSetModeTypeһڱʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///й
+ #define THOST_FTDC_ESM_Relative '1'
+ ///
+ #define THOST_FTDC_ESM_Typical '2'
+
+ typedef char TThostFtdcExprSetModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRateInvestorRangeTypeһͶ߷Χ
+ /////////////////////////////////////////////////////////////////////////
+ ///˾
+ #define THOST_FTDC_RIR_All '1'
+ ///ģ
+ #define THOST_FTDC_RIR_Model '2'
+ ///һͶ
+ #define THOST_FTDC_RIR_Single '3'
+
+ typedef char TThostFtdcRateInvestorRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAgentBrokerIDTypeһ˾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAgentBrokerIDType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDRIdentityIDTypeһĴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcDRIdentityIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDRIdentityNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDRIdentityNameType[65];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDBLinkIDTypeһDBLinkʶ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDBLinkIDType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSyncDataStatusTypeһϵͳͬ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δͬ
+ #define THOST_FTDC_SDS_Initialize '0'
+ ///ͬ
+ #define THOST_FTDC_SDS_Settlementing '1'
+ ///ͬ
+ #define THOST_FTDC_SDS_Settlemented '2'
+
+ typedef char TThostFtdcSyncDataStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeSourceTypeһɽԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///Խͨر
+ #define THOST_FTDC_TSRC_NORMAL '0'
+ ///Բѯ
+ #define THOST_FTDC_TSRC_QUERY '1'
+
+ typedef char TThostFtdcTradeSourceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFlexStatModeTypeһƷԼͳƷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ʒͳ
+ #define THOST_FTDC_FSM_Product '1'
+ ///ͳ
+ #define THOST_FTDC_FSM_Exchange '2'
+ ///ͳ
+ #define THOST_FTDC_FSM_All '3'
+
+ typedef char TThostFtdcFlexStatModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcByInvestorRangeTypeһͶ߷ΧͳƷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ͳ
+ #define THOST_FTDC_BIR_Property '1'
+ ///ͳ
+ #define THOST_FTDC_BIR_All '2'
+
+ typedef char TThostFtdcByInvestorRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSRiskRateTypeһն
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSRiskRateType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSequenceNo12Typeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcSequenceNo12Type;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPropertyInvestorRangeTypeһͶ߷Χ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_PIR_All '1'
+ ///Ͷ
+ #define THOST_FTDC_PIR_Property '2'
+ ///һͶ
+ #define THOST_FTDC_PIR_Single '3'
+
+ typedef char TThostFtdcPropertyInvestorRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileStatusTypeһļ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_FIS_NoCreate '0'
+ ///
+ #define THOST_FTDC_FIS_Created '1'
+ ///ʧ
+ #define THOST_FTDC_FIS_Failed '2'
+
+ typedef char TThostFtdcFileStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFileGenStyleTypeһļɷʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///·
+ #define THOST_FTDC_FGS_FileTransmit '0'
+ ///
+ #define THOST_FTDC_FGS_FileGen '1'
+
+ typedef char TThostFtdcFileGenStyleType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSysOperModeTypeһϵͳ־
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_SoM_Add '1'
+ ///
+ #define THOST_FTDC_SoM_Update '2'
+ ///ɾ
+ #define THOST_FTDC_SoM_Delete '3'
+ ///
+ #define THOST_FTDC_SoM_Copy '4'
+ ///
+ #define THOST_FTDC_SoM_AcTive '5'
+ ///ע
+ #define THOST_FTDC_SoM_CanCel '6'
+ ///
+ #define THOST_FTDC_SoM_ReSet '7'
+
+ typedef char TThostFtdcSysOperModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSysOperTypeTypeһϵͳ־
+ /////////////////////////////////////////////////////////////////////////
+ ///IJԱ
+ #define THOST_FTDC_SoT_UpdatePassword '0'
+ ///Աܹ֯ϵ
+ #define THOST_FTDC_SoT_UserDepartment '1'
+ ///ɫ
+ #define THOST_FTDC_SoT_RoleManager '2'
+ ///ɫ
+ #define THOST_FTDC_SoT_RoleFunction '3'
+ ///
+ #define THOST_FTDC_SoT_BaseParam '4'
+ ///òԱ
+ #define THOST_FTDC_SoT_SetUserID '5'
+ ///ûɫ
+ #define THOST_FTDC_SoT_SetUserRole '6'
+ ///ûIP
+ #define THOST_FTDC_SoT_UserIpRestriction '7'
+ ///ܹ֯
+ #define THOST_FTDC_SoT_DepartmentManager '8'
+ ///ܹ֯ѯิ
+ #define THOST_FTDC_SoT_DepartmentCopy '9'
+ ///ױ
+ #define THOST_FTDC_SoT_Tradingcode 'A'
+ ///Ͷ״̬ά
+ #define THOST_FTDC_SoT_InvestorStatus 'B'
+ ///ͶȨ
+ #define THOST_FTDC_SoT_InvestorAuthority 'C'
+ ///
+ #define THOST_FTDC_SoT_PropertySet 'D'
+ ///Ͷ
+ #define THOST_FTDC_SoT_ReSetInvestorPasswd 'E'
+ ///Ͷ߸Ϣά
+ #define THOST_FTDC_SoT_InvestorPersonalityInfo 'F'
+
+ typedef char TThostFtdcSysOperTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCDataQueyTypeTypeһϱݲѯ
+ /////////////////////////////////////////////////////////////////////////
+ ///ѯǰձ͵
+ #define THOST_FTDC_CSRCQ_Current '0'
+ ///ѯʷ͵Ĵ˾
+ #define THOST_FTDC_CSRCQ_History '1'
+
+ typedef char TThostFtdcCSRCDataQueyTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFreezeStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ծ
+ #define THOST_FTDC_FRS_Normal '1'
+ ///
+ #define THOST_FTDC_FRS_Freeze '0'
+
+ typedef char TThostFtdcFreezeStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStandardStatusTypeһ淶״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ѹ淶
+ #define THOST_FTDC_STST_Standard '0'
+ ///δ淶
+ #define THOST_FTDC_STST_NonStandard '1'
+
+ typedef char TThostFtdcStandardStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCFreezeStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCFreezeStatusType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRightParamTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_RPT_Freeze '1'
+ ///
+ #define THOST_FTDC_RPT_FreezeActive '2'
+ ///Ȩ
+ #define THOST_FTDC_RPT_OpenLimit '3'
+ ///Ȩ
+ #define THOST_FTDC_RPT_RelieveOpenLimit '4'
+
+ typedef char TThostFtdcRightParamTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRightTemplateIDTypeһģ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRightTemplateIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRightTemplateNameTypeһģ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcRightTemplateNameType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDataStatusTypeһϴǮ˱״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_AMLDS_Normal '0'
+ ///ɾ
+ #define THOST_FTDC_AMLDS_Deleted '1'
+
+ typedef char TThostFtdcDataStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAMLCheckStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_AMLCHS_Init '0'
+ ///
+ #define THOST_FTDC_AMLCHS_Checking '1'
+ ///Ѹ
+ #define THOST_FTDC_AMLCHS_Checked '2'
+ ///ܾϱ
+ #define THOST_FTDC_AMLCHS_RefuseReport '3'
+
+ typedef char TThostFtdcAMLCheckStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAmlDateTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_AMLDT_DrawDay '0'
+ ///
+ #define THOST_FTDC_AMLDT_TouchDay '1'
+
+ typedef char TThostFtdcAmlDateTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAmlCheckLevelTypeһ˼
+ /////////////////////////////////////////////////////////////////////////
+ ///㼶
+ #define THOST_FTDC_AMLCL_CheckLevel0 '0'
+ ///һ
+ #define THOST_FTDC_AMLCL_CheckLevel1 '1'
+ ///
+ #define THOST_FTDC_AMLCL_CheckLevel2 '2'
+ ///
+ #define THOST_FTDC_AMLCL_CheckLevel3 '3'
+
+ typedef char TThostFtdcAmlCheckLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAmlCheckFlowTypeһϴǮݳȡ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAmlCheckFlowType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDataTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcDataTypeType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExportFileTypeTypeһļ
+ /////////////////////////////////////////////////////////////////////////
+ ///CSV
+ #define THOST_FTDC_EFT_CSV '0'
+ ///Excel
+ #define THOST_FTDC_EFT_EXCEL '1'
+ ///DBF
+ #define THOST_FTDC_EFT_DBF '2'
+
+ typedef char TThostFtdcExportFileTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettleManagerTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ǰ
+ #define THOST_FTDC_SMT_Before '1'
+ ///
+ #define THOST_FTDC_SMT_Settlement '2'
+ ///˶
+ #define THOST_FTDC_SMT_After '3'
+ ///
+ #define THOST_FTDC_SMT_Settlemented '4'
+
+ typedef char TThostFtdcSettleManagerTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettleManagerIDTypeһô
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSettleManagerIDType[33];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettleManagerNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSettleManagerNameType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettleManagerLevelTypeһõȼ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ҫ
+ #define THOST_FTDC_SML_Must '1'
+ ///
+ #define THOST_FTDC_SML_Alarm '2'
+ ///ʾ
+ #define THOST_FTDC_SML_Prompt '3'
+ ///
+ #define THOST_FTDC_SML_Ignore '4'
+
+ typedef char TThostFtdcSettleManagerLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettleManagerGroupTypeһģ
+ /////////////////////////////////////////////////////////////////////////
+ ///˶
+ #define THOST_FTDC_SMG_Exhcange '1'
+ ///ڲ˶
+ #define THOST_FTDC_SMG_ASP '2'
+ ///ϱݺ˶
+ #define THOST_FTDC_SMG_CSRC '3'
+
+ typedef char TThostFtdcSettleManagerGroupType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCheckResultMemoTypeһ˶Խ˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCheckResultMemoType[1025];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFunctionUrlTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcFunctionUrlType[1025];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAuthInfoTypeһͻ֤Ϣ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAuthInfoType[129];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAuthCodeTypeһͻ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAuthCodeType[17];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLimitUseTypeTypeһֵʹ
+ /////////////////////////////////////////////////////////////////////////
+ ///ظʹ
+ #define THOST_FTDC_LUT_Repeatable '1'
+ ///ظʹ
+ #define THOST_FTDC_LUT_Unrepeatable '2'
+
+ typedef char TThostFtdcLimitUseTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDataResourceTypeһԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ϵͳ
+ #define THOST_FTDC_DAR_Settle '1'
+ ///
+ #define THOST_FTDC_DAR_Exchange '2'
+ ///
+ #define THOST_FTDC_DAR_CSRC '3'
+
+ typedef char TThostFtdcDataResourceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMarginTypeTypeһ֤
+ /////////////////////////////////////////////////////////////////////////
+ ///֤
+ #define THOST_FTDC_MGT_ExchMarginRate '0'
+ ///Ͷ֤߱
+ #define THOST_FTDC_MGT_InstrMarginRate '1'
+ ///Ͷ߽ױ֤
+ #define THOST_FTDC_MGT_InstrMarginRateTrade '2'
+
+ typedef char TThostFtdcMarginTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcActiveTypeTypeһЧ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ч
+ #define THOST_FTDC_ACT_Intraday '1'
+ ///Ч
+ #define THOST_FTDC_ACT_Long '2'
+
+ typedef char TThostFtdcActiveTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMarginRateTypeTypeһͻ֤
+ /////////////////////////////////////////////////////////////////////////
+ ///֤
+ #define THOST_FTDC_MRT_Exchange '1'
+ ///Ͷ֤߱
+ #define THOST_FTDC_MRT_Investor '2'
+ ///Ͷ߽ױ֤
+ #define THOST_FTDC_MRT_InvestorTrade '3'
+
+ typedef char TThostFtdcMarginRateTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBackUpStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δɱ
+ #define THOST_FTDC_BUS_UnBak '0'
+ ///
+ #define THOST_FTDC_BUS_BakUp '1'
+ ///ɱ
+ #define THOST_FTDC_BUS_BakUped '2'
+ ///ʧ
+ #define THOST_FTDC_BUS_BakFail '3'
+
+ typedef char TThostFtdcBackUpStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInitSettlementTypeһʼ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ʼδʼ
+ #define THOST_FTDC_SIS_UnInitialize '0'
+ ///ʼ
+ #define THOST_FTDC_SIS_Initialize '1'
+ ///ʼ
+ #define THOST_FTDC_SIS_Initialized '2'
+
+ typedef char TThostFtdcInitSettlementType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReportStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δɱ
+ #define THOST_FTDC_SRS_NoCreate '0'
+ ///
+ #define THOST_FTDC_SRS_Create '1'
+ ///ɱ
+ #define THOST_FTDC_SRS_Created '2'
+ ///ɱʧ
+ #define THOST_FTDC_SRS_CreateFail '3'
+
+ typedef char TThostFtdcReportStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSaveStatusTypeһݹ鵵״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///鵵δ
+ #define THOST_FTDC_SSS_UnSaveData '0'
+ ///鵵
+ #define THOST_FTDC_SSS_SaveDatad '1'
+
+ typedef char TThostFtdcSaveStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSettArchiveStatusTypeһȷݹ鵵״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///δ鵵
+ #define THOST_FTDC_SAS_UnArchived '0'
+ ///ݹ鵵
+ #define THOST_FTDC_SAS_Archiving '1'
+ ///ѹ鵵
+ #define THOST_FTDC_SAS_Archived '2'
+ ///鵵ʧ
+ #define THOST_FTDC_SAS_ArchiveFail '3'
+
+ typedef char TThostFtdcSettArchiveStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCTPTypeTypeһCTPϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ ///δ֪
+ #define THOST_FTDC_CTPT_Unkown '0'
+ ///
+ #define THOST_FTDC_CTPT_MainCenter '1'
+ ///
+ #define THOST_FTDC_CTPT_BackUp '2'
+
+ typedef char TThostFtdcCTPTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcToolIDTypeһߴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcToolIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcToolNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcToolNameType[81];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCloseDealTypeTypeһƽִ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CDT_Normal '0'
+ ///Ͷƽ
+ #define THOST_FTDC_CDT_SpecFirst '1'
+
+ typedef char TThostFtdcCloseDealTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMortgageFundUseRangeTypeһѺʽ÷Χ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʹ
+ #define THOST_FTDC_MFUR_None '0'
+ ///ڱ֤
+ #define THOST_FTDC_MFUR_Margin '1'
+ ///ѡӯ֤
+ #define THOST_FTDC_MFUR_All '2'
+
+ typedef char TThostFtdcMortgageFundUseRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencyUnitTypeһֵλ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcCurrencyUnitType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExchangeRateTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcExchangeRateType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSpecProductTypeTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ ///֣ױƷ
+ #define THOST_FTDC_SPT_CzceHedge '1'
+ ///ѺƷ
+ #define THOST_FTDC_SPT_IneForeignCurrency '2'
+ ///߿ƽֲƷ
+ #define THOST_FTDC_SPT_DceOpenClose '3'
+
+ typedef char TThostFtdcSpecProductTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundMortgageTypeTypeһѺ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѻ
+ #define THOST_FTDC_FMT_Mortgage '1'
+ ///
+ #define THOST_FTDC_FMT_Redemption '2'
+
+ typedef char TThostFtdcFundMortgageTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAccountSettlementParamIDTypeһͶ˻
+ /////////////////////////////////////////////////////////////////////////
+ ///֤
+ #define THOST_FTDC_ASPI_BaseMargin '1'
+ ///Ȩ
+ #define THOST_FTDC_ASPI_LowestInterest '2'
+
+ typedef char TThostFtdcAccountSettlementParamIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencyNameTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCurrencyNameType[31];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencySignTypeһַ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCurrencySignType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundMortDirectionTypeһѺ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_FMD_In '1'
+ ///ʳ
+ #define THOST_FTDC_FMD_Out '2'
+
+ typedef char TThostFtdcFundMortDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBusinessClassTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ӯ
+ #define THOST_FTDC_BT_Profit '0'
+ ///
+ #define THOST_FTDC_BT_Loss '1'
+ ///
+ #define THOST_FTDC_BT_Other 'Z'
+
+ typedef char TThostFtdcBusinessClassType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSwapSourceTypeTypeһԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֹ
+ #define THOST_FTDC_SST_Manual '0'
+ ///Զ
+ #define THOST_FTDC_SST_Automatic '1'
+
+ typedef char TThostFtdcSwapSourceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrExDirectionTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CED_Settlement '0'
+ ///ۻ
+ #define THOST_FTDC_CED_Sale '1'
+
+ typedef char TThostFtdcCurrExDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencySwapStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///¼
+ #define THOST_FTDC_CSS_Entry '1'
+ ///
+ #define THOST_FTDC_CSS_Approve '2'
+ ///Ѿܾ
+ #define THOST_FTDC_CSS_Refuse '3'
+ ///ѳ
+ #define THOST_FTDC_CSS_Revoke '4'
+ ///ѷ
+ #define THOST_FTDC_CSS_Send '5'
+ ///ɹ
+ #define THOST_FTDC_CSS_Success '6'
+ ///ʧ
+ #define THOST_FTDC_CSS_Failure '7'
+
+ typedef char TThostFtdcCurrencySwapStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrExchCertNoTypeһƾ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCurrExchCertNoType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBatchSerialNoTypeһκ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBatchSerialNoType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcReqFlagTypeһ㷢ͱ־
+ /////////////////////////////////////////////////////////////////////////
+ ///δ
+ #define THOST_FTDC_REQF_NoSend '0'
+ ///ͳɹ
+ #define THOST_FTDC_REQF_SendSuccess '1'
+ ///ʧ
+ #define THOST_FTDC_REQF_SendFailed '2'
+ ///ȴط
+ #define THOST_FTDC_REQF_WaitReSend '3'
+
+ typedef char TThostFtdcReqFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcResFlagTypeһ㷵سɹ־
+ /////////////////////////////////////////////////////////////////////////
+ ///ɹ
+ #define THOST_FTDC_RESF_Success '0'
+ ///˻
+ #define THOST_FTDC_RESF_InsuffiCient '1'
+ ///δ֪
+ #define THOST_FTDC_RESF_UnKnown '8'
+
+ typedef char TThostFtdcResFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPageControlTypeһҳ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPageControlType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcRecordCountTypeһ¼
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcRecordCountType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCurrencySwapMemoTypeһȷϢ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCurrencySwapMemoType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///ǰ
+ #define THOST_FTDC_EXS_Before '0'
+ ///ĺ
+ #define THOST_FTDC_EXS_After '1'
+
+ typedef char TThostFtdcExStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientRegionTypeһͻ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڿͻ
+ #define THOST_FTDC_CR_Domestic '1'
+ ///۰̨ͻ
+ #define THOST_FTDC_CR_GMT '2'
+ ///ͻ
+ #define THOST_FTDC_CR_Foreign '3'
+
+ typedef char TThostFtdcClientRegionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcWorkPlaceTypeһλ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcWorkPlaceType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBusinessPeriodTypeһӪ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBusinessPeriodType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcWebSiteTypeһַ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcWebSiteType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAIdCardTypeTypeһͳһ֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOAIdCardTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcClientModeTypeһģʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcClientModeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestorFullNameTypeһͶȫ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvestorFullNameType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOABrokerIDTypeһнID
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOABrokerIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAZipCodeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOAZipCodeType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAEMailTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOAEMailType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOldCityTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcOldCityType[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCorporateIdentifiedCardNoTypeһ˴֤
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCorporateIdentifiedCardNoType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcHasBoardTypeһǷж»
+ /////////////////////////////////////////////////////////////////////////
+ ///û
+ #define THOST_FTDC_HB_No '0'
+ ///
+ #define THOST_FTDC_HB_Yes '1'
+
+ typedef char TThostFtdcHasBoardType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStartModeTypeһģʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_SM_Normal '1'
+ ///Ӧ
+ #define THOST_FTDC_SM_Emerge '2'
+ ///ָ
+ #define THOST_FTDC_SM_Restore '3'
+
+ typedef char TThostFtdcStartModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTemplateTypeTypeһģ
+ /////////////////////////////////////////////////////////////////////////
+ ///ȫ
+ #define THOST_FTDC_TPT_Full '1'
+ ///
+ #define THOST_FTDC_TPT_Increment '2'
+ ///
+ #define THOST_FTDC_TPT_BackUp '3'
+
+ typedef char TThostFtdcTemplateTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLoginModeTypeһ¼ģʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_LM_Trade '0'
+ ///ת
+ #define THOST_FTDC_LM_Transfer '1'
+
+ typedef char TThostFtdcLoginModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPromptTypeTypeһʾ
+ /////////////////////////////////////////////////////////////////////////
+ ///Լ
+ #define THOST_FTDC_CPT_Instrument '1'
+ ///ֶ֤Ч
+ #define THOST_FTDC_CPT_Margin '2'
+
+ typedef char TThostFtdcPromptTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLedgerManageIDTypeһֻʲ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcLedgerManageIDType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInvestVarietyTypeһͶƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInvestVarietyType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBankAccountTypeTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcBankAccountTypeType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLedgerManageBankTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcLedgerManageBankType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCffexDepartmentNameTypeһӪҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCffexDepartmentNameType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCffexDepartmentCodeTypeһӪҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCffexDepartmentCodeType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcHasTrusteeTypeһǷй
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_HT_Yes '1'
+ ///û
+ #define THOST_FTDC_HT_No '0'
+
+ typedef char TThostFtdcHasTrusteeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCMemo1Typeһ˵
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCMemo1Type[41];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAssetmgrCFullNameTypeһʲҵڻ˾ȫ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAssetmgrCFullNameType[101];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAssetmgrApprovalNOTypeһʲҵĺ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAssetmgrApprovalNOType[51];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAssetmgrMgrNameTypeһʲҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAssetmgrMgrNameType[401];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAmTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_AMT_Bank '1'
+ ///֤ȯ˾
+ #define THOST_FTDC_AMT_Securities '2'
+ ///˾
+ #define THOST_FTDC_AMT_Fund '3'
+ ///չ˾
+ #define THOST_FTDC_AMT_Insurance '4'
+ ///й˾
+ #define THOST_FTDC_AMT_Trust '5'
+ ///
+ #define THOST_FTDC_AMT_Other '9'
+
+ typedef char TThostFtdcAmTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCAmTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCAmTypeType[5];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCFundIOTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CFIOT_FundIO '0'
+ ///ڻ
+ #define THOST_FTDC_CFIOT_SwapCurrency '1'
+
+ typedef char TThostFtdcCSRCFundIOTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCusAccountTypeTypeһ˻
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ˻
+ #define THOST_FTDC_CAT_Futures '1'
+ ///ڻʹҵµʹܽ˻
+ #define THOST_FTDC_CAT_AssetmgrFuture '2'
+ ///ۺʹҵµڻʹй˻
+ #define THOST_FTDC_CAT_AssetmgrTrustee '3'
+ ///ۺʹҵµʽת˻
+ #define THOST_FTDC_CAT_AssetmgrTransfer '4'
+
+ typedef char TThostFtdcCusAccountTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCNationalTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCNationalType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCSRCSecAgentIDTypeһID
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCSRCSecAgentIDType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLanguageTypeTypeһ֪ͨ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_LT_Chinese '1'
+ ///Ӣ
+ #define THOST_FTDC_LT_English '2'
+
+ typedef char TThostFtdcLanguageTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAmAccountTypeһͶ˻
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcAmAccountType[23];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAssetmgrClientTypeTypeһʲͻ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʹܿͻ
+ #define THOST_FTDC_AMCT_Person '1'
+ ///λʹܿͻ
+ #define THOST_FTDC_AMCT_Organ '2'
+ ///ⵥλʹܿͻ
+ #define THOST_FTDC_AMCT_SpecialOrgan '4'
+
+ typedef char TThostFtdcAssetmgrClientTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcAssetmgrTypeTypeһͶ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ
+ #define THOST_FTDC_ASST_Futures '3'
+ ///ۺ
+ #define THOST_FTDC_ASST_SpecialOrgan '4'
+
+ typedef char TThostFtdcAssetmgrTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOMTypeһλ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcUOMType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSHFEInstLifePhaseTypeһԼ״̬
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSHFEInstLifePhaseType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSHFEProductClassTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSHFEProductClassType[11];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcPriceDecimalTypeһ۸Сλ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcPriceDecimalType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcInTheMoneyFlagTypeһƽֵȨ־
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcInTheMoneyFlagType[2];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCheckInstrTypeTypeһԼȽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Լ
+ #define THOST_FTDC_CIT_HasExch '0'
+ ///Լϵͳ
+ #define THOST_FTDC_CIT_HasATP '1'
+ ///ԼȽϲһ
+ #define THOST_FTDC_CIT_HasDiff '2'
+
+ typedef char TThostFtdcCheckInstrTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDeliveryTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֹ
+ #define THOST_FTDC_DT_HandDeliv '1'
+ ///ڽ
+ #define THOST_FTDC_DT_PersonDeliv '2'
+
+ typedef char TThostFtdcDeliveryTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBigMoneyTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcBigMoneyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcMaxMarginSideAlgorithmTypeһ֤߱㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///ʹô֤߱㷨
+ #define THOST_FTDC_MMSA_NO '0'
+ ///ʹô֤߱㷨
+ #define THOST_FTDC_MMSA_YES '1'
+
+ typedef char TThostFtdcMaxMarginSideAlgorithmType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDAClientTypeTypeһʲͻ
+ /////////////////////////////////////////////////////////////////////////
+ ///Ȼ
+ #define THOST_FTDC_CACT_Person '0'
+ ///
+ #define THOST_FTDC_CACT_Company '1'
+ ///
+ #define THOST_FTDC_CACT_Other '2'
+
+ typedef char TThostFtdcDAClientTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombinInstrIDTypeһԼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCombinInstrIDType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombinSettlePriceTypeһȽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcCombinSettlePriceType[61];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDCEPriorityTypeһȼ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcDCEPriorityType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeGroupIDTypeһɽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcTradeGroupIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcIsCheckPrepaTypeһǷУ鿪ʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcIsCheckPrepaType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcUOAAssetmgrTypeTypeһͶ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ
+ #define THOST_FTDC_UOAAT_Futures '1'
+ ///ۺ
+ #define THOST_FTDC_UOAAT_SpecialOrgan '2'
+
+ typedef char TThostFtdcUOAAssetmgrTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDirectionEnTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///Buy
+ #define THOST_FTDC_DEN_Buy '0'
+ ///Sell
+ #define THOST_FTDC_DEN_Sell '1'
+
+ typedef char TThostFtdcDirectionEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOffsetFlagEnTypeһƽ־
+ /////////////////////////////////////////////////////////////////////////
+ ///Position Opening
+ #define THOST_FTDC_OFEN_Open '0'
+ ///Position Close
+ #define THOST_FTDC_OFEN_Close '1'
+ ///Forced Liquidation
+ #define THOST_FTDC_OFEN_ForceClose '2'
+ ///Close Today
+ #define THOST_FTDC_OFEN_CloseToday '3'
+ ///Close Prev.
+ #define THOST_FTDC_OFEN_CloseYesterday '4'
+ ///Forced Reduction
+ #define THOST_FTDC_OFEN_ForceOff '5'
+ ///Local Forced Liquidation
+ #define THOST_FTDC_OFEN_LocalForceClose '6'
+
+ typedef char TThostFtdcOffsetFlagEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcHedgeFlagEnTypeһͶױ־
+ /////////////////////////////////////////////////////////////////////////
+ ///Speculation
+ #define THOST_FTDC_HFEN_Speculation '1'
+ ///Arbitrage
+ #define THOST_FTDC_HFEN_Arbitrage '2'
+ ///Hedge
+ #define THOST_FTDC_HFEN_Hedge '3'
+
+ typedef char TThostFtdcHedgeFlagEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundIOTypeEnTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///Deposit/Withdrawal
+ #define THOST_FTDC_FIOTEN_FundIO '1'
+ ///Bank-Futures Transfer
+ #define THOST_FTDC_FIOTEN_Transfer '2'
+ ///Bank-Futures FX Exchange
+ #define THOST_FTDC_FIOTEN_SwapCurrency '3'
+
+ typedef char TThostFtdcFundIOTypeEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundTypeEnTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Bank Deposit
+ #define THOST_FTDC_FTEN_Deposite '1'
+ ///Payment/Fee
+ #define THOST_FTDC_FTEN_ItemFund '2'
+ ///Brokerage Adj
+ #define THOST_FTDC_FTEN_Company '3'
+ ///Internal Transfer
+ #define THOST_FTDC_FTEN_InnerTransfer '4'
+
+ typedef char TThostFtdcFundTypeEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundDirectionEnTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///Deposit
+ #define THOST_FTDC_FDEN_In '1'
+ ///Withdrawal
+ #define THOST_FTDC_FDEN_Out '2'
+
+ typedef char TThostFtdcFundDirectionEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFundMortDirectionEnTypeһѺ
+ /////////////////////////////////////////////////////////////////////////
+ ///Pledge
+ #define THOST_FTDC_FMDEN_In '1'
+ ///Redemption
+ #define THOST_FTDC_FMDEN_Out '2'
+
+ typedef char TThostFtdcFundMortDirectionEnType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSwapBusinessTypeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcSwapBusinessTypeType[3];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOptionsTypeTypeһȨ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CP_CallOptions '1'
+ ///
+ #define THOST_FTDC_CP_PutOptions '2'
+
+ typedef char TThostFtdcOptionsTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStrikeModeTypeһִзʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ŷʽ
+ #define THOST_FTDC_STM_Continental '0'
+ ///ʽ
+ #define THOST_FTDC_STM_American '1'
+ ///Ľ
+ #define THOST_FTDC_STM_Bermuda '2'
+
+ typedef char TThostFtdcStrikeModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStrikeTypeTypeһִ
+ /////////////////////////////////////////////////////////////////////////
+ ///Գ
+ #define THOST_FTDC_STT_Hedge '0'
+ ///ƥִ
+ #define THOST_FTDC_STT_Match '1'
+
+ typedef char TThostFtdcStrikeTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcApplyTypeTypeһнȨִ
+ /////////////////////////////////////////////////////////////////////////
+ ///ִ
+ #define THOST_FTDC_APPT_NotStrikeNum '4'
+
+ typedef char TThostFtdcApplyTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcGiveUpDataSourceTypeһִԴ
+ /////////////////////////////////////////////////////////////////////////
+ ///ϵͳ
+ #define THOST_FTDC_GUDS_Gen '0'
+ ///ֹ
+ #define THOST_FTDC_GUDS_Hand '1'
+
+ typedef char TThostFtdcGiveUpDataSourceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExecOrderSysIDTypeһִϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcExecOrderSysIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExecResultTypeһִн
+ /////////////////////////////////////////////////////////////////////////
+ ///ûִ
+ #define THOST_FTDC_OER_NoExec 'n'
+ ///Ѿȡ
+ #define THOST_FTDC_OER_Canceled 'c'
+ ///ִгɹ
+ #define THOST_FTDC_OER_OK '0'
+ ///Ȩֲֲ
+ #define THOST_FTDC_OER_NoPosition '1'
+ ///ʽ
+ #define THOST_FTDC_OER_NoDeposit '2'
+ ///Ա
+ #define THOST_FTDC_OER_NoParticipant '3'
+ ///ͻ
+ #define THOST_FTDC_OER_NoClient '4'
+ ///Լ
+ #define THOST_FTDC_OER_NoInstrument '6'
+ ///ûִȨ
+ #define THOST_FTDC_OER_NoRight '7'
+ ///
+ #define THOST_FTDC_OER_InvalidVolume '8'
+ ///û㹻ʷɽ
+ #define THOST_FTDC_OER_NoEnoughHistoryTrade '9'
+ ///δ֪
+ #define THOST_FTDC_OER_Unknown 'a'
+
+ typedef char TThostFtdcExecResultType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStrikeSequenceTypeһִ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TThostFtdcStrikeSequenceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStrikeTimeTypeһִʱ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcStrikeTimeType[13];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombinationTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ
+ #define THOST_FTDC_COMBT_Future '0'
+ ///ֱ۲BUL
+ #define THOST_FTDC_COMBT_BUL '1'
+ ///ֱ۲BER
+ #define THOST_FTDC_COMBT_BER '2'
+ ///ʽ
+ #define THOST_FTDC_COMBT_STD '3'
+ ///ʽ
+ #define THOST_FTDC_COMBT_STG '4'
+ ///
+ #define THOST_FTDC_COMBT_PRT '5'
+ ///ʱ۲
+ #define THOST_FTDC_COMBT_CLD '6'
+
+ typedef char TThostFtdcCombinationTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcOptionRoyaltyPriceTypeTypeһȨȨ۸
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_ORPT_PreSettlementPrice '1'
+ ///ּ
+ #define THOST_FTDC_ORPT_OpenPrice '4'
+
+ typedef char TThostFtdcOptionRoyaltyPriceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBalanceAlgorithmTypeһȨ㷨
+ /////////////////////////////////////////////////////////////////////////
+ ///Ȩֵӯ
+ #define THOST_FTDC_BLAG_Default '1'
+ ///Ȩֵ
+ #define THOST_FTDC_BLAG_IncludeOptValLost '2'
+
+ typedef char TThostFtdcBalanceAlgorithmType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcActionTypeTypeһִ
+ /////////////////////////////////////////////////////////////////////////
+ ///ִ
+ #define THOST_FTDC_ACTP_Exec '1'
+ ///
+ #define THOST_FTDC_ACTP_Abandon '2'
+
+ typedef char TThostFtdcActionTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcForQuoteStatusTypeһѯ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѿύ
+ #define THOST_FTDC_FQST_Submitted 'a'
+ ///Ѿ
+ #define THOST_FTDC_FQST_Accepted 'b'
+ ///Ѿܾ
+ #define THOST_FTDC_FQST_Rejected 'c'
+
+ typedef char TThostFtdcForQuoteStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcValueMethodTypeһȡֵʽ
+ /////////////////////////////////////////////////////////////////////////
+ ///ֵ
+ #define THOST_FTDC_VM_Absolute '0'
+ ///
+ #define THOST_FTDC_VM_Ratio '1'
+
+ typedef char TThostFtdcValueMethodType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExecOrderPositionFlagTypeһȨȨǷڻͷı
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_EOPF_Reserve '0'
+ ///
+ #define THOST_FTDC_EOPF_UnReserve '1'
+
+ typedef char TThostFtdcExecOrderPositionFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcExecOrderCloseFlagTypeһȨȨɵͷǷԶƽ
+ /////////////////////////////////////////////////////////////////////////
+ ///Զƽ
+ #define THOST_FTDC_EOCF_AutoClose '0'
+ ///Զƽ
+ #define THOST_FTDC_EOCF_NotToClose '1'
+
+ typedef char TThostFtdcExecOrderCloseFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcProductTypeTypeһƷ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ
+ #define THOST_FTDC_PTE_Futures '1'
+ ///Ȩ
+ #define THOST_FTDC_PTE_Options '2'
+
+ typedef char TThostFtdcProductTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCZCEUploadFileNameTypeһ֣ļ
+ /////////////////////////////////////////////////////////////////////////
+ ///^\d{8}_zz_\d{4}
+ #define THOST_FTDC_CUFN_CUFN_O 'O'
+ ///^\d{8}ɽ
+ #define THOST_FTDC_CUFN_CUFN_T 'T'
+ ///^\d{8}ȳֱֲnew
+ #define THOST_FTDC_CUFN_CUFN_P 'P'
+ ///^\d{8}ƽ˽
+ #define THOST_FTDC_CUFN_CUFN_N 'N'
+ ///^\d{8}ƽֱ
+ #define THOST_FTDC_CUFN_CUFN_L 'L'
+ ///^\d{8}ʽ
+ #define THOST_FTDC_CUFN_CUFN_F 'F'
+ ///^\d{8}ϳֱֲ
+ #define THOST_FTDC_CUFN_CUFN_C 'C'
+ ///^\d{8}֤
+ #define THOST_FTDC_CUFN_CUFN_M 'M'
+
+ typedef char TThostFtdcCZCEUploadFileNameType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDCEUploadFileNameTypeһļ
+ /////////////////////////////////////////////////////////////////////////
+ ///^\d{8}_dl_\d{3}
+ #define THOST_FTDC_DUFN_DUFN_O 'O'
+ ///^\d{8}_ɽ
+ #define THOST_FTDC_DUFN_DUFN_T 'T'
+ ///^\d{8}_ֱֲ
+ #define THOST_FTDC_DUFN_DUFN_P 'P'
+ ///^\d{8}_ʽ
+ #define THOST_FTDC_DUFN_DUFN_F 'F'
+ ///^\d{8}_Żϳֲϸ
+ #define THOST_FTDC_DUFN_DUFN_C 'C'
+ ///^\d{8}_ֲϸ
+ #define THOST_FTDC_DUFN_DUFN_D 'D'
+ ///^\d{8}_֤
+ #define THOST_FTDC_DUFN_DUFN_M 'M'
+ ///^\d{8}_Ȩִб
+ #define THOST_FTDC_DUFN_DUFN_S 'S'
+
+ typedef char TThostFtdcDCEUploadFileNameType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcSHFEUploadFileNameTypeһļ
+ /////////////////////////////////////////////////////////////////////////
+ ///^\d{4}_\d{8}_\d{8}_DailyFundChg
+ #define THOST_FTDC_SUFN_SUFN_O 'O'
+ ///^\d{4}_\d{8}_\d{8}_Trade
+ #define THOST_FTDC_SUFN_SUFN_T 'T'
+ ///^\d{4}_\d{8}_\d{8}_SettlementDetail
+ #define THOST_FTDC_SUFN_SUFN_P 'P'
+ ///^\d{4}_\d{8}_\d{8}_Capital
+ #define THOST_FTDC_SUFN_SUFN_F 'F'
+
+ typedef char TThostFtdcSHFEUploadFileNameType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCFFEXUploadFileNameTypeһнļ
+ /////////////////////////////////////////////////////////////////////////
+ ///^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade
+ #define THOST_FTDC_CFUFN_SUFN_T 'T'
+ ///^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail
+ #define THOST_FTDC_CFUFN_SUFN_P 'P'
+ ///^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital
+ #define THOST_FTDC_CFUFN_SUFN_F 'F'
+ ///^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec
+ #define THOST_FTDC_CFUFN_SUFN_S 'S'
+
+ typedef char TThostFtdcCFFEXUploadFileNameType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcCombDirectionTypeһָ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_CMDR_Comb '0'
+ ///
+ #define THOST_FTDC_CMDR_UnComb '1'
+
+ typedef char TThostFtdcCombDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcLockTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+ #define THOST_FTDC_LCKT_Lock '1'
+ ///
+ #define THOST_FTDC_LCKT_Unlock '2'
+
+ typedef char TThostFtdcLockTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcBizTypeTypeһҵ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڻ
+ #define THOST_FTDC_BZTP_Future '1'
+ ///֤ȯ
+ #define THOST_FTDC_BZTP_Stock '2'
+
+ typedef char TThostFtdcBizTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcDesignateTypeTypeһָ
+ /////////////////////////////////////////////////////////////////////////
+ ///ָǼ
+ #define THOST_FTDC_DSTP_Register '1'
+ ///ָ
+ #define THOST_FTDC_DSTP_Cancel '2'
+
+ typedef char TThostFtdcDesignateTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFreezeReasonTypeTypeһԭ
+ /////////////////////////////////////////////////////////////////////////
+ ///ʼ
+#define THOST_FTDC_FRTP_Init '1'
+ ///
+#define THOST_FTDC_FRTP_Lock '2'
+ ///ִ
+#define THOST_FTDC_FRTP_Exec '3'
+
+ typedef char TThostFtdcFreezeReasonTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcFreezeTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+#define THOST_FTDC_FZTP_Freeze '1'
+ ///ⶳ
+#define THOST_FTDC_FZTP_Unfreeze '2'
+ ///ǿִ
+#define THOST_FTDC_FZTP_Force '3'
+
+ typedef char TThostFtdcFreezeTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcTradeSystemTypeTypeһϵͳ
+ /////////////////////////////////////////////////////////////////////////
+ ///δ֪ϵͳ
+#define THOST_FTDC_TSTP_Unknow '0'
+ ///ڻϵͳ
+#define THOST_FTDC_TSTP_Future '1'
+ ///ϵͳ
+#define THOST_FTDC_TSTP_IShare '2'
+
+ typedef char TThostFtdcTradeSystemTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStockDisposalTypeTypeһ֤ȯ÷
+ /////////////////////////////////////////////////////////////////////////
+ ///뾭˾˻
+#define THOST_FTDC_STPT_ToBroker '1'
+ ///Ͷ˻
+#define THOST_FTDC_STPT_ToInvestor '2'
+
+ typedef char TThostFtdcStockDisposalTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStockDisposalSysIDTypeһ֤ȯñ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TThostFtdcStockDisposalSysIDType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TFtdcStockDisposalStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///Ѿύ
+#define THOST_FTDC_SDPS_Submitted 'a'
+ ///Ѿ
+#define THOST_FTDC_SDPS_Accepted 'b'
+ ///Ѿܾ
+#define THOST_FTDC_SDPS_Rejected 'c'
+ ///Ѿ
+#define THOST_FTDC_SDPS_Cancelled 'd'
+
+ typedef char TThostFtdcStockDisposalStatusType;
+} // end of namespace KingstarAPI
+
+#endif
diff --git a/include/Kingstar/IncEx/KSUserApiStructEx.h b/include/Kingstar/IncEx/KSUserApiStructEx.h
new file mode 100644
index 0000000..ff907e1
--- /dev/null
+++ b/include/Kingstar/IncEx/KSUserApiStructEx.h
@@ -0,0 +1,8870 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSUserApiStructEx.h
+///@brief ˿ͻ˽ӿʹõҵݽṹ
+/////////////////////////////////////////////////////////////////////////
+
+#if !defined(KINSTARAPI_FTDCSTRUCT_H)
+#define KINSTARAPI_FTDCSTRUCT_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiDataTypeEx.h"
+
+namespace KingstarAPI
+{
+
+ ///Ϣַ
+ struct CThostFtdcDisseminationField
+ {
+ ///ϵк
+ TThostFtdcSequenceSeriesType SequenceSeries;
+ ///к
+ TThostFtdcSequenceNoType SequenceNo;
+ };
+
+ ///û¼
+ struct CThostFtdcReqUserLoginField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcPasswordType Password;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///ӿڶ˲ƷϢ
+ TThostFtdcProductInfoType InterfaceProductInfo;
+ ///ЭϢ
+ TThostFtdcProtocolInfoType ProtocolInfo;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
+ ///̬
+ TThostFtdcPasswordType OneTimePassword;
+ ///նIPַ
+ TThostFtdcIPAddressType ClientIPAddress;
+ };
+
+ ///û¼Ӧ
+ struct CThostFtdcRspUserLoginField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///¼ɹʱ
+ TThostFtdcTimeType LoginTime;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ϵͳ
+ TThostFtdcSystemNameType SystemName;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcOrderRefType MaxOrderRef;
+ ///ʱ
+ TThostFtdcTimeType SHFETime;
+ ///ʱ
+ TThostFtdcTimeType DCETime;
+ ///֣ʱ
+ TThostFtdcTimeType CZCETime;
+ ///нʱ
+ TThostFtdcTimeType FFEXTime;
+ ///Դʱ
+ TThostFtdcTimeType INETime;
+ };
+
+ ///ûdz
+ struct CThostFtdcUserLogoutField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ǿƽԱ˳
+ struct CThostFtdcForceUserLogoutField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ͻ֤
+ struct CThostFtdcReqAuthenticateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///֤
+ TThostFtdcAuthCodeType AuthCode;
+ };
+
+ ///ͻ֤Ӧ
+ struct CThostFtdcRspAuthenticateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ };
+
+ ///ͻ֤Ϣ
+ struct CThostFtdcAuthenticationInfoField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///֤Ϣ
+ TThostFtdcAuthInfoType AuthInfo;
+ ///ǷΪ֤
+ TThostFtdcBoolType IsResult;
+ };
+
+ ///תʱͷ
+ struct CThostFtdcTransferHeaderField
+ {
+ ///汾ţ1.0
+ TThostFtdcVersionType Version;
+ ///״룬
+ TThostFtdcTradeCodeType TradeCode;
+ ///ڣʽyyyymmdd
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ䣬ʽhhmmss
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮţN/A
+ TThostFtdcTradeSerialType TradeSerial;
+ ///ڻ˾룬
+ TThostFtdcFutureIDType FutureID;
+ ///д룬ݲѯеõ
+ TThostFtdcBankIDType BankID;
+ ///зĴ룬ݲѯеõ
+ TThostFtdcBankBrchIDType BankBrchID;
+ ///ԱN/A
+ TThostFtdcOperNoType OperNo;
+ ///豸ͣN/A
+ TThostFtdcDeviceIDType DeviceID;
+ ///¼N/A
+ TThostFtdcRecordNumType RecordNum;
+ ///ỰţN/A
+ TThostFtdcSessionIDType SessionID;
+ ///ţN/A
+ TThostFtdcRequestIDType RequestID;
+ };
+
+ ///ʽתڻTradeCode=202001
+ struct CThostFtdcTransferBankToFutureReqField
+ {
+ ///ڻʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ ///־
+ TThostFtdcFuturePwdFlagType FuturePwdFlag;
+ ///
+ TThostFtdcFutureAccPwdType FutureAccPwd;
+ ///ת˽
+ TThostFtdcMoneyType TradeAmt;
+ ///ͻ
+ TThostFtdcMoneyType CustFee;
+ ///֣RMB- USD-Բ HKD-Ԫ
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ };
+
+ ///ʽתڻӦ
+ struct CThostFtdcTransferBankToFutureRspField
+ {
+ ///Ӧ
+ TThostFtdcRetCodeType RetCode;
+ ///ӦϢ
+ TThostFtdcRetInfoType RetInfo;
+ ///ʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ ///תʽ
+ TThostFtdcMoneyType TradeAmt;
+ ///Ӧտͻ
+ TThostFtdcMoneyType CustFee;
+ ///
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ };
+
+ ///ڻʽתTradeCode=202002
+ struct CThostFtdcTransferFutureToBankReqField
+ {
+ ///ڻʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ ///־
+ TThostFtdcFuturePwdFlagType FuturePwdFlag;
+ ///
+ TThostFtdcFutureAccPwdType FutureAccPwd;
+ ///ת˽
+ TThostFtdcMoneyType TradeAmt;
+ ///ͻ
+ TThostFtdcMoneyType CustFee;
+ ///֣RMB- USD-Բ HKD-Ԫ
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ };
+
+ ///ڻʽתӦ
+ struct CThostFtdcTransferFutureToBankRspField
+ {
+ ///Ӧ
+ TThostFtdcRetCodeType RetCode;
+ ///ӦϢ
+ TThostFtdcRetInfoType RetInfo;
+ ///ʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ ///תʽ
+ TThostFtdcMoneyType TradeAmt;
+ ///Ӧտͻ
+ TThostFtdcMoneyType CustFee;
+ ///
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ };
+
+ ///ѯʽTradeCode=204002
+ struct CThostFtdcTransferQryBankReqField
+ {
+ ///ڻʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ ///־
+ TThostFtdcFuturePwdFlagType FuturePwdFlag;
+ ///
+ TThostFtdcFutureAccPwdType FutureAccPwd;
+ ///֣RMB- USD-Բ HKD-Ԫ
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ };
+
+ ///ѯʽӦ
+ struct CThostFtdcTransferQryBankRspField
+ {
+ ///Ӧ
+ TThostFtdcRetCodeType RetCode;
+ ///ӦϢ
+ TThostFtdcRetInfoType RetInfo;
+ ///ʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ ///
+ TThostFtdcMoneyType TradeAmt;
+ ///п
+ TThostFtdcMoneyType UseAmt;
+ ///пȡ
+ TThostFtdcMoneyType FetchAmt;
+ ///
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ };
+
+ ///ѯнϸTradeCode=204999
+ struct CThostFtdcTransferQryDetailReqField
+ {
+ ///ڻʽ˻
+ TThostFtdcAccountIDType FutureAccount;
+ };
+
+ ///ѯнϸӦ
+ struct CThostFtdcTransferQryDetailRspField
+ {
+ ///
+ TThostFtdcDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///״
+ TThostFtdcTradeCodeType TradeCode;
+ ///ڻˮ
+ TThostFtdcTradeSerialNoType FutureSerial;
+ ///ڻ˾
+ TThostFtdcFutureIDType FutureID;
+ ///ʽʺ
+ TThostFtdcFutureAccountType FutureAccount;
+ ///ˮ
+ TThostFtdcTradeSerialNoType BankSerial;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///зĴ
+ TThostFtdcBankBrchIDType BankBrchID;
+ ///˺
+ TThostFtdcBankAccountType BankAccount;
+ ///֤
+ TThostFtdcCertCodeType CertCode;
+ ///Ҵ
+ TThostFtdcCurrencyCodeType CurrencyCode;
+ ///
+ TThostFtdcMoneyType TxAmount;
+ ///Ч־
+ TThostFtdcTransferValidFlagType Flag;
+ };
+
+ ///ӦϢ
+ struct CThostFtdcRspInfoField
+ {
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///
+ struct CThostFtdcExchangeField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcExchangeNameType ExchangeName;
+ ///
+ TThostFtdcExchangePropertyType ExchangeProperty;
+ };
+
+ ///Ʒ
+ struct CThostFtdcProductField
+ {
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TThostFtdcProductNameType ProductName;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcProductClassType ProductClass;
+ ///Լ
+ TThostFtdcVolumeMultipleType VolumeMultiple;
+ ///С䶯λ
+ TThostFtdcPriceType PriceTick;
+ ///м۵µ
+ TThostFtdcVolumeType MaxMarketOrderVolume;
+ ///м۵Сµ
+ TThostFtdcVolumeType MinMarketOrderVolume;
+ ///۵µ
+ TThostFtdcVolumeType MaxLimitOrderVolume;
+ ///۵Сµ
+ TThostFtdcVolumeType MinLimitOrderVolume;
+ ///ֲ
+ TThostFtdcPositionTypeType PositionType;
+ ///ֲ
+ TThostFtdcPositionDateTypeType PositionDateType;
+ ///ƽִ
+ TThostFtdcCloseDealTypeType CloseDealType;
+ ///ױ
+ TThostFtdcCurrencyIDType TradeCurrencyID;
+ ///Ѻʽ÷Χ
+ TThostFtdcMortgageFundUseRangeType MortgageFundUseRange;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ExchangeProductID;
+ ///ԼƷ
+ TThostFtdcUnderlyingMultipleType UnderlyingMultiple;
+ };
+
+ ///Լ
+ struct CThostFtdcInstrumentField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentNameType InstrumentName;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TThostFtdcProductClassType ProductClass;
+ ///
+ TThostFtdcYearType DeliveryYear;
+ ///
+ TThostFtdcMonthType DeliveryMonth;
+ ///м۵µ
+ TThostFtdcVolumeType MaxMarketOrderVolume;
+ ///м۵Сµ
+ TThostFtdcVolumeType MinMarketOrderVolume;
+ ///۵µ
+ TThostFtdcVolumeType MaxLimitOrderVolume;
+ ///۵Сµ
+ TThostFtdcVolumeType MinLimitOrderVolume;
+ ///Լ
+ TThostFtdcVolumeMultipleType VolumeMultiple;
+ ///С䶯λ
+ TThostFtdcPriceType PriceTick;
+ ///
+ TThostFtdcDateType CreateDate;
+ ///
+ TThostFtdcDateType OpenDate;
+ ///
+ TThostFtdcDateType ExpireDate;
+ ///ʼ
+ TThostFtdcDateType StartDelivDate;
+ ///
+ TThostFtdcDateType EndDelivDate;
+ ///Լ״̬
+ TThostFtdcInstLifePhaseType InstLifePhase;
+ ///ǰǷ
+ TThostFtdcBoolType IsTrading;
+ ///ֲ
+ TThostFtdcPositionTypeType PositionType;
+ ///ֲ
+ TThostFtdcPositionDateTypeType PositionDateType;
+ ///ͷ֤
+ TThostFtdcRatioType LongMarginRatio;
+ ///ͷ֤
+ TThostFtdcRatioType ShortMarginRatio;
+ ///Ƿʹô֤߱㷨
+ TThostFtdcMaxMarginSideAlgorithmType MaxMarginSideAlgorithm;
+ ///Ʒ
+ TThostFtdcInstrumentIDType UnderlyingInstrID;
+ ///ִм
+ TThostFtdcPriceType StrikePrice;
+ ///Ȩ
+ TThostFtdcOptionsTypeType OptionsType;
+ ///ԼƷ
+ TThostFtdcUnderlyingMultipleType UnderlyingMultiple;
+ ///
+ TThostFtdcCombinationTypeType CombinationType;
+ ///Сµλ
+ TThostFtdcVolumeType MinBuyVolume;
+ ///Сµλ
+ TThostFtdcVolumeType MinSellVolume;
+ ///Լʶ
+ TThostFtdcInstrumentCodeType InstrumentCode;
+ };
+
+ ///˾
+ struct CThostFtdcBrokerField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///˾
+ TThostFtdcBrokerAbbrType BrokerAbbr;
+ ///˾
+ TThostFtdcBrokerNameType BrokerName;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ };
+
+ ///Ա
+ struct CThostFtdcTraderField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallCountType InstallCount;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///Ͷ
+ struct CThostFtdcInvestorField
+ {
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TThostFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ
+ TThostFtdcPartyNameType InvestorName;
+ ///֤
+ TThostFtdcIdCardTypeType IdentifiedCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ ///ϵ绰
+ TThostFtdcTelephoneType Telephone;
+ ///ͨѶַ
+ TThostFtdcAddressType Address;
+ ///
+ TThostFtdcDateType OpenDate;
+ ///ֻ
+ TThostFtdcMobileType Mobile;
+ ///ģ
+ TThostFtdcInvestorIDType CommModelID;
+ ///֤ģ
+ TThostFtdcInvestorIDType MarginModelID;
+ };
+
+ ///ױ
+ struct CThostFtdcTradingCodeField
+ {
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ ///ױ
+ TThostFtdcClientIDTypeType ClientIDType;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///Ա;˾ձ
+ struct CThostFtdcPartBrokerField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ };
+
+ ///û
+ struct CThostFtdcSuperUserField
+ {
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û
+ TThostFtdcUserNameType UserName;
+ ///
+ TThostFtdcPasswordType Password;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ };
+
+ ///ûȨ
+ struct CThostFtdcSuperUserFunctionField
+ {
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ܴ
+ TThostFtdcFunctionCodeType FunctionCode;
+ };
+
+ ///Ͷ
+ struct CThostFtdcInvestorGroupField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TThostFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ߷
+ TThostFtdcInvestorGroupNameType InvestorGroupName;
+ };
+
+ ///ʽ˻
+ struct CThostFtdcTradingAccountField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ϴѺ
+ TThostFtdcMoneyType PreMortgage;
+ ///ϴö
+ TThostFtdcMoneyType PreCredit;
+ ///ϴδ
+ TThostFtdcMoneyType PreDeposit;
+ ///ϴν
+ TThostFtdcMoneyType PreBalance;
+ ///ϴռõı֤
+ TThostFtdcMoneyType PreMargin;
+ ///Ϣ
+ TThostFtdcMoneyType InterestBase;
+ ///Ϣ
+ TThostFtdcMoneyType Interest;
+ ///
+ TThostFtdcMoneyType Deposit;
+ ///
+ TThostFtdcMoneyType Withdraw;
+ ///ı֤
+ TThostFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TThostFtdcMoneyType FrozenCash;
+ ///
+ TThostFtdcMoneyType FrozenCommission;
+ ///ǰ֤ܶ
+ TThostFtdcMoneyType CurrMargin;
+ ///ʽ
+ TThostFtdcMoneyType CashIn;
+ ///
+ TThostFtdcMoneyType Commission;
+ ///ƽӯ
+ TThostFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TThostFtdcMoneyType PositionProfit;
+ ///ڻ
+ TThostFtdcMoneyType Balance;
+ ///ʽ
+ TThostFtdcMoneyType Available;
+ ///ȡʽ
+ TThostFtdcMoneyType WithdrawQuota;
+ ///
+ TThostFtdcMoneyType Reserve;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ö
+ TThostFtdcMoneyType Credit;
+ ///Ѻ
+ TThostFtdcMoneyType Mortgage;
+ ///֤
+ TThostFtdcMoneyType ExchangeMargin;
+ ///Ͷ߽֤
+ TThostFtdcMoneyType DeliveryMargin;
+ ///֤
+ TThostFtdcMoneyType ExchangeDeliveryMargin;
+ ///ڻ
+ TThostFtdcMoneyType ReserveBalance;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ϴλ
+ TThostFtdcMoneyType PreFundMortgageIn;
+ ///ϴλʳ
+ TThostFtdcMoneyType PreFundMortgageOut;
+ ///
+ TThostFtdcMoneyType FundMortgageIn;
+ ///ʳ
+ TThostFtdcMoneyType FundMortgageOut;
+ ///Ѻ
+ TThostFtdcMoneyType FundMortgageAvailable;
+ ///Ѻҽ
+ TThostFtdcMoneyType MortgageableFund;
+ ///Ʒռñ֤
+ TThostFtdcMoneyType SpecProductMargin;
+ ///Ʒᱣ֤
+ TThostFtdcMoneyType SpecProductFrozenMargin;
+ ///Ʒ
+ TThostFtdcMoneyType SpecProductCommission;
+ ///Ʒ
+ TThostFtdcMoneyType SpecProductFrozenCommission;
+ ///Ʒֲӯ
+ TThostFtdcMoneyType SpecProductPositionProfit;
+ ///Ʒƽӯ
+ TThostFtdcMoneyType SpecProductCloseProfit;
+ ///ݳֲӯ㷨Ʒֲӯ
+ TThostFtdcMoneyType SpecProductPositionProfitByAlg;
+ ///Ʒ֤
+ TThostFtdcMoneyType SpecProductExchangeMargin;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///Ͷֲ߳
+ struct CThostFtdcInvestorPositionField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֲֶշ
+ TThostFtdcPosiDirectionType PosiDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ֲ
+ TThostFtdcPositionDateType PositionDate;
+ ///ճֲ
+ TThostFtdcVolumeType YdPosition;
+ ///ճֲ
+ TThostFtdcVolumeType Position;
+ ///ͷ
+ TThostFtdcVolumeType LongFrozen;
+ ///ͷ
+ TThostFtdcVolumeType ShortFrozen;
+ ///ֶ
+ TThostFtdcMoneyType LongFrozenAmount;
+ ///ֶ
+ TThostFtdcMoneyType ShortFrozenAmount;
+ ///
+ TThostFtdcVolumeType OpenVolume;
+ ///ƽ
+ TThostFtdcVolumeType CloseVolume;
+ ///ֽ
+ TThostFtdcMoneyType OpenAmount;
+ ///ƽֽ
+ TThostFtdcMoneyType CloseAmount;
+ ///ֲֳɱ
+ TThostFtdcMoneyType PositionCost;
+ ///ϴռõı֤
+ TThostFtdcMoneyType PreMargin;
+ ///ռõı֤
+ TThostFtdcMoneyType UseMargin;
+ ///ı֤
+ TThostFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TThostFtdcMoneyType FrozenCash;
+ ///
+ TThostFtdcMoneyType FrozenCommission;
+ ///ʽ
+ TThostFtdcMoneyType CashIn;
+ ///
+ TThostFtdcMoneyType Commission;
+ ///ƽӯ
+ TThostFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TThostFtdcMoneyType PositionProfit;
+ ///ϴν
+ TThostFtdcPriceType PreSettlementPrice;
+ ///ν
+ TThostFtdcPriceType SettlementPrice;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ֳɱ
+ TThostFtdcMoneyType OpenCost;
+ ///֤
+ TThostFtdcMoneyType ExchangeMargin;
+ ///ϳɽγɵijֲ
+ TThostFtdcVolumeType CombPosition;
+ ///϶ͷ
+ TThostFtdcVolumeType CombLongFrozen;
+ ///Ͽͷ
+ TThostFtdcVolumeType CombShortFrozen;
+ ///նƽӯ
+ TThostFtdcMoneyType CloseProfitByDate;
+ ///ʶԳƽӯ
+ TThostFtdcMoneyType CloseProfitByTrade;
+ ///ճֲ
+ TThostFtdcVolumeType TodayPosition;
+ ///֤
+ TThostFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TThostFtdcRatioType MarginRateByVolume;
+ ///ִж
+ TThostFtdcVolumeType StrikeFrozen;
+ ///ִж
+ TThostFtdcMoneyType StrikeFrozenAmount;
+ ///ִж
+ TThostFtdcVolumeType AbandonFrozen;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Լ֤
+ struct CThostFtdcInstrumentMarginRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TThostFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TThostFtdcBoolType IsRelative;
+ };
+
+ ///Լ
+ struct CThostFtdcInstrumentCommissionRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcRatioType OpenRatioByMoney;
+ ///
+ TThostFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByVolume;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///
+ struct CThostFtdcDepthMarketDataField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///¼
+ TThostFtdcPriceType LastPrice;
+ ///ϴν
+ TThostFtdcPriceType PreSettlementPrice;
+ ///
+ TThostFtdcPriceType PreClosePrice;
+ ///ֲ
+ TThostFtdcLargeVolumeType PreOpenInterest;
+ ///
+ TThostFtdcPriceType OpenPrice;
+ ///
+ TThostFtdcPriceType HighestPrice;
+ ///ͼ
+ TThostFtdcPriceType LowestPrice;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ɽ
+ TThostFtdcMoneyType Turnover;
+ ///ֲ
+ TThostFtdcLargeVolumeType OpenInterest;
+ ///
+ TThostFtdcPriceType ClosePrice;
+ ///ν
+ TThostFtdcPriceType SettlementPrice;
+ ///ͣ
+ TThostFtdcPriceType UpperLimitPrice;
+ ///ͣ
+ TThostFtdcPriceType LowerLimitPrice;
+ ///ʵ
+ TThostFtdcRatioType PreDelta;
+ ///ʵ
+ TThostFtdcRatioType CurrDelta;
+ ///ʱ
+ TThostFtdcTimeType UpdateTime;
+ ///ĺ
+ TThostFtdcMillisecType UpdateMillisec;
+ ///һ
+ TThostFtdcPriceType BidPrice1;
+ ///һ
+ TThostFtdcVolumeType BidVolume1;
+ ///һ
+ TThostFtdcPriceType AskPrice1;
+ ///һ
+ TThostFtdcVolumeType AskVolume1;
+ ///۶
+ TThostFtdcPriceType BidPrice2;
+ ///
+ TThostFtdcVolumeType BidVolume2;
+ ///۶
+ TThostFtdcPriceType AskPrice2;
+ ///
+ TThostFtdcVolumeType AskVolume2;
+ ///
+ TThostFtdcPriceType BidPrice3;
+ ///
+ TThostFtdcVolumeType BidVolume3;
+ ///
+ TThostFtdcPriceType AskPrice3;
+ ///
+ TThostFtdcVolumeType AskVolume3;
+ ///
+ TThostFtdcPriceType BidPrice4;
+ ///
+ TThostFtdcVolumeType BidVolume4;
+ ///
+ TThostFtdcPriceType AskPrice4;
+ ///
+ TThostFtdcVolumeType AskVolume4;
+ ///
+ TThostFtdcPriceType BidPrice5;
+ ///
+ TThostFtdcVolumeType BidVolume5;
+ ///
+ TThostFtdcPriceType AskPrice5;
+ ///
+ TThostFtdcVolumeType AskVolume5;
+ ///վ
+ TThostFtdcPriceType AveragePrice;
+ ///ҵ
+ TThostFtdcDateType ActionDay;
+ };
+
+ ///ͶߺԼȨ
+ struct CThostFtdcInstrumentTradingRightField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ȩ
+ TThostFtdcTradingRightType TradingRight;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///˾û
+ struct CThostFtdcBrokerUserField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û
+ TThostFtdcUserNameType UserName;
+ ///û
+ TThostFtdcUserTypeType UserType;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ ///Ƿʹ
+ TThostFtdcBoolType IsUsingOTP;
+ };
+
+ ///˾û
+ struct CThostFtdcBrokerUserPasswordField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcPasswordType Password;
+ };
+
+ ///˾ûȨ
+ struct CThostFtdcBrokerUserFunctionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///˾ܴ
+ TThostFtdcBrokerFunctionCodeType BrokerFunctionCode;
+ };
+
+ ///Ա̻
+ struct CThostFtdcTraderOfferField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///Ա״̬
+ TThostFtdcTraderConnectStatusType TraderConnectStatus;
+ ///
+ TThostFtdcDateType ConnectRequestDate;
+ ///ʱ
+ TThostFtdcTimeType ConnectRequestTime;
+ ///ϴα
+ TThostFtdcDateType LastReportDate;
+ ///ϴαʱ
+ TThostFtdcTimeType LastReportTime;
+ ///
+ TThostFtdcDateType ConnectDate;
+ ///ʱ
+ TThostFtdcTimeType ConnectTime;
+ ///
+ TThostFtdcDateType StartDate;
+ ///ʱ
+ TThostFtdcTimeType StartTime;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ϯλɽ
+ TThostFtdcTradeIDType MaxTradeID;
+ ///ϯλ
+ TThostFtdcReturnCodeType MaxOrderMessageReference;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///Ͷ߽
+ struct CThostFtdcSettlementInfoField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///Ϣ
+ TThostFtdcContentType Content;
+ };
+
+ ///Լ֤ʵ
+ struct CThostFtdcInstrumentMarginRateAdjustField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TThostFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TThostFtdcBoolType IsRelative;
+ };
+
+ ///֤
+ struct CThostFtdcExchangeMarginRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TThostFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortMarginRatioByVolume;
+ };
+
+ ///֤ʵ
+ struct CThostFtdcExchangeMarginRateAdjustField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///潻Ͷ߶ͷ֤
+ TThostFtdcRatioType LongMarginRatioByMoney;
+ ///潻Ͷ߶ͷ֤
+ TThostFtdcMoneyType LongMarginRatioByVolume;
+ ///潻Ͷ߿ͷ֤
+ TThostFtdcRatioType ShortMarginRatioByMoney;
+ ///潻Ͷ߿ͷ֤
+ TThostFtdcMoneyType ShortMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ExchLongMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ExchLongMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ExchShortMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ExchShortMarginRatioByVolume;
+ ///潻Ͷ߶ͷ֤
+ TThostFtdcRatioType NoLongMarginRatioByMoney;
+ ///潻Ͷ߶ͷ֤
+ TThostFtdcMoneyType NoLongMarginRatioByVolume;
+ ///潻Ͷ߿ͷ֤
+ TThostFtdcRatioType NoShortMarginRatioByMoney;
+ ///潻Ͷ߿ͷ֤
+ TThostFtdcMoneyType NoShortMarginRatioByVolume;
+ };
+
+ ///
+ struct CThostFtdcExchangeRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Դ
+ TThostFtdcCurrencyIDType FromCurrencyID;
+ ///Դֵλ
+ TThostFtdcCurrencyUnitType FromCurrencyUnit;
+ ///Ŀ
+ TThostFtdcCurrencyIDType ToCurrencyID;
+ ///
+ TThostFtdcExchangeRateType ExchangeRate;
+ };
+
+ ///
+ struct CThostFtdcSettlementRefField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ };
+
+ ///ǰʱ
+ struct CThostFtdcCurrentTimeField
+ {
+ ///ǰ
+ TThostFtdcDateType CurrDate;
+ ///ǰʱ
+ TThostFtdcTimeType CurrTime;
+ ///ǰʱ䣨룩
+ TThostFtdcMillisecType CurrMillisec;
+ ///ҵ
+ TThostFtdcDateType ActionDay;
+ };
+
+ ///ͨѶ
+ struct CThostFtdcCommPhaseField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///ͨѶʱα
+ TThostFtdcCommPhaseNoType CommPhaseNo;
+ ///ϵͳ
+ TThostFtdcSystemIDType SystemID;
+ };
+
+ ///¼Ϣ
+ struct CThostFtdcLoginInfoField
+ {
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///¼
+ TThostFtdcDateType LoginDate;
+ ///¼ʱ
+ TThostFtdcTimeType LoginTime;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///ӿڶ˲ƷϢ
+ TThostFtdcProductInfoType InterfaceProductInfo;
+ ///ЭϢ
+ TThostFtdcProtocolInfoType ProtocolInfo;
+ ///ϵͳ
+ TThostFtdcSystemNameType SystemName;
+ ///
+ TThostFtdcPasswordType Password;
+ ///
+ TThostFtdcOrderRefType MaxOrderRef;
+ ///ʱ
+ TThostFtdcTimeType SHFETime;
+ ///ʱ
+ TThostFtdcTimeType DCETime;
+ ///֣ʱ
+ TThostFtdcTimeType CZCETime;
+ ///нʱ
+ TThostFtdcTimeType FFEXTime;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
+ ///̬
+ TThostFtdcPasswordType OneTimePassword;
+ ///Դʱ
+ TThostFtdcTimeType INETime;
+ ///ѯʱǷҪ
+ TThostFtdcBoolType IsQryControl;
+ };
+
+ ///¼Ϣ
+ struct CThostFtdcLogoutAllField
+ {
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ϵͳ
+ TThostFtdcSystemNameType SystemName;
+ };
+
+ ///ǰ״̬
+ struct CThostFtdcFrontStatusField
+ {
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///ϴα
+ TThostFtdcDateType LastReportDate;
+ ///ϴαʱ
+ TThostFtdcTimeType LastReportTime;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ };
+
+ ///û
+ struct CThostFtdcUserPasswordUpdateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ԭĿ
+ TThostFtdcPasswordType OldPassword;
+ ///µĿ
+ TThostFtdcPasswordType NewPassword;
+ };
+
+ ///뱨
+ struct CThostFtdcInputOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TThostFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TThostFtdcDateType GTDDate;
+ ///ɽ
+ TThostFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TThostFtdcVolumeType MinVolume;
+ ///
+ TThostFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TThostFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TThostFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TThostFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ûǿ־
+ TThostFtdcBoolType UserForceClose;
+ ///־
+ TThostFtdcBoolType IsSwapOrder;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///
+ struct CThostFtdcOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TThostFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TThostFtdcDateType GTDDate;
+ ///ɽ
+ TThostFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TThostFtdcVolumeType MinVolume;
+ ///
+ TThostFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TThostFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TThostFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TThostFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///Դ
+ TThostFtdcOrderSourceType OrderSource;
+ ///״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///
+ TThostFtdcOrderTypeType OrderType;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TThostFtdcVolumeType VolumeTotal;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ίʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ʱ
+ TThostFtdcTimeType SuspendTime;
+ ///ʱ
+ TThostFtdcTimeType UpdateTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ĽԱ
+ TThostFtdcTraderIDType ActiveTraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///ûǿ־
+ TThostFtdcBoolType UserForceClose;
+ ///û
+ TThostFtdcUserIDType ActiveUserID;
+ ///˾
+ TThostFtdcSequenceNoType BrokerOrderSeq;
+ ///ر
+ TThostFtdcOrderSysIDType RelativeOrderSysID;
+ ///֣ɽ
+ TThostFtdcVolumeType ZCETotalTradedVolume;
+ ///־
+ TThostFtdcBoolType IsSwapOrder;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///
+ struct CThostFtdcExchangeOrderField
+ {
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TThostFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TThostFtdcDateType GTDDate;
+ ///ɽ
+ TThostFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TThostFtdcVolumeType MinVolume;
+ ///
+ TThostFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TThostFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TThostFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TThostFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///Դ
+ TThostFtdcOrderSourceType OrderSource;
+ ///״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///
+ TThostFtdcOrderTypeType OrderType;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TThostFtdcVolumeType VolumeTotal;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ίʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ʱ
+ TThostFtdcTimeType SuspendTime;
+ ///ʱ
+ TThostFtdcTimeType UpdateTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ĽԱ
+ TThostFtdcTraderIDType ActiveTraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ʧ
+ struct CThostFtdcExchangeOrderInsertErrorField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///뱨
+ struct CThostFtdcInputOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///仯
+ TThostFtdcVolumeType VolumeChange;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///
+ struct CThostFtdcOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///仯
+ TThostFtdcVolumeType VolumeChange;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///
+ struct CThostFtdcExchangeOrderActionField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///仯
+ TThostFtdcVolumeType VolumeChange;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ʧ
+ struct CThostFtdcExchangeOrderActionErrorField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///ɽ
+ struct CThostFtdcExchangeTradeField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ɽ
+ TThostFtdcTradeIDType TradeID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ɫ
+ TThostFtdcTradingRoleType TradingRole;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///۸
+ TThostFtdcPriceType Price;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ɽʱ
+ TThostFtdcDateType TradeDate;
+ ///ɽʱ
+ TThostFtdcTimeType TradeTime;
+ ///ɽ
+ TThostFtdcTradeTypeType TradeType;
+ ///ɽԴ
+ TThostFtdcPriceSourceType PriceSource;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ɽԴ
+ TThostFtdcTradeSourceType TradeSource;
+ };
+
+ ///ɽ
+ struct CThostFtdcTradeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ɽ
+ TThostFtdcTradeIDType TradeID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ɫ
+ TThostFtdcTradingRoleType TradingRole;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///۸
+ TThostFtdcPriceType Price;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ɽʱ
+ TThostFtdcDateType TradeDate;
+ ///ɽʱ
+ TThostFtdcTimeType TradeTime;
+ ///ɽ
+ TThostFtdcTradeTypeType TradeType;
+ ///ɽԴ
+ TThostFtdcPriceSourceType PriceSource;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///˾
+ TThostFtdcSequenceNoType BrokerOrderSeq;
+ ///ɽԴ
+ TThostFtdcTradeSourceType TradeSource;
+ };
+
+ ///ûỰ
+ struct CThostFtdcUserSessionField
+ {
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///¼
+ TThostFtdcDateType LoginDate;
+ ///¼ʱ
+ TThostFtdcTimeType LoginTime;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///ӿڶ˲ƷϢ
+ TThostFtdcProductInfoType InterfaceProductInfo;
+ ///ЭϢ
+ TThostFtdcProtocolInfoType ProtocolInfo;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
+ };
+
+ ///ѯ
+ struct CThostFtdcQueryMaxOrderVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcVolumeType MaxVolume;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ͷ߽ȷϢ
+ struct CThostFtdcSettlementInfoConfirmField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ȷ
+ TThostFtdcDateType ConfirmDate;
+ ///ȷʱ
+ TThostFtdcTimeType ConfirmTime;
+ };
+
+ ///ͬ
+ struct CThostFtdcSyncDepositField
+ {
+ ///ˮ
+ TThostFtdcDepositSeqNoType DepositSeqNo;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcMoneyType Deposit;
+ ///Ƿǿƽ
+ TThostFtdcBoolType IsForce;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///Ѻͬ
+ struct CThostFtdcSyncFundMortgageField
+ {
+ ///Ѻˮ
+ TThostFtdcDepositSeqNoType MortgageSeqNo;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Դ
+ TThostFtdcCurrencyIDType FromCurrencyID;
+ ///Ѻ
+ TThostFtdcMoneyType MortgageAmount;
+ ///Ŀ
+ TThostFtdcCurrencyIDType ToCurrencyID;
+ };
+
+ ///˾ͬ
+ struct CThostFtdcBrokerSyncField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///ͬеͶ
+ struct CThostFtdcSyncingInvestorField
+ {
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TThostFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ
+ TThostFtdcPartyNameType InvestorName;
+ ///֤
+ TThostFtdcIdCardTypeType IdentifiedCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ ///ϵ绰
+ TThostFtdcTelephoneType Telephone;
+ ///ͨѶַ
+ TThostFtdcAddressType Address;
+ ///
+ TThostFtdcDateType OpenDate;
+ ///ֻ
+ TThostFtdcMobileType Mobile;
+ ///ģ
+ TThostFtdcInvestorIDType CommModelID;
+ ///֤ģ
+ TThostFtdcInvestorIDType MarginModelID;
+ };
+
+ ///ͬеĽ״
+ struct CThostFtdcSyncingTradingCodeField
+ {
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ ///ױ
+ TThostFtdcClientIDTypeType ClientIDType;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ͬеͶ߷
+ struct CThostFtdcSyncingInvestorGroupField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷
+ TThostFtdcInvestorIDType InvestorGroupID;
+ ///Ͷ߷
+ TThostFtdcInvestorGroupNameType InvestorGroupName;
+ };
+
+ ///ͬеĽ˺
+ struct CThostFtdcSyncingTradingAccountField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ϴѺ
+ TThostFtdcMoneyType PreMortgage;
+ ///ϴö
+ TThostFtdcMoneyType PreCredit;
+ ///ϴδ
+ TThostFtdcMoneyType PreDeposit;
+ ///ϴν
+ TThostFtdcMoneyType PreBalance;
+ ///ϴռõı֤
+ TThostFtdcMoneyType PreMargin;
+ ///Ϣ
+ TThostFtdcMoneyType InterestBase;
+ ///Ϣ
+ TThostFtdcMoneyType Interest;
+ ///
+ TThostFtdcMoneyType Deposit;
+ ///
+ TThostFtdcMoneyType Withdraw;
+ ///ı֤
+ TThostFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TThostFtdcMoneyType FrozenCash;
+ ///
+ TThostFtdcMoneyType FrozenCommission;
+ ///ǰ֤ܶ
+ TThostFtdcMoneyType CurrMargin;
+ ///ʽ
+ TThostFtdcMoneyType CashIn;
+ ///
+ TThostFtdcMoneyType Commission;
+ ///ƽӯ
+ TThostFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TThostFtdcMoneyType PositionProfit;
+ ///ڻ
+ TThostFtdcMoneyType Balance;
+ ///ʽ
+ TThostFtdcMoneyType Available;
+ ///ȡʽ
+ TThostFtdcMoneyType WithdrawQuota;
+ ///
+ TThostFtdcMoneyType Reserve;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ö
+ TThostFtdcMoneyType Credit;
+ ///Ѻ
+ TThostFtdcMoneyType Mortgage;
+ ///֤
+ TThostFtdcMoneyType ExchangeMargin;
+ ///Ͷ߽֤
+ TThostFtdcMoneyType DeliveryMargin;
+ ///֤
+ TThostFtdcMoneyType ExchangeDeliveryMargin;
+ ///ڻ
+ TThostFtdcMoneyType ReserveBalance;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ϴλ
+ TThostFtdcMoneyType PreFundMortgageIn;
+ ///ϴλʳ
+ TThostFtdcMoneyType PreFundMortgageOut;
+ ///
+ TThostFtdcMoneyType FundMortgageIn;
+ ///ʳ
+ TThostFtdcMoneyType FundMortgageOut;
+ ///Ѻ
+ TThostFtdcMoneyType FundMortgageAvailable;
+ ///Ѻҽ
+ TThostFtdcMoneyType MortgageableFund;
+ ///Ʒռñ֤
+ TThostFtdcMoneyType SpecProductMargin;
+ ///Ʒᱣ֤
+ TThostFtdcMoneyType SpecProductFrozenMargin;
+ ///Ʒ
+ TThostFtdcMoneyType SpecProductCommission;
+ ///Ʒ
+ TThostFtdcMoneyType SpecProductFrozenCommission;
+ ///Ʒֲӯ
+ TThostFtdcMoneyType SpecProductPositionProfit;
+ ///Ʒƽӯ
+ TThostFtdcMoneyType SpecProductCloseProfit;
+ ///ݳֲӯ㷨Ʒֲӯ
+ TThostFtdcMoneyType SpecProductPositionProfitByAlg;
+ ///Ʒ֤
+ TThostFtdcMoneyType SpecProductExchangeMargin;
+ };
+
+ ///ͬеͶֲ߳
+ struct CThostFtdcSyncingInvestorPositionField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֲֶշ
+ TThostFtdcPosiDirectionType PosiDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ֲ
+ TThostFtdcPositionDateType PositionDate;
+ ///ճֲ
+ TThostFtdcVolumeType YdPosition;
+ ///ճֲ
+ TThostFtdcVolumeType Position;
+ ///ͷ
+ TThostFtdcVolumeType LongFrozen;
+ ///ͷ
+ TThostFtdcVolumeType ShortFrozen;
+ ///ֶ
+ TThostFtdcMoneyType LongFrozenAmount;
+ ///ֶ
+ TThostFtdcMoneyType ShortFrozenAmount;
+ ///
+ TThostFtdcVolumeType OpenVolume;
+ ///ƽ
+ TThostFtdcVolumeType CloseVolume;
+ ///ֽ
+ TThostFtdcMoneyType OpenAmount;
+ ///ƽֽ
+ TThostFtdcMoneyType CloseAmount;
+ ///ֲֳɱ
+ TThostFtdcMoneyType PositionCost;
+ ///ϴռõı֤
+ TThostFtdcMoneyType PreMargin;
+ ///ռõı֤
+ TThostFtdcMoneyType UseMargin;
+ ///ı֤
+ TThostFtdcMoneyType FrozenMargin;
+ ///ʽ
+ TThostFtdcMoneyType FrozenCash;
+ ///
+ TThostFtdcMoneyType FrozenCommission;
+ ///ʽ
+ TThostFtdcMoneyType CashIn;
+ ///
+ TThostFtdcMoneyType Commission;
+ ///ƽӯ
+ TThostFtdcMoneyType CloseProfit;
+ ///ֲӯ
+ TThostFtdcMoneyType PositionProfit;
+ ///ϴν
+ TThostFtdcPriceType PreSettlementPrice;
+ ///ν
+ TThostFtdcPriceType SettlementPrice;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ֳɱ
+ TThostFtdcMoneyType OpenCost;
+ ///֤
+ TThostFtdcMoneyType ExchangeMargin;
+ ///ϳɽγɵijֲ
+ TThostFtdcVolumeType CombPosition;
+ ///϶ͷ
+ TThostFtdcVolumeType CombLongFrozen;
+ ///Ͽͷ
+ TThostFtdcVolumeType CombShortFrozen;
+ ///նƽӯ
+ TThostFtdcMoneyType CloseProfitByDate;
+ ///ʶԳƽӯ
+ TThostFtdcMoneyType CloseProfitByTrade;
+ ///ճֲ
+ TThostFtdcVolumeType TodayPosition;
+ ///֤
+ TThostFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TThostFtdcRatioType MarginRateByVolume;
+ ///ִж
+ TThostFtdcVolumeType StrikeFrozen;
+ ///ִж
+ TThostFtdcMoneyType StrikeFrozenAmount;
+ ///ִж
+ TThostFtdcVolumeType AbandonFrozen;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ͬеĺԼ֤
+ struct CThostFtdcSyncingInstrumentMarginRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TThostFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TThostFtdcBoolType IsRelative;
+ };
+
+ ///ͬеĺԼ
+ struct CThostFtdcSyncingInstrumentCommissionRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcRatioType OpenRatioByMoney;
+ ///
+ TThostFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByVolume;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ͬеĺԼȨ
+ struct CThostFtdcSyncingInstrumentTradingRightField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ȩ
+ TThostFtdcTradingRightType TradingRight;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///ʼʱ
+ TThostFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TThostFtdcTimeType InsertTimeEnd;
+ };
+
+ ///ѯɽ
+ struct CThostFtdcQryTradeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ɽ
+ TThostFtdcTradeIDType TradeID;
+ ///ʼʱ
+ TThostFtdcTimeType TradeTimeStart;
+ ///ʱ
+ TThostFtdcTimeType TradeTimeEnd;
+ };
+
+ ///ѯͶֲ߳
+ struct CThostFtdcQryInvestorPositionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯʽ˻
+ struct CThostFtdcQryTradingAccountField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///ѯͶ
+ struct CThostFtdcQryInvestorField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ѯױ
+ struct CThostFtdcQryTradingCodeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ױ
+ TThostFtdcClientIDTypeType ClientIDType;
+ };
+
+ ///ѯͶ
+ struct CThostFtdcQryInvestorGroupField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///ѯԼ֤
+ struct CThostFtdcQryInstrumentMarginRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryInstrumentCommissionRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯԼȨ
+ struct CThostFtdcQryInstrumentTradingRightField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ˾
+ struct CThostFtdcQryBrokerField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///ѯԱ
+ struct CThostFtdcQryTraderField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ѯûȨ
+ struct CThostFtdcQrySuperUserFunctionField
+ {
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ѯûỰ
+ struct CThostFtdcQryUserSessionField
+ {
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ѯ˾Ա
+ struct CThostFtdcQryPartBrokerField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ };
+
+ ///ѯǰ״̬
+ struct CThostFtdcQryFrontStatusField
+ {
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryExchangeOrderField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryExchangeOrderActionField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ѯû
+ struct CThostFtdcQrySuperUserField
+ {
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryExchangeField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯƷ
+ struct CThostFtdcQryProductField
+ {
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TThostFtdcProductClassType ProductClass;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯԼ
+ struct CThostFtdcQryInstrumentField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryDepthMarketDataField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ˾û
+ struct CThostFtdcQryBrokerUserField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ѯ˾ûȨ
+ struct CThostFtdcQryBrokerUserFunctionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ѯԱ̻
+ struct CThostFtdcQryTraderOfferField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ѯˮ
+ struct CThostFtdcQrySyncDepositField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ˮ
+ TThostFtdcDepositSeqNoType DepositSeqNo;
+ };
+
+ ///ѯͶ߽
+ struct CThostFtdcQrySettlementInfoField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcDateType TradingDay;
+ };
+
+ ///ѯ֤
+ struct CThostFtdcQryExchangeMarginRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ };
+
+ ///ѯ֤
+ struct CThostFtdcQryExchangeMarginRateAdjustField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryExchangeRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Դ
+ TThostFtdcCurrencyIDType FromCurrencyID;
+ ///Ŀ
+ TThostFtdcCurrencyIDType ToCurrencyID;
+ };
+
+ ///ѯѺˮ
+ struct CThostFtdcQrySyncFundMortgageField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ѻˮ
+ TThostFtdcDepositSeqNoType MortgageSeqNo;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryHisOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///ʼʱ
+ TThostFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TThostFtdcTimeType InsertTimeEnd;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ };
+
+ ///ǰȨԼС֤
+ struct CThostFtdcOptionInstrMiniMarginField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///λ֣ȨԼС֤
+ TThostFtdcMoneyType MinMargin;
+ ///ȡֵʽ
+ TThostFtdcValueMethodType ValueMethod;
+ ///Ƿ潻ȡ
+ TThostFtdcBoolType IsRelative;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ǰȨԼ֤ϵ
+ struct CThostFtdcOptionInstrMarginAdjustField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷͷ֤ϵ
+ TThostFtdcRatioType SShortMarginRatioByMoney;
+ ///Ͷͷ֤ϵ
+ TThostFtdcMoneyType SShortMarginRatioByVolume;
+ ///ֵͷ֤ϵ
+ TThostFtdcRatioType HShortMarginRatioByMoney;
+ ///ֵͷ֤ϵ
+ TThostFtdcMoneyType HShortMarginRatioByVolume;
+ ///ͷ֤ϵ
+ TThostFtdcRatioType AShortMarginRatioByMoney;
+ ///ͷ֤ϵ
+ TThostFtdcMoneyType AShortMarginRatioByVolume;
+ ///Ƿ潻ȡ
+ TThostFtdcBoolType IsRelative;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ǰȨԼѵϸ
+ struct CThostFtdcOptionInstrCommRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcRatioType OpenRatioByMoney;
+ ///
+ TThostFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByVolume;
+ ///ִ
+ TThostFtdcRatioType StrikeRatioByMoney;
+ ///ִ
+ TThostFtdcRatioType StrikeRatioByVolume;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ȩ׳ɱ
+ struct CThostFtdcOptionInstrTradeCostField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ȨԼ֤䲿
+ TThostFtdcMoneyType FixedMargin;
+ ///ȨԼС֤
+ TThostFtdcMoneyType MiniMargin;
+ ///ȨԼȨ
+ TThostFtdcMoneyType Royalty;
+ ///ȨԼ֤䲿
+ TThostFtdcMoneyType ExchFixedMargin;
+ ///ȨԼС֤
+ TThostFtdcMoneyType ExchMiniMargin;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ȩ׳ɱѯ
+ struct CThostFtdcQryOptionInstrTradeCostField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ȨԼ
+ TThostFtdcPriceType InputPrice;
+ ///ļ۸,0
+ TThostFtdcPriceType UnderlyingPrice;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ȩʲѯ
+ struct CThostFtdcQryOptionInstrCommRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ָָֻ
+ struct CThostFtdcIndexPriceField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ָֻ̼
+ TThostFtdcPriceType ClosePrice;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ִ
+ struct CThostFtdcInputExecOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ִ
+ TThostFtdcOrderRefType ExecOrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///ͷijֲַ
+ TThostFtdcPosiDirectionType PosiDirection;
+ ///ȨȨǷڻͷı
+ TThostFtdcExecOrderPositionFlagType ReservePositionFlag;
+ ///ȨȨɵͷǷԶƽ
+ TThostFtdcExecOrderCloseFlagType CloseFlag;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ִ
+ struct CThostFtdcInputExecOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ִ
+ TThostFtdcOrderActionRefType ExecOrderActionRef;
+ ///ִ
+ TThostFtdcOrderRefType ExecOrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///ִ
+ struct CThostFtdcExecOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ִ
+ TThostFtdcOrderRefType ExecOrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///ͷijֲַ
+ TThostFtdcPosiDirectionType PosiDirection;
+ ///ȨȨǷڻͷı
+ TThostFtdcExecOrderPositionFlagType ReservePositionFlag;
+ ///ȨȨɵͷǷԶƽ
+ TThostFtdcExecOrderCloseFlagType CloseFlag;
+ ///ִ
+ TThostFtdcOrderLocalIDType ExecOrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ִн
+ TThostFtdcExecResultType ExecResult;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///û
+ TThostFtdcUserIDType ActiveUserID;
+ ///˾
+ TThostFtdcSequenceNoType BrokerExecOrderSeq;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ִ
+ struct CThostFtdcExecOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ִ
+ TThostFtdcOrderActionRefType ExecOrderActionRef;
+ ///ִ
+ TThostFtdcOrderRefType ExecOrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִ
+ TThostFtdcOrderLocalIDType ExecOrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ִѯ
+ struct CThostFtdcQryExecOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///ʼʱ
+ TThostFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TThostFtdcTimeType InsertTimeEnd;
+ };
+
+ ///ִϢ
+ struct CThostFtdcExchangeExecOrderField
+ {
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///ͷijֲַ
+ TThostFtdcPosiDirectionType PosiDirection;
+ ///ȨȨǷڻͷı
+ TThostFtdcExecOrderPositionFlagType ReservePositionFlag;
+ ///ȨȨɵͷǷԶƽ
+ TThostFtdcExecOrderCloseFlagType CloseFlag;
+ ///ִ
+ TThostFtdcOrderLocalIDType ExecOrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ִн
+ TThostFtdcExecResultType ExecResult;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ִѯ
+ struct CThostFtdcQryExchangeExecOrderField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ִѯ
+ struct CThostFtdcQryExecOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ִ
+ struct CThostFtdcExchangeExecOrderActionField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִ
+ TThostFtdcOrderLocalIDType ExecOrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ִѯ
+ struct CThostFtdcQryExchangeExecOrderActionField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ִ
+ struct CThostFtdcErrExecOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ִ
+ TThostFtdcOrderRefType ExecOrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///ͷijֲַ
+ TThostFtdcPosiDirectionType PosiDirection;
+ ///ȨȨǷڻͷı
+ TThostFtdcExecOrderPositionFlagType ReservePositionFlag;
+ ///ȨȨɵͷǷԶƽ
+ TThostFtdcExecOrderCloseFlagType CloseFlag;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯִ
+ struct CThostFtdcQryErrExecOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ִ
+ struct CThostFtdcErrExecOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ִ
+ TThostFtdcOrderActionRefType ExecOrderActionRef;
+ ///ִ
+ TThostFtdcOrderRefType ExecOrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯִ
+ struct CThostFtdcQryErrExecOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ͶȨԼȨ
+ struct CThostFtdcOptionInstrTradingRightField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ȩ
+ TThostFtdcTradingRightType TradingRight;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ };
+
+ ///ѯȨԼȨ
+ struct CThostFtdcQryOptionInstrTradingRightField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ
+ struct CThostFtdcInputForQuoteField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ѯ
+ TThostFtdcOrderRefType ForQuoteRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ
+ struct CThostFtdcForQuoteField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ѯ
+ TThostFtdcOrderRefType ForQuoteRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ѯ۱
+ TThostFtdcOrderLocalIDType ForQuoteLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ѯ״̬
+ TThostFtdcForQuoteStatusType ForQuoteStatus;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///û
+ TThostFtdcUserIDType ActiveUserID;
+ ///˾ѯ۱
+ TThostFtdcSequenceNoType BrokerForQutoSeq;
+ };
+
+ ///ѯ۲ѯ
+ struct CThostFtdcQryForQuoteField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ʼʱ
+ TThostFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TThostFtdcTimeType InsertTimeEnd;
+ };
+
+ ///ѯϢ
+ struct CThostFtdcExchangeForQuoteField
+ {
+ ///ѯ۱
+ TThostFtdcOrderLocalIDType ForQuoteLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ѯ״̬
+ TThostFtdcForQuoteStatusType ForQuoteStatus;
+ };
+
+ ///ѯ۲ѯ
+ struct CThostFtdcQryExchangeForQuoteField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ı
+ struct CThostFtdcInputQuoteField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType QuoteRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcPriceType AskPrice;
+ ///۸
+ TThostFtdcPriceType BidPrice;
+ ///
+ TThostFtdcVolumeType AskVolume;
+ ///
+ TThostFtdcVolumeType BidVolume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType AskOffsetFlag;
+ ///ƽ־
+ TThostFtdcOffsetFlagType BidOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType AskHedgeFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType BidHedgeFlag;
+ ///
+ TThostFtdcOrderRefType AskOrderRef;
+ ///
+ TThostFtdcOrderRefType BidOrderRef;
+ ///Ӧ۱
+ TThostFtdcOrderSysIDType ForQuoteSysID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///뱨۲
+ struct CThostFtdcInputQuoteActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///۲
+ TThostFtdcOrderActionRefType QuoteActionRef;
+ ///
+ TThostFtdcOrderRefType QuoteRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///۲
+ TThostFtdcOrderSysIDType QuoteSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///
+ struct CThostFtdcQuoteField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType QuoteRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcPriceType AskPrice;
+ ///۸
+ TThostFtdcPriceType BidPrice;
+ ///
+ TThostFtdcVolumeType AskVolume;
+ ///
+ TThostFtdcVolumeType BidVolume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType AskOffsetFlag;
+ ///ƽ־
+ TThostFtdcOffsetFlagType BidOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType AskHedgeFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType BidHedgeFlag;
+ ///ر۱
+ TThostFtdcOrderLocalIDType QuoteLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///ύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///۱
+ TThostFtdcOrderSysIDType QuoteSysID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///״̬
+ TThostFtdcOrderStatusType QuoteStatus;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TThostFtdcOrderSysIDType AskOrderSysID;
+ ///
+ TThostFtdcOrderSysIDType BidOrderSysID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///û
+ TThostFtdcUserIDType ActiveUserID;
+ ///˾۱
+ TThostFtdcSequenceNoType BrokerQuoteSeq;
+ ///
+ TThostFtdcOrderRefType AskOrderRef;
+ ///
+ TThostFtdcOrderRefType BidOrderRef;
+ ///Ӧ۱
+ TThostFtdcOrderSysIDType ForQuoteSysID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///۲
+ struct CThostFtdcQuoteActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///۲
+ TThostFtdcOrderActionRefType QuoteActionRef;
+ ///
+ TThostFtdcOrderRefType QuoteRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///۲
+ TThostFtdcOrderSysIDType QuoteSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر۱
+ TThostFtdcOrderLocalIDType QuoteLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///۲ѯ
+ struct CThostFtdcQryQuoteField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///۱
+ TThostFtdcOrderSysIDType QuoteSysID;
+ ///ʼʱ
+ TThostFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TThostFtdcTimeType InsertTimeEnd;
+ };
+
+ ///Ϣ
+ struct CThostFtdcExchangeQuoteField
+ {
+ ///۸
+ TThostFtdcPriceType AskPrice;
+ ///۸
+ TThostFtdcPriceType BidPrice;
+ ///
+ TThostFtdcVolumeType AskVolume;
+ ///
+ TThostFtdcVolumeType BidVolume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ƽ־
+ TThostFtdcOffsetFlagType AskOffsetFlag;
+ ///ƽ־
+ TThostFtdcOffsetFlagType BidOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType AskHedgeFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType BidHedgeFlag;
+ ///ر۱
+ TThostFtdcOrderLocalIDType QuoteLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///ύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///۱
+ TThostFtdcOrderSysIDType QuoteSysID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///״̬
+ TThostFtdcOrderStatusType QuoteStatus;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TThostFtdcOrderSysIDType AskOrderSysID;
+ ///
+ TThostFtdcOrderSysIDType BidOrderSysID;
+ ///Ӧ۱
+ TThostFtdcOrderSysIDType ForQuoteSysID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///۲ѯ
+ struct CThostFtdcQryExchangeQuoteField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///۲ѯ
+ struct CThostFtdcQryQuoteActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///۲
+ struct CThostFtdcExchangeQuoteActionField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///۲
+ TThostFtdcOrderSysIDType QuoteSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر۱
+ TThostFtdcOrderLocalIDType QuoteLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///۲ѯ
+ struct CThostFtdcQryExchangeQuoteActionField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ȨԼdeltaֵ
+ struct CThostFtdcOptionInstrDeltaField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Deltaֵ
+ TThostFtdcRatioType Delta;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///̵ѯ
+ struct CThostFtdcForQuoteRspField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ѯ۱
+ TThostFtdcOrderSysIDType ForQuoteSysID;
+ ///ѯʱ
+ TThostFtdcTimeType ForQuoteTime;
+ ///ҵ
+ TThostFtdcDateType ActionDay;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ǰȨԼִƫֵϸ
+ struct CThostFtdcStrikeOffsetField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ִƫֵ
+ TThostFtdcMoneyType Offset;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ȩִƫֵѯ
+ struct CThostFtdcQryStrikeOffsetField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///¼
+ struct CThostFtdcInputLockField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType LockRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcLockTypeType LockType;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///
+ struct CThostFtdcLockField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType LockRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcLockTypeType LockType;
+ ///
+ TThostFtdcOrderLocalIDType LockLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcOrderSysIDType LockSysID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///״̬
+ TThostFtdcOrderActionStatusType LockStatus;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///û
+ TThostFtdcUserIDType ActiveUserID;
+ ///˾
+ TThostFtdcSequenceNoType BrokerLockSeq;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryLockField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType LockSysID;
+ ///ʼʱ
+ TThostFtdcTimeType InsertTimeStart;
+ ///ʱ
+ TThostFtdcTimeType InsertTimeEnd;
+ };
+
+ ///֤ȯλ
+ struct CThostFtdcLockPositionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcVolumeType FrozenVolume;
+ };
+
+ ///ѯ֤ȯλ
+ struct CThostFtdcQryLockPositionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ǰETFȨԼѵϸ
+ struct CThostFtdcETFOptionInstrCommRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcRatioType OpenRatioByMoney;
+ ///
+ TThostFtdcRatioType OpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CloseTodayRatioByVolume;
+ ///ִ
+ TThostFtdcRatioType StrikeRatioByMoney;
+ ///ִ
+ TThostFtdcRatioType StrikeRatioByVolume;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ֲַ
+ TThostFtdcPosiDirectionType PosiDirection;
+ };
+
+ ///ETFȨʲѯ
+ struct CThostFtdcQryETFOptionInstrCommRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ijֲֶ
+ struct CThostFtdcPosiFreezeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ԭ
+ TThostFtdcFreezeReasonTypeType FreezeReasonType;
+ ///
+ TThostFtdcFreezeTypeType FreezeType;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryExchangeLockField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///
+ struct CThostFtdcExchangeLockField
+ {
+ ///
+ TThostFtdcVolumeType Volume;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcLockTypeType LockType;
+ ///
+ TThostFtdcOrderLocalIDType LockLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcOrderSysIDType LockSysID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///״̬
+ TThostFtdcOrderActionStatusType LockStatus;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///
+ struct CThostFtdcExchangeExecOrderActionErrorField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ִ
+ TThostFtdcExecOrderSysIDType ExecOrderSysID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ִ
+ TThostFtdcOrderLocalIDType ExecOrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///
+ struct CThostFtdcInputBatchOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///
+ struct CThostFtdcBatchOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ };
+
+ ///
+ struct CThostFtdcExchangeBatchOrderActionField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryBatchOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ͷֲ߳
+ struct CThostFtdcLimitPosiField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcVolumeType TotalVolume;
+ ///ͷ
+ TThostFtdcVolumeType LongVolume;
+ ///նͷ
+ TThostFtdcVolumeType OpenVolume;
+ ///ͷֲֽ
+ TThostFtdcMoneyType LongAmount;
+ ///
+ TThostFtdcVolumeType TotalVolumeFrozen;
+ ///ͷ
+ TThostFtdcVolumeType LongVolumeFrozen;
+ ///նͷ
+ TThostFtdcVolumeType OpenVolumeFrozen;
+ ///ͷֲֽ
+ TThostFtdcMoneyType LongAmountFrozen;
+ };
+
+ ///ѯͶֲ߳
+ struct CThostFtdcQryLimitPosiField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///˾ֲ
+ struct CThostFtdcBrokerLimitPosiField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcLargeVolumeType TotalVolume;
+ ///ͷ
+ TThostFtdcLargeVolumeType LongVolume;
+ ///
+ TThostFtdcLargeVolumeType TotalVolumeFrozen;
+ ///ͷ
+ TThostFtdcLargeVolumeType LongVolumeFrozen;
+ };
+
+ ///ѯ˾ֲ
+ struct CThostFtdcQryBrokerLimitPosiField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ͷ֤ȯֲ
+ struct CThostFtdcLimitPosiSField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcVolumeType TotalVolume;
+ ///տ
+ TThostFtdcVolumeType OpenVolume;
+ ///
+ TThostFtdcVolumeType TotalVolumeFrozen;
+ ///տ
+ TThostFtdcVolumeType OpenVolumeFrozen;
+ };
+
+ ///ѯͶ֤ȯֲ
+ struct CThostFtdcQryLimitPosiSField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ͷֲ߳Ʋ
+ struct CThostFtdcLimitPosiParamField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcVolumeType TotalVolume;
+ ///ͷ
+ TThostFtdcVolumeType LongVolume;
+ ///նͷ
+ TThostFtdcVolumeType OpenVolume;
+ ///ͷֲֽ
+ TThostFtdcMoneyType LongAmount;
+ };
+
+ ///˾ֲƲ
+ struct CThostFtdcBrokerLimitPosiParamField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcLargeVolumeType TotalVolume;
+ ///ͷ
+ TThostFtdcLargeVolumeType LongVolume;
+ };
+
+ ///Ͷ֤ȯֲƲ
+ struct CThostFtdcLimitPosiParamSField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcVolumeType TotalVolume;
+ ///տ
+ TThostFtdcVolumeType OpenVolume;
+ };
+
+ ///֤ȯò
+ struct CThostFtdcInputStockDisposalActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///֤ȯò
+ TThostFtdcOrderActionRefType StockDisposalActionRef;
+ ///֤ȯ
+ TThostFtdcOrderRefType StockDisposalRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///֤ȯò
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///֤ȯò
+ struct CThostFtdcStockDisposalActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///֤ȯò
+ TThostFtdcOrderActionRefType StockDisposalActionRef;
+ ///֤ȯ
+ TThostFtdcOrderRefType StockDisposalRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///֤ȯò
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ȯñ
+ TThostFtdcOrderLocalIDType StockDisposalLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///֤ȯòѯ
+ struct CThostFtdcQryStockDisposalActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///֤ȯò
+ struct CThostFtdcExchangeStockDisposalActionField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///֤ȯò
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ȯñ
+ TThostFtdcOrderLocalIDType StockDisposalLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ִ
+ TThostFtdcActionTypeType ActionType;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///֤ȯò
+ struct CThostFtdcQryExchangeStockDisposalActionField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ѯ֤ȯò
+ struct CThostFtdcQryErrStockDisposalActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///֤ȯò
+ struct CThostFtdcExchangeStockDisposalActionErrorField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///֤ȯñ
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ȯñ
+ TThostFtdcOrderLocalIDType StockDisposalLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///֤ȯò
+ struct CThostFtdcErrStockDisposalActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///֤ȯò
+ TThostFtdcOrderActionRefType StockDisposalActionRef;
+ ///֤ȯ
+ TThostFtdcOrderRefType StockDisposalRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///֤ȯò
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ϺԼȫϵ
+ struct CThostFtdcCombInstrumentGuardField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ȫϵ
+ TThostFtdcRatioType GuarantRatio;
+ };
+
+ ///ϺԼȫϵѯ
+ struct CThostFtdcQryCombInstrumentGuardField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///
+ struct CThostFtdcInputCombActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType CombActionRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ָ
+ TThostFtdcCombDirectionType CombDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///
+ struct CThostFtdcCombActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType CombActionRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ָ
+ TThostFtdcCombDirectionType CombDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ϱ
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///״̬
+ TThostFtdcOrderActionStatusType ActionStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ };
+
+ ///ϲѯ
+ struct CThostFtdcQryCombActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ϣ
+ struct CThostFtdcExchangeCombActionField
+ {
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ָ
+ TThostFtdcCombDirectionType CombDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ϱ
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///״̬
+ TThostFtdcOrderActionStatusType ActionStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ };
+
+ ///ϲѯ
+ struct CThostFtdcQryExchangeCombActionField
+ {
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///Ʒۻ
+ struct CThostFtdcProductExchRateField
+ {
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///۱
+ TThostFtdcCurrencyIDType QuoteCurrencyID;
+ ///
+ TThostFtdcExchangeRateType ExchangeRate;
+ };
+
+ ///Ʒۻʲѯ
+ struct CThostFtdcQryProductExchRateField
+ {
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ };
+
+ ///ָ
+ struct CThostFtdcInputDesignateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ָǼ
+ TThostFtdcOrderRefType DesignateRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ָ
+ TThostFtdcDesignateTypeType DesignateType;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ָ
+ struct CThostFtdcDesignateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ָǼ
+ TThostFtdcOrderRefType DesignateRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ָ
+ TThostFtdcDesignateTypeType DesignateType;
+ ///ָ
+ TThostFtdcOrderLocalIDType DesignateLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ָ״̬
+ TThostFtdcOrderActionStatusType DesignateStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ָ
+ struct CThostFtdcQryDesignateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ָϢ
+ struct CThostFtdcExchangeDesignateField
+ {
+ ///ָ
+ TThostFtdcDesignateTypeType DesignateType;
+ ///ָ
+ TThostFtdcOrderLocalIDType DesignateLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ָ״̬
+ TThostFtdcOrderActionStatusType DesignateStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///֤ȯ
+ struct CThostFtdcInputStockDisposalField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///֤ȯõǼ
+ TThostFtdcOrderRefType StockDisposalRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///֤ȯ÷
+ TThostFtdcStockDisposalTypeType StockDisposalType;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///֤ȯ
+ struct CThostFtdcStockDisposalField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///֤ȯõǼ
+ TThostFtdcOrderRefType StockDisposalRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///֤ȯ÷
+ TThostFtdcStockDisposalTypeType StockDisposalType;
+ ///֤ȯñ
+ TThostFtdcOrderLocalIDType StockDisposalLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ȯ״̬
+ TThostFtdcStockDisposalStatusType StockDisposalStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ ///֤ȯò
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ };
+
+ ///֤ȯ
+ struct CThostFtdcQryStockDisposalField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///֤ȯϢ
+ struct CThostFtdcExchangeStockDisposalField
+ {
+ ///
+ TThostFtdcVolumeType Volume;
+ ///֤ȯ÷
+ TThostFtdcStockDisposalTypeType StockDisposalType;
+ ///֤ȯñ
+ TThostFtdcOrderLocalIDType StockDisposalLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ȯ״̬
+ TThostFtdcStockDisposalStatusType StockDisposalStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ʱ
+ TThostFtdcTimeType InsertTime;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ ///֤ȯò
+ TThostFtdcStockDisposalSysIDType StockDisposalSysID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ };
+
+ ///ǰѵϸ
+ struct CThostFtdcInstrumentOrderCommRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcRatioType OrderCommByVolume;
+ ///
+ TThostFtdcRatioType OrderActionCommByVolume;
+ };
+
+ ///ʲѯ
+ struct CThostFtdcQryInstrumentOrderCommRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///г
+ struct CThostFtdcMarketDataField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///¼
+ TThostFtdcPriceType LastPrice;
+ ///ϴν
+ TThostFtdcPriceType PreSettlementPrice;
+ ///
+ TThostFtdcPriceType PreClosePrice;
+ ///ֲ
+ TThostFtdcLargeVolumeType PreOpenInterest;
+ ///
+ TThostFtdcPriceType OpenPrice;
+ ///
+ TThostFtdcPriceType HighestPrice;
+ ///ͼ
+ TThostFtdcPriceType LowestPrice;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ɽ
+ TThostFtdcMoneyType Turnover;
+ ///ֲ
+ TThostFtdcLargeVolumeType OpenInterest;
+ ///
+ TThostFtdcPriceType ClosePrice;
+ ///ν
+ TThostFtdcPriceType SettlementPrice;
+ ///ͣ
+ TThostFtdcPriceType UpperLimitPrice;
+ ///ͣ
+ TThostFtdcPriceType LowerLimitPrice;
+ ///ʵ
+ TThostFtdcRatioType PreDelta;
+ ///ʵ
+ TThostFtdcRatioType CurrDelta;
+ ///ʱ
+ TThostFtdcTimeType UpdateTime;
+ ///ĺ
+ TThostFtdcMillisecType UpdateMillisec;
+ ///ҵ
+ TThostFtdcDateType ActionDay;
+ };
+
+ ///
+ struct CThostFtdcMarketDataBaseField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///ϴν
+ TThostFtdcPriceType PreSettlementPrice;
+ ///
+ TThostFtdcPriceType PreClosePrice;
+ ///ֲ
+ TThostFtdcLargeVolumeType PreOpenInterest;
+ ///ʵ
+ TThostFtdcRatioType PreDelta;
+ };
+
+ ///龲̬
+ struct CThostFtdcMarketDataStaticField
+ {
+ ///
+ TThostFtdcPriceType OpenPrice;
+ ///
+ TThostFtdcPriceType HighestPrice;
+ ///ͼ
+ TThostFtdcPriceType LowestPrice;
+ ///
+ TThostFtdcPriceType ClosePrice;
+ ///ͣ
+ TThostFtdcPriceType UpperLimitPrice;
+ ///ͣ
+ TThostFtdcPriceType LowerLimitPrice;
+ ///ν
+ TThostFtdcPriceType SettlementPrice;
+ ///ʵ
+ TThostFtdcRatioType CurrDelta;
+ };
+
+ ///³ɽ
+ struct CThostFtdcMarketDataLastMatchField
+ {
+ ///¼
+ TThostFtdcPriceType LastPrice;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ɽ
+ TThostFtdcMoneyType Turnover;
+ ///ֲ
+ TThostFtdcLargeVolumeType OpenInterest;
+ };
+
+ ///ż
+ struct CThostFtdcMarketDataBestPriceField
+ {
+ ///һ
+ TThostFtdcPriceType BidPrice1;
+ ///һ
+ TThostFtdcVolumeType BidVolume1;
+ ///һ
+ TThostFtdcPriceType AskPrice1;
+ ///һ
+ TThostFtdcVolumeType AskVolume1;
+ };
+
+ ///
+ struct CThostFtdcMarketDataBid23Field
+ {
+ ///۶
+ TThostFtdcPriceType BidPrice2;
+ ///
+ TThostFtdcVolumeType BidVolume2;
+ ///
+ TThostFtdcPriceType BidPrice3;
+ ///
+ TThostFtdcVolumeType BidVolume3;
+ };
+
+ ///
+ struct CThostFtdcMarketDataAsk23Field
+ {
+ ///۶
+ TThostFtdcPriceType AskPrice2;
+ ///
+ TThostFtdcVolumeType AskVolume2;
+ ///
+ TThostFtdcPriceType AskPrice3;
+ ///
+ TThostFtdcVolumeType AskVolume3;
+ };
+
+ ///ġ
+ struct CThostFtdcMarketDataBid45Field
+ {
+ ///
+ TThostFtdcPriceType BidPrice4;
+ ///
+ TThostFtdcVolumeType BidVolume4;
+ ///
+ TThostFtdcPriceType BidPrice5;
+ ///
+ TThostFtdcVolumeType BidVolume5;
+ };
+
+ ///ġ
+ struct CThostFtdcMarketDataAsk45Field
+ {
+ ///
+ TThostFtdcPriceType AskPrice4;
+ ///
+ TThostFtdcVolumeType AskVolume4;
+ ///
+ TThostFtdcPriceType AskPrice5;
+ ///
+ TThostFtdcVolumeType AskVolume5;
+ };
+
+ ///ʱ
+ struct CThostFtdcMarketDataUpdateTimeField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ʱ
+ TThostFtdcTimeType UpdateTime;
+ ///ĺ
+ TThostFtdcMillisecType UpdateMillisec;
+ ///ҵ
+ TThostFtdcDateType ActionDay;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///齻
+ struct CThostFtdcMarketDataExchangeField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ָĺԼ
+ struct CThostFtdcSpecificInstrumentField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///Լ״̬
+ struct CThostFtdcInstrumentStatusField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///
+ TThostFtdcSettlementGroupIDType SettlementGroupID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Լ״̬
+ TThostFtdcInstrumentStatusType InstrumentStatus;
+ ///α
+ TThostFtdcTradingSegmentSNType TradingSegmentSN;
+ ///뱾״̬ʱ
+ TThostFtdcTimeType EnterTime;
+ ///뱾״̬ԭ
+ TThostFtdcInstStatusEnterReasonType EnterReason;
+ };
+
+ ///ѯԼ״̬
+ struct CThostFtdcQryInstrumentStatusField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ };
+
+ ///Ͷ˻
+ struct CThostFtdcInvestorAccountField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ӯ㷨
+ struct CThostFtdcPositionProfitAlgorithmField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ӯ㷨
+ TThostFtdcAlgorithmType Algorithm;
+ ///ע
+ TThostFtdcMemoType Memo;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///Աʽۿ
+ struct CThostFtdcDiscountField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ʽۿ۱
+ TThostFtdcRatioType Discount;
+ };
+
+ ///ѯת
+ struct CThostFtdcQryTransferBankField
+ {
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///зĴ
+ TThostFtdcBankBrchIDType BankBrchID;
+ };
+
+ ///ת
+ struct CThostFtdcTransferBankField
+ {
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///зĴ
+ TThostFtdcBankBrchIDType BankBrchID;
+ ///
+ TThostFtdcBankNameType BankName;
+ ///ǷԾ
+ TThostFtdcBoolType IsActive;
+ };
+
+ ///ѯͶֲ߳ϸ
+ struct CThostFtdcQryInvestorPositionDetailField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Ͷֲ߳ϸ
+ struct CThostFtdcInvestorPositionDetailField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcDateType OpenDate;
+ ///ɽ
+ TThostFtdcTradeIDType TradeID;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ּ
+ TThostFtdcPriceType OpenPrice;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ɽ
+ TThostFtdcTradeTypeType TradeType;
+ ///ϺԼ
+ TThostFtdcInstrumentIDType CombInstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///նƽӯ
+ TThostFtdcMoneyType CloseProfitByDate;
+ ///ʶԳƽӯ
+ TThostFtdcMoneyType CloseProfitByTrade;
+ ///նгֲӯ
+ TThostFtdcMoneyType PositionProfitByDate;
+ ///ʶԳֲӯ
+ TThostFtdcMoneyType PositionProfitByTrade;
+ ///Ͷ֤߱
+ TThostFtdcMoneyType Margin;
+ ///֤
+ TThostFtdcMoneyType ExchMargin;
+ ///֤
+ TThostFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TThostFtdcRatioType MarginRateByVolume;
+ ///
+ TThostFtdcPriceType LastSettlementPrice;
+ ///
+ TThostFtdcPriceType SettlementPrice;
+ ///ƽ
+ TThostFtdcVolumeType CloseVolume;
+ ///ƽֽ
+ TThostFtdcMoneyType CloseAmount;
+ };
+
+ ///ʽ˻
+ struct CThostFtdcTradingAccountPasswordField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///
+ TThostFtdcPasswordType Password;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///鱨̻
+ struct CThostFtdcMDTraderOfferField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///Ա״̬
+ TThostFtdcTraderConnectStatusType TraderConnectStatus;
+ ///
+ TThostFtdcDateType ConnectRequestDate;
+ ///ʱ
+ TThostFtdcTimeType ConnectRequestTime;
+ ///ϴα
+ TThostFtdcDateType LastReportDate;
+ ///ϴαʱ
+ TThostFtdcTimeType LastReportTime;
+ ///
+ TThostFtdcDateType ConnectDate;
+ ///ʱ
+ TThostFtdcTimeType ConnectTime;
+ ///
+ TThostFtdcDateType StartDate;
+ ///ʱ
+ TThostFtdcTimeType StartTime;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ϯλɽ
+ TThostFtdcTradeIDType MaxTradeID;
+ ///ϯλ
+ TThostFtdcReturnCodeType MaxOrderMessageReference;
+ ///ҵ
+ TThostFtdcBizTypeType BizType;
+ };
+
+ ///ѯ鱨̻
+ struct CThostFtdcQryMDTraderOfferField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ };
+
+ ///ѯͻ֪ͨ
+ struct CThostFtdcQryNoticeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///ͻ֪ͨ
+ struct CThostFtdcNoticeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ϣ
+ TThostFtdcContentType Content;
+ ///˾֪ͨк
+ TThostFtdcSequenceLabelType SequenceLabel;
+ };
+
+ ///ûȨ
+ struct CThostFtdcUserRightField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ͻȨ
+ TThostFtdcUserRightTypeType UserRightType;
+ ///Ƿֹ
+ TThostFtdcBoolType IsForbidden;
+ };
+
+ ///ѯϢȷ
+ struct CThostFtdcQrySettlementInfoConfirmField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///װؽϢ
+ struct CThostFtdcLoadSettlementInfoField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///˾ʽ㷨
+ struct CThostFtdcBrokerWithdrawAlgorithmField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ʽ㷨
+ TThostFtdcAlgorithmType WithdrawAlgorithm;
+ ///ʽʹ
+ TThostFtdcRatioType UsingRatio;
+ ///Ƿƽӯ
+ TThostFtdcIncludeCloseProfitType IncludeCloseProfit;
+ ///ɽͻǷܿ
+ TThostFtdcAllWithoutTradeType AllWithoutTrade;
+ ///Ƿƽӯ
+ TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit;
+ ///Ƿû¼
+ TThostFtdcBoolType IsBrokerUserEvent;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///Ѻ
+ TThostFtdcRatioType FundMortgageRatio;
+ ///Ȩ㷨
+ TThostFtdcBalanceAlgorithmType BalanceAlgorithm;
+ };
+
+ ///ʽ˻
+ struct CThostFtdcTradingAccountPasswordUpdateV1Field
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ԭĿ
+ TThostFtdcPasswordType OldPassword;
+ ///µĿ
+ TThostFtdcPasswordType NewPassword;
+ };
+
+ ///ʽ˻
+ struct CThostFtdcTradingAccountPasswordUpdateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ԭĿ
+ TThostFtdcPasswordType OldPassword;
+ ///µĿ
+ TThostFtdcPasswordType NewPassword;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ѯϺԼ
+ struct CThostFtdcQryCombinationLegField
+ {
+ ///ϺԼ
+ TThostFtdcInstrumentIDType CombInstrumentID;
+ ///ȱ
+ TThostFtdcLegIDType LegID;
+ ///ȺԼ
+ TThostFtdcInstrumentIDType LegInstrumentID;
+ };
+
+ ///ѯϺԼ
+ struct CThostFtdcQrySyncStatusField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ };
+
+ ///ϽԼĵ
+ struct CThostFtdcCombinationLegField
+ {
+ ///ϺԼ
+ TThostFtdcInstrumentIDType CombInstrumentID;
+ ///ȱ
+ TThostFtdcLegIDType LegID;
+ ///ȺԼ
+ TThostFtdcInstrumentIDType LegInstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///ȳ
+ TThostFtdcLegMultipleType LegMultiple;
+ ///
+ TThostFtdcImplyLevelType ImplyLevel;
+ };
+
+ ///ͬ״̬
+ struct CThostFtdcSyncStatusField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///ͬ״̬
+ TThostFtdcDataSyncStatusType DataSyncStatus;
+ };
+
+ ///ѯϵ
+ struct CThostFtdcQryLinkManField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ϵ
+ struct CThostFtdcLinkManField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ϵ
+ TThostFtdcPersonTypeType PersonType;
+ ///֤
+ TThostFtdcIdCardTypeType IdentifiedCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///
+ TThostFtdcPartyNameType PersonName;
+ ///ϵ绰
+ TThostFtdcTelephoneType Telephone;
+ ///ͨѶַ
+ TThostFtdcAddressType Address;
+ ///
+ TThostFtdcZipCodeType ZipCode;
+ ///ȼ
+ TThostFtdcPriorityType Priority;
+ ///
+ TThostFtdcUOAZipCodeType UOAZipCode;
+ ///ȫ
+ TThostFtdcInvestorFullNameType PersonFullName;
+ };
+
+ ///ѯ˾û¼
+ struct CThostFtdcQryBrokerUserEventField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û¼
+ TThostFtdcUserEventTypeType UserEventType;
+ };
+
+ ///ѯ˾û¼
+ struct CThostFtdcBrokerUserEventField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û¼
+ TThostFtdcUserEventTypeType UserEventType;
+ ///û¼
+ TThostFtdcSequenceNoType EventSequenceNo;
+ ///¼
+ TThostFtdcDateType EventDate;
+ ///¼ʱ
+ TThostFtdcTimeType EventTime;
+ ///û¼Ϣ
+ TThostFtdcUserEventInfoType UserEventInfo;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯǩԼ
+ struct CThostFtdcQryContractBankField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///зĴ
+ TThostFtdcBankBrchIDType BankBrchID;
+ };
+
+ ///ѯǩԼӦ
+ struct CThostFtdcContractBankField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///зĴ
+ TThostFtdcBankBrchIDType BankBrchID;
+ ///
+ TThostFtdcBankNameType BankName;
+ };
+
+ ///Ͷϳֲϸ
+ struct CThostFtdcInvestorPositionCombineDetailField
+ {
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcDateType OpenDate;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ϱ
+ TThostFtdcTradeIDType ComTradeID;
+ ///ϱ
+ TThostFtdcTradeIDType TradeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///ֲ
+ TThostFtdcVolumeType TotalAmt;
+ ///Ͷ֤߱
+ TThostFtdcMoneyType Margin;
+ ///֤
+ TThostFtdcMoneyType ExchMargin;
+ ///֤
+ TThostFtdcRatioType MarginRateByMoney;
+ ///֤()
+ TThostFtdcRatioType MarginRateByVolume;
+ ///ȱ
+ TThostFtdcLegIDType LegID;
+ ///ȳ
+ TThostFtdcLegMultipleType LegMultiple;
+ ///ϳֲֺԼ
+ TThostFtdcInstrumentIDType CombInstrumentID;
+ ///ɽ
+ TThostFtdcTradeGroupIDType TradeGroupID;
+ };
+
+ ///Ԥ
+ struct CThostFtdcParkedOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TThostFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TThostFtdcDateType GTDDate;
+ ///ɽ
+ TThostFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TThostFtdcVolumeType MinVolume;
+ ///
+ TThostFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TThostFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TThostFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TThostFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ûǿ־
+ TThostFtdcBoolType UserForceClose;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ԥ
+ TThostFtdcParkedOrderIDType ParkedOrderID;
+ ///û
+ TThostFtdcUserTypeType UserType;
+ ///Ԥ״̬
+ TThostFtdcParkedOrderStatusType Status;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///־
+ TThostFtdcBoolType IsSwapOrder;
+ };
+
+ ///Ԥ
+ struct CThostFtdcParkedOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///仯
+ TThostFtdcVolumeType VolumeChange;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ԥ
+ TThostFtdcParkedOrderActionIDType ParkedOrderActionID;
+ ///û
+ TThostFtdcUserTypeType UserType;
+ ///Ԥ״̬
+ TThostFtdcParkedOrderStatusType Status;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯԤ
+ struct CThostFtdcQryParkedOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯԤ
+ struct CThostFtdcQryParkedOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ɾԤ
+ struct CThostFtdcRemoveParkedOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ԥ
+ TThostFtdcParkedOrderIDType ParkedOrderID;
+ };
+
+ ///ɾԤ
+ struct CThostFtdcRemoveParkedOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ԥ
+ TThostFtdcParkedOrderActionIDType ParkedOrderActionID;
+ };
+
+ ///˾ʽ㷨
+ struct CThostFtdcInvestorWithdrawAlgorithmField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ʽ
+ TThostFtdcRatioType UsingRatio;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///Ѻ
+ TThostFtdcRatioType FundMortgageRatio;
+ };
+
+ ///ѯϳֲϸ
+ struct CThostFtdcQryInvestorPositionCombineDetailField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ϳֲֺԼ
+ TThostFtdcInstrumentIDType CombInstrumentID;
+ };
+
+ ///ɽ
+ struct CThostFtdcMarketDataAveragePriceField
+ {
+ ///վ
+ TThostFtdcPriceType AveragePrice;
+ };
+
+ ///УͶ
+ struct CThostFtdcVerifyInvestorPasswordField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcPasswordType Password;
+ };
+
+ ///ûIP
+ struct CThostFtdcUserIPField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ ///IPַ
+ TThostFtdcIPAddressType IPMask;
+ ///Macַ
+ TThostFtdcMacAddressType MacAddress;
+ };
+
+ ///û¼֪ͨϢ
+ struct CThostFtdcTradingNoticeInfoField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ʱ
+ TThostFtdcTimeType SendTime;
+ ///Ϣ
+ TThostFtdcContentType FieldContent;
+ ///ϵк
+ TThostFtdcSequenceSeriesType SequenceSeries;
+ ///к
+ TThostFtdcSequenceNoType SequenceNo;
+ };
+
+ ///û¼֪ͨ
+ struct CThostFtdcTradingNoticeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ϵк
+ TThostFtdcSequenceSeriesType SequenceSeries;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ʱ
+ TThostFtdcTimeType SendTime;
+ ///к
+ TThostFtdcSequenceNoType SequenceNo;
+ ///Ϣ
+ TThostFtdcContentType FieldContent;
+ };
+
+ ///ѯ¼֪ͨ
+ struct CThostFtdcQryTradingNoticeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryErrOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///
+ struct CThostFtdcErrOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TThostFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TThostFtdcDateType GTDDate;
+ ///ɽ
+ TThostFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TThostFtdcVolumeType MinVolume;
+ ///
+ TThostFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TThostFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TThostFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TThostFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ûǿ־
+ TThostFtdcBoolType UserForceClose;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///־
+ TThostFtdcBoolType IsSwapOrder;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ
+ struct CThostFtdcErrorConditionalOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcCombHedgeFlagType CombHedgeFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///Ч
+ TThostFtdcTimeConditionType TimeCondition;
+ ///GTD
+ TThostFtdcDateType GTDDate;
+ ///ɽ
+ TThostFtdcVolumeConditionType VolumeCondition;
+ ///Сɽ
+ TThostFtdcVolumeType MinVolume;
+ ///
+ TThostFtdcContingentConditionType ContingentCondition;
+ ///ֹ
+ TThostFtdcPriceType StopPrice;
+ ///ǿƽԭ
+ TThostFtdcForceCloseReasonType ForceCloseReason;
+ ///Զ־
+ TThostFtdcBoolType IsAutoSuspend;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ύ״̬
+ TThostFtdcOrderSubmitStatusType OrderSubmitStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///Դ
+ TThostFtdcOrderSourceType OrderSource;
+ ///״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///
+ TThostFtdcOrderTypeType OrderType;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TThostFtdcVolumeType VolumeTotal;
+ ///
+ TThostFtdcDateType InsertDate;
+ ///ίʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ʱ
+ TThostFtdcTimeType SuspendTime;
+ ///ʱ
+ TThostFtdcTimeType UpdateTime;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ĽԱ
+ TThostFtdcTraderIDType ActiveTraderID;
+ ///Ա
+ TThostFtdcParticipantIDType ClearingPartID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///ûǿ־
+ TThostFtdcBoolType UserForceClose;
+ ///û
+ TThostFtdcUserIDType ActiveUserID;
+ ///˾
+ TThostFtdcSequenceNoType BrokerOrderSeq;
+ ///ر
+ TThostFtdcOrderSysIDType RelativeOrderSysID;
+ ///֣ɽ
+ TThostFtdcVolumeType ZCETotalTradedVolume;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///־
+ TThostFtdcBoolType IsSwapOrder;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ };
+
+ ///ѯ
+ struct CThostFtdcQryErrOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///
+ struct CThostFtdcErrOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcOrderActionRefType OrderActionRef;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///־
+ TThostFtdcActionFlagType ActionFlag;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///仯
+ TThostFtdcVolumeType VolumeChange;
+ ///
+ TThostFtdcDateType ActionDate;
+ ///ʱ
+ TThostFtdcTimeType ActionTime;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ر
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///״̬
+ TThostFtdcOrderActionStatusType OrderActionStatus;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ӫҵ
+ TThostFtdcBranchIDType BranchID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯ״̬
+ struct CThostFtdcQryExchangeSequenceField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///״̬
+ struct CThostFtdcExchangeSequenceField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///Լ״̬
+ TThostFtdcInstrumentStatusType MarketStatus;
+ };
+
+ ///ݼ۸ѯ
+ struct CThostFtdcQueryMaxOrderVolumeWithPriceField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcVolumeType MaxVolume;
+ ///۸
+ TThostFtdcPriceType Price;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯ˾ײ
+ struct CThostFtdcQryBrokerTradingParamsField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///˾ײ
+ struct CThostFtdcBrokerTradingParamsField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///֤۸
+ TThostFtdcMarginPriceTypeType MarginPriceType;
+ ///ӯ㷨
+ TThostFtdcAlgorithmType Algorithm;
+ ///Ƿƽӯ
+ TThostFtdcIncludeCloseProfitType AvailIncludeCloseProfit;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ȨȨ۸
+ TThostFtdcOptionRoyaltyPriceTypeType OptionRoyaltyPriceType;
+ };
+
+ ///ѯ˾㷨
+ struct CThostFtdcQryBrokerTradingAlgosField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///˾㷨
+ struct CThostFtdcBrokerTradingAlgosField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ֲִ㷨
+ TThostFtdcHandlePositionAlgoIDType HandlePositionAlgoID;
+ ///Ѱұ֤㷨
+ TThostFtdcFindMarginRateAlgoIDType FindMarginRateAlgoID;
+ ///ʽ㷨
+ TThostFtdcHandleTradingAccountAlgoIDType HandleTradingAccountAlgoID;
+ };
+
+ ///ѯ˾ʽ
+ struct CThostFtdcQueryBrokerDepositField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///˾ʽ
+ struct CThostFtdcBrokerDepositField
+ {
+ ///
+ TThostFtdcTradeDateType TradingDay;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ϴν
+ TThostFtdcMoneyType PreBalance;
+ ///ǰ֤ܶ
+ TThostFtdcMoneyType CurrMargin;
+ ///ƽӯ
+ TThostFtdcMoneyType CloseProfit;
+ ///ڻ
+ TThostFtdcMoneyType Balance;
+ ///
+ TThostFtdcMoneyType Deposit;
+ ///
+ TThostFtdcMoneyType Withdraw;
+ ///ʽ
+ TThostFtdcMoneyType Available;
+ ///
+ TThostFtdcMoneyType Reserve;
+ ///ı֤
+ TThostFtdcMoneyType FrozenMargin;
+ };
+
+ ///ѯ֤ϵͳ˾Կ
+ struct CThostFtdcQryCFMMCBrokerKeyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ };
+
+ ///֤ϵͳ˾Կ
+ struct CThostFtdcCFMMCBrokerKeyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///˾ͳһ
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Կ
+ TThostFtdcDateType CreateDate;
+ ///Կʱ
+ TThostFtdcTimeType CreateTime;
+ ///Կ
+ TThostFtdcSequenceNoType KeyID;
+ ///̬Կ
+ TThostFtdcCFMMCKeyType CurrentKey;
+ ///̬Կ
+ TThostFtdcCFMMCKeyKindType KeyKind;
+ };
+
+ ///֤ϵͳ˾ʽ˻Կ
+ struct CThostFtdcCFMMCTradingAccountKeyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///˾ͳһ
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///Կ
+ TThostFtdcSequenceNoType KeyID;
+ ///̬Կ
+ TThostFtdcCFMMCKeyType CurrentKey;
+ };
+
+ ///ѯ֤ϵͳ˾ʽ˻Կ
+ struct CThostFtdcQryCFMMCTradingAccountKeyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///û̬Ʋ
+ struct CThostFtdcBrokerUserOTPParamField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///̬ṩ
+ TThostFtdcOTPVendorsIDType OTPVendorsID;
+ ///̬к
+ TThostFtdcSerialNumberType SerialNumber;
+ ///Կ
+ TThostFtdcAuthKeyType AuthKey;
+ ///Ưֵ
+ TThostFtdcLastDriftType LastDrift;
+ ///ɹֵ
+ TThostFtdcLastSuccessType LastSuccess;
+ ///̬
+ TThostFtdcOTPTypeType OTPType;
+ };
+
+ ///ֹͬû̬
+ struct CThostFtdcManualSyncBrokerUserOTPField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///̬
+ TThostFtdcOTPTypeType OTPType;
+ ///һ̬
+ TThostFtdcPasswordType FirstOTP;
+ ///ڶ̬
+ TThostFtdcPasswordType SecondOTP;
+ };
+
+ ///Ͷģ
+ struct CThostFtdcCommRateModelField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ģ
+ TThostFtdcInvestorIDType CommModelID;
+ ///ģ
+ TThostFtdcCommModelNameType CommModelName;
+ };
+
+ ///ѯͶģ
+ struct CThostFtdcQryCommRateModelField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ģ
+ TThostFtdcInvestorIDType CommModelID;
+ };
+
+ ///Ͷ֤߱ģ
+ struct CThostFtdcMarginModelField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///֤ģ
+ TThostFtdcInvestorIDType MarginModelID;
+ ///ģ
+ TThostFtdcCommModelNameType MarginModelName;
+ };
+
+ ///ѯͶ֤߱ģ
+ struct CThostFtdcQryMarginModelField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///֤ģ
+ TThostFtdcInvestorIDType MarginModelID;
+ };
+
+ ///ֵ۵Ϣ
+ struct CThostFtdcEWarrantOffsetField
+ {
+ ///
+ TThostFtdcTradeDateType TradingDay;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcVolumeType Volume;
+ };
+
+ ///ѯֵ۵Ϣ
+ struct CThostFtdcQryEWarrantOffsetField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///ѯͶƷ/Ʒֱ֤
+ struct CThostFtdcQryInvestorProductGroupMarginField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ʒ/Ʒֱʾ
+ TThostFtdcInstrumentIDType ProductGroupID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ };
+
+ ///ͶƷ/Ʒֱ֤
+ struct CThostFtdcInvestorProductGroupMarginField
+ {
+ ///Ʒ/Ʒֱʾ
+ TThostFtdcInstrumentIDType ProductGroupID;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///ı֤
+ TThostFtdcMoneyType FrozenMargin;
+ ///ͷı֤
+ TThostFtdcMoneyType LongFrozenMargin;
+ ///ͷı֤
+ TThostFtdcMoneyType ShortFrozenMargin;
+ ///ռõı֤
+ TThostFtdcMoneyType UseMargin;
+ ///ͷ֤
+ TThostFtdcMoneyType LongUseMargin;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortUseMargin;
+ ///֤
+ TThostFtdcMoneyType ExchMargin;
+ ///ͷ֤
+ TThostFtdcMoneyType LongExchMargin;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortExchMargin;
+ ///ƽӯ
+ TThostFtdcMoneyType CloseProfit;
+ ///
+ TThostFtdcMoneyType FrozenCommission;
+ ///
+ TThostFtdcMoneyType Commission;
+ ///ʽ
+ TThostFtdcMoneyType FrozenCash;
+ ///ʽ
+ TThostFtdcMoneyType CashIn;
+ ///ֲӯ
+ TThostFtdcMoneyType PositionProfit;
+ ///۵ܽ
+ TThostFtdcMoneyType OffsetAmount;
+ ///ͷ۵ܽ
+ TThostFtdcMoneyType LongOffsetAmount;
+ ///ͷ۵ܽ
+ TThostFtdcMoneyType ShortOffsetAmount;
+ ///۵ܽ
+ TThostFtdcMoneyType ExchOffsetAmount;
+ ///ͷ۵ܽ
+ TThostFtdcMoneyType LongExchOffsetAmount;
+ ///ͷ۵ܽ
+ TThostFtdcMoneyType ShortExchOffsetAmount;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ };
+
+ ///ѯû
+ struct CThostFtdcQueryCFMMCTradingAccountTokenField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///û
+ struct CThostFtdcCFMMCTradingAccountTokenField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///˾ͳһ
+ TThostFtdcParticipantIDType ParticipantID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///Կ
+ TThostFtdcSequenceNoType KeyID;
+ ///̬
+ TThostFtdcCFMMCTokenType Token;
+ };
+
+ ///ѯƷ
+ struct CThostFtdcQryProductGroupField
+ {
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ͶƷ/Ʒֱ֤Ʒ
+ struct CThostFtdcProductGroupField
+ {
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductGroupID;
+ };
+
+ ///תʿ
+ struct CThostFtdcReqOpenAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TThostFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///ת
+ struct CThostFtdcReqCancelAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TThostFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///˻
+ struct CThostFtdcReqChangeAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///ʺ
+ TThostFtdcBankAccountType NewBankAccount;
+ ///
+ TThostFtdcPasswordType NewBankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ };
+
+ ///ת
+ struct CThostFtdcReqTransferField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TThostFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TThostFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TThostFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TThostFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TThostFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TThostFtdcAddInfoType Message;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ת˽״̬
+ TThostFtdcTransferStatusType TransferStatus;
+ };
+
+ ///зʽתڻӦ
+ struct CThostFtdcRspTransferField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TThostFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TThostFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TThostFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TThostFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TThostFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TThostFtdcAddInfoType Message;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ת˽״̬
+ TThostFtdcTransferStatusType TransferStatus;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///
+ struct CThostFtdcReqRepealField
+ {
+ ///ʱ
+ TThostFtdcRepealTimeIntervalType RepealTimeInterval;
+ ///Ѿ
+ TThostFtdcRepealedTimesType RepealedTimes;
+ ///г־
+ TThostFtdcBankRepealFlagType BankRepealFlag;
+ ///̳־
+ TThostFtdcBrokerRepealFlagType BrokerRepealFlag;
+ ///ƽ̨ˮ
+ TThostFtdcPlateSerialType PlateRepealSerial;
+ ///ˮ
+ TThostFtdcBankSerialType BankRepealSerial;
+ ///ڻˮ
+ TThostFtdcFutureSerialType FutureRepealSerial;
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TThostFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TThostFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TThostFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TThostFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TThostFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TThostFtdcAddInfoType Message;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ת˽״̬
+ TThostFtdcTransferStatusType TransferStatus;
+ };
+
+ ///Ӧ
+ struct CThostFtdcRspRepealField
+ {
+ ///ʱ
+ TThostFtdcRepealTimeIntervalType RepealTimeInterval;
+ ///Ѿ
+ TThostFtdcRepealedTimesType RepealedTimes;
+ ///г־
+ TThostFtdcBankRepealFlagType BankRepealFlag;
+ ///̳־
+ TThostFtdcBrokerRepealFlagType BrokerRepealFlag;
+ ///ƽ̨ˮ
+ TThostFtdcPlateSerialType PlateRepealSerial;
+ ///ˮ
+ TThostFtdcBankSerialType BankRepealSerial;
+ ///ڻˮ
+ TThostFtdcFutureSerialType FutureRepealSerial;
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TThostFtdcTradeAmountType TradeAmount;
+ ///ڻȡ
+ TThostFtdcTradeAmountType FutureFetchAmount;
+ ///֧־
+ TThostFtdcFeePayFlagType FeePayFlag;
+ ///Ӧտͻ
+ TThostFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TThostFtdcFutureFeeType BrokerFee;
+ ///ͷշϢ
+ TThostFtdcAddInfoType Message;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ת˽״̬
+ TThostFtdcTransferStatusType TransferStatus;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯ˻Ϣ
+ struct CThostFtdcReqQueryAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ };
+
+ ///ѯ˻ϢӦ
+ struct CThostFtdcRspQueryAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///пý
+ TThostFtdcTradeAmountType BankUseAmount;
+ ///пȡ
+ TThostFtdcTradeAmountType BankFetchAmount;
+ };
+
+ ///ǩǩ
+ struct CThostFtdcFutureSignIOField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ };
+
+ ///ǩӦ
+ struct CThostFtdcRspFutureSignInField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///PINԿ
+ TThostFtdcPasswordKeyType PinKey;
+ ///MACԿ
+ TThostFtdcPasswordKeyType MacKey;
+ };
+
+ ///ǩ
+ struct CThostFtdcReqFutureSignOutField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ };
+
+ ///ǩӦ
+ struct CThostFtdcRspFutureSignOutField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯָˮŵĽ
+ struct CThostFtdcReqQueryTradeResultBySerialField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ˮ
+ TThostFtdcSerialType Reference;
+ ///ˮŷߵĻ
+ TThostFtdcInstitutionTypeType RefrenceIssureType;
+ ///ˮŷ
+ TThostFtdcOrganCodeType RefrenceIssure;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TThostFtdcTradeAmountType TradeAmount;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ };
+
+ ///ѯָˮŵĽӦ
+ struct CThostFtdcRspQueryTradeResultBySerialField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///ˮ
+ TThostFtdcSerialType Reference;
+ ///ˮŷߵĻ
+ TThostFtdcInstitutionTypeType RefrenceIssureType;
+ ///ˮŷ
+ TThostFtdcOrganCodeType RefrenceIssure;
+ ///ԭʼش
+ TThostFtdcReturnCodeType OriginReturnCode;
+ ///ԭʼ
+ TThostFtdcDescrInfoForReturnCodeType OriginDescrInfoForReturnCode;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///תʽ
+ TThostFtdcTradeAmountType TradeAmount;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ };
+
+ ///ļ
+ struct CThostFtdcReqDayEndFileReadyField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ļҵ
+ TThostFtdcFileBusinessCodeType FileBusinessCode;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ };
+
+ ///ؽ
+ struct CThostFtdcReturnResultField
+ {
+ ///ش
+ TThostFtdcReturnCodeType ReturnCode;
+ ///
+ TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode;
+ };
+
+ ///֤ڻʽ
+ struct CThostFtdcVerifyFuturePasswordField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///֤ͻϢ
+ struct CThostFtdcVerifyCustInfoField
+ {
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ };
+
+ ///֤ڻʽͿͻϢ
+ struct CThostFtdcVerifyFuturePasswordAndCustInfoField
+ {
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///֤ڻʽͿͻϢ
+ struct CThostFtdcDepositResultInformField
+ {
+ ///ˮţˮΪڱ̷صˮ
+ TThostFtdcDepositSeqNoType DepositSeqNo;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcMoneyType Deposit;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ش
+ TThostFtdcReturnCodeType ReturnCode;
+ ///
+ TThostFtdcDescrInfoForReturnCodeType DescrInfoForReturnCode;
+ };
+
+ ///ڱ̷Կͬ
+ struct CThostFtdcReqSyncKeyField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ĸڱ̵Ϣ
+ TThostFtdcAddInfoType Message;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ };
+
+ ///ڱ̷ԿͬӦ
+ struct CThostFtdcRspSyncKeyField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ĸڱ̵Ϣ
+ TThostFtdcAddInfoType Message;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯ˻Ϣ֪ͨ
+ struct CThostFtdcNotifyQueryAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///пý
+ TThostFtdcTradeAmountType BankUseAmount;
+ ///пȡ
+ TThostFtdcTradeAmountType BankFetchAmount;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ת˽ˮ
+ struct CThostFtdcTransferSerialField
+ {
+ ///ƽ̨ˮ
+ TThostFtdcPlateSerialType PlateSerial;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///״
+ TThostFtdcTradeCodeType TradeCode;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///б
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ڻ˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///ڻ˾ʺ
+ TThostFtdcFutureAccTypeType FutureAccType;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ڻ˾ˮ
+ TThostFtdcFutureSerialType FutureSerial;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///
+ TThostFtdcTradeAmountType TradeAmount;
+ ///Ӧտͻ
+ TThostFtdcCustFeeType CustFee;
+ ///Ӧڻ˾
+ TThostFtdcFutureFeeType BrokerFee;
+ ///Ч־
+ TThostFtdcAvailabilityFlagType AvailabilityFlag;
+ ///Ա
+ TThostFtdcOperatorCodeType OperatorCode;
+ ///ʺ
+ TThostFtdcBankAccountType BankNewAccount;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯתˮ
+ struct CThostFtdcQryTransferSerialField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///б
+ TThostFtdcBankIDType BankID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ǩ֪ͨ
+ struct CThostFtdcNotifyFutureSignInField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///PINԿ
+ TThostFtdcPasswordKeyType PinKey;
+ ///MACԿ
+ TThostFtdcPasswordKeyType MacKey;
+ };
+
+ ///ǩ֪ͨ
+ struct CThostFtdcNotifyFutureSignOutField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ڱ̷Կ֪ͬͨ
+ struct CThostFtdcNotifySyncKeyField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///ĸڱ̵Ϣ
+ TThostFtdcAddInfoType Message;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ѯǩԼϵ
+ struct CThostFtdcQryAccountregisterField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///б
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ͻϢ
+ struct CThostFtdcAccountregisterField
+ {
+ ///
+ TThostFtdcTradeDateType TradeDay;
+ ///б
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///ڻ˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///ڻ˾֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///
+ TThostFtdcOpenOrDestroyType OpenOrDestroy;
+ ///ǩԼ
+ TThostFtdcTradeDateType RegDate;
+ ///Լ
+ TThostFtdcTradeDateType OutDate;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ };
+
+ ///ڿϢ
+ struct CThostFtdcOpenAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TThostFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///Ϣ
+ struct CThostFtdcCancelAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///㳮־
+ TThostFtdcCashExchangeCodeType CashExchangeCode;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///־
+ TThostFtdcDeviceIDType DeviceID;
+ ///ڻλʺ
+ TThostFtdcBankAccTypeType BankSecuAccType;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///ڻλʺ
+ TThostFtdcBankAccountType BankSecuAcc;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///Ա
+ TThostFtdcOperNoType OperNo;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ûʶ
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ڱ˺Ϣ
+ struct CThostFtdcChangeAccountField
+ {
+ ///ҵ
+ TThostFtdcTradeCodeType TradeCode;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///з֧
+ TThostFtdcBankBrchIDType BankBranchID;
+ ///̴
+ TThostFtdcBrokerIDType BrokerID;
+ ///̷֧
+ TThostFtdcFutureBranchIDType BrokerBranchID;
+ ///
+ TThostFtdcTradeDateType TradeDate;
+ ///ʱ
+ TThostFtdcTradeTimeType TradeTime;
+ ///ˮ
+ TThostFtdcBankSerialType BankSerial;
+ ///ϵͳ
+ TThostFtdcTradeDateType TradingDay;
+ ///ƽ̨Ϣˮ
+ TThostFtdcSerialType PlateSerial;
+ ///Ƭ־
+ TThostFtdcLastFragmentType LastFragment;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///֤
+ TThostFtdcIdCardTypeType IdCardType;
+ ///֤
+ TThostFtdcIdentifiedCardNoType IdentifiedCardNo;
+ ///Ա
+ TThostFtdcGenderType Gender;
+ ///Ҵ
+ TThostFtdcCountryCodeType CountryCode;
+ ///ͻ
+ TThostFtdcCustTypeType CustType;
+ ///ַ
+ TThostFtdcAddressType Address;
+ ///ʱ
+ TThostFtdcZipCodeType ZipCode;
+ ///绰
+ TThostFtdcTelephoneType Telephone;
+ ///ֻ
+ TThostFtdcMobilePhoneType MobilePhone;
+ ///
+ TThostFtdcFaxType Fax;
+ ///ʼ
+ TThostFtdcEMailType EMail;
+ ///ʽ˻״̬
+ TThostFtdcMoneyAccountStatusType MoneyAccountStatus;
+ ///ʺ
+ TThostFtdcBankAccountType BankAccount;
+ ///
+ TThostFtdcPasswordType BankPassWord;
+ ///ʺ
+ TThostFtdcBankAccountType NewBankAccount;
+ ///
+ TThostFtdcPasswordType NewBankPassWord;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///ڻ
+ TThostFtdcPasswordType Password;
+ ///ʺ
+ TThostFtdcBankAccTypeType BankAccType;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///֤ͻ֤־
+ TThostFtdcYesNoIndicatorType VerifyCertNoFlag;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ڻ˾б
+ TThostFtdcBankCodingForFutureType BrokerIDByBank;
+ ///־
+ TThostFtdcPwdFlagType BankPwdFlag;
+ ///ڻʽ˶Ա־
+ TThostFtdcPwdFlagType SecuPwdFlag;
+ ///ID
+ TThostFtdcTIDType TID;
+ ///ժҪ
+ TThostFtdcDigestType Digest;
+ ///
+ TThostFtdcErrorIDType ErrorID;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ };
+
+ ///ԱȨ
+ struct CThostFtdcSecAgentACIDMapField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ʽ˻
+ TThostFtdcAccountIDType AccountID;
+ ///
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///нʽʺ
+ TThostFtdcAccountIDType BrokerSecAgentID;
+ };
+
+ ///ԱȨѯ
+ struct CThostFtdcQrySecAgentACIDMapField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ʽ˻
+ TThostFtdcAccountIDType AccountID;
+ ///
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ֱĽȨ
+ struct CThostFtdcUserRightsAssignField
+ {
+ ///ӦõԪ
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///Ĵ
+ TThostFtdcDRIdentityIDType DRIdentityID;
+ };
+
+ ///ù˾ǷڱʾĽȨ
+ struct CThostFtdcBrokerUserRightAssignField
+ {
+ ///ӦõԪ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ĵ
+ TThostFtdcDRIdentityIDType DRIdentityID;
+ ///ܷ
+ TThostFtdcBoolType Tradeable;
+ };
+
+ ///ֱת
+ struct CThostFtdcDRTransferField
+ {
+ ///ԭĴ
+ TThostFtdcDRIdentityIDType OrigDRIdentityID;
+ ///Ŀ꽻Ĵ
+ TThostFtdcDRIdentityIDType DestDRIdentityID;
+ ///ԭӦõԪ
+ TThostFtdcBrokerIDType OrigBrokerID;
+ ///ĿõԪ
+ TThostFtdcBrokerIDType DestBrokerID;
+ };
+
+ ///FensûϢ
+ struct CThostFtdcFensUserInfoField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///¼ģʽ
+ TThostFtdcLoginModeType LoginMode;
+ };
+
+ ///ǰ
+ struct CThostFtdcCurrTransferIdentityField
+ {
+ ///Ĵ
+ TThostFtdcDRIdentityIDType IdentityID;
+ };
+
+ ///ֹ¼û
+ struct CThostFtdcLoginForbiddenUserField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///IPַ
+ TThostFtdcIPAddressType IPAddress;
+ };
+
+ ///ѯֹ¼û
+ struct CThostFtdcQryLoginForbiddenUserField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ };
+
+ ///UDP鲥Ϣ
+ struct CThostFtdcMulticastGroupInfoField
+ {
+ ///鲥IPַ
+ TThostFtdcIPAddressType GroupIP;
+ ///鲥IP˿
+ TThostFtdcIPPortType GroupPort;
+ ///Դַ
+ TThostFtdcIPAddressType SourceIP;
+ };
+
+ ///ʽ˻
+ struct CThostFtdcTradingAccountReserveField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷʺ
+ TThostFtdcAccountIDType AccountID;
+ ///
+ TThostFtdcMoneyType Reserve;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///DBF¼
+ struct CThostFtdcDBFRecordField
+ {
+ ///DBF
+ TThostFtdcDBFComdTypeType DBFComdType;
+ ///DBFʱ
+ TThostFtdcDBFComTimeType DBFComTime;
+ ///DBFԭʼˮ
+ TThostFtdcDBFComNoType DBFOComNo;
+ ///DBFˮ
+ TThostFtdcDBFComNoType DBFComNo;
+ ///DBFֶ
+ TThostFtdcDBFFdNameType DBFFdName1;
+ ///DBFֶ
+ TThostFtdcDBFFdContentType DBFFdContent1;
+ ///DBFֶ
+ TThostFtdcDBFFdNameType DBFFdName2;
+ ///DBFֶ
+ TThostFtdcDBFFdContentType DBFFdContent2;
+ ///DBFֶ
+ TThostFtdcDBFFdNameType DBFFdName3;
+ ///DBFֶ
+ TThostFtdcDBFFdContentType DBFFdContent3;
+ ///DBFֶ
+ TThostFtdcDBFFdNameType DBFFdName4;
+ ///DBFֶ
+ TThostFtdcDBFFdContentType DBFFdContent4;
+ };
+} // end of namespace KingstarAPI
+
+#endif
diff --git a/include/Kingstar/IncEx/KSVocApi.h b/include/Kingstar/IncEx/KSVocApi.h
new file mode 100644
index 0000000..dbb5e01
--- /dev/null
+++ b/include/Kingstar/IncEx/KSVocApi.h
@@ -0,0 +1,153 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSVocApi.h
+///@brief ˿ͻ˿ͻƽӿ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSVOCAPI_H_INCLUDED_
+#define __KSVOCAPI_H_INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiStructEx.h"
+#include "KSVocApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32) && !defined(KSTRADEAPI_STATIC_LIB)
+#ifdef LIB_TRADER_API_EXPORT
+#define TRADER_VOCAPI_EXPORT __declspec(dllexport)
+#else
+#define TRADER_VOCAPI_EXPORT __declspec(dllimport)
+#endif
+#else
+#ifdef WIN32
+#define TRADER_VOCAPI_EXPORT
+#else
+#define TRADER_VOCAPI_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif
+
+namespace KingstarAPI
+{
+
+ class CKSVocSpi
+ {
+ public:
+ ///ѯǰijֲϸӦ
+ virtual void OnRspQryInvestorOpenPosition(CThostFtdcInvestorPositionDetailField *pInvestorPositionDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯǰϳֲϸӦ
+ virtual void OnRspQryInvestorOpenCombinePosition(CThostFtdcInvestorPositionCombineDetailField *pInvestorPositionCombineDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///Ӧ
+ virtual void OnRspBulkCancelOrder(CThostFtdcBulkCancelOrderField *pBulkCancelOrder, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ƽֲԲѯӦ
+ virtual void OnRspQryCloseStrategy(CKSCloseStrategyResultField *pCloseStrategy, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ϲԲѯӦ
+ virtual void OnRspQryCombStrategy(CKSCombStrategyResultField *pCombStrategy, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ȨϲԲѯӦ
+ virtual void OnRspQryOptionCombStrategy(CKSOptionCombStrategyResultField *pOptionCombStrategy, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast){};
+
+ ///ѯͻתϢӦ
+ virtual void OnRspQryTransferInfo(CKSTransferInfoResultField *pResultField, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯ֪ͨӦ
+ virtual void OnRspQryKSTradingNotice(CKSTradingNoticeField *pTradingNotice, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///û˲ƷԴѯӦ
+ virtual void OnRspQryUserProductUrl(CKSUserProductUrlField *pUserProductUrl, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ϲֵѯӦ
+ virtual void OnRspQryMaxCombActionVolume(CKSMaxCombActionVolumeField *pMaxCombActionVolume, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///֪ͨ
+ virtual void OnRtnKSTradingNotice(CKSTradingNoticeField *pTradingNoticeInfo) {};
+
+ ///ѯȨԼӦ
+ virtual void OnRspQryKSOptionInstrCommRate(CKSOptionInstrCommRateField *pOptionInstrCommRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ѯԼ֤Ӧ
+ virtual void OnRspQryKSInstrumentMarginRate(CKSInstrumentMarginRateField *pInstrumentMarginRate, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ͻÿճӦ
+ virtual void OnRspFundOutCreditApply(CKSInputFundOutCreditApplyField *pFundOutCreditApply, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ͻÿճȲѯӦ
+ virtual void OnRspQryFundOutCredit(CKSRspQryFundOutCreditField *pRspQryFundOutCredit, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ͻÿճѯӦ
+ virtual void OnRspQryFundOutCreditApply(CKSRspQryFundOutCreditApplyField *pRspQryFundOutCreditApply, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ԤԼȡӦ
+ virtual void OnRspLargeFundOutApply(CKSLargeFundOutApplyField *pLargeFundOutApply, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ԤԼѯӦ
+ virtual void OnRspQryLargeFundOutApply(CKSRspLargeFundOutApplyField *pRspLargeFundOutApply, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+ };
+
+ class TRADER_VOCAPI_EXPORT CKSVocApi
+ {
+ public:
+ ///ѯǰijֲϸ
+ virtual int ReqQueryInvestorOpenPosition(CThostFtdcQryInvestorPositionDetailField *pQryInvestorOpenPosition, int nRequestID) = 0;
+
+ ///ѯǰϳֲϸ
+ virtual int ReqQueryInvestorOpenCombinePosition(CThostFtdcQryInvestorPositionCombineDetailField *pQryInvestorOpenCombinePosition, int nRequestID) = 0;
+
+ ///
+ virtual int ReqBulkCancelOrder (CThostFtdcBulkCancelOrderField *pBulkCancelOrder, int nRequestID) = 0;
+
+ ///ƽֲԲѯ
+ virtual int ReqQryCloseStrategy(CKSCloseStrategy *pCloseStrategy, int nRequestID) = 0;
+
+ ///ϲԲѯ
+ virtual int ReqQryCombStrategy(CKSCombStrategy *pCombStrategy, int nRequestID) = 0;
+
+ ///ȨϲԲѯ
+ virtual int ReqQryOptionCombStrategy(CKSOptionCombStrategy *pOptionCombStrategy, int nRequestID) = 0;
+
+ ///ѯͻתϢ
+ virtual int ReqQryTransferInfo(CKSTransferInfo *pTransferInfo, int nRequestID) = 0;
+
+ ///ѯ֪ͨ
+ virtual int ReqQryKSTradingNotice(CKSQryTradingNoticeField *pQryTradingNotice, int nRequestID) = 0;
+
+ ///û˲ƷԴѯ
+ virtual int ReqQryUserProductUrl (CKSQryUserProductUrlField *pQryUserProductUrl, int nRequestID) = 0;
+
+ ///ϲֵѯ
+ virtual int ReqQryMaxCombActionVolume(CKSQryMaxCombActionVolumeField *pQryMaxCombActionVolume, int nRequestID) = 0;
+
+ ///ѯȨԼ
+ virtual int ReqQryKSOptionInstrCommRate(CKSQryOptionInstrCommRateField *pQryOptionInstrCommRate, int nRequestID) = 0;
+
+ ///ѯԼ֤
+ virtual int ReqQryKSInstrumentMarginRate(CKSQryInstrumentMarginRateField *pQryInstrumentMarginRate, int nRequestID) = 0;
+
+ ///ͻÿճ
+ virtual int ReqFundOutCreditApply(CKSInputFundOutCreditApplyField *pFundOutCreditApply, int nRequestID) = 0;
+
+ ///ͻÿճȲѯ
+ virtual int ReqQryFundOutCredit(CKSQryFundOutCreditField *pQryFundOutCredit, int nRequestID) = 0;
+
+ ///ͻÿճѯ
+ virtual int ReqQryFundOutCreditApply(CKSQryFundOutCreditApplyField *pQryFundOutCreditApply, int nRequestID) = 0;
+
+ ///ԤԼȡ
+ virtual int ReqLargeFundOutApply(CKSLargeFundOutApplyField *pLargeFundOutApply, int nRequestID) = 0;
+
+ ///ԤԼѯ
+ virtual int ReqQryLargeFundOutApply(CKSQryLargeFundOutApplyField *pQryLargeFundOutApply, int nRequestID) = 0;
+
+ protected:
+ ~CKSVocApi(){};
+ };
+
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSVocApiDataType.h b/include/Kingstar/IncEx/KSVocApiDataType.h
new file mode 100644
index 0000000..fb7f0fd
--- /dev/null
+++ b/include/Kingstar/IncEx/KSVocApiDataType.h
@@ -0,0 +1,363 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSVocApiDataType.h
+///@brief ˿ͻ˽ӿʹõҵ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSVOCAPIDATATYPE_H_INCLUDED_
+#define __KSVOCAPIDATATYPE_H_INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+namespace KingstarAPI
+{
+ //չAPI
+ enum KS_EXTAPI_TYPE
+ {
+ KS_COS_API = 0,
+ KS_OPT_API,
+ KS_VOC_API,
+ KS_VOC_MDAPI,
+ KS_PRD_API
+ };
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///ڵ
+#define KSCOS_GreaterEqualTermPrice '0'
+ ///Сڵ
+#define KSCOS_LesserThanTermPrice '1'
+
+ typedef char TKSConditionalTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalOrderTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///鴥
+#define KSCOS_TRIGGERTYPE_QUOTATION '0'
+ ///̴
+#define KSCOS_TRIGGERTYPE_OPEN '1'
+ ///ʱ䴥
+#define KSCOS_TRIGGERTYPE_TIME '2'
+ ///ʱ䴥
+#define KSCOS_TRIGGERTYPE_QUOTAIONANDTIME '5'
+
+ typedef char TKSConditionalOrderType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalOrderStateAlterTypeһͣ־
+ /////////////////////////////////////////////////////////////////////////
+ ///ͣ
+#define KSCOS_State_PAUSE '0'
+ ///
+#define KSCOS_State_ACTIVE '1'
+
+ typedef char TKSConditionalOrderStateAlterType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalOrderSelectResultTypeһѡ
+ /////////////////////////////////////////////////////////////////////////
+ //
+#define KSCOS_Select_AGAIN '0'
+ //
+#define KSCOS_Select_SKIP '1'
+ // ֹ
+#define KSCOS_Select_ABORT '2'
+
+ typedef char TKSConditionalOrderSelectResultType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSOrderPriceTypeTypeһ۸
+ /////////////////////////////////////////////////////////////////////////
+ // ¼
+#define KSCOS_OrderPrice_LastPrice '0'
+ //
+#define KSCOS_OrderPrice_BidPrice '1'
+ //
+#define KSCOS_OrderPrice_AskPrice '2'
+
+ typedef char TKSOrderPriceTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSCloseModeTypeһƽּ۸
+ /////////////////////////////////////////////////////////////////////////
+ // м
+#define KSPL_Close_MarketPrice '0'
+ // Ӽ
+#define KSPL_Close_SalePrice '1'
+ //Ӽ¼
+#define KSPL_Close_LastPrice '2'
+
+ typedef char TKSCloseModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSOffsetValueTypeһֹֹӯ۵ķʽ
+ /////////////////////////////////////////////////////////////////////////
+ // ֵָ
+#define KSPL_OffsetValue_TermPrice '0'
+ // ֳɽ۵ƫֵ
+#define KSPL_OffsetValue_TradePrice '1'
+
+ typedef char TKSOffsetValueType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSSpringTypeTypeһ۸
+ /////////////////////////////////////////////////////////////////////////
+ ///¼
+#define KSPL_SPRING_LastPrice '0'
+ ///
+#define KSPL_SPRING_SalePrice '1'
+
+ typedef char TKSSpringTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalOrderStatusTypeһ״̬
+ /////////////////////////////////////////////////////////////////////////
+ // ͣ
+#define KSCOS_OrderStatus_PAUSENOTOUCHED '0'
+ // δ
+#define KSCOS_OrderStatus_ACTIVENOTOUCHED '1'
+ //ɾ
+#define KSCOS_OrderStatus_Deleted '2'
+ //Ѵδ
+#define KSCOS_OrderStatus_TOUCHEDNOSEND '3'
+ // ͳʱ
+#define KSCOS_OrderStatus_SENDTIMEOUT '4'
+ //ͳɹ
+#define KSCOS_OrderStatus_SENDSUCCESS '5'
+ // ȴѡ
+#define KSCOS_OrderStatus_WAITSELECT '6'
+ // ѡ
+#define KSCOS_OrderStatus_SELECTSKIP '7'
+ // ѡֹ
+#define KSCOS_OrderStatus_SELECTABORT '8'
+
+ typedef char TKSConditionalOrderStatusType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalOrderIDTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TKSConditionalOrderIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSProfitAndLossOrderIDTypeһֹֹӯ
+ /////////////////////////////////////////////////////////////////////////
+ typedef int TKSProfitAndLossOrderIDType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConditionalOrderSelectTypeTypeһѡʽ
+ /////////////////////////////////////////////////////////////////////////
+ // ȷϡȡ
+#define KSCOS_Select_ConfirmORCancel '1'
+ // ԡֹ
+#define KS_Select_AgainOrSkipOrAbort '2'
+
+ typedef char TKSConditionalOrderSelectTypeType;
+
+
+ /////////////////////////////////////////////////////////////////////////
+ const int MAX_ORDER_COUNT = 20;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSCloseStrategyTypeһƽֲ
+ /////////////////////////////////////////////////////////////////////////
+ ///ȿƽͨ
+#define KSVOC_OpenFCloseF_OrdiComb '1'
+ ///ͨϣȿƽ
+#define KSVOC_OrdiComb_OpenFCloseF '2'
+ ///ڵ(ڵijֲƽƽ)
+#define KSVOC_TodayF_TIME '3'
+
+ typedef char TKSCloseStrategyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSStrategyIDTypeһԴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TKSStrategyIDType[4];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSCombTypeTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+#define KSVOC_CombType_Arbitrage '0'
+ ///
+#define KSVOC_CombType_Swap '1'
+
+ typedef char TKSCombTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSStrikePriceTypeһִм
+ /////////////////////////////////////////////////////////////////////////
+ // ִм۹ȵͶȸ
+#define KSVOC_StrikePrice_Low 'L'
+ // ִм۹ȸ߶ȵ
+#define KSVOC_StrikePrice_High 'H'
+ // ִм۹ͬ
+#define KSVOC_StrikePrice_Minus 'E'
+ // У۸ϵ
+#define KSVOC_StrikePrice_Plus 'N'
+
+ typedef char TKSStrikePriceType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSCalcFlagTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ //
+#define KSVOC_CalcFlag_Plus '1'
+ //
+#define KSVOC_CalcFlag_Minus '2'
+
+ typedef char TKSCalcFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TThostFtdcVolRatioTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcVolRatioType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TThostFtdcMoneyRatioTypeһʽ
+ /////////////////////////////////////////////////////////////////////////
+ typedef double TThostFtdcMoneyRatioType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSInfoTypeTypeһϢ
+ /////////////////////////////////////////////////////////////////////////
+ // ͨ
+#define KSVOC_InfoType_Common '1'
+ //
+#define KSVOC_InfoType_Warn '2'
+ // Σ
+#define KSVOC_InfoType_Risk '3'
+ //
+#define KSVOC_InfoType_Roll '4'
+ // ǿȷ
+#define KSVOC_InfoType_Force '5'
+
+ typedef char TKSInfoTypeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSConfirmFlagTypeһȷϱ־
+ /////////////////////////////////////////////////////////////////////////
+ // δȷ
+#define KSVOC_ConfirmFlag_UnConfirm '0'
+ // ȷ
+#define KSVOC_ConfirmFlag_Confirmed '1'
+
+ typedef char TKSConfirmFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSProductVersionTypeһ汾
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TKSProductVersionType[21];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSProtectFlagTypeһԱ־
+ /////////////////////////////////////////////////////////////////////////
+ //
+#define KSVOC_PF_True 'T'
+ // DZ
+#define KSVOC_PF_Flase 'F'
+
+ typedef char TKSProtectFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSControlRangeTypeһƷΧ
+ /////////////////////////////////////////////////////////////////////////
+ // Ʒ
+#define KSVOC_CR_Product '0'
+ //
+#define KSVOC_CR_ALL '1'
+
+ typedef char TKSControlRangeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSTradeLevelTypeһ
+ /////////////////////////////////////////////////////////////////////////
+ // һ
+#define KSVOC_TL_Level1 '1'
+ //
+#define KSVOC_TL_Level2 '2'
+ //
+#define KSVOC_TL_Level3 '3'
+
+ typedef char TKSTradeLevelType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSSOPosiDirectionTypeһɳֲַ
+ /////////////////////////////////////////////////////////////////////////
+ // Ȩ
+#define KSVOC_SOPD_Buy '1'
+ //
+#define KSVOC_SOPD_Sell '2'
+
+ typedef char TKSSOPosiDirectionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSSODelivModeTypeһɽղѯ
+ /////////////////////////////////////////////////////////////////////////
+ // Ȩľ
+#define KSVOC_SODM_Product '1'
+ // Ȩֽ㽻ϸ
+#define KSVOC_SODM_Cash '2'
+ // ȨΥԼÿȯ
+#define KSVOC_SODM_Dispos '3'
+
+ typedef char TKSSODelivModeType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSCombActionTypeһǿ
+ /////////////////////////////////////////////////////////////////////////
+ ///ǿ
+#define KSVOC_CAT_False '0'
+ ///ǿ
+#define KSVOC_CAT_True '1'
+
+ typedef char TKSCombActionType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSCombStrategyIDTypeһϲԴ
+ /////////////////////////////////////////////////////////////////////////
+ typedef char TKSCombStrategyIDType[9];
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSProfitAndLossFlagTypeһֹֹӯ־
+ /////////////////////////////////////////////////////////////////////////
+ // ֹֹӯ
+#define KSCOS_PLF_NotProfitNotLoss '0'
+ // ֹ
+#define KSCOS_PLF_Loss '1'
+ // ֹӯ
+#define KSCOS_PLF_Profit '2'
+ // ֹֹӯ
+#define KSCOS_PLF_ProfitAndLoss '3'
+
+ typedef char TKSProfitAndLossFlagType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSFOCreditApplyTypeһճȲ
+ /////////////////////////////////////////////////////////////////////////
+ ///
+#define KSVOC_FOCAT_Confirm '0'
+ ///ȡ
+#define KSVOC_FOCAT_NoConfirm '1'
+
+ typedef char TKSFOCreditApplyType;
+
+ /////////////////////////////////////////////////////////////////////////
+ ///TKSFOCreditStatusTypeһճȴ״̬
+ /////////////////////////////////////////////////////////////////////////
+ ///
+#define KSVOC_FOCST_SENDING '0'
+ ///ͨ
+#define KSVOC_FOCST_ACCEPTED '1'
+ ///ѷ
+#define KSVOC_FOCST_REJECT '2'
+
+ typedef char TKSFOCreditStatusType;
+
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSVocApiStruct.h b/include/Kingstar/IncEx/KSVocApiStruct.h
new file mode 100644
index 0000000..b309ae9
--- /dev/null
+++ b/include/Kingstar/IncEx/KSVocApiStruct.h
@@ -0,0 +1,1922 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSVocApiStruct.h
+///@brief ˿ͻ˽ӿʹõҵݽṹ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSVOCAPISTRUCT_H_INCLUDED_
+#define __KSVOCAPISTRUCT_H_INCLUDED_
+
+#include "KSUserApiDataTypeEx.h"
+#include "KSVocApiDataType.h"
+#include "KSUserApiStructEx.h"
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+namespace KingstarAPI
+{
+
+ ///ʼ¼
+ struct CKSConditionalOrderInitInsert
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///ƽ־
+ TThostFtdcOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType CombHedgeFlag;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///۸
+ TKSOrderPriceTypeType OrderPriceType;
+ ///
+ TKSConditionalTypeType ConditionalType;
+ ///
+ TThostFtdcPriceType ConditionalPrice;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///
+ TThostFtdcVolumeType TriggeredTimes;
+ ///
+ TKSConditionalOrderType OrderType;
+ ///Чʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ʧЧʱ
+ TThostFtdcTimeType InActiveTime;
+ ///Ҵ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///
+ struct CKSConditionalOrderModify
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///ƽ־
+ TThostFtdcOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType CombHedgeFlag;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///۸
+ TKSOrderPriceTypeType OrderPriceType;
+ ///
+ TKSConditionalTypeType ConditionalType;
+ ///
+ TThostFtdcPriceType ConditionalPrice;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///
+ TThostFtdcVolumeType TriggeredTimes;
+ ///
+ TKSConditionalOrderType OrderType;
+ ///Чʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ʧЧʱ
+ TThostFtdcTimeType InActiveTime;
+ ///Ҵ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ѯ
+ struct CKSConditionalOrderQuery
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ };
+
+ ///ɾ
+ struct CKSConditionalOrderRemove
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ };
+
+ ///ͣ
+ struct CKSConditionalOrderStateAlter
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///ͣ־
+ TKSConditionalOrderStateAlterType ConditionalOrderStateAlter;
+ };
+
+ ///ѡ
+ struct CKSConditionalOrderSelect
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///ѡ
+ TKSConditionalOrderSelectResultType SelectResult;
+ };
+
+
+ ///Ϣ
+ struct CKSConditionalOrderRspResultField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ };
+
+ ///Ӧ
+ struct CKSConditionalOrderOperResultField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///ƽ־
+ TThostFtdcOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType CombHedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///
+ TThostFtdcTradeDateType TradingDay;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///״̬
+ TKSConditionalOrderStatusType ConditionalOrderStatus;
+ ///Ϣ
+ TThostFtdcErrorMsgType ErrorMsg;
+ ///۸
+ TThostFtdcOrderPriceTypeType OrderPriceType;
+ ///
+ TThostFtdcVolumeType TriggeredTimes;
+ ///
+ TKSConditionalOrderType OrderType;
+ ///ע
+ TThostFtdcMemoType Memo;
+ ///Чʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ʧЧʱ
+ TThostFtdcTimeType InActiveTime;
+ ///
+ TKSConditionalTypeType ConditionalType;
+ ///
+ TThostFtdcPriceType ConditionalPrice;
+ };
+
+ ///¼ֹֹӯ
+ struct CKSProfitAndLossOrderInsert
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ֹ
+ TThostFtdcPriceType StopLossPrice;
+ ///ֹӯ
+ TThostFtdcPriceType TakeProfitPrice;
+ ///ƽַʽ
+ TKSCloseModeType CloseMode;
+ //ƽַӼλƽַʽ=12ʱЧ
+ TThostFtdcPriceType FiguresPrice;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ӯ۵ķʽ
+ TKSOffsetValueType OffsetValue;
+ ///۸
+ TKSSpringTypeType SpringType;
+ ///ֹ
+ TThostFtdcPriceType FloatLimitPrice;
+ ///ֹ
+ TThostFtdcVolumeType TriggeredTimes;
+ ///Ҵ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ֹֹӯ־
+ TKSProfitAndLossFlagType ProfitAndLossFlag;
+ };
+
+ ///ɾֹֹӯ
+ struct CKSProfitAndLossOrderRemove
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֹֹӯ
+ TKSProfitAndLossOrderIDType ProfitAndLossOrderID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ };
+
+ ///ѯֹֹӯ
+ struct CKSProfitAndLossOrderQuery
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֹֹӯ
+ TKSProfitAndLossOrderIDType ProfitAndLossOrderID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ };
+
+ ///ֹֹӯ
+ struct CKSProfitAndLossOrderModify
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֹֹӯ
+ TKSProfitAndLossOrderIDType ProfitAndLossOrderID;
+ ///ֹ
+ TThostFtdcPriceType StopLossPrice;
+ ///ֹӯ
+ TThostFtdcPriceType TakeProfitPrice;
+ ///ƽַʽ
+ TKSCloseModeType CloseMode;
+ //ƽַλƽַʽ=12ʱЧ
+ TThostFtdcPriceType FiguresPrice;
+ ///ӯ۵ķʽ
+ TKSOffsetValueType OffsetValue;
+ ///۸
+ TKSSpringTypeType SpringType;
+ ///ֹ
+ TThostFtdcPriceType FloatLimitPrice;
+ ///
+ TThostFtdcVolumeType TriggeredTimes;
+ ///ֹֹӯ־
+ TKSProfitAndLossFlagType ProfitAndLossFlag;
+ };
+
+ ///ֹֹӯɾ
+ struct CKSProfitAndLossOrderRemoveField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֹֹӯ
+ TKSProfitAndLossOrderIDType ProfitAndLossOrderID;
+ };
+
+ ///ֹֹӯ
+ struct CKSProfitAndLossOrderOperResultField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ֹֹӯ
+ TKSProfitAndLossOrderIDType ProfitAndLossOrderID;
+ ///Ա
+ TThostFtdcUserIDType UserID;
+ ///Ͷ
+ TThostFtdcPartyNameType InvestorName;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ֹ
+ TThostFtdcPriceType StopLossPrice;
+ ///ֹӯ
+ TThostFtdcPriceType TakeProfitPrice;
+ ///ƽַʽ
+ TKSCloseModeType CloseMode;
+ ///ƽַӼλƽַʽ=12ʱЧ
+ TThostFtdcPriceType Figures;
+ ///鴥ʱ¼
+ TThostFtdcPriceType LastPrice;
+ ///ֹֹӯʱ
+ TThostFtdcTimeType ProfitAndLossOrderFormTime;
+ ///ʱ
+ TThostFtdcTimeType ConditionalOrderFormTime;
+ ///ίеʱ
+ TThostFtdcTimeType OrderFormTime;
+ ///ֹֹӯ״̬
+ TKSConditionalOrderStatusType ProfitAndLossOrderStatus;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ƽ־
+ TThostFtdcOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType CombHedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///ӯ۵ķʽ
+ TKSOffsetValueType OffsetValue;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///۸
+ TKSSpringTypeType SpringType;
+ ///ֹ
+ TThostFtdcPriceType FloatLimitPrice;
+ ///ֳɽ۸
+ TThostFtdcPriceType OpenTradePrice;
+ ///ֹֹӯ־
+ TKSProfitAndLossFlagType ProfitAndLossFlag;
+ };
+
+ // ѡϢ
+ struct CKSCOSAskSelectField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ա
+ TThostFtdcUserIDType UserID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///ע
+ TThostFtdcMemoType Memo;
+ ///ѡʽ
+ TKSConditionalOrderSelectTypeType SelectType;
+ };
+
+ // ״̬Ϣ
+ struct CKSCOSStatusField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ա
+ TThostFtdcUserIDType UserID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TKSConditionalOrderIDType ConditionalOrderID;
+ ///״̬
+ TKSConditionalOrderStatusType ConditionalOrderStatus;
+ ///ע
+ TThostFtdcMemoType Memo;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///ƽ־
+ TThostFtdcOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType CombHedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///
+ TThostFtdcTradeDateType TradingDay;
+ ///û
+ TThostFtdcUserIDType CancelUserID;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TThostFtdcVolumeType VolumeTotal;
+ ///ίʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ɽ۸
+ TThostFtdcPriceType TradePrice;
+ ///Ҵ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ // ֹֹӯ״̬Ϣ
+ struct CKSPLStatusField
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ա
+ TThostFtdcUserIDType UserID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ֹֹӯ
+ TKSProfitAndLossOrderIDType ProfitAndLossOrderID;
+ ///ֹ
+ TKSConditionalOrderIDType StopLossOrderID;
+ ///ֹӯ
+ TKSConditionalOrderIDType TakeProfitOrderID;
+ ///ӯ״̬
+ TKSConditionalOrderStatusType ProfitAndLossOrderStatus;
+ ///ֹ
+ TThostFtdcPriceType StopLossPrice;
+ ///ֹӯ
+ TThostFtdcPriceType TakeProfitPrice;
+ ///ӯ۵ķʽ
+ TKSOffsetValueType OffsetValue;
+ ///ֳɽ۸
+ TThostFtdcPriceType OpenTradePrice;
+ ///ע
+ TThostFtdcMemoType Memo;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///ƽ־
+ TThostFtdcOffsetFlagType CombOffsetFlag;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType CombHedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///۸
+ TThostFtdcPriceType LimitPrice;
+ ///
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///
+ TThostFtdcTradeDateType TradingDay;
+ ///û
+ TThostFtdcUserIDType CancelUserID;
+ ///ʱ
+ TThostFtdcTimeType CancelTime;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ʣ
+ TThostFtdcVolumeType VolumeTotal;
+ ///ίʱ
+ TThostFtdcTimeType InsertTime;
+ ///ʱ
+ TThostFtdcTimeType ActiveTime;
+ ///ɽ۸
+ TThostFtdcPriceType TradePrice;
+ ///Ҵ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ѯָֻ
+ struct CKSQryIndexPriceField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///ѯָֻ
+ struct CKSIndexPriceField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ָֻ̼
+ TThostFtdcPriceType ClosePrice;
+ ///ȫϵ
+ TThostFtdcRatioType GuarantRatio;
+ };
+
+ ///ѯȨԼϵ
+ struct CKSQryOptionInstrGuardField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ };
+
+ ///ѯȨԼϵ
+ struct CKSOptionInstrGuardField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ͱϵ
+ TThostFtdcVolumeType MiniNumerator;
+ ///ͱϵĸ
+ TThostFtdcVolumeType MiniDenominator ;
+ ///ȨԼС֤
+ TThostFtdcMoneyType MiniMargin;
+ };
+
+ ///ѯ
+ struct CKSQryExecOrderVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///־
+ TThostFtdcDirectionType Direction;
+ };
+
+ ///ѯ
+ struct CKSExecOrderVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ִ
+ TThostFtdcVolumeType ExecVolume;
+ ///
+ TThostFtdcVolumeType ActionVolume;
+ ///ִ
+ TThostFtdcVolumeType ExecedVolume;
+ ///
+ TThostFtdcVolumeType ActionedVolume;
+ ///־
+ TThostFtdcDirectionType Direction;
+ };
+
+ ///ȨָϢ
+ struct CKSQryStockOptionAssignmentField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ };
+
+ ///ȨָϢ
+ struct CKSStockOptionAssignmentField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentNameType InstrumentName;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ճֲ
+ TThostFtdcVolumeType YdPosition;
+ ///ȨָɺԼ
+ TThostFtdcVolumeType AssInsVo;
+ ///Ȩ֤ȯ
+ TThostFtdcVolumeType AssProVol;
+ ///ȨָӦ
+ TThostFtdcMoneyType FeePay;
+ ///ȨC/P־
+ TThostFtdcOptionsTypeType OptionsType;
+ ///Ȩ
+ TThostFtdcDateType DeliveryDay;
+ ///ɺԼʶ
+ TThostFtdcInstrumentIDType StockID;
+ };
+
+ ///Key
+ struct CThostOrderKeyField
+ {
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcOrderSysIDType OrderSysID;
+ };
+
+ ///
+ struct CThostFtdcBulkCancelOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///
+ TThostFtdcOrderTypeType OrderType;
+ ///
+ TThostFtdcVolumeType nCount;
+ ///
+ CThostOrderKeyField OrderKey[MAX_ORDER_COUNT];
+ };
+
+ ///ƽֲ
+ struct CKSCloseStrategy
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ƽֲӦ
+ struct CKSCloseStrategyResultField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcExchangeNameType ExchangeName;
+ ///ƽֲ
+ TKSCloseStrategyType CloseStrategy;
+ };
+
+ ///ϲ
+ struct CKSCombStrategy
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///(1:ڻ;2:Ȩ;:ȫ)
+ TThostFtdcProductClassType ProductClass;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Դ(SP/SPD)
+ TKSStrategyIDType StrategyID;
+ ///
+ TKSCombTypeType CombType;
+ };
+
+ ///ϲӦ
+ struct CKSCombStrategyResultField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Դ
+ TKSStrategyIDType StrategyID;
+ ///
+ TKSCombTypeType CombType;
+ ///
+ TThostFtdcDirectionType CombDirection;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///һ
+ TThostFtdcDirectionType Direction1;
+ ///ƽ־һ
+ TThostFtdcOffsetFlagType OffsetFlag1;
+ ///һ
+ TThostFtdcVolRatioType VolRatio1;
+ ///һ
+ TKSCalcFlagType CalcFlag1;
+ ///֤һ
+ TThostFtdcMoneyRatioType MarginRatio1;
+ ///
+ TThostFtdcDirectionType Direction2;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag2;
+ ///
+ TThostFtdcVolRatioType VolRatio2;
+ ///Ŷ
+ TKSCalcFlagType CalcFlag2;
+ ///֤
+ TThostFtdcMoneyRatioType MarginRatio2;
+ ///
+ TThostFtdcDirectionType Direction3;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag3;
+ ///
+ TThostFtdcVolRatioType VolRatio3;
+ ///
+ TKSCalcFlagType CalcFlag3;
+ ///֤
+ TThostFtdcMoneyRatioType MarginRatio3;
+ ///
+ TThostFtdcDirectionType Direction4;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag4;
+ ///
+ TThostFtdcVolRatioType VolRatio4;
+ ///
+ TKSCalcFlagType CalcFlag4;
+ ///֤
+ TThostFtdcMoneyRatioType MarginRatio4;
+ ///ϺԼ
+ TThostFtdcInstrumentIDType CombInstrumentID;
+ };
+
+ ///Ȩϲ
+ struct CKSOptionCombStrategy
+ {
+ ///Ӫҵ
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Դ
+ TKSStrategyIDType StrategyID;
+ ///
+ TThostFtdcDirectionType CombDirection;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ };
+
+ ///ȨϲӦ
+ struct CKSOptionCombStrategyResultField
+ {
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Դ
+ TKSStrategyIDType StrategyID;
+ ///
+ TThostFtdcDirectionType CombDirection;
+ ///Ͽƽ־
+ TThostFtdcCombOffsetFlagType CombOffsetFlag;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///һ
+ TThostFtdcDirectionType Direction1;
+ ///Ȩһ
+ TThostFtdcOptionsTypeType OptionsType1;
+ ///ִмһ
+ TKSStrikePriceType StrikeType1;
+ ///ƽ־һ
+ TThostFtdcOffsetFlagType OffsetFlag1;
+ ///һ
+ TThostFtdcVolRatioType VolRatio1;
+ ///֤һ
+ TThostFtdcMoneyRatioType MarginRatio1;
+ ///һ
+ TKSCalcFlagType CalcFlag1;
+ ///
+ TThostFtdcDirectionType Direction2;
+ ///ȨͶ
+ TThostFtdcOptionsTypeType OptionsType2;
+ ///ִмͶ
+ TKSStrikePriceType StrikeType2;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag2;
+ ///
+ TThostFtdcVolRatioType VolRatio2;
+ ///֤
+ TThostFtdcMoneyRatioType MarginRatio2;
+ ///Ŷ
+ TKSCalcFlagType CalcFlag2;
+ ///
+ TThostFtdcDirectionType Direction3;
+ ///Ȩ
+ TThostFtdcOptionsTypeType OptionsType3;
+ ///ִм
+ TKSStrikePriceType StrikeType3;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag3;
+ ///
+ TThostFtdcVolRatioType VolRatio3;
+ ///֤
+ TThostFtdcMoneyRatioType MarginRatio3;
+ ///
+ TKSCalcFlagType CalcFlag3;
+ ///
+ TThostFtdcDirectionType Direction4;
+ ///Ȩ
+ TThostFtdcOptionsTypeType OptionsType4;
+ ///ִм
+ TKSStrikePriceType StrikeType4;
+ ///ƽ־
+ TThostFtdcOffsetFlagType OffsetFlag4;
+ ///
+ TThostFtdcVolRatioType VolRatio4;
+ ///֤
+ TThostFtdcMoneyRatioType MarginRatio4;
+ ///
+ TKSCalcFlagType CalcFlag4;
+ };
+
+ ///ѯͻתϢ
+ struct CKSTransferInfo
+ {
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ѯͻתϢӦ
+ struct CKSTransferInfoResultField
+ {
+ ///ʼʱ
+ TThostFtdcTimeType DepositBegin;
+ ///ʱ
+ TThostFtdcTimeType DepositEnd;
+ ///ʼʱ
+ TThostFtdcTimeType WithdrawBegin;
+ ///ʱ
+ TThostFtdcTimeType WithdrawEnd;
+ ///
+ TThostFtdcLargeVolumeType WithdrawVolume;
+ ///
+ TThostFtdcMoneyType WithdrawLimit;
+ ///
+ TThostFtdcMoneyType WithdrawLimitByTrade;
+ ///ʽ
+ TThostFtdcMoneyType Available;
+ ///ѳ
+ TThostFtdcLargeVolumeType WithdrawedVolume;
+ ///ѳ
+ TThostFtdcMoneyType WithdrawedAmount;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ };
+
+ ///ѯKingstar¼֪ͨ
+ struct CKSQryTradingNoticeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ϣ
+ TKSInfoTypeType InfoType;
+ ///ȷϱ־
+ TKSConfirmFlagType ConfirmFlag;
+ ///ʼʱ
+ TThostFtdcTimeType TimeStart;
+ ///ʱ
+ TThostFtdcTimeType TimeEnd;
+ };
+
+ ///û¼֪ͨ
+ struct CKSTradingNoticeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ϣ
+ TKSInfoTypeType InfoType;
+ ///ϢժҪ
+ TThostFtdcDigestType InfoDigest;
+ ///Ϣ
+ TThostFtdcContentType FieldContent;
+ ///
+ TThostFtdcTimeType SendDate;
+ ///ʱ
+ TThostFtdcTimeType SendTime;
+ ///к
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ȷϱ־
+ TKSConfirmFlagType ConfirmFlag;
+ };
+
+ ///û˲ƷԴѯ
+ struct CKSQryUserProductUrlField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ };
+
+ ///û˲ƷԴ
+ struct CKSUserProductUrlField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///û˲Ʒ°汾
+ TKSProductVersionType LastProductVersion;
+ ///û˲ƷͰ汾
+ TKSProductVersionType MinUseProductVersion;
+ ///û˲ƷͰ汾
+ TKSProductVersionType MinUpdateVersion;
+ ///û˲Ʒ°汾װС
+ TThostFtdcLargeVolumeType InstallPackSize;
+ ///û˲Ʒ°汾
+ TThostFtdcTradeDateType PublishDate;
+ ///û˲Ʒ°汾˵
+ TThostFtdcUserProductMemoType ProductMemo;
+ ///û˲ƷԴUrlַ
+ TThostFtdcFunctionUrlType Url;
+ };
+
+ ///ѯͻ
+ struct CKSQryInvestorTradeLevelField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ };
+
+ ///ͻ
+ struct CKSInvestorTradeLevelField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///
+ TKSTradeLevelType TradeLevel;
+ };
+
+ ///ѯ
+ struct CKSQryPurchaseLimitAmtField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///
+ struct CKSPurchaseLimitAmtField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///
+ TThostFtdcMoneyType PurLimitAmt;
+ };
+
+ ///ѯֶ
+ struct CKSQryPositionLimitVolField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ա־
+ TKSProtectFlagType ProtectFlag;
+ ///ȨC/P־
+ TThostFtdcOptionsTypeType OptionsType;
+ ///ƷΧ
+ TKSControlRangeType ControlRange;
+ };
+
+ ///ѯֶ
+ struct CKSPositionLimitVolField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ա־
+ TKSProtectFlagType ProtectFlag;
+ ///ȨC/P־
+ TThostFtdcOptionsTypeType OptionsType;
+ ///ƷΧ
+ TKSControlRangeType ControlRange;
+ ///ֶ
+ TThostFtdcVolumeType PosiLimitVol;
+ };
+
+ ///ѯʷ
+ struct CKSQryHistoryOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///Ʒִ
+ TThostFtdcInstrumentIDType ProductID;
+ ///ʼ
+ TThostFtdcDateType OrderDataStart;
+ ///
+ TThostFtdcDateType OrderDataEnd;
+ };
+
+ ///ѯʷɽ
+ struct CKSQryHistoryTradeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ʒִ
+ TThostFtdcInstrumentIDType ProductID;
+ ///ʼ
+ TThostFtdcDateType TradeDataStart;
+ ///
+ TThostFtdcDateType TradeDataEnd;
+ };
+
+ ///ʷ
+ struct CKSHistoryOrderField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///걨ʱ
+ TThostFtdcTimeType InsertTime;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///ɽ۸
+ TThostFtdcPriceType TradePrice;
+ ///ɽ
+ TThostFtdcMoneyType TradeAmount;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ⶳ
+ TThostFtdcMoneyType FrozenAmount;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///
+ TThostFtdcDirectionType Direction;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///
+ TThostFtdcRequestIDType RequestID;
+ ///
+ TThostFtdcOrderRefType OrderRef;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///ίм۸
+ TThostFtdcPriceType OrderPrice;
+ ///ίԴ
+ TThostFtdcOrderSourceType OrderSource;
+ ///ί
+ TThostFtdcDateType InsertDate;
+ ///ίʱ
+ TThostFtdcTimeType OrderTime;
+ ///ί
+ TThostFtdcVolumeType VolumeTotalOriginal;
+ ///ί״̬
+ TThostFtdcOrderStatusType OrderStatus;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TThostFtdcProductNameType ProductName;
+ ///Ʒ
+ TThostFtdcProductClassType ProductClass;
+ ///Ͷƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///ҵ
+ TThostFtdcFunctionNameType FunctionName;
+ };
+
+ ///ʷɽ
+ struct CKSHistoryTradeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ͻ
+ TThostFtdcIndividualNameType CustomerName;
+ ///ر
+ TThostFtdcOrderLocalIDType OrderLocalID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Ʒ
+ TThostFtdcProductNameType ProductName;
+ ///ɽ
+ TThostFtdcVolumeType VolumeTraded;
+ ///ɽ
+ TThostFtdcMoneyType TradeAmount;
+ ///ɽ
+ TThostFtdcDateType TradeDate;
+ ///ɽʱ
+ TThostFtdcTimeType TradeTime;
+ ///Ͷƽ־
+ TThostFtdcOffsetFlagType OffsetFlag;
+ ///ҵԪ
+ TThostFtdcBusinessUnitType BusinessUnit;
+ ///
+ TThostFtdcMoneyType Commission;
+ ///ע
+ TThostFtdcMemoType Memo;
+ ///ʱ
+ TThostFtdcTimeType TraderOfferTime;
+ ///ɽ۸
+ TThostFtdcPriceType TradePrice;
+ ///Ȩױ
+ TThostFtdcClientIDType ClientID;
+ ///Ȩ
+ TThostFtdcOptionsTypeType OptionsType;
+ ///ұ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///Ȩ
+ TThostFtdcVolumeType RoyaltyVolume;
+ ///
+ TThostFtdcVolumeType ObligationVolume;
+ ///Ȩֽ
+ TThostFtdcMoneyType RoyaltyAmount;
+ ///ֽ
+ TThostFtdcMoneyType ObligationAmount;
+ ///ɽ
+ TThostFtdcTradeIDType TradeID;
+ ///ҵ
+ TThostFtdcFunctionNameType FunctionName;
+ };
+
+ ///ϲֵѯ
+ struct CKSQryMaxCombActionVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcDirectionType Direction;
+ //ϲֱ
+ TThostFtdcCombDirectionType CombDirection;
+ };
+
+ ///ϲֵ
+ struct CKSMaxCombActionVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcVolumeType MaxCombVolume;
+ ///ɲ
+ TThostFtdcVolumeType MaxActionVolume;
+ };
+
+ ///ѯȨָϸ
+ struct CKSQryHistoryAssignmentField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///Ȩ
+ TThostFtdcOptionsTypeType OptionsType;
+ ///
+ TThostFtdcDateType DeliveryMonth;
+ ///ֲַ
+ TKSSOPosiDirectionType PosiDirection;
+ };
+
+ ///ѯȨϸ
+ struct CKSQrySODelivDetailField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///
+ TThostFtdcDateType DeliveryMonth;
+ ///ɽղѯ
+ TKSSODelivModeType DelivMode;
+ };
+
+ ///ԶȨִв
+ struct CKSAutoExecOrderActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ԶȨֵ(0-ԶȨ,0-ֵԶȨ(2020%))
+ TThostFtdcVolumeType RangeVol;
+ };
+
+ ///Ȩָϸ
+ struct CKSHistoryAssignmentField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcTradeDateType TradingDay;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///֤ȯ
+ TThostFtdcInstrumentIDType StockInstr;
+ ///Ͷ
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///Ȩ
+ TThostFtdcOptionsTypeType OptionsType;
+ ///ֲַ
+ TKSSOPosiDirectionType PosiDirection;
+ ///ִм
+ TThostFtdcPriceType StrikePrice;
+ ///Ȩָ
+ TThostFtdcVolumeType ExecVol;
+ ///֤ȯӦո
+ TThostFtdcVolumeType IOVol;
+ ///Ӧո
+ TThostFtdcMoneyType IOAmt;
+ ///Ȩ
+ TThostFtdcDateType DelivDate;
+ };
+
+ ///Ȩϸ
+ struct CKSSODelivDetailField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///֤ȯ
+ TThostFtdcInstrumentIDType StockInstr;
+ ///Ӧ/Ӧ/ȯ֤ȯ
+ TThostFtdcVolumeType IOVol;
+ ///ʵո
+ TThostFtdcVolumeType IOVolInFact;
+ ///
+ TThostFtdcPriceType SettlementPrice;
+ ///ȯֵ/
+ TThostFtdcMoneyType SettlementAmt;
+ ///Ȩ
+ TThostFtdcDateType DelivDate;
+ ///ҵ
+ TThostFtdcFunctionNameType FunctionName;
+ };
+
+ ///ҵ
+ struct CKSSubPrimeDataBusinessField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ };
+
+ ///ҵ
+ struct CKSPrimeDataBusinessField
+ {
+ ///洢
+ TThostFtdcProcessNameType ProcessName;
+ ///ܷʽ
+ TThostFtdcFBTEncryModeType EncryMode;
+ ///Կ
+ TThostFtdcPasswordKeyType PasswordKey;
+ ///ݹ鵵״̬
+ TThostFtdcSaveStatusType SaveStatus;
+ };
+
+ ///ָĺԼ
+ struct CKSSpecificInstrumentField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ѯԼ֤
+ struct CKSQryInstrumentMarginRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///Լ֤
+ struct CKSInstrumentMarginRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ͷ֤
+ TThostFtdcRatioType LongMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType LongMarginRatioByVolume;
+ ///ͷ֤
+ TThostFtdcRatioType ShortMarginRatioByMoney;
+ ///ͷ֤
+ TThostFtdcMoneyType ShortMarginRatioByVolume;
+ ///ǷԽȡ
+ TThostFtdcBoolType IsRelative;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ĸϲ
+ struct CKSInputCombActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Դ
+ TKSCombStrategyIDType StrategyID;
+ ///Լ1
+ TThostFtdcInstrumentIDType InstrumentID1;
+ ///Լ2
+ TThostFtdcInstrumentIDType InstrumentID2;
+ ///Լ3
+ TThostFtdcInstrumentIDType InstrumentID3;
+ ///Լ4
+ TThostFtdcInstrumentIDType InstrumentID4;
+ ///
+ TThostFtdcOrderRefType CombActionRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///1
+ TThostFtdcDirectionType Direction1;
+ ///2
+ TThostFtdcDirectionType Direction2;
+ ///3
+ TThostFtdcDirectionType Direction3;
+ ///4
+ TThostFtdcDirectionType Direction4;
+ ///ǿ
+ TKSCombActionType CombActionFlag;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ϲֱ
+ TThostFtdcCombDirectionType CombDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ϱ
+ TThostFtdcTradeIDType ComTradeID;
+ };
+
+ ///ϲ
+ struct CKSCombActionField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Դ
+ TKSCombStrategyIDType StrategyID;
+ ///Լ1
+ TThostFtdcInstrumentIDType InstrumentID1;
+ ///Լ2
+ TThostFtdcInstrumentIDType InstrumentID2;
+ ///Լ3
+ TThostFtdcInstrumentIDType InstrumentID3;
+ ///Լ4
+ TThostFtdcInstrumentIDType InstrumentID4;
+ ///
+ TThostFtdcOrderRefType CombActionRef;
+ ///û
+ TThostFtdcUserIDType UserID;
+ ///1
+ TThostFtdcDirectionType Direction1;
+ ///2
+ TThostFtdcDirectionType Direction2;
+ ///3
+ TThostFtdcDirectionType Direction3;
+ ///4
+ TThostFtdcDirectionType Direction4;
+ ///ǿ
+ TKSCombActionType CombActionFlag;
+ ///
+ TThostFtdcVolumeType Volume;
+ ///ϲֱ
+ TThostFtdcCombDirectionType CombDirection;
+ ///Ͷױ־
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ϱ
+ TThostFtdcOrderLocalIDType ActionLocalID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ա
+ TThostFtdcParticipantIDType ParticipantID;
+ ///ͻ
+ TThostFtdcClientIDType ClientID;
+ ///ԼڽĴ
+ TThostFtdcExchangeInstIDType ExchangeInstID;
+ ///Ա
+ TThostFtdcTraderIDType TraderID;
+ ///װ
+ TThostFtdcInstallIDType InstallID;
+ ///״̬
+ TThostFtdcOrderActionStatusType ActionStatus;
+ ///ʾ
+ TThostFtdcSequenceNoType NotifySequence;
+ ///
+ TThostFtdcDateType TradingDay;
+ ///
+ TThostFtdcSettlementIDType SettlementID;
+ ///
+ TThostFtdcSequenceNoType SequenceNo;
+ ///ǰñ
+ TThostFtdcFrontIDType FrontID;
+ ///Ự
+ TThostFtdcSessionIDType SessionID;
+ ///û˲ƷϢ
+ TThostFtdcProductInfoType UserProductInfo;
+ ///״̬Ϣ
+ TThostFtdcErrorMsgType StatusMsg;
+ ///ϱ
+ TThostFtdcTradeIDType ComTradeID;
+ ///Դ
+ TThostFtdcOrderSourceType OrderSource;
+ };
+
+ ///ѯϳֲϸ
+ struct CKSQryInvestorPositionCombineDetailField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Ʒ
+ TThostFtdcInstrumentIDType ProductID;
+ ///ϱ
+ TThostFtdcTradeIDType ComTradeID;
+ };
+
+ ///ϳֲϸ
+ struct CKSInvestorPositionCombineDetailField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///ױ
+ TThostFtdcClientIDType ClientID;
+ ///ϱ
+ TThostFtdcTradeIDType ComTradeID;
+ ///Դ
+ TKSCombStrategyIDType StrategyID;
+ ///Լ1
+ TThostFtdcInstrumentIDType InstrumentID1;
+ ///Լ2
+ TThostFtdcInstrumentIDType InstrumentID2;
+ ///Լ3
+ TThostFtdcInstrumentIDType InstrumentID3;
+ ///Լ4
+ TThostFtdcInstrumentIDType InstrumentID4;
+ ///ռñ֤
+ TThostFtdcMoneyType Margin;
+ ///Զ
+ TThostFtdcVolumeType CombActionVolume;
+ ///Ͷ
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ֲ
+ TThostFtdcVolumeType TotalAmt;
+ ///1
+ TThostFtdcDirectionType Direction1;
+ ///2
+ TThostFtdcDirectionType Direction2;
+ ///3
+ TThostFtdcDirectionType Direction3;
+ ///4
+ TThostFtdcDirectionType Direction4;
+ ///
+ TThostFtdcDirectionType CombDirection;
+ };
+
+ ///ɿϿɲѯ
+ struct CKSQryCombActionVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ ///Դ
+ TKSCombStrategyIDType StrategyID;
+ ///Լ1
+ TThostFtdcInstrumentIDType InstrumentID1;
+ ///Լ2
+ TThostFtdcInstrumentIDType InstrumentID2;
+ ///Լ3
+ TThostFtdcInstrumentIDType InstrumentID3;
+ ///Լ4
+ TThostFtdcInstrumentIDType InstrumentID4;
+ ///Ͷ
+ TThostFtdcHedgeFlagType HedgeFlag;
+ ///ϲֱ
+ TThostFtdcCombDirectionType CombDirection;
+ ///1
+ TThostFtdcDirectionType Direction1;
+ ///2
+ TThostFtdcDirectionType Direction2;
+ ///3
+ TThostFtdcDirectionType Direction3;
+ ///4
+ TThostFtdcDirectionType Direction4;
+ ///ǿ
+ TKSCombActionType CombActionFlag;
+ ///ϱ
+ TThostFtdcTradeIDType ComTradeID;
+ };
+
+ ///ɿϿɲ
+ struct CKSCombActionVolumeField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcVolumeType MaxCombVolume;
+ ///ɲ
+ TThostFtdcVolumeType MaxActionVolume;
+ };
+
+ ///ͻÿճ
+ struct CKSInputFundOutCreditApplyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ճ
+ TThostFtdcMoneyType FundOutCredit;
+ ///ճȲ
+ TKSFOCreditApplyType CreditApplyFlag;
+ ///ˮ
+ TThostFtdcTradeSerialNoType CreditSerial;
+ };
+
+ ///ͻÿճȲѯ
+ struct CKSQryFundOutCreditField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ };
+
+ ///ͻÿճȲѯ
+ struct CKSRspQryFundOutCreditField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ճ
+ TThostFtdcMoneyType FundOutCredit;
+ ///ѳ
+ TThostFtdcMoneyType FundOutedCredit;
+ ///
+ TThostFtdcDateType UpdateDate;
+ ///
+ TThostFtdcDateType SetDate;
+ ///ʱ
+ TThostFtdcTimeType SetTime;
+ };
+
+ ///ͻÿճѯ
+ struct CKSQryFundOutCreditApplyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ѯʼ
+ TThostFtdcDateType QryCreditStart;
+ ///ѯ
+ TThostFtdcDateType QryCreditEnd;
+ ///ճȴ״̬
+ TKSFOCreditStatusType DealStatus;
+ };
+
+ ///ͻÿճѯ
+ struct CKSRspQryFundOutCreditApplyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ˮ
+ TThostFtdcTradeSerialNoType CreditSerial;
+ ///
+ TThostFtdcMoneyType FundOutCredit;
+ ///ճȴ״̬
+ TKSFOCreditStatusType DealStatus;
+ ///
+ TThostFtdcDateType ApplyDate;
+ ///ʱ
+ TThostFtdcTimeType ApplyTime;
+ ///
+ TThostFtdcDateType ConfirmDate;
+ ///ʱ
+ TThostFtdcTimeType ConfirmTime;
+ };
+
+ ///ԤԼȡ
+ struct CKSLargeFundOutApplyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ԤԼ
+ TThostFtdcDateType ApplyDate;
+ ///
+ TKSFOCreditApplyType ApplyFlag;
+ ///ˮ
+ TThostFtdcTradeSerialNoType ApplySerial;
+ ///ԤԼ
+ TThostFtdcMoneyType FundOutCredit;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///д
+ TThostFtdcBankIDType BankID;
+ };
+
+ ///ԤԼѯ
+ struct CKSQryLargeFundOutApplyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ԤԼ
+ TThostFtdcDateType ApplyDate;
+ ///ԤԼ
+ TThostFtdcDateType FundOutDate;
+ ///״̬
+ TKSFOCreditStatusType ApplyFlag;
+ ///д
+ TThostFtdcBankIDType BankID;
+ };
+
+ ///ԤԼѯ
+ struct CKSRspLargeFundOutApplyField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///ˮ
+ TThostFtdcTradeSerialNoType ApplySerial;
+ ///״̬
+ TKSFOCreditStatusType ApplyFlag;
+ ///д
+ TThostFtdcBankIDType BankID;
+ ///ִ
+ TThostFtdcCurrencyIDType CurrencyID;
+ ///ԤԼ
+ TThostFtdcMoneyType FundOutCredit;
+ ///ԤԼ
+ TThostFtdcDateType ApplyDate;
+ ///ԤԼ
+ TThostFtdcDateType FundOutDate;
+ ///
+ TThostFtdcDateType SetDate;
+ ///ʱ
+ TThostFtdcTimeType SetTime;
+ };
+
+ ///Ȩʲѯ
+ struct CKSQryOptionInstrCommRateField
+ {
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+
+ ///ǰȨԼѵϸ
+ struct CKSOptionInstrCommRateField
+ {
+ ///Լ
+ TThostFtdcInstrumentIDType InstrumentID;
+ ///Ͷ߷Χ
+ TThostFtdcInvestorRangeType InvestorRange;
+ ///˾
+ TThostFtdcBrokerIDType BrokerID;
+ ///Ͷߴ
+ TThostFtdcInvestorIDType InvestorID;
+ ///
+ TThostFtdcRatioType BuyOpenRatioByMoney;
+ ///
+ TThostFtdcRatioType BuyOpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType BuyCloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType BuyCloseRatioByVolume;
+ ///Ȩ
+ TThostFtdcRatioType StrikeRatioByMoney;
+ ///Ȩ
+ TThostFtdcRatioType StrikeRatioByVolume;
+ ///
+ TThostFtdcRatioType SellOpenRatioByMoney;
+ ///
+ TThostFtdcRatioType SellOpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType SellCloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType SellCloseRatioByVolume;
+ ///ҿ
+ TThostFtdcRatioType CoveredOpenRatioByMoney;
+ ///ҿ
+ TThostFtdcRatioType CoveredOpenRatioByVolume;
+ ///ƽ
+ TThostFtdcRatioType CoveredCloseRatioByMoney;
+ ///ƽ
+ TThostFtdcRatioType CoveredCloseRatioByVolume;
+ ///
+ TThostFtdcExchangeIDType ExchangeID;
+ };
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/IncEx/KSVocMdApi.h b/include/Kingstar/IncEx/KSVocMdApi.h
new file mode 100644
index 0000000..510c564
--- /dev/null
+++ b/include/Kingstar/IncEx/KSVocMdApi.h
@@ -0,0 +1,67 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSVocMDApi.h
+///@brief ˿ͻ˿ͻӿ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSVOCMDAPI_H_INCLUDED_
+#define __KSVOCMDAPI_H_INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "KSUserApiStructEx.h"
+#include "KSVocApiStruct.h"
+
+#if defined(ISLIB) && defined(WIN32) && !defined(KSMDAPI_STATIC_LIB)
+#ifdef LIB_MD_API_EXPORT
+#define TRADER_VOCMDAPI_EXPORT __declspec(dllexport)
+#else
+#define TRADER_VOCMDAPI_EXPORT __declspec(dllimport)
+#endif
+#else
+#ifdef WIN32
+#define TRADER_VOCMDAPI_EXPORT
+#else
+#define TRADER_VOCMDAPI_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif
+
+namespace KingstarAPI
+{
+
+ class CKSVocMdSpi
+ {
+ public:
+ ///Ӧ
+ virtual void OnRspSubKSMarketData(CKSSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ ///ȡӦ
+ virtual void OnRspUnSubKSMarketData(CKSSpecificInstrumentField *pSpecificInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
+
+ };
+
+ class TRADER_VOCMDAPI_EXPORT CKSVocMdApi
+ {
+ public:
+ ///顣
+ ///@param ppInstrumentID Լ
+ ///@param nCount Ҫ/˶ĺԼ
+ ///@remark
+ virtual int SubscribeKSMarketData(CKSSpecificInstrumentField *ppInstrumentID[], int nCount) = 0;
+
+ ///˶顣
+ ///@param ppInstrumentID Լ
+ ///@param nCount Ҫ/˶ĺԼ
+ ///@remark
+ virtual int UnSubscribeKSMarketData(CKSSpecificInstrumentField *ppInstrumentID[], int nCount) = 0;
+
+ protected:
+ ~CKSVocMdApi(){};
+ };
+
+} // end of namespace KingstarAPI
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/inc/KSMarketDataAPI.h b/include/Kingstar/inc/KSMarketDataAPI.h
new file mode 100644
index 0000000..58297d8
--- /dev/null
+++ b/include/Kingstar/inc/KSMarketDataAPI.h
@@ -0,0 +1,34 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSMarketDataAPI.h
+///@brief ˿ͻ˽ӿʹõҵͨѶӿ
+///@history
+///20140801 Kingstar IRDG ļ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSFMDUSER_API_H__
+#define __KSFMDUSER_API_H__
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#ifdef WIN32
+#ifdef KSFMDUSERAPI_EXPORTS
+#define KSFMDUSERAPI __declspec(dllexport)
+#else
+#define KSFMDUSERAPI __declspec(dllimport)
+#endif
+#else
+#ifdef KSFMDUSERAPI_EXPORTS
+#define KSFMDUSERAPI __attribute__ ((visibility ("default")))
+#else
+#define KSFMDUSERAPI
+#endif
+#endif
+
+#include "../IncEx/KSMdApiEx.h"
+#include "../IncEx/KSVocMdApi.h"
+
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/inc/KSTradeAPI.h b/include/Kingstar/inc/KSTradeAPI.h
new file mode 100644
index 0000000..4b14c60
--- /dev/null
+++ b/include/Kingstar/inc/KSTradeAPI.h
@@ -0,0 +1,36 @@
+/////////////////////////////////////////////////////////////////////////
+///@system һϵͳ
+///@company SunGard China
+///@file KSTradeAPI.h
+///@brief ˿ͻ˽ӿʹõҵͨѶӿ
+///@history
+///20140801 Kingstar IRDG ļ
+/////////////////////////////////////////////////////////////////////////
+
+#ifndef __KSFTRADER_API_H__
+#define __KSFTRADER_API_H__
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#ifdef WIN32
+#ifdef KSFTRADERAPI_EXPORTS
+#define KSFTRADERAPI __declspec(dllexport)
+#else
+#define KSFTRADERAPI __declspec(dllimport)
+#endif
+#else
+#ifdef KSFTRADERAPI_EXPORTS
+#define KSFTRADERAPI __attribute__ ((visibility ("default")))
+#else
+#define KSFTRADERAPI
+#endif
+#endif
+
+#include "../IncEx/KSTraderApiEx.h"
+#include "../IncEx/KSCosApi.h"
+#include "../IncEx/KSOptionApi.h"
+#include "../IncEx/KSVocApi.h"
+
+#endif
\ No newline at end of file
diff --git a/include/Kingstar/version.txt b/include/Kingstar/version.txt
new file mode 100644
index 0000000..e2abbe4
--- /dev/null
+++ b/include/Kingstar/version.txt
@@ -0,0 +1 @@
+20150813
\ No newline at end of file
diff --git a/include/Kingstar/win32/KSInterB2C.lkc b/include/Kingstar/win32/KSInterB2C.lkc
new file mode 100644
index 0000000..bd9f49d
Binary files /dev/null and b/include/Kingstar/win32/KSInterB2C.lkc differ
diff --git a/include/Kingstar/win32/KSMarketDataAPI.dll b/include/Kingstar/win32/KSMarketDataAPI.dll
new file mode 100644
index 0000000..df9eab9
Binary files /dev/null and b/include/Kingstar/win32/KSMarketDataAPI.dll differ
diff --git a/include/Kingstar/win32/KSMarketDataAPI.lib b/include/Kingstar/win32/KSMarketDataAPI.lib
new file mode 100644
index 0000000..46006df
Binary files /dev/null and b/include/Kingstar/win32/KSMarketDataAPI.lib differ
diff --git a/include/Kingstar/win32/KSTradeAPI.dll b/include/Kingstar/win32/KSTradeAPI.dll
new file mode 100644
index 0000000..12a1fc6
Binary files /dev/null and b/include/Kingstar/win32/KSTradeAPI.dll differ
diff --git a/include/Kingstar/win32/KSTradeAPI.lib b/include/Kingstar/win32/KSTradeAPI.lib
new file mode 100644
index 0000000..86508ee
Binary files /dev/null and b/include/Kingstar/win32/KSTradeAPI.lib differ
diff --git a/include/Kingstar/win32/SSPXEncode.dll b/include/Kingstar/win32/SSPXEncode.dll
new file mode 100644
index 0000000..1e2cb6a
Binary files /dev/null and b/include/Kingstar/win32/SSPXEncode.dll differ
diff --git a/include/Kingstar/win32/ksPortalAPI.dll b/include/Kingstar/win32/ksPortalAPI.dll
new file mode 100644
index 0000000..0fec8a7
Binary files /dev/null and b/include/Kingstar/win32/ksPortalAPI.dll differ
diff --git a/include/Kingstar/win32/lkcdll.dll b/include/Kingstar/win32/lkcdll.dll
new file mode 100644
index 0000000..d860ef3
Binary files /dev/null and b/include/Kingstar/win32/lkcdll.dll differ
diff --git a/include/QueueEnum.h b/include/QueueEnum.h
index e5d3cda..a98cec6 100644
--- a/include/QueueEnum.h
+++ b/include/QueueEnum.h
@@ -1,86 +1,86 @@
-#ifndef _QUEUE_ENUM_H_
+#ifndef _QUEUE_ENUM_H_
#define _QUEUE_ENUM_H_
-///
+/// 基本请求
enum RequestType :char
{
- GetApiType = 0,
- GetApiVersion,
- GetApiName,
+ RequestType_GetApiTypes = 0,
+ RequestType_GetApiVersion,
+ RequestType_GetApiName,
- Create, //
- Release, //
- Register, // עնлص
- Config, // ò
+ RequestType_Create, // 创建
+ RequestType_Release, // 销毁
+ RequestType_Register, // 注册接收队列回调
+ RequestType_Config, // 配置参数
- Connect, // ʼ/
- Disconnect, // ֹͣ/Ͽ
+ RequestType_Connect, // 开始/连接
+ RequestType_Disconnect, // 停止/断开
- Clear, //
- Process, //
+ RequestType_Clear, // 清理
+ RequestType_Process, // 处理
- Subscribe, //
- Unsubscribe, // ȡ
+ RequestType_Subscribe, // 订阅
+ RequestType_Unsubscribe, // 取消订阅
- SubscribeQuote, // ѯ
- UnsubscribeQuote, // ȡѯ
+ RequestType_SubscribeQuote, // 订阅询价
+ RequestType_UnsubscribeQuote, // 取消订阅询价
- ReqOrderInsert,
- ReqQuoteInsert,
- ReqOrderAction,
- ReqQuoteAction,
+ RequestType_ReqOrderInsert,
+ RequestType_ReqQuoteInsert,
+ RequestType_ReqOrderAction,
+ RequestType_ReqQuoteAction,
};
-///ѯ
+///查询
enum QueryType :char
{
- ReqQryInstrument = 32,
- ReqQryTradingAccount,
- ReqQryInvestorPosition,
+ QueryType_ReqQryInstrument = 32,
+ QueryType_ReqQryTradingAccount,
+ QueryType_ReqQryInvestorPosition,
- ReqQryOrder,
- ReqQryTrade,
- ReqQryQuote,
+ QueryType_ReqQryOrder,
+ QueryType_ReqQryTrade,
+ QueryType_ReqQryQuote,
- ReqQryInstrumentCommissionRate,
- ReqQryInstrumentMarginRate,
- ReqQrySettlementInfo,
- ReqQryInvestor,
+ QueryType_ReqQryInstrumentCommissionRate,
+ QueryType_ReqQryInstrumentMarginRate,
+ QueryType_ReqQrySettlementInfo,
+ QueryType_ReqQryInvestor,
- ReqQryHistoricalTicks,
- ReqQryHistoricalBars,
+ QueryType_ReqQryHistoricalTicks,
+ QueryType_ReqQryHistoricalBars,
};
-///Ӧ
+///响应
enum ResponeType :char
{
- OnConnectionStatus = 64,
- OnRtnError,
- OnLog,
+ ResponeType_OnConnectionStatus = 64,
+ ResponeType_OnRtnError,
+ ResponeType_OnLog,
- OnRtnDepthMarketData,
- OnRspQryInstrument,
- OnRspQryTradingAccount,
- OnRspQryInvestorPosition,
- OnRspQrySettlementInfo,
+ ResponeType_OnRtnDepthMarketData,
+ ResponeType_OnRspQryInstrument,
+ ResponeType_OnRspQryTradingAccount,
+ ResponeType_OnRspQryInvestorPosition,
+ ResponeType_OnRspQrySettlementInfo,
- OnRspQryOrder,
- OnRspQryTrade,
- OnRspQryQuote,
+ ResponeType_OnRspQryOrder,
+ ResponeType_OnRspQryTrade,
+ ResponeType_OnRspQryQuote,
- OnRtnOrder,
- OnRtnTrade,
- OnRtnQuote,
+ ResponeType_OnRtnOrder,
+ ResponeType_OnRtnTrade,
+ ResponeType_OnRtnQuote,
- OnRtnQuoteRequest,
+ ResponeType_OnRtnQuoteRequest,
- OnRspQryHistoricalTicks,
- OnRspQryHistoricalBars,
- OnRspQryInvestor,
+ ResponeType_OnRspQryHistoricalTicks,
+ ResponeType_OnRspQryHistoricalBars,
+ ResponeType_OnRspQryInvestor,
- OnFilterSubscribe,
+ ResponeType_OnFilterSubscribe,
};
-// >=100ʾAPIԶ
+// >=100表示API自定义
#endif
diff --git a/include/QueueHeader.h b/include/QueueHeader.h
index 0730eb8..a093fd4 100644
--- a/include/QueueHeader.h
+++ b/include/QueueHeader.h
@@ -1,7 +1,7 @@
#ifndef _QUEUE_HEADER_H_
#define _QUEUE_HEADER_H_
-#include "../include/CrossPlatform.h"
+//#include "CrossPlatform.h"
#ifdef __cplusplus
extern "C" {
diff --git a/include/Tdx/TdxApi.h b/include/Tdx/TdxApi.h
index b12d158..ba721ac 100644
--- a/include/Tdx/TdxApi.h
+++ b/include/Tdx/TdxApi.h
@@ -17,49 +17,50 @@
#include "tdx_request.h"
#include "tdx_field.h"
+
+class CTdxApi;
+
+class CTdxSpi
+{
+public:
+ virtual void OnRespone(CTdxApi* pApi, RequestRespone_STRUCT* pRespone){};
+};
+
+//////////////////////////////////////////////////////////////////////////
+//支持同券商多账号登录、下单、撤单
class TDXAPI_API CTdxApi
{
public:
// 创建API
- // TdxPath*:通达信安装目录,需以"\\"结束。
- static CTdxApi* CreateApi(const char* TdxPath);
+ static CTdxApi* CreateApi();
virtual void Release() = 0;
public:
- virtual void LoadScript(const char* LuaFileOrString, bool bFileOrString, bool bEncrypted) = 0;
+ virtual void RegisterSpi(CTdxSpi *pSpi) = 0;
+ virtual void LoadScript(const char* LuaFileOrString, bool bFileOrString, bool bEncrypted) = 0;
+ // TdxPath*:通达信安装目录,需以"\\"结束。
virtual void Init(const char* TdxPath, Error_STRUCT** ppErr) = 0;
virtual void Exit() = 0;
- virtual void* Login(const char* szAccount, const char* szPassword, const char* szCode, char*** pppResults, Error_STRUCT** ppErr) = 0;
+ virtual void* Login(const char* szAccount, const char* szPassword, const char* szCode, Error_STRUCT** ppErr) = 0;
virtual void Logout(void* client) = 0;
public:
// 弹出通达信内部的版本对话框
virtual void Version() = 0;
- // 下单时必须指定股东代码,所以需要先查询股东列表才能实现下单。下单时会进行授权查询,失败时不会发单出去
- virtual int SendMultiOrders(Order_STRUCT* pOrders, int count, FieldInfo_STRUCT*** pppFieldInfos, char*** pppResults, Error_STRUCT*** pppErrs) = 0;
- virtual int SendMultiOrders(Order_STRUCT** ppOrders, int count, FieldInfo_STRUCT*** pppFieldInfos, char*** pppResults, Error_STRUCT*** pppErrs) = 0;
-
- virtual int CancelMultiOrders(Order_STRUCT* pOrders, int count, FieldInfo_STRUCT*** pppFieldInfos, char*** pppResults, Error_STRUCT*** pppErrs) = 0;
- virtual int CancelMultiOrders(Order_STRUCT** ppOrders, int count, FieldInfo_STRUCT*** pppFieldInfos, char*** pppResults, Error_STRUCT*** pppErrs) = 0;
- // 发送查询请求
- // 有些请求是当日数据,后面的起始和结束日期自动忽略
- // 对于历史数据,需要查询的区别,格式“yyyyMMdd”,客户端上有60天或90天的时间限制,这里没有,但如果数据太多,间隔设成一周或一月
- // 订阅行情时只需要最后的股票代码
- virtual void* ReqQueryData(int requestType, FieldInfo_STRUCT*** pppFieldInfos, char*** pppResults, Error_STRUCT** ppErr, char * szKSRQ = "", char* szZZRQ = "", char* szZQDM = "") = 0;
+ virtual int GetTableHeader(void* client, int request, FieldInfo_STRUCT*** pppResults) = 0;
-public:
- // 设置会话
- virtual void SetClient(void* client) = 0;
+ virtual int SendRequest(IN RequestRespone_STRUCT* pRequest) = 0;
- virtual void* GetClient() = 0;
- // 设置资金账号
- virtual void SetAccount(const char* szAccount) = 0;
- // 得到资金账号
- virtual const char* GetAccount() = 0;
+ virtual RequestRespone_STRUCT* MakeQueryData(ReqQueryData_STRUCT* query) = 0;
+ virtual RequestRespone_STRUCT* MakeOrder(Order_STRUCT* pOrder) = 0;
+ // 撤单
+ virtual RequestRespone_STRUCT* MakeCancelOrder(CancelOrder_STRUCT* pCancelOrder) = 0;
+ virtual RequestRespone_STRUCT* MakeCancelOrder(WTLB_STRUCT* pOrder) = 0;
+
protected:
CTdxApi();
~CTdxApi(){};
diff --git a/include/Tdx/tdx_enum.h b/include/Tdx/tdx_enum.h
index 67fa276..c6b4021 100644
--- a/include/Tdx/tdx_enum.h
+++ b/include/Tdx/tdx_enum.h
@@ -3,44 +3,68 @@
#ifndef _TDX_ENUM_H_
#define _TDX_ENUM_H_
-#define COL_EACH_ROW (64) //每行多少例,相当重要
+#include "tdx_request.h"
// 125_帐号类别
+// 37 期权
+// 40 沪港通
// 130_买卖标志
// 下单时使用买卖标志来指定报单类型
// 查询时,单子只简单的表示了买卖方向,是否要启用委托类别?
-#define MMBZ_Buy_Limit 0 // 限价买
-#define MMBZ_Sell_Limit 1 // 限价卖
+#define MMBZ_Buy_Limit 0 // 限价买, 204下:可转债转股
+#define MMBZ_Sell_Limit 1 // 限价卖, 204下:债券回售
#define MMBZ_Cancel 2 // 撤买/撤卖
-#define MMBZ_3 3 // 融券
+#define MMBZ_Buy_Cancel 3 // 撤买,没有测的
+#define MMBZ_Sell_Cancel 4 // 撤卖,信达证券结果
+#define MMBZ_Merge 12 // 基金合并
+#define MMBZ_Split 13 // 基金分拆
+#define MMBZ_Buy_DBP 15 // 担保品买入
+#define MMBZ_Sell_DBP 16 // 担保品卖出
+#define MMBZ_Sell_RQ_ZRT 24 // 转融通融券卖出
+#define MMBZ_Buy_HQ_ZRT 34 // 转融通买券还券
+#define MMBZ_XQ_HQ_ZRT 36 // 转融通现券还券
#define MMBZ_Buy_Market 67 // 市价买
#define MMBZ_Sell_Market 68 // 市价卖
+#define MMBZ_Buy_RZ 69 // 融资买入
+#define MMBZ_Sell_RQ 70 // 融券卖出
+#define MMBZ_Buy_HQ 71 // 买券还券
+#define MMBZ_XQ_HQ 73 // 现券还券
+#define MMBZ_DBP_HZ 74 // 担保品划转
+#define MMBZ_XJ_HK 75 // 现金还款
+#define MMBZ_Sell_HK 76 // 卖券还款
#define MMBZ_Creation 79 // 基金申购
#define MMBZ_Redemption 80 // 基金赎回
-#define MMBZ_Merge 12 // 基金合并
-#define MMBZ_Split 13 // 基金分拆
+#define MMBZ_86 86 // 权证行权
+
+// 131_委托类别,这是自己定定义的,用来将字符串转成数字
+#define WTLB_Buy REQUEST_WT*100+ MMBZ_Buy_Limit // 买入
+#define WTLB_Sell REQUEST_WT*100+ MMBZ_Sell_Limit // 卖出
+#define WTLB_Buy_Cancel REQUEST_WT*100+ 2 // 撤买
+#define WTLB_Sell_Cancel REQUEST_WT*100+ 3 // 撤卖
+#define WTLB_LOFCreation REQUEST_WT*100+ 79 // 基金申购
+#define WTLB_LOFRedemption REQUEST_WT*100+ 80 // 基金赎回
+#define WTLB_ETFCreation REQUEST_ETF_SGSH*100+ MMBZ_Creation // ETF申购
+#define WTLB_ETFRedemption REQUEST_ETF_SGSH*100+ MMBZ_Redemption // ETF赎回
+#define WTLB_Merge REQUEST_WT*100+ MMBZ_Merge // 合并
+#define WTLB_Split REQUEST_WT*100+ MMBZ_Split // 分拆
+
+#define MMBZ_CB_Conv 0 // 204下:可转债转股
+#define MMBZ_CB_Red 1 // 204下:债券回售
+
+// 603_交易类型
+#define JYLX_Creation 0 // ETF申购
+#define JYLX_Redemption 1 // ETF赎回
+
// 5565_委托类别
#define WTLB_MM 0; // 买卖
#define WTLB_CD 1; // 撤单
-// 131_委托类别
-// 3|投票
-// 3|融券
-// 0|买入
-// 1|卖出
// 166_委托方式
// 上海只有046,深圳只有012345,所以市价只发4最简单
-// 0 限1,买卖
-// 1 对
-// 2 本
-// 3 剩 撤
-// 4 五 撤
-// 5 全 撤
-// 6 转
#define WTFS_Limit 0 // 限价,限价委托,买卖
#define WTFS_Best_Reverse 1 // 对手方最优价格委托,对方最优价格,对手方最优价格委托,
#define WTFS_Best_Forward 2 // 本方最优价格委托,本方最优价格,本方最优价格委托,
@@ -49,7 +73,18 @@
#define WTFS_FOK 5 // 全额成交或撤销委托,全额成交或撤销,全额成交或撤销委托,
#define WTFS_Five_Limit 6 // 五档即时成交剩余转限,五档即成转限价,最优五档即时成交剩余转限价委托,
+#define WTFS_HRXYZH 0 // 划入信用账户
+#define WTFS_HCXYZH 1 // 划出信用账户
+
+#define WTFS_ZQXJP 2 // 增强限价盘
+#define WTFS_JJXJP 3 // 竞价限价盘
+// 113_操作标志
+#define CZBZ_Open 1 // 开仓
+#define CZBZ_Close 2 // 平仓
+#define CZBZ_3 3 // ?
+#define CZBZ_Lock 4 // 锁定
+#define CZBZ_Unlock 5 // 解锁
// 281_融资融券标识
#define RZRQBS_NO 0 // 非融资融券
@@ -63,9 +98,10 @@
#define ZTSM_4 4 //
#define ZTSM_PartiallyFilled 5 // 5-部分成交
#define ZTSM_AllFilled 6 // 6-全部成交,已成,全部成交
-#define ZTSM_PartiallyCancelled 7 // 部撤,这是猜的,需要以后修正
+#define ZTSM_PartiallyCancelled 7 // 7-部成部撤,部撤
#define ZTSM_AllCancelled 8 // 8-全部撤单,已撤,全部撤单
#define ZTSM_CancelRejected 9 // 9-撤单未成 只会出现撤单记录中
+#define ZTSM_WaitingForReport 10 // 10-等待人工申报
// 已成,部成,废单,已撤,部撤
diff --git a/include/Tdx/tdx_field.h b/include/Tdx/tdx_field.h
index 9a4bcf5..29aa536 100644
--- a/include/Tdx/tdx_field.h
+++ b/include/Tdx/tdx_field.h
@@ -39,10 +39,13 @@ ID一样,中文名可能不一样
#define FIELD_CJSJ 151 // 151_成交时间
#define FIELD_CJSL 152 // 152_成交数量
#define FIELD_CJJG 153 // 153_成交价格
+#define FIELD_CJJE 154 // 154_成交金额
#define FIELD_CJBH 155 // 155_成交编号
#define FIELD_DJSL 160 // 160_冻结数量
#define FIELD_DJZJ 161 // 161_冻结资金
#define FIELD_CDSL 162 // 162_撤单数量
+#define FIELD_164 164 // 164_
+#define FIELD_165 165 // 165_
#define FIELD_WTFS 166 // 166_委托方式
#define FIELD_CDBZ 167 // 167_撤单标志
#define FIELD_168 168 // ?
@@ -65,6 +68,8 @@ ID一样,中文名可能不一样
#define FIELD_SXYK 232 // 232_实现盈亏
#define FIELD_LX 234 // 234_类型
#define FIELD_ZHZT 238 // 238_帐户状态
+#define FIELD_DFGDDM 244 // 244_对方股东代码
+#define FIELD_DFZHLB 245 // 245_对方帐号类别
#define FIELD_RZRQBS 281 // 281_融资融券标识
#define FIELD_FJZH 294 // 294_附加账号
#define FIELD_ZJYE 300 // 300_资金余额
@@ -84,13 +89,16 @@ ID一样,中文名可能不一样
#define FIELD_TBBZ 514 // 514_投保标志
#define FIELD_JGYF 540 // 540_交割月份
#define FIELD_BZJ 541 // 541_保证金
+#define FIELD_ETFDM 601 // 601_ETF代码
+#define FIELD_JYLX 603 // 603_交易类型
+#define FIELD_RGSL 604 // 604_认购数量
#define FIELD_PCH 606 // 606_批次号
#define FIELD_FXD 700 // 700_风险度
#define FIELD_718 718 // ?
#define FIELD_QSXH 1207 // 1207_起始序号
#define FIELD_BLXX 1213 // 1213_保留信息
#define FIELD_JCFXBZ 1223 // 1223_检查风险标志
-#define FIELD_BZ_1217 1217 // 1217_备注
+#define FIELD_BZ_1217 1217 // 1217_备注 感觉是给当成备兑用了
#define FIELD_CS 1227 // 1227_参数
#define FIELD_XSYS 1231 // 1231_显示颜色
diff --git a/include/Tdx/tdx_function.cpp b/include/Tdx/tdx_function.cpp
index 8118292..8cb71c3 100644
--- a/include/Tdx/tdx_function.cpp
+++ b/include/Tdx/tdx_function.cpp
@@ -12,7 +12,6 @@
using namespace std;
#ifdef TDXAPI_EXPORTS
-
/*
注意:以下代码只是几个数据表的读写方式,当做示例使用
此cpp请不要添加到项目中,而是只添加h文件
@@ -21,14 +20,6 @@ using namespace std;
*/
-void GetUpdateTime_HH_mm_ss(char* UpdateTime, int* _HH, int* _mm, int* _ss)
-{
- *_HH = atoi(&UpdateTime[0]);
- *_mm = atoi(&UpdateTime[3]);
- *_ss = atoi(&UpdateTime[6]);
-}
-
-
void PrintTableHeader(FieldInfo_STRUCT** ppHeader)
{
if (ppHeader == nullptr)
@@ -48,24 +39,6 @@ void PrintTableHeader(FieldInfo_STRUCT** ppHeader)
printf("\n");
}
-void OutputCSVTableHeader(FILE* pFile, FieldInfo_STRUCT** ppHeader)
-{
- if (ppHeader == nullptr || pFile == nullptr)
- return;
-
- int i = 0;
- FieldInfo_STRUCT* pRow = ppHeader[i];
- while (pRow != 0)
- {
- char buf[512] = { 0 };
- fprintf(pFile,"%d_%s,",//"%d,%s,%d,%d,%d,%d,%d",
- pRow->FieldID, pRow->FieldName, pRow->a, pRow->b, pRow->Len, pRow->d, pRow->e);
-
- ++i;
- pRow = ppHeader[i];
- }
- fprintf(pFile, "\n");
-}
FieldInfo_STRUCT** CopyTableHeader(FieldInfo_STRUCT** ppHeader)
{
@@ -215,61 +188,6 @@ void PrintTableBody(char** ppTable, int count)
return;
}
-void OutputCSVTableBody(FILE* pFile, char** ppTable)
-{
- if (ppTable == nullptr || pFile == nullptr)
- return;
-
- // 如果有数据,第一列就不为空
- int i = 0;
- int j = 0;
- char* p = ppTable[i * COL_EACH_ROW + j];
- while (p != nullptr)
- {
- //printf("%d:", i);
- for (j = 0; j < COL_EACH_ROW; ++j)
- {
- p = ppTable[i * COL_EACH_ROW + j];
- if (p)
- {
- fprintf(pFile, "%s,", p);
- }
- else
- break;
- }
- fprintf(pFile, "\n");
- j = 0;
- ++i;
- p = ppTable[i * COL_EACH_ROW + j];
- }
-
- return;
-}
-
-void OutputCSVTableBody(FILE* pFile, char** ppTable, int count)
-{
- if (ppTable == nullptr || pFile == nullptr)
- return;
-
- for (int i = 0; i < count; ++i)
- {
- //printf("%d:", i);
- for (int j = 0; j < COL_EACH_ROW; ++j)
- {
- char* p = ppTable[i * COL_EACH_ROW + j];
- if (p)
- {
- fprintf(pFile, "%s,", p);
-
- }
- else
- break;
- }
- fprintf(pFile, "\n");
- }
-
- return;
-}
// 得到某一行某一列
char* GetAtTableBody(char** ppTable, int row, int col)
@@ -397,50 +315,6 @@ void PrintErrors(Error_STRUCT** pErrs, int count)
}
}
-void OutputCSVError(FILE* pFile, Error_STRUCT* pErr)
-{
- if (pErr == nullptr)
- {
- return;
- }
-
- fprintf(pFile, "%d,%d,%s\n", pErr->ErrType, pErr->ErrCode, pErr->ErrInfo);
-}
-
-void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs)
-{
- if (pErrs == nullptr)
- return;
-
- int i = 0;
- Error_STRUCT* pErr = pErrs[i];
- while (pErr != nullptr)
- {
- fprintf(pFile, "%d:%d,%d,%s\n", i, pErr->ErrType, pErr->ErrCode, pErr->ErrInfo);
-
- ++i;
- pErr = pErrs[i];
- }
-}
-
-void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs, int count)
-{
- if (pErrs == nullptr)
- {
- return;
- }
-
- for (int i = 0; i < count; ++i)
- {
- Error_STRUCT* pErr = pErrs[i];
- if (pErr)
- {
- fprintf(pFile, "%d:%d,%d,%s\n", i, pErr->ErrType, pErr->ErrCode, pErr->ErrInfo);
- }
- else
- fprintf(pFile, "\n");
- }
-}
void DeleteError(Error_STRUCT* pErr)
{
@@ -493,96 +367,7 @@ int GetCountErrors(Error_STRUCT** pErrs)
//////////////////////////////////////////////////////////////////////////
-int ZTSM_str_2_int(char* pIn)
-{
- char* pCheng = strstr(pIn, "成");
- char* pChe = strstr(pIn, "撤");
- char* pBu = strstr(pIn, "部");
-
- if (pChe)
- {
- if (pBu)
- {
- return ZTSM_PartiallyCancelled;
- }
- return ZTSM_AllCancelled;
- }
- else if (pCheng)
- {
- if (pBu)
- {
- // 部成是啥?这里需要完成
- return ZTSM_PartiallyFilled;
- }
- return ZTSM_AllFilled;
- }
-
- char* pQ = strstr(pIn, "全");
- char* pY = strstr(pIn, "已");
- char* pBao = strstr(pIn, "报");
- char* pF = strstr(pIn, "废");
-
- if (pF)
- {
- return ZTSM_Illegal;
- }
-
- return ZTSM_New;
-}
-
-// 将中文的报价方式转成委托方式,这是根据字符串的特点进行分类
-int BJFS_2_WTFS(char* pIn)
-{
- char* pX1 = strstr(pIn, "限");
-
- if (pX1 == pIn)
- {
- // 第一个字是限价
- return WTFS_Limit;
- }
- else
- {
- char* pMM = strstr(pIn, "买卖");
- if (pMM)
- {
- // 华泰返回买卖是表示限价
- return WTFS_Limit;
- }
- char* pC = strstr(pIn, "撤");
- if (pC)
- {
- char* p5 = strstr(pIn, "五");
- if (p5)
- {
- return WTFS_Five_IOC;
- }
- char* pQ = strstr(pIn, "全");
- if (pQ)
- {
- return WTFS_FOK;
- }
- return WTFS_IOC; // 剩
- }
- else
- {
- char* pZ = strstr(pIn, "转");
- if (pZ)
- {
- return WTFS_Five_Limit;
- }
- char* pD = strstr(pIn, "对");
- if (pD)
- {
- return WTFS_Best_Reverse;
- }
- return WTFS_Best_Forward; // 本
- }
- }
-}
-
-//////////////////////////////////////////////////////////////////////////
-
-void CharTable2GDLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT*** pppResults)
+void CharTable2GDLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT*** pppResults, void* Client)
{
*pppResults = nullptr;
if (ppTable == nullptr)
@@ -596,531 +381,56 @@ void CharTable2GDLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT
ppResults[count] = nullptr;
*pppResults = ppResults;
- int col_123 = GetIndexByFieldID(ppFieldInfos, FIELD_GDDM);
- int col_124 = GetIndexByFieldID(ppFieldInfos, FIELD_GDMC);
- int col_125 = GetIndexByFieldID(ppFieldInfos, FIELD_ZHLB);
- int col_121 = GetIndexByFieldID(ppFieldInfos, FIELD_ZJZH);
- int col_173 = GetIndexByFieldID(ppFieldInfos, FIELD_XWDM);
- int col_281 = GetIndexByFieldID(ppFieldInfos, FIELD_RZRQBS);
- int col_1213 = GetIndexByFieldID(ppFieldInfos, FIELD_BLXX);
-
for (int i = 0; i < count; ++i)
{
ppResults[i] = new GDLB_STRUCT();
- //if (col_123 >= 0)
- strcpy_s(ppResults[i]->GDDM, ppTable[i * COL_EACH_ROW + col_123]);
- //if (col_124 >= 0)
- strcpy_s(ppResults[i]->GDMC, ppTable[i * COL_EACH_ROW + col_124]);
- if (col_121 >= 0)
- strcpy_s(ppResults[i]->ZJZH, ppTable[i * COL_EACH_ROW + col_121]);
- //if (col_125 >= 0)
- strcpy_s(ppResults[i]->ZHLB, ppTable[i * COL_EACH_ROW + col_125]);
- if (col_173 >= 0)
- strcpy_s(ppResults[i]->XWDM, ppTable[i * COL_EACH_ROW + col_173]);
- if (col_281 >= 0)
- strcpy_s(ppResults[i]->RZRQBS, ppTable[i * COL_EACH_ROW + col_281]);
- if (col_1213 >= 0)
- strcpy_s(ppResults[i]->BLXX, ppTable[i * COL_EACH_ROW + col_1213]);
-
- ppResults[i]->ZHLB_ = atoi(ppResults[i]->ZHLB);
- ppResults[i]->RZRQBS_ = atoi(ppResults[i]->RZRQBS);
- }
-}
-
-
-
-void CharTable2WTLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, WTLB_STRUCT*** pppResults)
-{
- *pppResults = nullptr;
- if (ppTable == nullptr)
- return;
-
- int count = GetRowCountTableBody(ppTable);
- if (count <= 0)
- return;
-
- WTLB_STRUCT** ppResults = new WTLB_STRUCT*[count + 1]();
- ppResults[count] = nullptr;
- *pppResults = ppResults;
-
- int col_142 = GetIndexByFieldID(ppFieldInfos, FIELD_WTRQ);
- int col_143 = GetIndexByFieldID(ppFieldInfos, FIELD_WTSJ);
- int col_123 = GetIndexByFieldID(ppFieldInfos, FIELD_GDDM);
- int col_140 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQDM);
- int col_141 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQMC);
- int col_130 = GetIndexByFieldID(ppFieldInfos, FIELD_MMBZ);
- int col_131 = GetIndexByFieldID(ppFieldInfos, FIELD_WTLB);
- int col_100 = GetIndexByFieldID(ppFieldInfos, FIELD_JYSDM);
- int col_145 = GetIndexByFieldID(ppFieldInfos, FIELD_WTJG);
- int col_144 = GetIndexByFieldID(ppFieldInfos, FIELD_WTSL);
- int col_153 = GetIndexByFieldID(ppFieldInfos, FIELD_CJJG);
- int col_152 = GetIndexByFieldID(ppFieldInfos, FIELD_CJSL);
- int col_162 = GetIndexByFieldID(ppFieldInfos, FIELD_CDSL);
- int col_146 = GetIndexByFieldID(ppFieldInfos, FIELD_WTBH);
- int col_194 = GetIndexByFieldID(ppFieldInfos, FIELD_BJFS);
- int col_147 = GetIndexByFieldID(ppFieldInfos, FIELD_ZTSM);
- int col_161 = GetIndexByFieldID(ppFieldInfos, FIELD_DJZJ);
- int col_1213 = GetIndexByFieldID(ppFieldInfos, FIELD_BLXX);
-
- for (int i = 0; i < count; ++i)
- {
- ppResults[i] = new WTLB_STRUCT();
-
- if (col_142 >= 0)
- strcpy_s(ppResults[i]->WTRQ, ppTable[i * COL_EACH_ROW + col_142]);
- if (col_143 >= 0)
- strcpy_s(ppResults[i]->WTSJ, ppTable[i * COL_EACH_ROW + col_143]);
- //if (col_123 >= 0)
- strcpy_s(ppResults[i]->GDDM, ppTable[i * COL_EACH_ROW + col_123]);
- //if (col_140 >= 0)
- strcpy_s(ppResults[i]->ZQDM, ppTable[i * COL_EACH_ROW + col_140]);
- //if (col_141 >= 0)
- strcpy_s(ppResults[i]->ZQMC, ppTable[i * COL_EACH_ROW + col_141]);
- //if (col_130 >= 0)
- strcpy_s(ppResults[i]->MMBZ, ppTable[i * COL_EACH_ROW + col_130]);
- //if (col_131 >= 0)
- strcpy_s(ppResults[i]->WTLB, ppTable[i * COL_EACH_ROW + col_131]);
- //if (col_100 >= 0)
- strcpy_s(ppResults[i]->JYSDM, ppTable[i * COL_EACH_ROW + col_100]);
- //if (col_145 >= 0)
- strcpy_s(ppResults[i]->WTJG, ppTable[i * COL_EACH_ROW + col_145]);
- //if (col_144 >= 0)
- strcpy_s(ppResults[i]->WTSL, ppTable[i * COL_EACH_ROW + col_144]);
- //if (col_153 >= 0)
- strcpy_s(ppResults[i]->CJJG, ppTable[i * COL_EACH_ROW + col_153]);
- //if (col_152 >= 0)
- strcpy_s(ppResults[i]->CJSL, ppTable[i * COL_EACH_ROW + col_152]);
- if (col_162 >= 0)
- strcpy_s(ppResults[i]->CDSL, ppTable[i * COL_EACH_ROW + col_162]);
- //if (col_146 >= 0)
- strcpy_s(ppResults[i]->WTBH, ppTable[i * COL_EACH_ROW + col_146]);
- //if (col_194 >= 0)
- strcpy_s(ppResults[i]->BJFS, ppTable[i * COL_EACH_ROW + col_194]);
- if (col_147 >= 0)
- strcpy_s(ppResults[i]->ZTSM, ppTable[i * COL_EACH_ROW + col_147]);
- if (col_161 >= 0)
- strcpy_s(ppResults[i]->DJZJ, ppTable[i * COL_EACH_ROW + col_161]);
- if (col_1213 >= 0)
- strcpy_s(ppResults[i]->BLXX, ppTable[i * COL_EACH_ROW + col_1213]);
-
- ppResults[i]->WTRQ_ = atoi(ppResults[i]->WTRQ);
- ppResults[i]->MMBZ_ = atoi(ppResults[i]->MMBZ);
- ppResults[i]->JYSDM_ = atoi(ppResults[i]->JYSDM);
- ppResults[i]->WTJG_ = atof(ppResults[i]->WTJG);
- ppResults[i]->WTSL_ = atoi(ppResults[i]->WTSL);
- ppResults[i]->CJJG_ = atof(ppResults[i]->CJJG);
- ppResults[i]->CJSL_ = atoi(ppResults[i]->CJSL);
- ppResults[i]->DJZJ_ = atof(ppResults[i]->DJZJ);
-
- // 可能没有,怎么办
- ppResults[i]->CDSL_ = atoi(ppResults[i]->CDSL);
-
- int HH = 0, mm = 0, ss = 0;
- GetUpdateTime_HH_mm_ss(ppResults[i]->WTSJ, &HH, &mm, &ss);
- ppResults[i]->WTSJ_ = HH * 10000 + mm * 100 + ss;
-
- // 第一个的字符,并转成数字
- if (ppResults[i]->ZTSM[1] == '-')
- {
- ppResults[i]->ZTSM_ = ppResults[i]->ZTSM[0] - '0';
- }
- else
+ int j = 0;
+ FieldInfo_STRUCT* pRow = ppFieldInfos[j];
+ while (pRow != 0)
{
- ppResults[i]->ZTSM_ = ZTSM_str_2_int(ppResults[i]->ZTSM);
- }
-
- ppResults[i]->BJFS_ = BJFS_2_WTFS(ppResults[i]->BJFS);
- }
-}
-
-void CharTable2CJLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, CJLB_STRUCT*** pppResults)
-{
- *pppResults = nullptr;
- if (ppTable == nullptr)
- return;
-
- int count = GetRowCountTableBody(ppTable);
- if (count <= 0)
- return;
-
- CJLB_STRUCT** ppResults = new CJLB_STRUCT*[count + 1]();
- ppResults[count] = nullptr;
- *pppResults = ppResults;
-
- int col_150 = GetIndexByFieldID(ppFieldInfos, FIELD_CJRQ);
- int col_151 = GetIndexByFieldID(ppFieldInfos, FIELD_CJSJ);
- int col_123 = GetIndexByFieldID(ppFieldInfos, FIELD_GDDM);
- int col_140 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQDM);
- int col_141 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQMC);
- int col_130 = GetIndexByFieldID(ppFieldInfos, FIELD_MMBZ);
- int col_131 = GetIndexByFieldID(ppFieldInfos, FIELD_WTLB);
- int col_153 = GetIndexByFieldID(ppFieldInfos, FIELD_CJJG);
- int col_152 = GetIndexByFieldID(ppFieldInfos, FIELD_CJSL);
- int col_303 = GetIndexByFieldID(ppFieldInfos, FIELD_FSJE);
- int col_304 = GetIndexByFieldID(ppFieldInfos, FIELD_SYJE);
- int col_206 = GetIndexByFieldID(ppFieldInfos, FIELD_YJ);
- int col_210 = GetIndexByFieldID(ppFieldInfos, FIELD_YHS);
- int col_207 = GetIndexByFieldID(ppFieldInfos, FIELD_GHF);
- int col_208 = GetIndexByFieldID(ppFieldInfos, FIELD_CJF);
- int col_155 = GetIndexByFieldID(ppFieldInfos, FIELD_CJBH);
- int col_167 = GetIndexByFieldID(ppFieldInfos, FIELD_CDBZ);
- int col_146 = GetIndexByFieldID(ppFieldInfos, FIELD_WTBH);
-
- for (int i = 0; i < count; ++i)
- {
- ppResults[i] = new CJLB_STRUCT();
-
- if (col_150 >= 0)
- strcpy_s(ppResults[i]->CJRQ, ppTable[i * COL_EACH_ROW + col_150]);
- if (col_151 >= 0)
- strcpy_s(ppResults[i]->CJSJ, ppTable[i * COL_EACH_ROW + col_151]);
- //if (col_123 >= 0)
- strcpy_s(ppResults[i]->GDDM, ppTable[i * COL_EACH_ROW + col_123]);
- //if (col_140 >= 0)
- strcpy_s(ppResults[i]->ZQDM, ppTable[i * COL_EACH_ROW + col_140]);
- //if (col_141 >= 0)
- strcpy_s(ppResults[i]->ZQMC, ppTable[i * COL_EACH_ROW + col_141]);
- //if (col_130 >= 0)
- strcpy_s(ppResults[i]->MMBZ, ppTable[i * COL_EACH_ROW + col_130]);
- //if (col_131 >= 0)
- strcpy_s(ppResults[i]->WTLB, ppTable[i * COL_EACH_ROW + col_131]);
- //if (col_153 >= 0)
- strcpy_s(ppResults[i]->CJJG, ppTable[i * COL_EACH_ROW + col_153]);
- //if (col_152 >= 0)
- strcpy_s(ppResults[i]->CJSL, ppTable[i * COL_EACH_ROW + col_152]);
- if (col_303 >= 0)
- strcpy_s(ppResults[i]->FSJE, ppTable[i * COL_EACH_ROW + col_303]);
- if (col_304 >= 0)
- strcpy_s(ppResults[i]->SYJE, ppTable[i * COL_EACH_ROW + col_304]);
- if (col_206 >= 0)
- strcpy_s(ppResults[i]->YJ, ppTable[i * COL_EACH_ROW + col_206]);
- if (col_210 >= 0)
- strcpy_s(ppResults[i]->YHS, ppTable[i * COL_EACH_ROW + col_210]);
- if (col_207 >= 0)
- strcpy_s(ppResults[i]->GHF, ppTable[i * COL_EACH_ROW + col_207]);
- if (col_208 >= 0)
- strcpy_s(ppResults[i]->CJF, ppTable[i * COL_EACH_ROW + col_208]);
- //if (col_155 >= 0)
- strcpy_s(ppResults[i]->CJBH, ppTable[i * COL_EACH_ROW + col_155]);
- if (col_167 >= 0)
- strcpy_s(ppResults[i]->CDBZ, ppTable[i * COL_EACH_ROW + col_167]);
- if (col_146 >= 0)
- strcpy_s(ppResults[i]->WTBH, ppTable[i * COL_EACH_ROW + col_146]);
-
-
- ppResults[i]->CJRQ_ = atoi(ppResults[i]->CJRQ);
- //ppResults[i]->CJSJ_ = atoi(ppResults[i]->CJSJ);
- ppResults[i]->MMBZ_ = atoi(ppResults[i]->MMBZ);
- ppResults[i]->WTLB_ = atoi(ppResults[i]->WTLB);
- ppResults[i]->CJJG_ = atof(ppResults[i]->CJJG);
- ppResults[i]->CJSL_ = atoi(ppResults[i]->CJSL);
- ppResults[i]->SYJE_ = atof(ppResults[i]->SYJE);
- ppResults[i]->YJ_ = atof(ppResults[i]->YJ);
- ppResults[i]->YHS_ = atof(ppResults[i]->YHS);
- ppResults[i]->GHF_ = atof(ppResults[i]->GHF);
- ppResults[i]->CJF_ = atof(ppResults[i]->CJF);
- ppResults[i]->CDBZ_ = atoi(ppResults[i]->CDBZ);
-
- // 可能没有
- ppResults[i]->FSJE_ = atof(ppResults[i]->FSJE);
-
- int HH = 0, mm = 0, ss = 0;
- GetUpdateTime_HH_mm_ss(ppResults[i]->CJSJ, &HH, &mm, &ss);
- ppResults[i]->CJSJ_ = HH * 10000 + mm * 100 + ss;
- }
-}
-
-void CharTable2GFLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GFLB_STRUCT*** pppResults)
-{
- *pppResults = nullptr;
- if (ppTable == nullptr)
- return;
-
- int count = GetRowCountTableBody(ppTable);
- if (count <= 0)
- return;
-
- GFLB_STRUCT** ppResults = new GFLB_STRUCT*[count + 1]();
- ppResults[count] = nullptr;
- *pppResults = ppResults;
-
- int col_140 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQDM);
- int col_141 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQMC);
- int col_200 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQSL);
- int col_201 = GetIndexByFieldID(ppFieldInfos, FIELD_KMSL);
- int col_202 = GetIndexByFieldID(ppFieldInfos, FIELD_TBCBJ);
- int col_949 = GetIndexByFieldID(ppFieldInfos, FIELD_DQJ);
- int col_205 = GetIndexByFieldID(ppFieldInfos, FIELD_ZXSZ);
- int col_204 = GetIndexByFieldID(ppFieldInfos, FIELD_TBFDYK);
- int col_232 = GetIndexByFieldID(ppFieldInfos, FIELD_SXYK);
- int col_230 = GetIndexByFieldID(ppFieldInfos, FIELD_CKYKBL);
- int col_160 = GetIndexByFieldID(ppFieldInfos, FIELD_DJSL);
- int col_123 = GetIndexByFieldID(ppFieldInfos, FIELD_GDDM);
- int col_100 = GetIndexByFieldID(ppFieldInfos, FIELD_JYSDM);
- int col_101 = GetIndexByFieldID(ppFieldInfos, FIELD_JYSMC);
- int col_1213 = GetIndexByFieldID(ppFieldInfos, FIELD_BLXX);
-
- for (int i = 0; i < count; ++i)
- {
- ppResults[i] = new GFLB_STRUCT();
-
- //if (col_140 >= 0)
- strcpy_s(ppResults[i]->ZQDM, ppTable[i * COL_EACH_ROW + col_140]);
- //if (col_141 >= 0)
- strcpy_s(ppResults[i]->ZQMC, ppTable[i * COL_EACH_ROW + col_141]);
- //if (col_200 >= 0)
- strcpy_s(ppResults[i]->ZQSL, ppTable[i * COL_EACH_ROW + col_200]);
- //if (col_201 >= 0)
- strcpy_s(ppResults[i]->KMSL, ppTable[i * COL_EACH_ROW + col_201]);
- //if (col_202 >= 0)
- strcpy_s(ppResults[i]->TBCBJ, ppTable[i * COL_EACH_ROW + col_202]);
- //if (col_949 >= 0)
- strcpy_s(ppResults[i]->DQJ, ppTable[i * COL_EACH_ROW + col_949]);
- //if (col_205 >= 0)
- strcpy_s(ppResults[i]->ZXSZ, ppTable[i * COL_EACH_ROW + col_205]);
- //if (col_204 >= 0)
- strcpy_s(ppResults[i]->TBFDYK, ppTable[i * COL_EACH_ROW + col_204]);
- if (col_232 >= 0)
- strcpy_s(ppResults[i]->SXYK, ppTable[i * COL_EACH_ROW + col_232]);
- if (col_230 >= 0)
- strcpy_s(ppResults[i]->CKYKBL, ppTable[i * COL_EACH_ROW + col_230]);
- if (col_160 >= 0)
- strcpy_s(ppResults[i]->DJSL, ppTable[i * COL_EACH_ROW + col_160]);
- //if (col_123 >= 0)
- strcpy_s(ppResults[i]->GDDM, ppTable[i * COL_EACH_ROW + col_123]);
- if (col_100 >= 0)
- strcpy_s(ppResults[i]->JYSDM, ppTable[i * COL_EACH_ROW + col_100]);
- if (col_101 >= 0)
- strcpy_s(ppResults[i]->JYSMC, ppTable[i * COL_EACH_ROW + col_101]);
- //if (col_1213 >= 0)
- strcpy_s(ppResults[i]->BLXX, ppTable[i * COL_EACH_ROW + col_1213]);
-
-
- ppResults[i]->ZQSL_ = atoi(ppResults[i]->ZQSL);
- ppResults[i]->KMSL_ = atoi(ppResults[i]->KMSL);
- ppResults[i]->TBCBJ_ = atof(ppResults[i]->TBCBJ);
- ppResults[i]->DQJ_ = atof(ppResults[i]->DQJ);
- ppResults[i]->ZXSZ_ = atof(ppResults[i]->ZXSZ);
- ppResults[i]->DJSL_ = atof(ppResults[i]->DJSL);
- }
-}
-
-void CharTable2ZJYE(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, ZJYE_STRUCT*** pppResults)
-{
- *pppResults = nullptr;
- if (ppTable == nullptr)
- return;
-
- int count = GetRowCountTableBody(ppTable);
- if (count <= 0)
- return;
+ char* t = ppTable[i * COL_EACH_ROW + j];
+ switch (pRow->FieldID)
+ {
+ case FIELD_GDDM:
+ strcpy_s(ppResults[i]->GDDM, t);
+ break;
+ case FIELD_GDMC:
+ strcpy_s(ppResults[i]->GDMC, t);
+ break;
+ case FIELD_ZHLB:
+ strcpy_s(ppResults[i]->ZHLB, t);
+ break;
+ case FIELD_ZJZH:
+ strcpy_s(ppResults[i]->ZJZH, t);
+ break;
+ case FIELD_XWDM:
+ strcpy_s(ppResults[i]->XWDM, t);
+ break;
+ case FIELD_RZRQBS:
+ strcpy_s(ppResults[i]->RZRQBS, t);
+ break;
+ case FIELD_BLXX:
+ strcpy_s(ppResults[i]->BLXX, t);
+ break;
+ }
- ZJYE_STRUCT** ppResults = new ZJYE_STRUCT*[count + 1]();
- ppResults[count] = nullptr;
- *pppResults = ppResults;
+ ++j;
+ pRow = ppFieldInfos[j];
+ }
- int col_132 = GetIndexByFieldID(ppFieldInfos, FIELD_BZ);
- int col_300 = GetIndexByFieldID(ppFieldInfos, FIELD_ZJYE);
- int col_301 = GetIndexByFieldID(ppFieldInfos, FIELD_KYZJ);
- int col_310 = GetIndexByFieldID(ppFieldInfos, FIELD_ZZC_310);
- int col_302 = GetIndexByFieldID(ppFieldInfos, FIELD_KQZJ);
- int col_121 = GetIndexByFieldID(ppFieldInfos, FIELD_ZJZH);
- int col_205 = GetIndexByFieldID(ppFieldInfos, FIELD_ZXSZ);
+ ppResults[i]->ZHLB_ = atoi(ppResults[i]->ZHLB);
+ ppResults[i]->RZRQBS_ = atoi(ppResults[i]->RZRQBS);
- for (int i = 0; i < count; ++i)
- {
- ppResults[i] = new ZJYE_STRUCT();
-
- //if (col_132 >= 0)
- strcpy_s(ppResults[i]->BZ, ppTable[i * COL_EACH_ROW + col_132]);
- //if (col_300 >= 0)
- strcpy_s(ppResults[i]->ZJYE, ppTable[i * COL_EACH_ROW + col_300]);
- //if (col_301 >= 0)
- strcpy_s(ppResults[i]->KYZJ, ppTable[i * COL_EACH_ROW + col_301]);
- //if (col_310 >= 0)
- strcpy_s(ppResults[i]->ZZC, ppTable[i * COL_EACH_ROW + col_310]);
- if (col_302 >= 0)
- strcpy_s(ppResults[i]->KQZJ, ppTable[i * COL_EACH_ROW + col_302]);
- if (col_121 >= 0)
- strcpy_s(ppResults[i]->ZJZH, ppTable[i * COL_EACH_ROW + col_121]);
- if (col_205 >= 0)
- strcpy_s(ppResults[i]->ZXSZ, ppTable[i * COL_EACH_ROW + col_205]);
-
-
- ppResults[i]->ZJYE_ = atof(ppResults[i]->ZJYE);
- ppResults[i]->KYZJ_ = atof(ppResults[i]->KYZJ);
- ppResults[i]->ZZC_ = atof(ppResults[i]->ZZC);
- ppResults[i]->KQZJ_ = atof(ppResults[i]->KQZJ);
- ppResults[i]->ZXSZ_ = atof(ppResults[i]->ZXSZ);
+ ppResults[i]->Client = Client;
}
}
-void CharTable2HQ(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, HQ_STRUCT*** pppResults)
+void DeleteStructs(void*** pppStructs)
{
- *pppResults = nullptr;
- if (ppTable == nullptr)
+ if (pppStructs == nullptr)
return;
- int count = GetRowCountTableBody(ppTable);
- if (count <= 0)
- return;
-
- HQ_STRUCT** ppResults = new HQ_STRUCT*[count + 1]();
- ppResults[count] = nullptr;
- *pppResults = ppResults;
-
- int col_140 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQDM);
- int col_141 = GetIndexByFieldID(ppFieldInfos, FIELD_ZQMC);
- int col_946 = GetIndexByFieldID(ppFieldInfos, FIELD_ZSJ);
- int col_945 = GetIndexByFieldID(ppFieldInfos, FIELD_JKJ);
- int col_948 = GetIndexByFieldID(ppFieldInfos, FIELD_GZLX);
- int col_949 = GetIndexByFieldID(ppFieldInfos, FIELD_DQJ);
- int col_910 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_PRICE_1);
- int col_911 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_PRICE_2);
- int col_912 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_PRICE_3);
- int col_913 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_PRICE_4);
- int col_914 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_PRICE_5);
- int col_900 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_SIZE_1);
- int col_901 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_SIZE_2);
- int col_902 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_SIZE_3);
- int col_903 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_SIZE_4);
- int col_904 = GetIndexByFieldID(ppFieldInfos, FIELD_BID_SIZE_5);
- int col_930 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_PRICE_1);
- int col_931 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_PRICE_2);
- int col_932 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_PRICE_3);
- int col_933 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_PRICE_4);
- int col_934 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_PRICE_5);
- int col_920 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_SIZE_1);
- int col_921 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_SIZE_2);
- int col_922 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_SIZE_3);
- int col_923 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_SIZE_4);
- int col_924 = GetIndexByFieldID(ppFieldInfos, FIELD_ASK_SIZE_5);
- int col_100 = GetIndexByFieldID(ppFieldInfos, FIELD_JYSDM);
- int col_187 = GetIndexByFieldID(ppFieldInfos, FIELD_ZXJYGS);
- int col_226 = GetIndexByFieldID(ppFieldInfos, FIELD_ZXMRBDJW);
- int col_227 = GetIndexByFieldID(ppFieldInfos, FIELD_ZXMCBDJW);
- int col_125 = GetIndexByFieldID(ppFieldInfos, FIELD_ZHLB);
- int col_132 = GetIndexByFieldID(ppFieldInfos, FIELD_BZ);
- int col_958 = GetIndexByFieldID(ppFieldInfos, FIELD_GZBS);
- int col_940 = GetIndexByFieldID(ppFieldInfos, FIELD_ZTJG);
- int col_941 = GetIndexByFieldID(ppFieldInfos, FIELD_DTJG);
- int col_1213 = GetIndexByFieldID(ppFieldInfos, FIELD_BLXX);
-
- for (int i = 0; i < count; ++i)
- {
- ppResults[i] = new HQ_STRUCT();
-
- //if (col_140 >= 0)
- strcpy_s(ppResults[i]->ZQDM, ppTable[i * COL_EACH_ROW + col_140]);
- if (col_141 >= 0)
- strcpy_s(ppResults[i]->ZQMC, ppTable[i * COL_EACH_ROW + col_141]);
- if (col_946 >= 0)
- strcpy_s(ppResults[i]->ZSJ, ppTable[i * COL_EACH_ROW + col_946]);
- if (col_945 >= 0)
- strcpy_s(ppResults[i]->JKJ, ppTable[i * COL_EACH_ROW + col_945]);
- if (col_948 >= 0)
- strcpy_s(ppResults[i]->GZLX, ppTable[i * COL_EACH_ROW + col_948]);
- //if (col_949 >= 0)
- strcpy_s(ppResults[i]->DQJ, ppTable[i * COL_EACH_ROW + col_949]);
- //if (col_910 >= 0)
- strcpy_s(ppResults[i]->BidPrice1, ppTable[i * COL_EACH_ROW + col_910]);
- //if (col_911 >= 0)
- strcpy_s(ppResults[i]->BidPrice2, ppTable[i * COL_EACH_ROW + col_911]);
- //if (col_912 >= 0)
- strcpy_s(ppResults[i]->BidPrice3, ppTable[i * COL_EACH_ROW + col_912]);
- //if (col_913 >= 0)
- strcpy_s(ppResults[i]->BidPrice4, ppTable[i * COL_EACH_ROW + col_913]);
- //if (col_914 >= 0)
- strcpy_s(ppResults[i]->BidPrice5, ppTable[i * COL_EACH_ROW + col_914]);
- //if (col_900 >= 0)
- strcpy_s(ppResults[i]->BidSize1, ppTable[i * COL_EACH_ROW + col_900]);
- //if (col_901 >= 0)
- strcpy_s(ppResults[i]->BidSize2, ppTable[i * COL_EACH_ROW + col_901]);
- //if (col_902 >= 0)
- strcpy_s(ppResults[i]->BidSize3, ppTable[i * COL_EACH_ROW + col_902]);
- //if (col_903 >= 0)
- strcpy_s(ppResults[i]->BidSize4, ppTable[i * COL_EACH_ROW + col_903]);
- //if (col_904 >= 0)
- strcpy_s(ppResults[i]->BidSize5, ppTable[i * COL_EACH_ROW + col_904]);
- //if (col_930 >= 0)
- strcpy_s(ppResults[i]->AskPrice1, ppTable[i * COL_EACH_ROW + col_930]);
- //if (col_931 >= 0)
- strcpy_s(ppResults[i]->AskPrice2, ppTable[i * COL_EACH_ROW + col_931]);
- //if (col_932 >= 0)
- strcpy_s(ppResults[i]->AskPrice3, ppTable[i * COL_EACH_ROW + col_932]);
- //if (col_933 >= 0)
- strcpy_s(ppResults[i]->AskPrice4, ppTable[i * COL_EACH_ROW + col_933]);
- //if (col_934 >= 0)
- strcpy_s(ppResults[i]->AskPrice5, ppTable[i * COL_EACH_ROW + col_934]);
- //if (col_920 >= 0)
- strcpy_s(ppResults[i]->AskSize1, ppTable[i * COL_EACH_ROW + col_920]);
- //if (col_921 >= 0)
- strcpy_s(ppResults[i]->AskSize2, ppTable[i * COL_EACH_ROW + col_921]);
- //if (col_922 >= 0)
- strcpy_s(ppResults[i]->AskSize3, ppTable[i * COL_EACH_ROW + col_922]);
- //if (col_923 >= 0)
- strcpy_s(ppResults[i]->AskSize4, ppTable[i * COL_EACH_ROW + col_923]);
- //if (col_924 >= 0)
- strcpy_s(ppResults[i]->AskSize5, ppTable[i * COL_EACH_ROW + col_924]);
- //if (col_100 >= 0)
- strcpy_s(ppResults[i]->JYSDM, ppTable[i * COL_EACH_ROW + col_100]);
- //if (col_187 >= 0)
- strcpy_s(ppResults[i]->ZXJYGS, ppTable[i * COL_EACH_ROW + col_187]);
- //if (col_226 >= 0)
- strcpy_s(ppResults[i]->ZXMRBDJW, ppTable[i * COL_EACH_ROW + col_226]);
- //if (col_227 >= 0)
- strcpy_s(ppResults[i]->ZXMCBDJW, ppTable[i * COL_EACH_ROW + col_227]);
- //if (col_125 >= 0)
- strcpy_s(ppResults[i]->ZHLB, ppTable[i * COL_EACH_ROW + col_125]);
- //if (col_132 >= 0)
- strcpy_s(ppResults[i]->BZ, ppTable[i * COL_EACH_ROW + col_132]);
- //if (col_958 >= 0)
- strcpy_s(ppResults[i]->GZBS, ppTable[i * COL_EACH_ROW + col_958]);
- if (col_940 >= 0)
- strcpy_s(ppResults[i]->ZTJG, ppTable[i * COL_EACH_ROW + col_940]);
- if (col_941 >= 0)
- strcpy_s(ppResults[i]->DTJG, ppTable[i * COL_EACH_ROW + col_941]);
- if (col_1213 >= 0)
- strcpy_s(ppResults[i]->BLXX, ppTable[i * COL_EACH_ROW + col_1213]);
-
-
- ppResults[i]->ZSJ_ = atof(ppResults[i]->ZSJ);
- ppResults[i]->JKJ_ = atof(ppResults[i]->JKJ);
- ppResults[i]->GZLX_ = atof(ppResults[i]->GZLX);
- ppResults[i]->DQJ_ = atof(ppResults[i]->DQJ);
- ppResults[i]->BidPrice1_ = atof(ppResults[i]->BidPrice1);
- ppResults[i]->BidPrice2_ = atof(ppResults[i]->BidPrice2);
- ppResults[i]->BidPrice3_ = atof(ppResults[i]->BidPrice3);
- ppResults[i]->BidPrice4_ = atof(ppResults[i]->BidPrice4);
- ppResults[i]->BidPrice5_ = atof(ppResults[i]->BidPrice5);
- ppResults[i]->AskPrice1_ = atof(ppResults[i]->AskPrice1);
- ppResults[i]->AskPrice2_ = atof(ppResults[i]->AskPrice2);
- ppResults[i]->AskPrice3_ = atof(ppResults[i]->AskPrice3);
- ppResults[i]->AskPrice4_ = atof(ppResults[i]->AskPrice4);
- ppResults[i]->AskPrice5_ = atof(ppResults[i]->AskPrice5);
- ppResults[i]->BidSize1_ = atoi(ppResults[i]->BidSize1);
- ppResults[i]->BidSize2_ = atoi(ppResults[i]->BidSize2);
- ppResults[i]->BidSize3_ = atoi(ppResults[i]->BidSize3);
- ppResults[i]->BidSize4_ = atoi(ppResults[i]->BidSize4);
- ppResults[i]->BidSize5_ = atoi(ppResults[i]->BidSize5);
- ppResults[i]->AskSize1_ = atoi(ppResults[i]->AskSize1);
- ppResults[i]->AskSize2_ = atoi(ppResults[i]->AskSize2);
- ppResults[i]->AskSize3_ = atoi(ppResults[i]->AskSize3);
- ppResults[i]->AskSize4_ = atoi(ppResults[i]->AskSize4);
- ppResults[i]->AskSize5_ = atoi(ppResults[i]->AskSize5);
-
- ppResults[i]->ZXJYGS_ = atoi(ppResults[i]->ZXJYGS);
- ppResults[i]->ZXMRBDJW_ = atof(ppResults[i]->ZXMRBDJW);
- ppResults[i]->ZXMCBDJW_ = atof(ppResults[i]->ZXMCBDJW);
- ppResults[i]->ZTJG_ = atof(ppResults[i]->ZTJG);
- ppResults[i]->DTJG_ = atof(ppResults[i]->DTJG);
- }
-}
-
-
-void DeleteStructs(void*** pppStructs)
-{
if (*pppStructs == nullptr)
return;
@@ -1129,6 +439,7 @@ void DeleteStructs(void*** pppStructs)
int i = 0;
while (ppStructs[i] != 0)
{
+ //delete ppStructs[i];
delete[] ppStructs[i];
ppStructs[i] = nullptr;
@@ -1156,8 +467,13 @@ A341083000|LK|1| |主股东|
8
E015976151|HT|1|88500918| 12982|1| |主股东|
0601605823|HT|0|88500918| 354000|1| |主股东|
+
+8
+101313017766|0026087534|ZL|0| 304300|0|0|主股东|
+101313017766|A511876656|ZL|1| 55005|0|0|主股东|
*/
-void String2GDLB(char* szString, GDLB_STRUCT*** pppResults)
+// 发现不准从登录信息中猜测式解析不准,需要换一种方式
+void String2GDLB(char* szString, GDLB_STRUCT*** pppResults, void* Client)
{
*pppResults = nullptr;
if (szString == nullptr)
@@ -1234,12 +550,94 @@ void String2GDLB(char* szString, GDLB_STRUCT*** pppResults)
ppResults[i]->ZHLB_ = atoi(ppResults[i]->ZHLB);
ppResults[i]->RZRQBS_ = atoi(ppResults[i]->RZRQBS);
+
+ ppResults[i]->Client = Client;
}
delete[] pBuf;
}
-void CharTable2Login(char** ppTable, GDLB_STRUCT*** pppResults)
+// 这种方式假定登录时的格式与直接查询的格式是完全一样的
+void String2GDLB2(FieldInfo_STRUCT** ppFieldInfos, char* szString, GDLB_STRUCT*** pppResults, void* Client)
+{
+ *pppResults = nullptr;
+ if (szString == nullptr)
+ return;
+
+ char* pBuf = new char[strlen(szString) + 1];
+ strcpy(pBuf, szString);
+
+ vector vct;
+
+ // 分好多少列
+ char* token = strtok(pBuf, "\r\n");
+ int i = 0;
+ while (token)
+ {
+ if (i>0)
+ {
+ vct.push_back(token);
+ }
+ token = strtok(nullptr, "\r\n");
+ ++i;
+ }
+
+ int count = vct.size();
+
+ GDLB_STRUCT** ppResults = new GDLB_STRUCT*[count + 1]();
+ ppResults[count] = nullptr;
+ *pppResults = ppResults;
+
+ for (int i = 0; i < count; ++i)
+ {
+ ppResults[i] = new GDLB_STRUCT();
+
+ char* t = strtok(vct[i], "|");
+ int j = 0;
+ while (t)
+ {
+ FieldInfo_STRUCT* pRow = ppFieldInfos[j];
+ switch (pRow->FieldID)
+ {
+ case FIELD_GDDM:
+ strcpy_s(ppResults[i]->GDDM, t);
+ break;
+ case FIELD_GDMC:
+ strcpy_s(ppResults[i]->GDMC, t);
+ break;
+ case FIELD_ZHLB:
+ strcpy_s(ppResults[i]->ZHLB, t);
+ break;
+ case FIELD_ZJZH:
+ strcpy_s(ppResults[i]->ZJZH, t);
+ break;
+ case FIELD_XWDM:
+ strcpy_s(ppResults[i]->XWDM, t);
+ break;
+ case FIELD_RZRQBS:
+ strcpy_s(ppResults[i]->RZRQBS, t);
+ break;
+ case FIELD_BLXX:
+ strcpy_s(ppResults[i]->BLXX, t);
+ break;
+ default:
+ break;
+ }
+
+ t = strtok(nullptr, "|");
+ ++j;
+ }
+
+ ppResults[i]->ZHLB_ = atoi(ppResults[i]->ZHLB);
+ ppResults[i]->RZRQBS_ = atoi(ppResults[i]->RZRQBS);
+
+ ppResults[i]->Client = Client;
+ }
+
+ delete[] pBuf;
+}
+
+void CharTable2Login(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT*** pppResults, void* Client)
{
*pppResults = nullptr;
if (ppTable == nullptr)
@@ -1254,7 +652,7 @@ void CharTable2Login(char** ppTable, GDLB_STRUCT*** pppResults)
int requstid = atoi(p);
if (requstid == REQUEST_GDLB + 1)
{
- String2GDLB(ppTable[i * COL_EACH_ROW + 2], pppResults);
+ String2GDLB2(ppFieldInfos, ppTable[i * COL_EACH_ROW + 2], pppResults, Client);
}
++i;
@@ -1279,5 +677,141 @@ int GetCountStructs(void** ppResults)
return i;
}
+void DeleteRequestRespone(RequestRespone_STRUCT* pRespone)
+{
+ if (pRespone == nullptr)
+ return;
+
+ DeleteTableBody(pRespone->ppResults);
+ DeleteError(pRespone->pErr);
+}
+
#else
+
+
+void OutputCSVTableHeader(FILE* pFile, FieldInfo_STRUCT** ppHeader)
+{
+ if (ppHeader == nullptr || pFile == nullptr)
+ return;
+
+ int i = 0;
+ FieldInfo_STRUCT* pRow = ppHeader[i];
+ while (pRow != 0)
+ {
+ char buf[512] = { 0 };
+ fprintf(pFile, "%d_%s,",//"%d,%s,%d,%d,%d,%d,%d",
+ pRow->FieldID, pRow->FieldName, pRow->a, pRow->b, pRow->Len, pRow->d, pRow->e);
+
+ ++i;
+ pRow = ppHeader[i];
+ }
+ fprintf(pFile, "\n");
+}
+
+
+void OutputCSVTableBody(FILE* pFile, char** ppTable)
+{
+ if (ppTable == nullptr || pFile == nullptr)
+ return;
+
+ // 如果有数据,第一列就不为空
+ int i = 0;
+ int j = 0;
+ char* p = ppTable[i * COL_EACH_ROW + j];
+ while (p != nullptr)
+ {
+ //printf("%d:", i);
+ for (j = 0; j < COL_EACH_ROW; ++j)
+ {
+ p = ppTable[i * COL_EACH_ROW + j];
+ if (p)
+ {
+ fprintf(pFile, "%s,", p);
+ }
+ else
+ break;
+ }
+ fprintf(pFile, "\n");
+ j = 0;
+ ++i;
+ p = ppTable[i * COL_EACH_ROW + j];
+ }
+
+ return;
+}
+
+void OutputCSVTableBody(FILE* pFile, char** ppTable, int count)
+{
+ if (ppTable == nullptr || pFile == nullptr)
+ return;
+
+ for (int i = 0; i < count; ++i)
+ {
+ //printf("%d:", i);
+ for (int j = 0; j < COL_EACH_ROW; ++j)
+ {
+ char* p = ppTable[i * COL_EACH_ROW + j];
+ if (p)
+ {
+ fprintf(pFile, "%s,", p);
+
+ }
+ else
+ break;
+ }
+ fprintf(pFile, "\n");
+ }
+
+ return;
+}
+
+
+void OutputCSVError(FILE* pFile, Error_STRUCT* pErr)
+{
+ if (pErr == nullptr)
+ {
+ return;
+ }
+
+ fprintf(pFile, "%d,%d,%s\n", pErr->ErrType, pErr->ErrCode, pErr->ErrInfo);
+}
+
+void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs)
+{
+ if (pErrs == nullptr)
+ return;
+
+ int i = 0;
+ Error_STRUCT* pErr = pErrs[i];
+ while (pErr != nullptr)
+ {
+ fprintf(pFile, "%d:%d,%d,%s\n", i, pErr->ErrType, pErr->ErrCode, pErr->ErrInfo);
+
+ ++i;
+ pErr = pErrs[i];
+ }
+}
+
+void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs, int count)
+{
+ if (pErrs == nullptr)
+ {
+ return;
+ }
+
+ for (int i = 0; i < count; ++i)
+ {
+ Error_STRUCT* pErr = pErrs[i];
+ if (pErr)
+ {
+ fprintf(pFile, "%d:%d,%d,%s\n", i, pErr->ErrType, pErr->ErrCode, pErr->ErrInfo);
+ }
+ else
+ fprintf(pFile, "\n");
+ }
+}
+
+
+
+
#endif
\ No newline at end of file
diff --git a/include/Tdx/tdx_function.h b/include/Tdx/tdx_function.h
index 1f96d2f..1ffd093 100644
--- a/include/Tdx/tdx_function.h
+++ b/include/Tdx/tdx_function.h
@@ -14,18 +14,24 @@ TDXAPI_API FieldInfo_STRUCT** CopyTableHeader(FieldInfo_STRUCT** ppHeader);
#else
#define TDXAPI_API __declspec(dllimport)
-#endif
+// 在编写代码时发现FILE不能跨DLL
+void OutputCSVTableHeader(FILE* pFile, FieldInfo_STRUCT** ppHeader);
+
+void OutputCSVTableBody(FILE* pFile, char** ppTable);
+void OutputCSVTableBody(FILE* pFile, char** ppTable, int count);
-// 得到时间
-//TDXAPI_API void GetUpdateTime_HH_mm_ss(char* UpdateTime, int* _HH, int* _mm, int* _ss);
+void OutputCSVError(FILE* pFile, Error_STRUCT* pErr);
+void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs);
+void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs, int count);
+
+#endif
//////////////////////////////////////////////////////////////////////////
// 表头处理
// 打印表头信息,实际是一个指针数组,指针指向字段信息,数组最后一个指针为null
TDXAPI_API void PrintTableHeader(FieldInfo_STRUCT** ppHeader);
-TDXAPI_API void OutputCSVTableHeader(FILE* pFile, FieldInfo_STRUCT** ppHeader);
// 根据字段名得到列索引
TDXAPI_API int GetIndexByFieldName(FieldInfo_STRUCT** ppHeader,char* FieldName);
@@ -41,9 +47,6 @@ TDXAPI_API int GetCountTableHeader(FieldInfo_STRUCT** ppHeader);
TDXAPI_API void PrintTableBody(char** ppTable);
TDXAPI_API void PrintTableBody(char** ppTable, int count);
-TDXAPI_API void OutputCSVTableBody(FILE* pFile, char** ppTable);
-TDXAPI_API void OutputCSVTableBody(FILE* pFile, char** ppTable, int count);
-
// 取出的数据看情况是否要删除
TDXAPI_API void DeleteTableBody(char** ppTable);
TDXAPI_API void DeleteTableBody(char** ppTable, int count);
@@ -58,32 +61,24 @@ TDXAPI_API void PrintError(Error_STRUCT* pErr);
TDXAPI_API void PrintErrors(Error_STRUCT** pErrs);
TDXAPI_API void PrintErrors(Error_STRUCT** pErrs, int count);
-TDXAPI_API void OutputCSVError(FILE* pFile, Error_STRUCT* pErr);
-TDXAPI_API void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs);
-TDXAPI_API void OutputCSVErrors(FILE* pFile, Error_STRUCT** pErrs, int count);
-
TDXAPI_API void DeleteError(Error_STRUCT* pErr);
TDXAPI_API void DeleteErrors(Error_STRUCT** pErrs);
TDXAPI_API void DeleteErrors(Error_STRUCT** pErrs, int count);
// 得到错误数
TDXAPI_API int GetCountErrors(Error_STRUCT** pErrs);
-
//////////////////////////////////////////////////////////////////////////
-// 将字符串表转成特定对
-TDXAPI_API void CharTable2GDLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT*** pppResults);
+TDXAPI_API int GetCountStructs(void** ppResults);
-TDXAPI_API void CharTable2WTLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, WTLB_STRUCT*** pppResults);
+TDXAPI_API void DeleteStructs(void*** pppStructs);
+//////////////////////////////////////////////////////////////////////////
+// 股东列表处理,用于授权部分
+TDXAPI_API void CharTable2GDLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT*** pppResults, void* Client);
-TDXAPI_API void CharTable2CJLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, CJLB_STRUCT*** pppResults);
+TDXAPI_API void CharTable2Login(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GDLB_STRUCT*** pppResults, void* Client);
-TDXAPI_API void CharTable2GFLB(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, GFLB_STRUCT*** pppResults);
+TDXAPI_API void DeleteRequestRespone(RequestRespone_STRUCT* pRespone);
-TDXAPI_API void CharTable2ZJYE(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, ZJYE_STRUCT*** pppResults);
-TDXAPI_API void CharTable2HQ(FieldInfo_STRUCT** ppFieldInfos, char** ppTable, HQ_STRUCT*** pppResults);
-TDXAPI_API void CharTable2Login(char** ppTable, GDLB_STRUCT*** pppResults);
-TDXAPI_API int GetCountStructs(void** ppResults);
-TDXAPI_API void DeleteStructs(void*** pppStructs);
\ No newline at end of file
diff --git a/include/Tdx/tdx_request.h b/include/Tdx/tdx_request.h
index 270205d..d85dc69 100644
--- a/include/Tdx/tdx_request.h
+++ b/include/Tdx/tdx_request.h
@@ -28,7 +28,7 @@ _卖一量|921_卖二量|922_卖三量|923_卖四量|924_卖五量|100_交易所
132_币种|300_资金余额|301_可用资金|310_总资产|302_可取资金|121_资金帐号|1213_保
留信息|
*/
-#define REQUEST_ZJYE 104 // 资金余额
+#define REQUEST_ZJYE 104 // 资金余额,信用与普通的区别是121_资金帐号不同
/*
120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|140_
证券代码|130_买卖标志|949_当前价|301_可用资金|166_委托方式|510_合约代码|513_开平
@@ -41,7 +41,7 @@ _卖一量|921_卖二量|922_卖三量|923_卖四量|924_卖五量|100_交易所
201_可卖数量|301_可用资金|1163_融资负债|1150_融资利息|1159_融资管理费|251_提示信
息1|1213_保留信息|
*/
-#define REQUEST_110 110
+#define REQUEST_110 110 // 限额查询,基本就是一个下单指令
/*
120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|100_
@@ -69,6 +69,15 @@ UID|5254_信用交易标识|5255_会话号|5256_客户代码|
*/
#define REQUEST_WT 202 // 委托
/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|130_
+买卖标志|140_证券代码|144_委托数量|145_委托价格|5250_客户群组|5251_客户营业部|52
+52_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本号
+|
+===============
+146_委托编号|1213_保留信息|
+*/
+#define REQUEST_ZGHS 204 // 转股回售
+/*
120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207
_起始序号|126_开始日期|127_终止日期|1227_参数|101_交易所名称|5250_客户群组|5251_
客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代
@@ -131,7 +140,7 @@ _起始序号|140_证券代码|113_操作标志|1228_模式|1299_功能版本|10
5_最新市值|204_摊簿浮动盈亏|232_实现盈亏|230_参考盈亏比例(%)|160_冻结数量|123_股
东代码|100_交易所代码|101_交易所名称|1213_保留信息|
*/
-#define REQUEST_GFLB 1114 // 股份列表
+#define REQUEST_GFLB 1114 // 股份列表,信用与普通的区别是121_资金帐号不同
/*
120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|113_
操作标志|299_对方分支代码|298_对方客户代码|243_对方资金帐号|158_对方密码|361_升
@@ -160,7 +169,7 @@ _起始序号|140_证券代码|113_操作标志|1228_模式|1299_功能版本|10
/*
*/
-#define REQUEST_BDQSD_QQ 1294 // 备兑券锁定/解锁/撤单
+#define REQUEST_WT_QQ 1294 // 备兑券锁定/解锁/撤单
/*
120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|100_
交易所代码|294_附加账号|234_类型|140_证券代码|391_产品代码|510_合约代码|1207_起
@@ -285,6 +294,109 @@ CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|
*/
#define REQUEST_CYXYCX_QQ 1320 // 可用合约查询
+
+#define REQUEST_WT_HGT 1450 // 委托,沪港通
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|603_
+交易类型|601_ETF代码|140_证券代码|145_委托价格|604_认购数量|245_对方帐号类别|244
+_对方股东代码|485_推荐人代码|234_类型|5250_客户群组|5251_客户营业部|5252_硬盘序
+列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本号|
+===============
+146_委托编号|1213_保留信息|
+*/
+#define REQUEST_ETF_SGSH 3000 // ETF申购赎回
+
+//////////////////////////////////////////////////////////////////////////
+// 融资融券
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|140_证券代码|130_买卖标志|166_委托方式|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本 号|
+===============
+5560_信用资金额度|5563_数值|5566_--|5561_融资信息|5564_数值|5567_--|5562_融券信息|5565_数值|1213_保留信息|
+*/
+#define REQUEST_XYZCXC 3200 // 信用资产查询
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|130_买卖标志|166_委托方式|140_证券代码|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本 号|
+===============
+140_证券代码|141_证券名称|5982_可融数量|546_保证金比例|1187_股票折算率|5546_融券利率|101_交易所名称|1213_保留信息|
+*/
+#define REQUEST_RQBDZQLB 3202 // 融券标的证券列表
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|130_买卖标志|166_委托方式|140_证券代码|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本 号|
+===============
+140_证券代码|141_证券名称|1190_融资保证金比例|1191_融券保证金比例|5545_融资利率|5546_融券利率|1187_股票折算率|125_帐号类别|101_交易所名称|1213_保留信息|
+*/
+#define REQUEST_RZBDZQLB 3216 // 融资标的证券列表
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|140_证券代码|1287_起始行号|1288_请求行数|1286_定位字串|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客 户代码|5257_版本号|
+===============
+140_证券代码|141_证券名称|1187_股票折算率|125_帐号类别|101_交易所名称|1213_保留信息|
+*/
+#define REQUEST_DBPZQCX 3220 // 担保品证券查询
+
+/*
+120_客户代码|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|140_证券代码|1287_起始行号|1288_请求行数|1286_定位字串|5251_用户令牌|5252_主(资金)账号|5253_(资金)账号列表|5254_(开户)超过18个月|5255_普通(资金)账号|5256_硬盘代码|5257_实际营业部|
+===============
+140_证券代码|141_证券名称|546_保证金比例|1217_备注|1231_显示颜色|1213_保留信息|
+*/
+#define REQUEST_RZMRBDCX 3230 // 融资买入标的查询
+
+/*
+120_客户代码|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|140_证券代码|1287_起始行号|1288_请求行数|1286_定位字串|130_买卖标志|5251_用户令牌|5252_主(资金)账号|5253_(资金)账号列表|5254_(开户)超过18个月|5255_ 普通(资金)账号|5256_硬盘代码|5257_实际营业部|
+===============
+140_证券代码|141_证券名称|201_可用股份|546_保证金比例|125_帐号类别|101_交易所名称|1213_保留信息|
+*/
+#define REQUEST_RQMCBDCX 3232 // 融券卖出标的查询
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本号|
+===============
+169_流水号|522_开仓日期|1176_平仓日期|130_买卖标志|131_委托类别|140_证券代码|141_证券名称|5584_负债数量|622_保留数量|5549_已还数量|5552_当日已还数量|125_帐号类别|101_交易所名称|123_股东代码|5605_浮动盈亏|1213_保留信息|
+*/
+#define REQUEST_MQHQCX 3234 // 买券还券查询,130=71
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本号|
+===============
+169_流水号|522_开仓日期|1176_平仓日期|130_买卖标志|131_委托类别|140_证券代码|141_证券名称|5584_负债数量|622_保留数量|5549_已还数量|5552_当日已还数量|125_帐号类别|101_交易所名称|123_股东代码|5605_浮动盈亏|1213_保留信息|
+*/
+#define REQUEST_RQHYXXLB 3238 // 现券还券,融券合约信息列表,130=73
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|130_买卖标志|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本号|
+===============
+169_流水号|522_开仓日期|1176_平仓日期|130_买卖标志|131_委托类别|140_证券代码|141_证券名称|5547_负债金额|5555_尚欠金额|5550_还款金额|5553_当日已还金额|125_帐号类别|101_交易所名称|123_股东代码|5605_浮动盈亏|1213_保留信息|
+*/
+#define REQUEST_XJHKLB 3246 // 现金还款,130=75
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|5250_客户群组|5251_客户营业部|5252_硬盘序列号|5253_CPUID|5254_信用交易标识|5255_会话号|5256_客户代码|5257_版本号|
+===============
+169_流水号|522_开仓日期|1176_平仓日期|130_买卖标志|131_委托类别|140_证券代码|141_证券名称|5547_负债金额|5555_尚欠金额|5550_还款金额|5553_当日已还金额|125_帐号类别|101_交易所名称|123_股东代码|5605_浮动盈亏|322_所需金额|1213_保留信息|
+*/
+#define REQUEST_FZHYXXLB 3248 // 卖券还款,负债合约信息列表,130=76
+
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|5250_CPU|5251_HD|5252_LIP|5253_系统节点编号|5254_真实营业部代码|5255_客户姓名|5256_客户代码|5257_股东代码表|5258_GUID|5261_机器绑定信息|5262_客户权限|5259_认证编号|
+===============
+140_证券代码|141_证券名称|201_可卖数量|546_保证金比例|125_帐号类别|100_交易所代码|1213_保留信息|
+*/
+#define REQUEST_RQMCBDCX_ZRT 3410 // 转融通融券卖出标的查询,130=24
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|5250_CPU|5251_HD|5252_LIP|5253_系统节点编号|5254_真实营业部代码|5255_客户姓名|5256_客户代码|5257_股东代码表|5258_GUID|5261_机器绑定信息|5262_客户权限|5259_认证编号|
+===============
+522_开仓日期|759_合约编号|140_证券代码|141_证券名称|546_保证金比例|146_委托编号|145_委托价格|144_委托数量|5551_合约开仓 数量|5552_合约开仓金额|5553_合约开仓费用|5541_合约状态|10031_未还金额|10032_未还数量|5554_未还合约费用|5555_未还合约利息|10033_已还利息|10034_已还数量|10035_已还金额|5556_合约总利息|541_保证金|622_保留数量|5557_合约年利率|10036_归还截止日期|5559_了结日期|125_帐号类别|101_交易所名称|322_所需金额|50_(参数)操作数据|1233_句柄|1213_保留信息|
+*/
+#define REQUEST_MQHQBDCX_ZRT 3458 // 转融通买券还券标的查询,130=34
+/*
+120_客户号|134_交易密码|121_资金帐号|125_帐号类别|123_股东代码|110_委托方式|1207_起始序号|5250_CPU|5251_HD|5252_LIP|5253_系统节点编号|5254_真实营业部代码|5255_客户姓名|5256_客户代码|5257_股东代码表|5258_GUID|5261_机器绑定信息|5262_客户权限|5259_认证编号|
+===============
+522_开仓日期|759_合约编号|140_证券代码|141_证券名称|546_保证金比例|146_委托编号|145_委托价格|144_委托数量|5551_合约开仓 数量|5552_合约开仓金额|5553_合约开仓费用|5541_合约状态|10031_未还金额|10032_未还数量|5554_未还合约费用|5555_未还合约利息|10033_已还利息|10034_已还数量|10035_已还金额|5556_合约总利息|541_保证金|622_保留数量|5557_合约年利率|10036_归还截止日期|5559_了结日期|125_帐号类别|101_交易所名称|322_所需金额|50_(参数)操作数据|1233_句柄|1213_保留信息|
+*/
+#define REQUEST_XQHQBDCX_ZRT 3462 // 转融通现券还券标的查询,130=36
+
//////////////////////////////////////////////////////////////////////////
// 登录部分
diff --git a/include/Tdx/tdx_struct.h b/include/Tdx/tdx_struct.h
index b556680..1e96961 100644
--- a/include/Tdx/tdx_struct.h
+++ b/include/Tdx/tdx_struct.h
@@ -3,6 +3,7 @@
#ifndef _TDX_STRUCT_H_
#define _TDX_STRUCT_H_
+#define COL_EACH_ROW (64) //每行多少例,相当重要
// 字段信息,通达信内部定义的,非自定义
struct FieldInfo_STRUCT
@@ -22,24 +23,96 @@ struct Error_STRUCT
int ErrType;
int ErrCode;
char ErrInfo[256];
+
+ void* Client; // 多账号
+};
+
+// 请求
+// 响应,有两种类型
+// 一个请求只返回一行数据
+// 一个请求返回多行数据
+struct RequestRespone_STRUCT
+{
+ //请求类型
+ int requestType;
+ int requestID;
+ // 多行内容
+ char pContent[1024];
+ // 请求大小
+ int size;
+
+ void* Client; // 多账号
+ char khh[64];
+
+ // 表头
+ FieldInfo_STRUCT** ppFieldInfo;
+ // 错误
+ Error_STRUCT* pErr;
+ // 多行内容
+ char** ppResults;
+
+ void* pSend;
+ // API内部使用的字段,请不要动
+ void* pUserData_Private;
+ // API外部使用的字段,用来方便开发
+ void* pUserData_Public;
+ // API外部使用的字段,用来方便开发
+ void* pUserData_Public2;
};
// 委托
struct Order_STRUCT
{
+ char KHH[32]; // 120_客户号
char ZJZH[32]; // 121_资金帐号
char GDDM[32]; // 123_股东代码
char ZQDM[32]; // 140_证券代码
int ZHLB; // 125_帐号类别
int RZRQBS; // 281_融资融券标识
double Price; // 145_委托价格
- long Qty; // 144_委托数量
+ double Qty; // 144_委托数量
long MMBZ; // 130_买卖标志
long WTFS; // 166_委托方式
+ int CZBZ; // 113_操作标志
char ZHLB_[2]; // 125_帐号类别
// 下完单后用来回填
char WTBH[32]; // 146_委托编号
+
+ int requestType; // 请求类型
+
+ void* Client; // 多账号
+};
+
+struct CancelOrder_STRUCT
+{
+ char KHH[32]; // 120_客户号
+ char ZJZH[32]; // 121_资金帐号
+ char ZHLB[32]; // 125_帐号类别
+ char GDDM[32]; // 123_股东代码
+ char ZQDM[32]; // 140_证券代码
+ char WTBH[32]; // 146_委托编号
+ char JYSDM[32]; // 100_交易所代码
+ char XWDM[32]; // 173_席位代码
+
+ void* Client; // 多账号
+};
+
+struct ReqQueryData_STRUCT
+{
+ char KHH[32]; // 120_客户号
+ char ZJZH[32]; // 121_资金帐号
+ char GDDM[32]; // 123_股东代码
+ char KSRQ[32];
+ char ZZRQ[32];
+ char ZQDM[32];
+ int RZRQBS; // 281_融资融券标识
+
+ bool bAll;
+
+ void* Client; // 多账号
+ //请求类型
+ int requestType;
};
// 股东列表
@@ -56,18 +129,22 @@ struct GDLB_STRUCT
int ZHLB_; // 125_帐号类别
int RZRQBS_; // 281_融资融券标识
+
+ void* Client; // 多账号
};
// 当日委托/历史委托=委托列表
struct WTLB_STRUCT
{
+ char KHH[32]; // 120_客户号
+ char ZJZH[32]; // 121_资金帐号
char WTRQ[32]; // 142_委托日期
char WTSJ[32]; // 143_委托时间
char GDDM[32]; // 123_股东代码
char ZQDM[32]; // 140_证券代码
char ZQMC[32]; // 141_证券名称
- char MMBZ[32]; // 130_买卖标志
- char WTLB[32]; // 131_委托类别
+ char MMBZ[32]; // 130_买卖标志 *由于很多特别的指令都是3,只能想法解析中文
+ char WTLB[32]; // 131_委托类别 *
char JYSDM[32]; // 100_交易所代码
char WTJG[32]; // 145_委托价格
char WTSL[32]; // 144_委托数量
@@ -75,15 +152,22 @@ struct WTLB_STRUCT
char CJSL[32]; // 152_成交数量
char CDSL[32]; // 162_撤单数量
char WTBH[32]; // 146_委托编号
- char BJFS[32]; // 194_报价方式
+ char WTFS[32]; // 166_委托方式 *有些版本没有此字段,只能想法解析中文
+ char BJFS[32]; // 194_报价方式 *
char ZTSM[32]; // 147_状态说明
char DJZJ[32]; // 161_冻结资金
char BLXX[32]; // 1213_保留信息
+ //char WTJE[32]; // 148_委托金额
+ //char CJJE[32]; // 154_成交金额
+ char ZHLB[32]; // 125_帐号类别
+
+
int WTRQ_;
int WTSJ_;
- char MMBZ_;
- char JYSDM_;
+ int MMBZ_;
+ int WTLB_;
+ int JYSDM_;
double WTJG_;
int WTSL_;
double CJJG_;
@@ -92,6 +176,13 @@ struct WTLB_STRUCT
double DJZJ_;
int ZTSM_;
int BJFS_;
+ int WTFS_;
+
+ //double WTJE_;
+ //double CJJE_;
+ int ZHLB_;
+
+ void* Client; // 多账号
};
// 成交列表
@@ -118,8 +209,8 @@ struct CJLB_STRUCT
int CJRQ_;
int CJSJ_;
- char MMBZ_;
- char WTLB_;
+ int MMBZ_;
+ int WTLB_;
double CJJG_;
int CJSL_;
double FSJE_;
@@ -128,7 +219,9 @@ struct CJLB_STRUCT
double YHS_;
double GHF_;
double CJF_;
- char CDBZ_;
+ int CDBZ_;
+
+ void* Client; // 多账号
};
@@ -157,6 +250,8 @@ struct GFLB_STRUCT
double DQJ_;
double ZXSZ_;
double DJSL_;
+
+ void* Client; // 多账号
};
// 资金余额
@@ -175,6 +270,8 @@ struct ZJYE_STRUCT
double ZZC_;
double KQZJ_;
double ZXSZ_;
+
+ void* Client; // 多账号
};
struct HQ_STRUCT
@@ -246,6 +343,8 @@ struct HQ_STRUCT
double ZXMCBDJW_; // 227_最小卖出变动价位
double ZTJG_; // 940_涨停价格
double DTJG_; // 941_跌停价格
+
+ void* Client; // 多账号
};
//
@@ -260,6 +359,8 @@ struct DLJG_STRUCT
char COL1[128];
char COL2[128];
char COL3[128];
+
+ void* Client; // 多账号
};
#endif
diff --git a/include/Tdx/win32/TdxApi.dll b/include/Tdx/win32/TdxApi.dll
index 8dcc513..d8175e6 100644
Binary files a/include/Tdx/win32/TdxApi.dll and b/include/Tdx/win32/TdxApi.dll differ
diff --git a/include/Tdx/win32/TdxApi.lib b/include/Tdx/win32/TdxApi.lib
index 6edd127..68cc723 100644
Binary files a/include/Tdx/win32/TdxApi.lib and b/include/Tdx/win32/TdxApi.lib differ
diff --git a/include/Tdx/win32/TdxApiDemo.exe b/include/Tdx/win32/TdxApiDemo.exe
index 7153582..2e613bd 100644
Binary files a/include/Tdx/win32/TdxApiDemo.exe and b/include/Tdx/win32/TdxApiDemo.exe differ
diff --git a/include/Tdx/win32/TdxInjector.exe b/include/Tdx/win32/TdxInjector.exe
index 66f2dc3..889ead3 100644
Binary files a/include/Tdx/win32/TdxInjector.exe and b/include/Tdx/win32/TdxInjector.exe differ
diff --git a/include/Tdx/win32/login.ini b/include/Tdx/win32/login.ini
index d14350c..4057ad7 100644
--- a/include/Tdx/win32/login.ini
+++ b/include/Tdx/win32/login.ini
@@ -3,4 +3,6 @@ TdxPath=D:\new_hbzq_qq\
LuaFile=D:\new_hbzq_qq\Login.lua
[LOGIN]
Account=05000000000
-Password=123456
\ No newline at end of file
+Password=123456
+Code=
+ZJZH=
\ No newline at end of file
diff --git "a/include/Tdx/win32/\345\256\242\346\210\267\345\256\232\345\210\266\347\211\210\351\200\232\350\276\276\344\277\241\346\216\245\345\217\243\345\260\201\350\243\205_\344\275\277\347\224\250\346\211\213\345\206\214.doc" "b/include/Tdx/win32/\345\256\242\346\210\267\345\256\232\345\210\266\347\211\210\351\200\232\350\276\276\344\277\241\346\216\245\345\217\243\345\260\201\350\243\205_\344\275\277\347\224\250\346\211\213\345\206\214.doc"
new file mode 100644
index 0000000..e75fb10
Binary files /dev/null and "b/include/Tdx/win32/\345\256\242\346\210\267\345\256\232\345\210\266\347\211\210\351\200\232\350\276\276\344\277\241\346\216\245\345\217\243\345\260\201\350\243\205_\344\275\277\347\224\250\346\211\213\345\206\214.doc" differ
diff --git a/include/UFX/data_def.h b/include/UFX/data_def.h
new file mode 100644
index 0000000..812e313
--- /dev/null
+++ b/include/UFX/data_def.h
@@ -0,0 +1,147 @@
+#ifndef DATA_DEF_H_
+#define DATA_DEF_H_
+
+//33100 (ڲṹ->ģ)
+struct CMarketInfo_UFX
+{
+ char quote_type; //(0-ͨ1-)
+ int quote_length; //ݳȣӵ3ֶοʼһֶμ㳤ȣ
+ int update_time; //ʱ(eg:144510500,144510500)
+ int quote_index; //
+ char futu_exch_type[5]; //
+ char commodity_type[7]; //Ʒ
+ char contract_code[31]; //Լ
+ double pre_settlement_price; //ս
+ double pre_close_price; //̼
+ double pre_open_interest; //տ
+ double pre_delta; //ʵ
+ double futu_open_price; //̼
+ double futu_last_price; //¼۸
+ double buy_high_price; //
+ double buy_high_amount; //
+ double sale_low_price; //ۼ۸
+ double sale_low_amount; //
+ double futu_high_price; //
+ double futu_low_price; //ͼ
+ double uplimited_price; //ͣ
+ double downlimited_price; //ͣ
+ double average_price; //
+ double change_direction; //
+ double business_amount; //ɽ
+ double open_interest; //ܳ
+ double business_balance; //ɽ
+ double futu_close_price; //̼
+ double settlement_price; //
+ int actionday; //ǰ(yyyymmdd)
+};
+
+//33101 ίлر
+struct COrderRspInfo_UFX
+{
+ char entrust_no[10]; //ίк
+ char futures_account[13]; //ױ
+ char futu_exch_type[4]; //F1-֣F2-F3Ϻ-F4н
+ char contract_code[31]; //Լ
+ char entrust_bs; //ʶ(1- 2-)
+ char entrust_direction; //ƽʶ(1-2-ƽ4-ƽ֣Ϊ)
+ char hedge_type; //ױʶ(0-Ͷ1-ױ2-)
+ char fund_account[19]; //ʽ˻
+ char futu_report_no[22]; //ص
+ char firm_no[22]; //Ա
+ char operator_no[19]; //Ա
+ int client_group; //ͻ
+ double entrust_amount; //ί
+ double business_total_amount; //ɽ
+ double cacel_amount; //
+ double entrust_price; //ίм۸
+ char entrust_status; //ί״̬
+ int branch_no; //Ӫҵ
+ int batch_no; //ί
+ char futu_entrust_type; //ί
+ int amount_per_hand; //Լ
+ char forceclose_reason; //ǿƽԭ
+ char init_date[9]; //
+ char curr_time[9]; //ǰʱ
+ char confirm_no[21]; //
+ char entrust_occasion[33]; //ίг
+ double entrust_price2; //ί(ί۸)
+ char futu_entrust_prop[4]; //ڻί
+ char arbitrage_code[31]; //ί
+ char entrust_reference[33]; //ί
+ char error_message[33]; //˵
+ char position_str[33]; //λ
+ //int request_id; //
+ //int session_id; //Ự
+};
+
+//33101 ɽر
+struct CRealRspInfo_UFX
+{
+ char entrust_no[10]; //ίк
+ char futures_account[13]; //ױ
+ char futu_exch_type[5]; //
+ char business_no[10]; //ɽ
+ char contract_code[31]; //Լ
+ char entrust_bs; //ʶ(1- 2-)
+ char entrust_direction; //ƽʶ(1-2-ƽ3-ƽ Ϊ)
+ double business_price; //ɽ۸
+ double business_amount; //ɽ
+ char hedge_type; //ױʶ(0-Ͷ1-ױ2-)
+ char fund_account[19]; //ʽ˻
+ char futu_report_no[22]; //ص
+ char firm_no[22]; //Ա
+ char operator_no[18]; //Ա
+ int client_group; //ͻ
+ double entrust_amount; //ί
+ double business_total_amount; //ɽ
+ double cacel_amount; //
+ double entrust_price; //ίм۸
+ char entrust_status; //ί״̬
+ int branch_no; //Ӫҵ
+ int batch_no; //ί
+ char futu_entrust_type; //ί
+ int amount_per_hand; //Լ
+ char forceclose_reason; //ǿƽԭ
+ char init_date[9]; //
+ char business_time[9]; //ɽʱ
+ char confirm_no[21]; //
+ char entrust_occasion[33]; //ίг
+ double entrust_price2; //ί(ί۸)
+ char futu_entrust_prop[4]; //ڻί
+ char arbitrage_code[31]; //ί
+ char entrust_reference[33]; //ί
+ char position_str[33]; //λ
+ //int request_id; //(ʱ)
+ //int session_id; //Ự(ʱ)
+};
+
+//33102 (ڲṹ->ģ)
+struct CArgMarketInfo_UFX
+{
+ char arbicontract_id[31]; //Լ
+ char futu_exch_type[5]; //
+ char first_code[31]; //һ
+ char second_code[31]; //ڶ
+ char weave_type; //1-SPD, 2 -IPS
+ double buy_price; //
+ double buy_amount; //
+ double buy_total_amount; //ȫ
+ double sale_price; //ۼ۸
+ double sale_amount; //
+ double sale_total_amount; //ȫ
+ double futu_high_price; //
+ double futu_low_price; //ͼ
+ double uplimited_price; //ͣ۸
+ double downlimited_price; //ͣ۸
+};
+
+//33105 ״̬֪ͨ
+struct CExchangeStatus_UFX
+{
+ char futu_exch_type[5]; //F1-֣F2-F3Ϻ-F4?
+ char exch_status; //״̬0ӶϿ,1ǰ, 2ϱ
+ char entrade_flag; //Ƿɽף0ɽף1ɽף
+};
+
+#endif //DATA_DEF_H_
+
diff --git a/include/UFX/t2sdk_interface.h b/include/UFX/t2sdk_interface.h
new file mode 100644
index 0000000..eea68e5
--- /dev/null
+++ b/include/UFX/t2sdk_interface.h
@@ -0,0 +1,1432 @@
+/** @file
+* T2_SDKͷļ
+* @author T2С
+* @author ӹɷ˾
+* @version 1.0.0.2
+* @date 20090327
+*/
+
+#include
+#include
+
+#ifndef _T2SDK_INTERFACE_H
+# define _T2SDK_INTERFACE_H
+
+#ifdef _WIN32
+ #if !defined( FUNCTION_CALL_MODE )
+ #define FUNCTION_CALL_MODE __stdcall
+ #endif
+#else
+ #define FUNCTION_CALL_MODE
+#endif
+
+struct IKnown
+{
+ virtual unsigned long FUNCTION_CALL_MODE QueryInterface(const char *iid, IKnown **ppv) = 0;
+
+ virtual unsigned long FUNCTION_CALL_MODE AddRef() = 0;
+
+ virtual unsigned long FUNCTION_CALL_MODE Release() = 0;
+};
+
+
+#include
+
+#ifdef _WIN32
+typedef unsigned int uint32;
+#else
+#include
+#if defined(__linux__)
+#include
+#endif
+typedef uint32_t uint32;
+#endif
+
+///ESBȣΪɼַܰʵָոֺ;
+#define IDENTITY_NAME_LENGTH 32
+///ʵռλ
+#define ID_LENGTH 4
+///ڵȫ,ʱʹchar sName[ID_STR_LEN+1]
+#define ID_STR_LEN (IDENTITY_NAME_LENGTH + ID_LENGTH + 1)
+
+
+// ӿ,ʱʹchar sName[PLUGINID_LENGTH+1]
+#define PLUGINID_LENGTH 256
+// ʵ,ʱʹchar sName[PLUGIN_NAME_LENGTH+1]
+#define PLUGIN_NAME_LENGTH (PLUGINID_LENGTH+ID_LENGTH+1)
+// .ʱʹchar sName[SVR_NAME_LENGTH+1]
+#define SVR_NAME_LENGTH 256
+// ʵ.ʱʹchar sName[PLUGINID_NAME_LENGTH+1]
+#define SVRINSTANCE_NAME_LENGTH (SVR_NAME_LENGTH+ID_LENGTH+1)
+//ҵϢ
+
+
+//
+#define REQUEST_PACKET 0
+//Ӧ
+#define ANSWER_PACKET 1
+//20110302 xuxp ·ϢĽṹ嶨
+typedef struct tagRouteInfo
+{
+ char ospfName[ID_STR_LEN+1];
+ char nbrName[ID_STR_LEN+1];
+ char svrName[SVRINSTANCE_NAME_LENGTH+1];
+ char pluginID[PLUGIN_NAME_LENGTH+1];
+ int connectID;
+ int memberNO;
+
+ tagRouteInfo()
+ {
+ memset(this,0,sizeof(tagRouteInfo));
+ }
+}Route_Info;
+
+
+//20101228 xuxp Ϊ˷ͺͷضϢӵĽṹĶ
+typedef struct tagRequestData
+{
+ int sequeceNo;
+ int issueType;
+ void* lpKeyInfo;
+ int keyInfoLen;
+ void* lpFileHead;
+ int fileHeadLen;
+ int packetType;//20100111 xuxp ¼ӵİ
+ Route_Info routeInfo;//20110302 xuxp ·Ϣ
+}REQ_DATA, *LPREQ_DATA;
+typedef struct tagRespondData
+{
+ int functionID;
+ int returnCode;
+ int errorNo;
+ char* errorInfo;
+ int issueType;
+ void* lpKeyInfo;
+ int keyInfoLen;
+ Route_Info sendInfo;//20110302 xuxp ӦӷϢ
+}RET_DATA, *LPRET_DATA;
+
+
+///ӿ
+struct IF2ResultSet : public IKnown
+{
+
+ ///ȡֶ
+ /**@return ֶ.
+ */
+ virtual int FUNCTION_CALL_MODE GetColCount()=0;
+
+ ///ȡֶ
+ /** @param column:ֶ(0Ϊ)
+ * @return ֶ ±Խ NULL
+ */
+ virtual const char * FUNCTION_CALL_MODE GetColName(int column)=0;
+
+ //ȡֶ
+ /** @param column:ֶ(0Ϊ)
+ * @return:泣;±Խ -1
+ */
+ virtual char FUNCTION_CALL_MODE GetColType(int column)=0;
+
+
+ ///ȡֶСλ
+ /** @param column:ֶ(0Ϊ)
+ * @return int ֶСλ ±Խ -1
+ */
+ virtual int FUNCTION_CALL_MODE GetColScale(int column)=0;
+
+ //ȡֶݵ.
+ /** @param column:ֶ(0Ϊ)
+ * @return int ֶο ±Խ -1
+ */
+ virtual int FUNCTION_CALL_MODE GetColWidth(int column) = 0;
+
+ ///ȡֶӦֶ
+ /**@param columnName: ֶ
+ *@return ֶ. ڷ-1
+ */
+ virtual int FUNCTION_CALL_MODE FindColIndex(const char * columnName)=0;
+
+ //
+ //ֶ(0Ϊ)ȡֵֶ(ַ)
+ /**@param column:ֶ(0Ϊ)
+ *@return ֵֶַ,±Խ緵NULL
+ */
+ virtual const char * FUNCTION_CALL_MODE GetStrByIndex(int column)=0;
+
+ //ֶȡֵֶ(ַ)
+ /**@param columnName: ֶ
+ *@return ֵֶַ,ڷNULL
+ */
+ virtual const char * FUNCTION_CALL_MODE GetStr(const char * columnName)=0;
+
+ //ֶ(0Ϊ)ȡֵֶ
+ /**@param column:ֶ(0Ϊ)
+ *@return ֵֶַ,±Խ緵'\0'.
+ */
+ virtual char FUNCTION_CALL_MODE GetCharByIndex(int column)=0;
+
+ //ֶȡֵֶ
+ /**@param columnName: ֶ
+ *@return ֵֶַ,ڷ'\0'
+ */
+ virtual char FUNCTION_CALL_MODE GetChar(const char * columnName)=0;
+
+ //ֶţȡֵֶ
+ /**@param column:ֶ(0Ϊ)
+ *@return doubleֵֶ,±Խ緵0
+ */
+ virtual double FUNCTION_CALL_MODE GetDoubleByIndex( int column)=0;
+
+ ///ֶȡֵֶ
+ /**@param columnName:ֶ
+ *@return doubleֵֶ,ڷ0
+ */
+ virtual double FUNCTION_CALL_MODE GetDouble(const char * columnName)=0;
+
+ ///ֶţȡֵֶ
+ /**@param column:ֶ(0Ϊ)
+ *@return intֵֶ,±Խ緵0
+ */
+ virtual int FUNCTION_CALL_MODE GetIntByIndex(int column)=0;
+
+ ///ֶȡֵֶ
+ /**@param columnName:ֶ
+ *@return intֵֶ,ڷ0
+ */
+ virtual int FUNCTION_CALL_MODE GetInt(const char * columnName)=0;
+
+ ///ֶŻֵֶ,
+ /**@param column: ֶ(0Ϊ)
+ *@param lpRawLen: [out]ݳ
+ *@return : ַ
+ */
+ virtual void * FUNCTION_CALL_MODE GetRawByIndex(int column,int * lpRawLen) = 0;
+
+ ///ֶȡֵֶ
+ /**@param columnName:ֶ
+ *@param lpRawLen: [out]ݳ
+ *@return : ַ
+ */
+ virtual void * FUNCTION_CALL_MODE GetRaw(const char * columnName,int * lpRawLen) = 0;
+
+
+ ///һȡֵֶǷΪNULL
+ /**@return 0 ǣ 1
+ */
+ virtual int FUNCTION_CALL_MODE WasNull()=0;
+
+ ///ȡһ¼
+ virtual void FUNCTION_CALL_MODE Next()=0;
+
+ ///жǷΪβ
+ /**@return 1 ǣ0 ;
+ */
+ virtual int FUNCTION_CALL_MODE IsEOF()=0;
+
+ ///жǷΪ
+ /**@return 1 ǣ0 ;
+ */
+ virtual int FUNCTION_CALL_MODE IsEmpty()=0;
+
+ virtual void * FUNCTION_CALL_MODE Destroy() = 0;
+};
+
+struct IF2UnPacker;
+
+///ӿ(һж칹)
+/**ִ:
+ *
+ * 0(ѡ, иò, IF2Packerڲڴ滺) SetBuffer(),ɵṩ,BeginPack()֮ǰ;
+ *
+ * 1ʼ: BeginPack(),λ;
+ *
+ * 2һ
+ *
+ *(a)ֶбAddField()
+ *
+ *(b)սά˳ֶΣ¼ֶݣAddStr() {AddInt(), AddDouble(), AddRaw()}
+ *
+ * 3ýķ(ѡ, Ϊ0) SetReturnCode()
+ *
+ * 4һ(ѡ) NewDataSet()˴ͬʱ˸ýķ룻
+ *
+ * 5ο2ʵһ(ѡ)
+ *
+ * 6EndPack(),ظûᵼ¼ս;
+ *
+ * 7ȡ(Сݳ)
+ * ҲֱӽUnPack()ؽӿ
+ *
+ *ʹע:IF2Packerʹõڴ滺ɵ߸գ
+ * ķ룬ֻڰʽ汾0x21ʱЧ
+ */
+struct IF2Packer : public IKnown
+{
+ ///ʼ(ʹõߵĻ)
+ /** һʹôʱʹñúû(ݳȱΪiDataLen)
+ *@param char * pBuf ַ
+ *@param int iBufSize ռ
+ *@param int iDataLen ݳȣݼֻ֮V1.0ʽİЧ
+ */
+ virtual void FUNCTION_CALL_MODE SetBuffer(void * pBuf,int iBufSize,int iDataLen=0 )=0;
+
+ ///λ¿ʼһ(ֶ¼Ϊ00)
+ /**
+ * ܣʼѰ(ظʹеĻռ)
+ *@return
+ */
+ virtual void FUNCTION_CALL_MODE BeginPack(void)=0;
+
+ ///ʼһ
+ /**ڴİʱԲñ,ȡĬֵ
+ *@param const char *szDatasetName 0x20Ҫָ
+ *@param int iReturnCode 0x20ҪΪÿֵָ
+ */
+ virtual int FUNCTION_CALL_MODE NewDataset(const char *szDatasetName, int iReturnCode = 0)=0;
+
+ /**
+ * ܣֶ
+ *
+ *ִдҪ: NewDataset()Reset(),SetBuffer()֮,ֶΰ˳;
+ *
+ *@param szFieldNameֶ
+ *@param cFieldType ֶ:IFCַSַR
+ *@param iFieldWidth ֶοȣռֽ
+ *@param iFieldScale ֶξ,cFieldType='F'ʱСλ(ȱʡΪ4λС)
+ *@return ʾʧܣΪĿǰij
+ */
+ virtual int FUNCTION_CALL_MODE AddField(const char *szFieldName,char cFieldType ='S',int iFieldWidth=255,int iFieldScale=4)=0;
+
+ /**
+ * ܣַ
+ * ִдҪ:ֶ֮,ֶΰ˳;
+ *@param szValueַ
+ *@return ʾʧܣΪĿǰij
+ */
+ virtual int FUNCTION_CALL_MODE AddStr(const char *szValue)=0;
+
+ /**
+ * ܣ
+ *@param iValue
+ *@return ʾʧܣΪĿǰij
+ */
+ virtual int FUNCTION_CALL_MODE AddInt(int iValue)=0;
+
+ /**
+ * ܣӸ
+ *@param fValue
+ *@return ʾʧܣΪĿǰij
+ */
+ virtual int FUNCTION_CALL_MODE AddDouble(double fValue)=0;
+
+ /**
+ * ܣһַ
+ *@param cValueַ
+ *@return ʾʧܣΪĿǰij
+ */
+ virtual int FUNCTION_CALL_MODE AddChar(char cValue)=0;
+
+ /**
+ * ܣһ
+ *@param void * lpBuff
+ *@param int iLen ݳ
+ *@return ʾʧܣΪĿǰij
+ */
+ virtual int FUNCTION_CALL_MODE AddRaw(void * lpBuff,int iLen)=0;
+
+ ///
+ virtual void FUNCTION_CALL_MODE EndPack()=0;
+
+ /**
+ * ܣȡָ
+ *@return ָ
+ */
+ virtual void * FUNCTION_CALL_MODE GetPackBuf(void) = 0;
+
+ /**
+ * ܣȡ
+ *@return
+ */
+ virtual int FUNCTION_CALL_MODE GetPackLen(void) = 0;
+
+ /**
+ * ܣȡС
+ *@return С
+ */
+ virtual int FUNCTION_CALL_MODE GetPackBufSize(void) = 0;
+
+ /**
+ * ܣȡʽ汾
+ *@return 汾
+ */
+ virtual int FUNCTION_CALL_MODE GetVersion(void) = 0;
+
+ ///ýķ(0x20Ҫ)Ҫ
+ /**ȡȱʡֵ0ããEndPack()֮ǰ
+ *@return 汾
+ */
+ virtual void FUNCTION_CALL_MODE SetReturnCode(unsigned long dwRetCode) = 0;
+
+ /**ֱӷصǰĽӿ,EndPack()֮ܵ,ڴͷʱӦĽʵҲͷ
+ *@return ӿڣ˽ӿڲܵ destroy()ͷ
+ */
+ virtual IF2UnPacker * FUNCTION_CALL_MODE UnPack(void) = 0;
+
+ /**
+ *
+ */
+ virtual void FUNCTION_CALL_MODE FreeMem(void* lpBuf) = 0;
+
+ /**
+ *
+ */
+ virtual void FUNCTION_CALL_MODE ClearValue() = 0;
+
+
+ //20110302 xuxp һӿںݵһ
+ ///λ¿ʼһ(ֶ¼Ϊ00)
+ /**
+ * ܣʼѰ(ظʹеĻռ)
+ *@return
+ */
+ virtual void FUNCTION_CALL_MODE BeginPackEx(char* szName = NULL) = 0;
+
+ //20110324 dongpf һӿںλǰ
+ ///λǰ(ֶ¼Ϊ00)Ӱ
+ /**
+ * ܣλǰ
+ *@return
+ */
+ virtual void FUNCTION_CALL_MODE ClearDataSet() = 0;
+};
+
+///ӿ
+struct IF2UnPacker : public IF2ResultSet
+{
+ /**ȡʽ汾
+ *@return 汾
+ */
+ virtual int FUNCTION_CALL_MODE GetVersion(void) = 0;
+
+ /**ȡݳ
+ *@return 0 ʾɹ Ϊʧ
+ */
+ virtual int FUNCTION_CALL_MODE Open(void * lpBuffer,unsigned int iLen) = 0;
+
+ ///ȡ(0x20ϰ汾֧)
+ virtual int FUNCTION_CALL_MODE GetDatasetCount()=0;
+
+ ///õǰ(0x20ϰ汾֧)
+ /**
+ *@param int nIndex
+ *@return int 0ʾɹΪʧ
+ */
+ virtual int FUNCTION_CALL_MODE SetCurrentDatasetByIndex(int nIndex)=0;
+
+ ///õǰ (0x20ϰ汾֧)
+ /**
+ *@param const char *szDatasetName
+ *@return int 0 ʾɹΪʧ
+ */
+ virtual int FUNCTION_CALL_MODE SetCurrentDataset(const char *szDatasetName)=0;
+
+ /** ȡָ
+ *@return ָ
+ */
+ virtual void * FUNCTION_CALL_MODE GetPackBuf(void) = 0;
+
+ /** ȡݳ
+ *@return ݳ
+ */
+ virtual unsigned int FUNCTION_CALL_MODE GetPackLen(void) = 0;
+
+ /**ȡݼ¼,20051207Ժ汾֧
+ *@return ¼
+ */
+ virtual unsigned int FUNCTION_CALL_MODE GetRowCount(void) = 0;
+};
+
+///Ӷ CConnectionInterface IJöCConfigInterface
+/**
+* ļء浽ļд
+*/
+class CConfigInterface: public IKnown
+{
+public:
+ /**
+ * ļ
+ * @param szFileName ļʽiniοʾ
+ * @return 0ʾɹʧ
+ */
+ virtual int FUNCTION_CALL_MODE Load(const char *szFileName) = 0;
+
+ /**
+ * 浽ļ
+ * @param szFileName ļ
+ * @return 0ʾɹʧ
+ */
+ virtual int FUNCTION_CALL_MODE Save(const char *szFileName) = 0;
+
+ /**
+ * ȡֵַ
+ * @param szSection
+ * @param szEntry
+ * @param szDefault ȱʡֵ
+ * @return ֵַûҵʱszDefault
+ */
+ virtual const char * FUNCTION_CALL_MODE GetString(const char *szSection, const char *szEntry, const char *szDefault) = 0;
+
+ /**
+ * ȡֵ
+ * @param szSection
+ * @param szEntry
+ * @param iDefault ȱʡֵ
+ * @return ֵûҵʱiDefault
+ */
+ virtual int FUNCTION_CALL_MODE GetInt(const char *szSection, const char *szEntry, int iDefault) = 0;
+
+ /**
+ * ֵַ
+ * @param szSection
+ * @param szEntry
+ * @param szValue ֵ
+ * @return 0ʾɹʧ
+ */
+ virtual int FUNCTION_CALL_MODE SetString(const char *szSection, const char *szEntry, const char *szValue) = 0;
+
+ /**
+ * ֵ
+ * @param szSection
+ * @param szEntry
+ * @param iValue ֵ
+ * @return 0ʾɹʧ
+ */
+ virtual int FUNCTION_CALL_MODE SetInt(const char *szSection, const char *szEntry, int iValue) = 0;
+};
+
+
+typedef struct tagBizRouteInfo
+{
+ char ospfName[ID_STR_LEN+1];//·Ŀڵм
+ char nbrName[ID_STR_LEN+1];//мڵھ
+ char svrName[SVRINSTANCE_NAME_LENGTH+1];//мĽ
+ char pluginID[PLUGIN_NAME_LENGTH+1];//м
+ int connectID;//Ӻ
+ int memberNO;//Ա
+
+ tagBizRouteInfo()
+ {
+ memset(this,0,sizeof(tagBizRouteInfo));
+ }
+}BIZROUTE_INFO;
+
+
+struct IBizMessage : IKnown
+{
+ //ùܺ
+ virtual void FUNCTION_CALL_MODE SetFunction(const int nFUnctionNo) = 0;
+ //ȡܺ
+ virtual int FUNCTION_CALL_MODE GetFunction() = 0;
+
+ //ð
+ virtual void FUNCTION_CALL_MODE SetPacketType(const int nPacketType) = 0;
+ //ȡ
+ virtual int FUNCTION_CALL_MODE GetPacketType() = 0;
+
+ //Ӫҵ
+ virtual void FUNCTION_CALL_MODE SetBranchNo(const int nBranchNo) = 0;
+ //ȡӪҵ
+ virtual int FUNCTION_CALL_MODE GetBranchNo() = 0;
+
+ //ϵͳ
+ virtual void FUNCTION_CALL_MODE SetSystemNo(const int nSystemNo) = 0;
+ //ȡϵͳ
+ virtual int FUNCTION_CALL_MODE GetSystemNo() = 0;
+
+ //ϵͳ
+ virtual void FUNCTION_CALL_MODE SetSubSystemNo(const int nSubSystemNo) = 0;
+ //ȡϵͳ
+ virtual int FUNCTION_CALL_MODE GetSubSystemNo() = 0;
+
+ //÷߱
+ virtual void FUNCTION_CALL_MODE SetSenderId(const int nSenderId) = 0;
+ //ȡ߱
+ virtual int FUNCTION_CALL_MODE GetSenderId() = 0;
+
+ //ð
+ virtual void FUNCTION_CALL_MODE SetPacketId(const int nPacketId) = 0;
+ //ȡ
+ virtual int FUNCTION_CALL_MODE GetPacketId() = 0;
+
+ //Ŀĵ·
+ virtual void FUNCTION_CALL_MODE SetTargetInfo(const BIZROUTE_INFO targetInfo) = 0;
+ //ȡĿĵ·
+ virtual void FUNCTION_CALL_MODE GetTargetInfo(BIZROUTE_INFO& targetInfo) = 0;
+
+ //÷·
+ virtual void FUNCTION_CALL_MODE SetSendInfo(const BIZROUTE_INFO sendInfo) = 0;
+ //ȡ·
+ virtual void FUNCTION_CALL_MODE GetSendInfo(BIZROUTE_INFO& sendInfo) = 0;
+
+ //ô
+ virtual void FUNCTION_CALL_MODE SetErrorNo(const int nErrorNo) = 0;
+ //ȡ
+ virtual int FUNCTION_CALL_MODE GetErrorNo() = 0;
+
+ //ôϢ
+ virtual void FUNCTION_CALL_MODE SetErrorInfo(const char* strErrorInfo) = 0;
+ //ȡϢ
+ virtual const char* FUNCTION_CALL_MODE GetErrorInfo() = 0;
+
+ //÷
+ virtual void FUNCTION_CALL_MODE SetReturnCode(const int nReturnCode) = 0;
+ //ȡ
+ virtual int FUNCTION_CALL_MODE GetReturnCode() = 0;
+
+ //ҵ
+ virtual void FUNCTION_CALL_MODE SetContent(void* lpContent,int iLen) = 0;
+ //ȡҵ
+ virtual const void* FUNCTION_CALL_MODE GetContent(int& iLen) = 0;
+
+ //½ӿϢ1.0Ķ
+ //ö
+ virtual void FUNCTION_CALL_MODE SetIssueType(const int nIssueType) = 0;
+ //ȡ
+ virtual int FUNCTION_CALL_MODE GetIssueType() = 0;
+
+ //
+ virtual void FUNCTION_CALL_MODE SetSequeceNo(const int nSequeceNo) = 0;
+ //ȡ
+ virtual int FUNCTION_CALL_MODE GetSequeceNo() = 0;
+
+ //ùؼֶϢ
+ virtual void FUNCTION_CALL_MODE SetKeyInfo(void* lpKeyData,int iLen) = 0;
+ //ȡؼֶϢ
+ virtual const void* FUNCTION_CALL_MODE GetKeyInfo(int& iLen) = 0;
+
+ //øݣʱԭ
+ virtual void FUNCTION_CALL_MODE SetAppData(const void* lpAppdata,int nAppLen) = 0;
+ //ȡݣʱԭ
+ virtual const void* FUNCTION_CALL_MODE GetAppData(int& nAppLen) = 0;
+
+ //תӦ
+ virtual int FUNCTION_CALL_MODE ChangeReq2AnsMessage() = 0;
+
+ //ȡ
+ virtual void* FUNCTION_CALL_MODE GetBuff(int& nBuffLen) = 0;
+ //
+ virtual int FUNCTION_CALL_MODE SetBuff(const void* lpBuff,int nBuffLen) = 0;
+};
+
+#define IDENTITY_NAME_LENGTH 32 /**< ͻֳ */
+#define MAX_MACADDRESS_LEN 18 /**< MAC ַ */
+#define MAX_RAND_LEN 4 /**< */
+
+/** ͻʶ */
+#define MAX_BIZNAME_LEN \
+ IDENTITY_NAME_LENGTH+1+MAX_MACADDRESS_LEN+1+MAX_RAND_LEN+2
+
+#define INIT_RECVQ_LEN 256 /**< նгʼ */
+#define STEP_RECVQ_LEN 512 /**< նչ */
+#define SIMPLIFIED_CHINESE 0 /**< Ϣ: */
+#define ENGLISH 1 /**< Ϣ:Ӣ */
+#define MAX_FILTERFIELD_LEN 63 /**< ֶγ */
+
+/** ɿȼ */
+enum ReliableLevel
+{
+ LEVEL_DOBEST = 0, /**< Ϊ */
+ LEVEL_DOBEST_BYSEQ = 1, /**< */
+ LEVEL_MEM = 2, /**< ڴ */
+ LEVEL_FILE = 3, /**< ļ */
+ LEVEL_SYSTEM = 4 /**< ϵͳ */
+};
+
+/**
+ * ӿ
+ */
+class CFilterInterface:public IKnown
+{
+public:
+ /**
+ * ±ȡ
+ * @param index Ӧű
+ * @return ضӦ±֣NULL.
+ */
+ virtual char* FUNCTION_CALL_MODE GetFilterNameByIndex(int index) = 0;
+
+ /**
+ * ±ȡֵ
+ * @param index Ӧű
+ * @return ضӦ±ֵNULL.
+ */
+ virtual char* FUNCTION_CALL_MODE GetFilterValueByIndex(int index)= 0;
+
+ /**
+ * ݹֻȡֵ
+ * @param fileName ӦĹ
+ * @return ضӦĹֵֵNULL.
+ */
+ virtual char* FUNCTION_CALL_MODE GetFilterValue(char* fileName)= 0;
+
+ /**
+ * ȡĸ
+ * @return ضӦĸûз0
+ */
+ virtual int FUNCTION_CALL_MODE GetCount() = 0;
+
+ /**
+ * ùݹֵֺ
+ * @param filterName ӦĹ
+ * @param filterValue ӦĹֵֵ
+ */
+ virtual void FUNCTION_CALL_MODE SetFilter(char* filterName,char* filterValue) =0;
+};
+
+/**
+ * IJӿ
+ */
+class CSubscribeParamInterface:public IKnown
+{
+public:
+
+ /**
+ *
+ * @param szName Ӧ
+ */
+ virtual void FUNCTION_CALL_MODE SetTopicName(char* szName) =0;
+
+ /**
+ * ø
+ * @param lpData ݵַ
+ * @param iLen ݵij
+ */
+ virtual void FUNCTION_CALL_MODE SetAppData(void* lpData,int iLen)=0;
+
+ /**
+ * ӹ
+ * @param filterName
+ * @param filterValue ֵ
+ */
+ virtual void FUNCTION_CALL_MODE SetFilter(char* filterName,char* filterValue)=0;
+
+ /**
+ * ӷֶ
+ * @param filedName Ҫӵķֶ
+ */
+ virtual void FUNCTION_CALL_MODE SetReturnFiled(char* filedName)=0;
+
+ /**
+ * Ƿȱ־
+ * @param bFromNow trueʾҪ֮ǰݣҲDzȱfalseʾҪȱ
+ */
+ virtual void FUNCTION_CALL_MODE SetFromNow(bool bFromNow)=0;
+
+ /**
+ * øǶı־
+ * @param bReplace trueʾǶģȡ֮ǰжģֻǰĶģfalseʾӶ
+ */
+ virtual void FUNCTION_CALL_MODE SetReplace(bool bReplace)=0;
+
+ /**
+ * ÷ͼ
+ * @param nSendInterval λ
+ */
+ virtual void FUNCTION_CALL_MODE SetSendInterval(int nSendInterval)=0;
+
+ /**
+ * ȡ
+ * @return Ϣ
+ */
+ virtual char* FUNCTION_CALL_MODE GetTopicName() =0;
+
+ /**
+ * ȡ
+ * @param iLen Σʾݵij
+ * @return ظַûзNULL
+ */
+ virtual void* FUNCTION_CALL_MODE GetAppData(int *iLen) =0;
+
+ /**
+ * ȡӦĹֶε
+ * @param index Ӧű
+ * @return ضӦ±֣NULL.
+ */
+ virtual char* FUNCTION_CALL_MODE GetFilterNameByIndex(int index) = 0;
+
+ /**
+ * ±ȡֵ
+ * @param index Ӧű
+ * @return ضӦ±ֵNULL.
+ */
+ virtual char* FUNCTION_CALL_MODE GetFilterValueByIndex(int index)= 0;
+
+ /**
+ * ݹֻȡֵ
+ * @param fileName ӦĹ
+ * @return ضӦĹֵֵNULL.
+ */
+ virtual char* FUNCTION_CALL_MODE GetFilterValue(char* fileName)= 0;
+
+ /**
+ * ȡĸ
+ * @return ضӦĸûз0
+ */
+ virtual int FUNCTION_CALL_MODE GetFilterCount() = 0;
+
+ /**
+ * ȡֶ
+ * @return ضӦķֶϢ
+ */
+ virtual char* FUNCTION_CALL_MODE GetReturnFiled()=0;
+
+ /**
+ * ȡǷȱı־
+ * @return ضӦIJȱ־
+ */
+ virtual bool FUNCTION_CALL_MODE GetFromNow()=0 ;
+
+ /**
+ * ȡǷǶĵı־
+ * @return ضӦĸǶı־
+ */
+ virtual bool FUNCTION_CALL_MODE GetReplace() =0;
+
+ /**
+ * ȡӦķƵ
+ * @return ضӦķͼ
+ */
+ virtual int FUNCTION_CALL_MODE GetSendInterval()=0;
+};
+
+class CSubscribeInterface;
+
+/**
+ * @brief Ļصӿڷصݶ壬˶Ҫҵ֮⣬Ҫص
+ */
+typedef struct tagSubscribeRecvData
+{
+ char* lpFilterData; /**< ֶεͷָ룬ý */
+ int iFilterDataLen; /**< ֶεݳ */
+ char* lpAppData; /**< ݵͷָ */
+ int iAppDataLen; /**< ݵij */
+ char szTopicName[260]; /**< */
+
+ /**
+ * tagSubscribeRecvData 캯
+ */
+ tagSubscribeRecvData()
+ {
+ memset(this,0,sizeof(tagSubscribeRecvData));
+ }
+}SUBSCRIBE_RECVDATA, *LPSUBSCRIBE_RECVDATA;
+
+/**
+ * ĻصӿڣϲӦͨӿڣƹϢ
+ */
+class CSubCallbackInterface: public IKnown
+{
+public:
+
+ /**
+ * յϢĻص
+ * @param lpSub صĶָ
+ * @param subscribeIndex ϢӦĶıʶʶSubscribeTopicķ
+ * @param lpData ϢĶָ룬һϢҵ
+ * @param nLength ݵij
+ * @param lpRecvData ϢֶηأҪ˸ݣϢ֣ϸοǰṹ嶨
+ * @return
+ */
+ virtual void FUNCTION_CALL_MODE OnReceived(CSubscribeInterface *lpSub,int subscribeIndex, const void *lpData, int nLength,LPSUBSCRIBE_RECVDATA lpRecvData) = 0;
+
+ /**
+ * յϢصһӵ˲Ե»صӿ,ص治ҪȡģײѾȡģֻһ֪ͨӿ
+ * @param lpSub صĶָ
+ * @param subscribeIndex ϢӦĶıʶʶSubscribeTopicķ
+ * @param TickMsgInfo ˵ĴϢҪǰظĶλϢ
+ * @return
+ */
+ virtual void FUNCTION_CALL_MODE OnRecvTickMsg(CSubscribeInterface *lpSub,int subscribeIndex,const char* TickMsgInfo) = 0;
+};
+
+
+/**
+ * ĽӿڵĶ
+ */
+class CSubscribeInterface: public IKnown
+{
+public:
+
+ /**
+ *
+ * @param lpSubscribeParamInter 涨ĶIJṹ
+ * @param uiTimeout ʱʱ
+ * @param lppBizUnPack ҵУʱʧܷصҵϢijɹûзأҪReleaseͷ
+ ҵУĴϢд£
+ IF2UnPacker* lpBizUnPack =NULL;
+ SubscribeTopic(...,&lpBizUnPack);
+ ݷֵʧܵľж lpBizUnPack DzNULL.
+ Ϣȡ֮,ͷ
+ lpBizUnPack->Release();
+ * @param lpBizPack ҵУҪӵҵֶԼֵûоݹΪҵУֶ
+ * @return ֵ0ʾǰijɹĶıʶҪסʶͶ֮ӳϵʶҪȡĺͽϢĻص.
+ * ֵݴŻȡϢ.
+ */
+ virtual int FUNCTION_CALL_MODE SubscribeTopic(CSubscribeParamInterface* lpSubscribeParamInter ,unsigned int uiTimeout,IF2UnPacker** lppBizUnPack=NULL,IF2Packer* lpBizPack=NULL) = 0;
+
+ /**
+ * ȡ
+ * @param subscribeIndex ϢӦĶıʶʶSubscribeTopicķ
+ * @return 0ʾȡijɹֵݴŻȡϢ.
+ */
+ virtual int FUNCTION_CALL_MODE CancelSubscribeTopic(int subscribeIndex) = 0;
+
+
+ /**
+ * ȡ
+ * @param topicName
+ * @param lpFilterInterface ӦĹ
+ * @return 0ʾȡijɹֵݴŻȡϢ.
+ */
+ virtual int FUNCTION_CALL_MODE CancelSubscribeTopicEx(char* topicName,CFilterInterface* lpFilterInterface) = 0;
+
+
+
+ /**
+ * ȡǰĽӿѾĵԼϢ
+ * @param lpPack 洫Ĵ
+ * @note packerֶ
+ - SubcribeIndex
+ - IsBornTopic
+ - TopicName
+ - TopicNo
+ - FilterRaw
+ - Appdata
+ - SendInterval
+ - ReturnFileds
+ - isReplace
+ - isFromNow
+ - Stutas
+ - QueueCount
+ */
+ virtual void FUNCTION_CALL_MODE GetSubcribeTopic(IF2Packer* lpPack)=0;
+
+ /**
+ * ȡַ
+ * @param lpPort ķ˿ڣΪNULL
+ * @return طַ
+ */
+ virtual const char * FUNCTION_CALL_MODE GetServerAddress(int *lpPort) = 0;
+};
+
+/**
+ * ӿ
+ */
+class CPublishInterface: public IKnown
+{
+public:
+
+ /**
+ * ҵʽݷӿ
+ * @param topicName ֣֪־ʹNULL
+ * @param lpUnPacker
+ * @param iTimeOut ʱʱ
+ * @param lppBizUnPack ҵУʱʧܷصҵϢɹûзأҪReleaseͷ
+ ҵУĴϢд£
+ IF2UnPacker* lpBizUnPack =NULL;
+ PubMsgByPacker(...,&lpBizUnPack);
+ ݷֵʧܵľж lpBizUnPack DzNULL.
+ Ϣȡ֮,ͷ
+ lpBizUnPack->Release();
+ * @param bAddTimeStamp Ƿʱϵܲ
+ * @return 0ʾɹֵݴŻȡϢ.
+ */
+ virtual int FUNCTION_CALL_MODE PubMsgByPacker(char* topicName ,IF2UnPacker* lpUnPacker,int iTimeOut=-1,
+ IF2UnPacker** lppBizUnPack=NULL,bool bAddTimeStamp=false) = 0;
+
+ /**
+ * ҵʽݷӿڣһƸʽķ
+ * @param topicName ֣֪־ʹNULL
+ * @param lpFilterInterface ҪϲԼָĬûй
+ * @param lpData
+ * @param nLength ݳ
+ * @param iTimeOut ʱʱ
+ * @param lppBizUnPack ҵУʱʧܷصҵϢɹûзأҪReleaseͷ
+ ҵУĴϢд£
+ IF2UnPacker* lpBizUnPack =NULL;
+ PubMsgByPacker(...,&lpBizUnPack);
+ ݷֵʧܵľж lpBizUnPack DzNULL.
+ Ϣȡ֮,ͷ
+ lpBizUnPack->Release();
+ * @param bAddTimeStamp Ƿʱϵܲ
+ * @return 0ʾɹֵݴŻȡϢ.
+ */
+ virtual int FUNCTION_CALL_MODE PubMsg(char* topicName, CFilterInterface* lpFilterInterface, const void *lpData, int nLength,int iTimeOut=-1,
+ IF2UnPacker** lppBizUnPack=NULL,bool bAddTimeStamp=false) = 0;
+
+ /**
+ * صǰķ
+ * @param topicName
+ * @return 0ʾûжӦ⣬ֵʾɹ
+ */
+ virtual uint32 FUNCTION_CALL_MODE GetMsgNoByTopicName(char* topicName)=0;
+
+ /**
+ * ȡַ
+ * @param lpPort ķ˿ڣΪNULL
+ * @return طַ
+ */
+ virtual const char * FUNCTION_CALL_MODE GetServerAddress(int *lpPort) = 0;
+};
+
+class CConnectionInterface;
+
+///Ӷ CConnectionInterface ҪĻصӿڶ
+/**
+* ӳɹӶϿɡյݵ¼
+*/
+class CCallbackInterface: public IKnown
+{
+public:
+ /**
+ * ӳɹ
+ * @param lpConnection ¼Ӷ
+ */
+ virtual void FUNCTION_CALL_MODE OnConnect(CConnectionInterface *lpConnection) = 0;
+
+ /**
+ * ɰȫ
+ * @param lpConnection ¼Ӷ
+ */
+ virtual void FUNCTION_CALL_MODE OnSafeConnect(CConnectionInterface *lpConnection) = 0;
+
+ /**
+ * ע
+ * @param lpConnection ¼Ӷ
+ */
+ virtual void FUNCTION_CALL_MODE OnRegister(CConnectionInterface *lpConnection) = 0;
+
+ /**
+ * ӱϿ
+ * @param lpConnection ¼Ӷ
+ */
+ virtual void FUNCTION_CALL_MODE OnClose(CConnectionInterface *lpConnection) = 0;
+
+ /**
+ *
+ * @param lpConnection ¼Ӷ
+ * @param hSend ;
+ * @param reserved1 ֶ
+ * @param reserved2 ֶ
+ * @param nQueuingData Ͷʣʹ߿ôֵƷ͵ٶȣСijֵʱз
+ * @see Send()
+ */
+ virtual void FUNCTION_CALL_MODE OnSent(CConnectionInterface *lpConnection, int hSend, void *reserved1, void *reserved2, int nQueuingData) = 0;
+
+ virtual void FUNCTION_CALL_MODE Reserved1(void *a, void *b, void *c, void *d) = 0;
+
+ virtual void FUNCTION_CALL_MODE Reserved2(void *a, void *b, void *c, void *d) = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved3() = 0;
+
+ virtual void FUNCTION_CALL_MODE Reserved4() = 0;
+
+ virtual void FUNCTION_CALL_MODE Reserved5() = 0;
+
+ virtual void FUNCTION_CALL_MODE Reserved6() = 0;
+
+ virtual void FUNCTION_CALL_MODE Reserved7() = 0;
+
+ /**
+ * յSendBiz첽͵Ӧ
+ * @param lpConnection ¼Ӷ
+ * @param hSend ;
+ * @param lpUnPackerOrStr ָָߴϢ
+ * @param nResult հ
+ * nResult0ʾҵݽճɹҵɹlpUnPackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * nResult1ʾҵݽճɹҵʧˣlpUnPackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * nResult2ʾյҵϢlpUnPackerOrStrָһɶַϢ
+ * nResult3ʾҵʧܡlpUnPackerOrStrָNULL
+ */
+ virtual void FUNCTION_CALL_MODE OnReceivedBiz(CConnectionInterface *lpConnection, int hSend, const void *lpUnPackerOrStr, int nResult) = 0;
+
+ /**
+ * յSendBiz첽͵Ӧ
+ * @param lpConnection ¼Ӷ
+ * @param hSend ;
+ * @param lpRetData ҪصӦݣҪȡ
+ * @param lpUnPackerOrStr ָָߴϢ
+ * @param nResult հ
+ * nResult0ʾҵݽճɹҵɹlpUnpackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * nResult1ʾҵݽճɹҵʧˣlpUnpackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * nResult2ʾյҵϢlpUnpackerOrStrָһɶַϢ
+ * nResult3ʾҵʧܡlpUnpackerOrStrָNULL
+ */
+ virtual void FUNCTION_CALL_MODE OnReceivedBizEx(CConnectionInterface *lpConnection, int hSend, LPRET_DATA lpRetData, const void *lpUnpackerOrStr, int nResult) = 0;
+ //20130624 xuxp صBizMessageӿ
+ /**
+ * յʱָReplyCallbackѡӦûжӦ
+ * @param lpConnection ¼Ӷ
+ * @param hSend ;
+ * @param lpMsg ҵϢָ
+ */
+ virtual void FUNCTION_CALL_MODE OnReceivedBizMsg(CConnectionInterface *lpConnection, int hSend, IBizMessage* lpMsg) = 0;
+
+
+
+};
+
+///T2_SDKӶӿ
+/**
+* ӡϿ͡յ
+*/
+class CConnectionInterface: public IKnown
+{
+public:
+ ///״̬
+ enum ConnectionStatus
+ {
+ Disconnected = 0x0000, /**< δ */
+ Connecting = 0x0001, /**< socket */
+ Connected = 0x0002, /**< socket */
+ SafeConnecting = 0x0004, /**< ڽȫ */
+ SafeConnected = 0x0008, /**< ѽȫ */
+ Registering = 0x0010, /**< ע */
+ Registered = 0x0020, /**< ע */
+ Rejected = 0x0040 /**< ܾر */
+ };
+
+ ///ѡϣ0ʾճʱʱɾIDԿٴεRecvBizԽգ
+ enum RecvFlags
+ {
+ JustRemoveHandle = 0x0001 /**< ճʱʱpacket_idɾ */
+ };
+
+ /**
+ * ʼӶ
+ * @param lpCallback ص
+ * @return 0ʾɹʾʧܣͨGetErrorMsgԻȡϸϢ
+ * ӦòҪκλص÷NULLԶصͶ
+ */
+ virtual int FUNCTION_CALL_MODE Create(CCallbackInterface *lpCallback) = 0;
+
+ /**
+ * ʼ/ע
+ * @param uiTimeout ʱʱ䣬λ룬0ʾȴʹôӷʱòã
+ * @return 0ʾɹʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE Connect(unsigned int uiTimeout) = 0;
+
+ /**
+ * Ͽ
+ * @return 0ʾɹʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE Close() = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved1() = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved2() = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved3() = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved4() = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved5() = 0;
+
+ virtual int FUNCTION_CALL_MODE Reserved6() = 0;
+
+ /**
+ * ȡַ
+ * @param lpPort ķ˿ڣΪNULL
+ * @return طַ
+ */
+ virtual const char * FUNCTION_CALL_MODE GetServerAddress(int *lpPort) = 0;
+
+ /**
+ * ȡ״̬
+ * @return ״̬
+ */
+ virtual int FUNCTION_CALL_MODE GetStatus() = 0;
+
+ /**
+ * ȡأʹ߿ͬʱʵͬʱӲͬķӵʱԼؾʹĸ
+ * @return طأǸԽʾԽæʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE GetServerLoad() = 0;
+
+ /**
+ * ȡӦĴϢĿǰּ֧ĺӢģ֧ԿͨӶerrormsg
+ * @param nErrorCode
+ * @return شϢ
+ */
+ virtual const char * FUNCTION_CALL_MODE GetErrorMsg(int nErrorCode) = 0;
+
+ /**
+ * ȡӴţעʱȿͨConnectķֵȡţ
+ * ҲͨñȡţȻøôŵGetErrorMsgɻȡɶĴϢ
+ * @return Ӵ
+ */
+ virtual int FUNCTION_CALL_MODE GetConnectError() = 0;
+
+ /**
+ * ҵ
+ * @param iFunID ܺ
+ * @param lpPacker ָ
+ * @param nAsy 0ʾͬʾ첽
+ * @param iSystemNo iSystemNo > 0ϵͳ
+ * @param nCompressID ҵѹѹ㷨IDĿǰֻ֧ID = 1ѹ㷨
+ * ID = 0ʾѹע⣬ѹֻSDK飬ǷѹȡڰʵʴС
+ * ͬ͵İͨRecvBizգ첽͵İյӦԶصOnReceivedBiz
+ * @return ط;ʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE SendBiz(int iFunID, IF2Packer *lpPacker, int nAsy = 0, int iSystemNo = 0, int nCompressID = 1) = 0;
+
+ /**
+ * ҵ
+ * @param hSend ;SendBizijɹֵ
+ * @param lppUnPackerOrStr ֵ0ʾҵݽճɹҵɹ*lppUnPackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * ֵ1ʾҵݽճɹҵʧˣ*lppUnPackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * ֵ2ʾյҵϢ*lppUnPackerOrStrָһɶַϢ
+ * ֵ3ʾҵʧܡ*lppUnPackerOrStrԭָݲᱻı䡣
+ * @param uiTimeout ʱʱ䣬λ롣
+ * @param uiFlag ѡ0ʾճʱԿɼRecvBizգ
+ * JustRemoveHandleʾճʱhSendɾ
+ * @return С0ʾRecvBizʧܣͨGetErrorMsgԻȡϸϢ
+ * ע⣡ⲿָָĽڴSDKڲⲿͷţ
+ */
+ virtual int FUNCTION_CALL_MODE RecvBiz(int hSend, void **lppUnPackerOrStr, unsigned uiTimeout = 1000, unsigned uiFlag = 0) = 0;
+
+ //20101228 xuxp ͺͽܵӿںڶĺ
+ /**
+ * ҵ
+ * @param iFunID ܺ
+ * @param lpPacker ָ
+ * @param svrName ָмĽڵ
+ * @param nAsy 0ʾͬʾ첽
+ * @param iSystemNo iSystemNo > 0ϵͳ
+ * @param nCompressID ҵѹѹ㷨IDĿǰֻ֧ID = 1ѹ㷨
+ * ID = 0ʾѹע⣬ѹֻSDK飬ǷѹȡڰʵʴС
+ * ͬ͵İͨRecvBizգ첽͵İյӦԶصOnReceivedBiz
+ * @param branchNo Ӫҵš
+ * @param lpRequest ݣݽṹ嶨帳ֵ
+ * @return ط;ʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE SendBizEx(int iFunID, IF2Packer *lpPacker,char* svrName, int nAsy = 0, int iSystemNo = 0, int nCompressID = 1,int branchNo=0,LPREQ_DATA lpRequest=NULL) = 0;
+
+ /**
+ * ҵ
+ * @param hSend ;SendBizijɹֵ
+ * @param lppUnPackerOrStr ֵ0ʾҵݽճɹҵɹ*lppUnPackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * ֵ1ʾҵݽճɹҵʧˣ*lppUnPackerOrStrָһʱӦȽָתΪIF2UnPacker *
+ * ֵ2ʾյҵϢ*lppUnPackerOrStrָһɶַϢ
+ * ֵ3ʾҵʧܡ*lppUnPackerOrStrԭָݲᱻı䡣
+ * @param lpRetData ҪصӦݣҪȡ
+ * @param uiTimeout ʱʱ䣬λ룬0ʾȴ
+ * @param uiFlag ѡ0ʾճʱԿɼRecvBizգ
+ * JustRemoveHandleʾճʱhSendɾ
+ * @return С0ʾRecvBizʧܣͨGetErrorMsgԻȡϸϢ
+ * ע⣡ⲿָָĽڴSDKڲⲿͷţ
+ * ע⣡ⲿָָLPRET_DATAڴSDKڲⲿͷţ
+ */
+ virtual int FUNCTION_CALL_MODE RecvBizEx(int hSend, void **lppUnpackerOrStr, LPRET_DATA* lpRetData, unsigned uiTimeout = 1000, unsigned uiFlag = 0) = 0;
+
+
+ //20101228 xuxp Create֤صµOnReceivedBizExĽӿ
+ /**
+ * ʼӶ
+ * @param lpCallback ص
+ * @return 0ʾɹʾʧܣͨGetErrorMsgԻȡϸϢ
+ * ӦòҪκλص÷NULLԶصͶ
+ */
+ virtual int FUNCTION_CALL_MODE CreateEx(CCallbackInterface *lpCallback) = 0;
+
+
+ //20120111 dongpf GetRealAddressȡԼipַͶ˿
+ /**
+ * ȡipַͶ˿
+ * @return ȡipַͶ˿ڣʽipַ+˿
+ */
+ virtual const char* FUNCTION_CALL_MODE GetRealAddress() = 0;
+
+
+ virtual int FUNCTION_CALL_MODE Reserved8() = 0;
+ virtual int FUNCTION_CALL_MODE Reserved9() = 0;
+
+ //20130527 xuxp GetSelfAddressȡԼصIPͶ˿
+ /**
+ * ȡipַͶ˿
+ * @return ȡipַͶ˿ڣʽipַ+˿
+ */
+ virtual const char* FUNCTION_CALL_MODE GetSelfAddress() = 0;
+
+ //20130529 xuxp GetSelfMacȡԼʹõMAC
+ /**
+ * ȡMACַ
+ * @return MACĵַַʽơD067E5556D83,мûзָ
+ */
+ virtual const char* FUNCTION_CALL_MODE GetSelfMac() = 0;
+
+ //20130609 xuxp ķӿ
+ ///////////////////////////////////ӶķĽӿ///////////////////////////////////////
+
+ /**
+ * һ
+ * @param lpCallback صӿ
+ * @param SubScribeName ֣ඩߵֱ벻һͬ.32ֽ
+ * @param iTimeOut ʱʱ
+ * @param iInitRecvQLen ʼնеij
+ * @param iStepRecvQLen ܶеչ
+ * @return ضĽӿʵһỰӿڶӦһص.
+ */
+ virtual CSubscribeInterface* FUNCTION_CALL_MODE NewSubscriber(CSubCallbackInterface *lpCallback,char* SubScribeName,int iTimeOut,
+ int iInitRecvQLen=INIT_RECVQ_LEN,int iStepRecvQLen=STEP_RECVQ_LEN) = 0;
+
+ /**
+ * ȡ
+ * @param msgCount ػϢĸ
+ * @param iTimeOut һγʼʱijʱʱ
+ * @param bResetNo Ƿ
+ * @return طͽӿʵһѾnewˣֱӷضӦָ
+ */
+ virtual CPublishInterface* FUNCTION_CALL_MODE GetPublisher(int msgCount,int iTimeOut,bool bResetNo = false) = 0;
+
+
+
+
+ /**
+ * ȡ˵Ϣ
+ * @param byForce ǷǿƴӺ̨ȡ
+ * @param iTimeOut ʱʱ
+ * @return ɹͷϢ
+ * @note Ҫreleaseӿڽͷ.
+ * @note packerֶ
+ * - TopicName
+ * - TopicNo
+ * - ReliableLevel
+ * - IssuePriority
+ * - MsgLifetime
+ * - Stutas
+ * - TickStrategy
+ * - BusinessVerify
+ * - Local
+ * - FilterField1
+ * - FilterField2
+ * - FilterField3
+ * - FilterField4
+ * - FilterField5
+ * - FilterField6
+ * - SubscribeStr
+ * - PublishStr
+ */
+ virtual IF2UnPacker* FUNCTION_CALL_MODE GetTopic(bool byForce,int iTimeOut) = 0;
+
+ /**
+ * ȡķ
+ */
+ virtual const char* FUNCTION_CALL_MODE GetMCLastError() = 0;
+ ////////////////////////////////////////////////////////////////////////////////
+
+ //20130624 xuxp ӽӿӿڣΪ˵Ľӿڣͻ˿ҲƼʹ
+ ///////////////////////////////////µһײӿ///////////////////////////////////////
+ /**
+ * ʼӶ
+ * @param lpCallback ص
+ * @return 0ʾɹʾʧܣͨGetErrorMsgԻȡϸϢ
+ * ӦòҪκλص÷NULLԶصͶ
+ */
+ virtual int FUNCTION_CALL_MODE Create2BizMsg(CCallbackInterface *lpCallback) = 0;
+
+ /**
+ * ҵ
+ * @param lpMsg ҵϢӿָ
+ * @param nAsy 0ʾͬʾ첽
+ * ͬ͵İͨRecvBizMsgգ첽͵İյӦԶصOnReceivedBizMsg
+ * @return ط;ʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE SendBizMsg(IBizMessage* lpMsg,int nAsy = 0) = 0;
+
+ /**
+ *
+ * @param hSend ;
+ * @param lpMsg յҵϢָĵַ
+ * @param uiTimeout ʱʱ䣬λ룬0ʾȴ
+ * @param uiFlag ѡ0ʾճʱԿɼReceiveգ
+ * JustRemoveHandleʾճʱʱpacket_idɾԺյ첽ķʽյ
+ * @return 0ʾɹʾʧܣͨGetErrorMsgԻȡϸϢ
+ */
+ virtual int FUNCTION_CALL_MODE RecvBizMsg(int hSend, IBizMessage** lpMsg, unsigned uiTimeout = 1000, unsigned uiFlag = 0) = 0;
+ ////////////////////////////////////////////////////////////////////////////////
+};
+
+extern "C"
+{
+ /**
+ * ȡT2_SDKİ汾
+ * @return ǰT2_SDKİ汾ţĿǰ汾Ϊ0x01000002ʾ1.0.0.2
+ */
+ int FUNCTION_CALL_MODE GetVersionInfo();
+
+ /**
+ * ȡһʵCConfigInterfaceӿڵָ
+ * @return ʵCConfigInterfaceӿڵָ
+ */
+CConfigInterface* FUNCTION_CALL_MODE NewConfig();
+
+ /**
+ * ȡһʵCConnectionInterfaceӿڵָ
+ * @param CConfigInterface ʵCConfigInterfaceӿڵָ
+ * @returnʵCConnectionInterfaceӿڵָ
+ */
+CConnectionInterface* FUNCTION_CALL_MODE NewConnection(CConfigInterface *lpConfig);
+
+/**
+* @param int iVersion ҵʽ汾(ȡֵ:1 ִ,ֵ 0x20)
+* Ƽʹ0x20
+* @return IPacker * ӿָ
+*/
+IF2Packer * FUNCTION_CALL_MODE NewPacker(int iVersion);
+
+/**
+* @param void * lpBuffer ҪݣARͨŰͷ
+* @param unsigned int iLen ݳ
+* @return IUnPacker * ӿָ
+*/
+IF2UnPacker * FUNCTION_CALL_MODE NewUnPacker(void * lpBuffer, unsigned int iLen);
+
+/**
+* @param char *EncodePass ɢнַȲ16'\0'
+* @param const char* Password Ĵɢе
+* @param int nReserve Ĭֵ
+* @return char * ɢнַͬEncodePass
+*/
+char * FUNCTION_CALL_MODE Encode(char *EncodePass, const char* Password, int nReserve = 0 );
+
+
+/**
+*һṩļܺм
+* @param const char* pIn Ĵַܵ
+* @param const char* pOut ȺʹַСһⲿ
+* @return
+*/
+int FUNCTION_CALL_MODE EncodeEx(const char *pIn, char *pOut);
+
+
+/**
+* һӿָ
+* @return NULLʾʧ.
+*/
+CFilterInterface* FUNCTION_CALL_MODE NewFilter();
+
+/**
+* һԽӿָ
+* @return NULLʾʧ.
+*/
+CSubscribeParamInterface* FUNCTION_CALL_MODE NewSubscribeParam();
+
+//20130625 xuxp ҵϢ
+IBizMessage* FUNCTION_CALL_MODE NewBizMessage();
+
+}
+
+#endif
diff --git a/include/UFX/win32/c20150708.pfx b/include/UFX/win32/c20150708.pfx
new file mode 100644
index 0000000..af9de51
Binary files /dev/null and b/include/UFX/win32/c20150708.pfx differ
diff --git a/include/UFX/win32/licensehundsun.dat b/include/UFX/win32/licensehundsun.dat
new file mode 100644
index 0000000..cbc5699
Binary files /dev/null and b/include/UFX/win32/licensehundsun.dat differ
diff --git a/include/UFX/win32/t2sdk.dll b/include/UFX/win32/t2sdk.dll
new file mode 100644
index 0000000..3a57ac2
Binary files /dev/null and b/include/UFX/win32/t2sdk.dll differ
diff --git a/include/UFX/win32/t2sdk.ini b/include/UFX/win32/t2sdk.ini
new file mode 100644
index 0000000..164aaa6
--- /dev/null
+++ b/include/UFX/win32/t2sdk.ini
@@ -0,0 +1,32 @@
+[t2sdk]
+servers=117.78.3.150:6010
+license_file=licensehundsun.dat
+license_pwd=888888
+init_recv_buf_size=512
+init_send_buf_size=512
+send_queue_size=100
+heartbeat_time=10
+if_error_log=1
+logdir=logs
+if_sendRecv_log=1
+login_name=asyn_send
+lan=2052
+addipmac=0
+
+[proxy]
+proxy_type=
+ip=127.0.0.1
+port=
+user_name=guest
+password=888888
+
+[safe]
+;safe_level=ssl
+safe_level=none
+client_id=123456
+comm_pwd=888888
+cert_file=c20150708.pfx
+cert_pwd=111111
+[ufx]
+fund_account=70000172
+password=111111
\ No newline at end of file
diff --git a/include/UFX/win32/t2sdk.lib b/include/UFX/win32/t2sdk.lib
new file mode 100644
index 0000000..4a9c217
Binary files /dev/null and b/include/UFX/win32/t2sdk.lib differ
diff --git a/include/Wind/WAPIWrapperCpp.h b/include/Wind/WAPIWrapperCpp.h
new file mode 100644
index 0000000..8e225ee
--- /dev/null
+++ b/include/Wind/WAPIWrapperCpp.h
@@ -0,0 +1,245 @@
+#ifndef _WAPIWRAPPERCPP_H
+#define _WAPIWRAPPERCPP_H
+
+#include
+#include
+
+#ifdef WAPIWRAPPERCPP_EXPORTS
+#define WAPIWRAPPERCPP_EXP __declspec(dllexport)
+#else
+#define WAPIWRAPPERCPP_EXP __declspec(dllimport)
+#endif
+
+//ؼδע
+const LONG noRegErr = -1;
+
+enum ErrMsgLang //Ϣ
+{
+ eENG = 0, ///< Ӣ
+ eCHN, ///<
+};
+
+class WAPIWRAPPERCPP_EXP WindData
+{
+public:
+ VARIANT data; ///<
+ VARIANT codes; ///< Codeб
+ VARIANT fields; ///< ָб
+ VARIANT times; ///< ʱб
+ LONG errorCode; ///<
+public:
+
+ WindData();
+ ~WindData();
+
+ VOID InitWindData();
+ VOID ClearWindData();
+
+ //ȡϢ
+ LPCWSTR GetErrorMsg() const;
+
+ //ת(Ҫdelete)
+ static WCHAR* DateToString(DATE date, LPCWSTR strFormat = L"%Y-%m-%d");
+ static VOID FreeString(WCHAR*& pStr);
+
+ //////////////////////////////////////////////////////////////////////////
+ //ʹ
+
+ INT GetCodesLength() const;
+ INT GetFieldsLength() const;
+ INT GetTimesLength() const;
+
+ LPCWSTR GetCodeByIndex(int index) const;
+ LPCWSTR GetFieldsByIndex(int index) const;
+ BOOL GetTimeByIndex(int index, WCHAR timeBuffer[], int& length) const;
+ DATE GetTimeByIndex(int index) const;
+
+ //ȡݲѯӿOneData
+ BOOL GetDataItem(int timeIndex, int codesIndex, int fieldsIndex, VARIANT& outItem) const;
+
+ //ȡб
+ const DATE* GetTDaysInfo(LONG& lDateCount) const;
+
+ //////////////////////////////////////////////////////////////////////////
+ //ʹ
+
+ INT GetRecordCount() const;
+
+ //ȡӿOneData
+ BOOL GetTradeItem(int recordIndex, int fieldsIndex, VARIANT& outItem) const;
+
+ //ȡ¼ID
+ LONG GetLogonID() const;
+
+ //ȡOrderId
+ LONG GetOrderRequestID() const;
+
+ //ȡOrderNumber
+ LPCWSTR GetOrderNumber(int recordIndex = 0) const;
+};
+
+// ص
+typedef LONG (WINAPI *WsqCallBack)(ULONGLONG reqId, const WindData &windData);
+
+typedef LONG (WINAPI *TradeCallBack)(LONG LogonID, const WindData &windData);
+
+// Ǵ WAPIWrapperCpp.dll
+class WAPIWRAPPERCPP_EXP CWAPIWrapperCpp {
+public:
+
+ //
+ //////////////////////////////////////////////////////////////////////////
+ //Windӿ
+ static LONG start(LPCWSTR options = NULL, LPCWSTR options2 = NULL, LONG timeout = 5000);
+
+ //Windӿֹ
+ static LONG stop();
+
+ //ж״̬
+ static LONG isconnected();
+
+ // requestId Ϊ0 ȡֻȡIDŵ
+ static VOID cancelRequest(ULONGLONG requestId);
+
+ //ȡ
+ static VOID cancelAllRequest();
+
+ //ȡӦĴϢ
+ static BOOL getErrorMsg(LONG errCode, ErrMsgLang lang, WCHAR msg[], int& /*inout*/msgLength);
+
+ //////////////////////////////////////////////////////////////////////////
+
+ //ݺ
+ //////////////////////////////////////////////////////////////////////////
+ //ֵwsd
+ static LONG wsd(WindData& outWindData, LPCWSTR windCodes, LPCWSTR fields, LPCWSTR startTime = NULL, LPCWSTR endTime = NULL, LPCWSTR options = NULL);
+
+ //ֵwssʷ
+ static LONG wss(WindData& outWindData, LPCWSTR windCodes, LPCWSTR fields, LPCWSTR options = NULL);
+
+ //ֵwsi÷
+ static LONG wsi(WindData& outWindData, LPCWSTR windCodes, LPCWSTR fields, LPCWSTR startTime, LPCWSTR endTime, LPCWSTR options = NULL);
+
+ //ֵwst
+ static LONG wst(WindData& outWindData, LPCWSTR windCodes, LPCWSTR fields, LPCWSTR startTime, LPCWSTR endTime, LPCWSTR options = NULL);
+
+ //ֵwsqʵʱ
+ //ǶģʽȡһԿ
+ static LONG wsq(WindData& outWindData, LPCWSTR windCodes, LPCWSTR fields, LPCWSTR options = NULL);
+
+ //ģʽʵʱݣͨص
+ static LONG wsq(ULONGLONG &reqId, LPCWSTR windCodes, LPCWSTR fields, WsqCallBack callBack, LPCWSTR options = NULL, BOOL updateAllFields = FALSE);
+
+ //ֵtdqʵʱ
+ //ģʽtdʵʱݣͨص
+ static LONG tdq(ULONGLONG &reqId, LPCWSTR windCodes, LPCWSTR fields, WsqCallBack callBack, LPCWSTR options = NULL, BOOL updateAllFields = FALSE);
+
+ //ֵbbqʵʱ
+ //ǶģʽȡһԿ
+ static LONG bbq(WindData& outWindData, LPCWSTR windCodes, LPCWSTR fields, LPCWSTR options = NULL);
+
+ //ģʽʵʱݣͨص
+ static LONG bbq(ULONGLONG &reqId, LPCWSTR windCodes, LPCWSTR fields, WsqCallBack callBack, LPCWSTR options = NULL);
+
+ //ֵwsetָݼ
+ static LONG wset(WindData& outWindData, LPCWSTR reportName, LPCWSTR options = NULL);
+
+ //ֵedbþ
+ static LONG edb(WindData& outWindData, LPCWSTR windCodes, LPCWSTR startTime = NULL, LPCWSTR endTime = NULL, LPCWSTR options = NULL);
+
+ //ϱ
+ static LONG wpf(WindData& outWindData, LPCWSTR portfolioName, LPCWSTR viewName, LPCWSTR options = NULL);
+
+ //ϴ
+ static LONG wupf(WindData& outWindData, LPCWSTR portfolioName, LPCWSTR tradeDate, LPCWSTR windCodes, LPCWSTR quantity, LPCWSTR costPrice, LPCWSTR options = NULL);
+
+ //֤ɸѡ
+ static LONG weqs(WindData& outWindData, LPCWSTR planName, LPCWSTR options = NULL);
+
+ //աայк
+ static LONG tdays(WindData& outWindData, LPCWSTR startTime, LPCWSTR endTime, LPCWSTR options = NULL);
+
+ //աայƫƼ
+ static LONG tdaysoffset(DATE& outDate, LPCWSTR startTime, LONG offset, LPCWSTR options = NULL);
+
+ //աայ
+ static LONG tdayscount(LONG& outCount, LPCWSTR startTime, LPCWSTR endTime, LPCWSTR options = NULL);
+ //////////////////////////////////////////////////////////////////////////
+
+ //
+ //////////////////////////////////////////////////////////////////////////
+ //˺ŵ½
+ static LONG tlogon(WindData& outWindData, LPCWSTR brokerID, LPCWSTR departmentID, LPCWSTR accountID, LPCWSTR password, LPCWSTR accountType, LPCWSTR options = NULL,TradeCallBack callBack=0);
+
+ //˺ŵdz, 0:dzȫѵ¼˺
+ static LONG tlogout(INT longId=0);
+
+ //µ
+ static LONG torder(WindData& outWindData, LPCWSTR windCodes, LPCWSTR tradeSide, LPCWSTR orderPrice, LPCWSTR orderVolume, LPCWSTR options = NULL);
+ static LONG torder(LONG& reqId, LPCWSTR windCodes, LPCWSTR tradeSide, DOUBLE orderPrice, LONG orderVolume, LPCWSTR options = NULL, WCHAR** pErrosMsg = NULL);
+
+ //ȡ
+ //
+ static LONG tcovered(WindData& outWindData, LPCWSTR windCodes, LPCWSTR tradeSide, LPCWSTR orderVolume, LPCWSTR options = NULL);
+ static LONG tcovered(LONG& reqId, LPCWSTR windCodes, LPCWSTR tradeSide, LONG orderVolume, LPCWSTR options = NULL, WCHAR** pErrosMsg = NULL);
+
+
+ //ѯ
+ static LONG tquery(WindData& outWindData, LPCWSTR qryCode, LPCWSTR options = NULL);
+
+ //
+ static LONG tcancel(LPCWSTR orderNumber, LPCWSTR options = NULL);
+ //////////////////////////////////////////////////////////////////////////
+
+ //ز⺯
+ //////////////////////////////////////////////////////////////////////////
+ //زʼ
+ static LONG bktstart(WindData& outWindData, LPCWSTR strategyName, LPCWSTR startDate, LPCWSTR endDate, LPCWSTR options = NULL);
+
+ //زѯ
+ static LONG bktquery(WindData& outWindData, LPCWSTR qrycode, LPCWSTR qrytime, LPCWSTR options = NULL);
+
+ //زµ
+ static LONG bktorder(WindData& outWindData, LPCWSTR tradeTime, LPCWSTR securityCode, LPCWSTR tradeSide, LPCWSTR tradeVol, LPCWSTR options = NULL);
+
+ //ز
+ static LONG bktend(WindData& outWindData, LPCWSTR options);
+
+ //鿴ز״̬
+ static LONG bktstatus(WindData& outWindData, LPCWSTR options);
+
+ //زҪ
+ static LONG bktsummary(WindData& outWindData, LPCWSTR bktID, LPCWSTR view, LPCWSTR options);
+
+ //زɾ
+ static LONG bktdelete(WindData& outWindData, LPCWSTR bktID, LPCWSTR options);
+
+ //زб
+ static LONG bktstrategy(WindData& outWindData, LPCWSTR options);
+
+ //////////////////////////////////////////////////////////////////////////
+ //appӦ
+ /**
+ * @brief AppȨ֤
+ * @param WindData & outWindData:
+ * @param LPCTSTR appKey: appӴվȡΨһ֤Id
+ * @param LPCTSTR appSecret:appԿ
+ * @param LPCTSTR options:
+ * @return LONG: ɹ\
+ */
+ static LONG wappAuth(WindData& outWindData, LPCTSTR appKey, LPCTSTR appSecret, LPCTSTR options);
+
+ /**
+ * @brief Appʹ½ͨѶ
+ * @param WindData & outWindData:
+ * @param LPCTSTR type_id: communication type,include:message_put; message_get; app_version; app_fps; app_data_get; app_data_put
+ * @param LPCTSTR message: communication content
+ * @param LPCTSTR options:
+ * @return LONG: ɹ\
+ */
+ static LONG wappMessage(WindData& outWindData, LPCTSTR type_id, LPCTSTR message, LPCTSTR options);
+
+ //////////////////////////////////////////////////////////////////////////
+};
+
+#endif
diff --git a/include/Wind/win32/WAPIWrapperCpp.dll b/include/Wind/win32/WAPIWrapperCpp.dll
new file mode 100644
index 0000000..03d2f70
Binary files /dev/null and b/include/Wind/win32/WAPIWrapperCpp.dll differ
diff --git a/include/Wind/win32/WAPIWrapperCpp.lib b/include/Wind/win32/WAPIWrapperCpp.lib
new file mode 100644
index 0000000..a358956
Binary files /dev/null and b/include/Wind/win32/WAPIWrapperCpp.lib differ
diff --git a/include/Wind/win64/WAPIWrapperCpp.dll b/include/Wind/win64/WAPIWrapperCpp.dll
new file mode 100644
index 0000000..d8402f4
Binary files /dev/null and b/include/Wind/win64/WAPIWrapperCpp.dll differ
diff --git a/include/Wind/win64/WAPIWrapperCpp.lib b/include/Wind/win64/WAPIWrapperCpp.lib
new file mode 100644
index 0000000..999e02f
Binary files /dev/null and b/include/Wind/win64/WAPIWrapperCpp.lib differ
diff --git a/include/XApiC.def b/include/XApiC.def
index 52240c9..f03781f 100644
--- a/include/XApiC.def
+++ b/include/XApiC.def
@@ -5,7 +5,7 @@ EXPORTS
X_GetFunction @3
X_FreeLib @4
- X_GetApiType @5
+ X_GetApiTypes @5
X_GetApiVersion @6
X_GetApiName @7
@@ -13,16 +13,16 @@ EXPORTS
X_Register @9
X_Connect @10
X_Disconnect @11
- X_Subscribe @12
+
+ X_Subscribe @12
X_Unsubscribe @13
X_SubscribeQuote @14
X_UnsubscribeQuote @15
- X_ReqQryInstrument @16
- X_ReqQryInvestorPosition @17
- X_ReqQryTradingAccount @18
- X_SendOrder @19
- X_CancelOrder @20
- X_SendQuote @21
- X_CancelQuote @22
\ No newline at end of file
+ X_ReqQuery @16
+
+ X_SendOrder @17
+ X_CancelOrder @18
+ X_SendQuote @19
+ X_CancelQuote @20
\ No newline at end of file
diff --git a/include/XApiC.h b/include/XApiC.h
index 3e8426e..04af10c 100644
--- a/include/XApiC.h
+++ b/include/XApiC.h
@@ -1,40 +1,40 @@
#pragma once
-#include "../include/ApiStruct.h"
+#include "ApiStruct.h"
+#include "QueueEnum.h"
+#include "QueueHeader.h"
#ifdef __cplusplus
extern "C" {
#endif
-void* X_LoadLib(char* libPath);
-char* X_GetLastError();
-void* X_GetFunction(void* lib, char* ProcName = "XRequest");
+void* X_LoadLib(const char* libPath);
+const char* X_GetLastError();
+void* X_GetFunction(void* lib, const char* ProcName = "XRequest");
void X_FreeLib(void* lib);
-ApiType X_GetApiType(void* pFun);
-char* X_GetApiVersion(void* pFun);
-char* X_GetApiName(void* pFun);
+ApiType X_GetApiTypes(void* pFun);
+const char* X_GetApiVersion(void* pFun);
+const char* X_GetApiName(void* pFun);
void* X_Create(void* pFun);
-void X_Register(void* pFun, void* pApi, void* pCallback, void* pClass);
+void X_Register(void* pFun, void* pApi, fnOnRespone pCallback, void* pClass);
-void X_Connect(void* pFun, void* pApi, char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count);
+void X_Connect(void* pFun, void* pApi, const char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count);
void X_Disconnect(void* pFun, void* pApi);
-void X_Subscribe(void* pFun, void* pApi, char* szInstrument, char* szExchange);
-void X_Unsubscribe(void* pFun, void* pApi, char* szInstrument, char* szExchange);
-void X_SubscribeQuote(void* pFun, void* pApi, char* szInstrument, char* szExchange);
-void X_UnsubscribeQuote(void* pFun, void* pApi, char* szInstrument, char* szExchange);
+void X_Subscribe(void* pFun, void* pApi, const char* szInstrument, const char* szExchange);
+void X_Unsubscribe(void* pFun, void* pApi, const char* szInstrument, const char* szExchange);
+void X_SubscribeQuote(void* pFun, void* pApi, const char* szInstrument, const char* szExchange);
+void X_UnsubscribeQuote(void* pFun, void* pApi, const char* szInstrument, const char* szExchange);
-void X_ReqQryInstrument(void* pFun, void* pApi, char* szInstrument, char* szExchange);
-void X_ReqQryInvestorPosition(void* pFun, void* pApi, char* szInstrument, char* szExchange);
-void X_ReqQryTradingAccount(void* pFun, void* pApi);
+void X_ReqQuery(void* pFun, void* pApi, QueryType type, ReqQueryField* query);
-void X_SendOrder(void* pFun, void* pApi, OrderField* pOrder, OrderIDType* pInOut, int count);
-void X_CancelOrder(void* pFun, void* pApi, OrderIDType* pIn, OrderIDType* pOut, int count);
+const char* X_SendOrder(void* pFun, void* pApi, OrderField* pOrder, int count, char* pOut);
+const char* X_CancelOrder(void* pFun, void* pApi, OrderIDType* pIn, int count, char* pOut);
-void X_SendQuote(void* pFun, void* pApi, QuoteField* pQuote, OrderIDType* pAskOut, OrderIDType* pBidOut, int count);
-void X_CancelQuote(void* pFun, void* pApi, OrderIDType* pIn, OrderIDType* pOut, int count);
+const char* X_SendQuote(void* pFun, void* pApi, QuoteField* pQuote, int count, char* pOut);
+const char* X_CancelQuote(void* pFun, void* pApi, OrderIDType* pIn, int count, char* pOut);
#ifdef __cplusplus
}
diff --git a/include/XApiCpp.h b/include/XApiCpp.h
index f7578d6..1e0b0c7 100644
--- a/include/XApiCpp.h
+++ b/include/XApiCpp.h
@@ -5,9 +5,10 @@
#pragma once
#endif // _MSC_VER > 1000
-#include "../include/CrossPlatform.h"
+#include "CrossPlatform.h"
-#include "../include/ApiStruct.h"
+#include "ApiStruct.h"
+#include "QueueEnum.h"
class CXApi;
@@ -38,34 +39,32 @@ class CXSpi
class DLL_PUBLIC CXApi
{
public:
- static CXApi* CreateApi(char* libPath);
+ static CXApi* CreateApi(const char* libPath);
virtual bool Init() = 0;
- virtual char* GetLastError() = 0;
+ virtual const char* GetLastError() = 0;
- virtual ApiType GetApiType() = 0;
- virtual char* GetApiVersion() = 0;
- virtual char* GetApiName() = 0;
+ virtual ApiType GetApiTypes() = 0;
+ virtual const char* GetApiVersion() = 0;
+ virtual const char* GetApiName() = 0;
virtual void RegisterSpi(CXSpi *pSpi) = 0;
- virtual void Connect(char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count) = 0;
+ virtual void Connect(const char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count) = 0;
virtual void Disconnect() = 0;
- virtual void Subscribe(char* szInstrument, char* szExchange) = 0;
- virtual void Unsubscribe(char* szInstrument, char* szExchange) = 0;
+ virtual void Subscribe(const char* szInstrument, const char* szExchange) = 0;
+ virtual void Unsubscribe(const char* szInstrument, const char* szExchange) = 0;
- virtual void ReqQryInstrument(char* szInstrument, char* szExchange) = 0;
- virtual void ReqQryInvestorPosition(char* szInstrument, char* szExchange) = 0;
- virtual void ReqQryTradingAccount() = 0;
+ virtual void ReqQuery(QueryType type, ReqQueryField* query) = 0;
- virtual void SendOrder(OrderField* pOrder, OrderIDType* pInOut, int count) = 0;
- virtual void CancelOrder(OrderIDType* pIn, OrderIDType* pOut, int count) = 0;
+ virtual const char* SendOrder(OrderField* pOrder, int count, char* pOut) = 0;
+ virtual const char* CancelOrder(OrderIDType* pIn, int count, char* pOut) = 0;
- virtual void SendQuote(QuoteField* pQuote, OrderIDType* pAskOut, OrderIDType* pBidOut, int count) = 0;
- virtual void CancelQuote(OrderIDType* pIn, OrderIDType* pOut, int count) = 0;
+ virtual const char* SendQuote(QuoteField* pQuote, int count, char* pOut) = 0;
+ virtual const char* CancelQuote(OrderIDType* pIn, int count, char* pOut) = 0;
protected:
CXApi();
- ~CXApi(){};
+ ~CXApi();
};
#endif
diff --git a/include/cryptopp.zip b/include/cryptopp.zip
new file mode 100644
index 0000000..177bec7
Binary files /dev/null and b/include/cryptopp.zip differ
diff --git a/include/inirw.cpp b/include/inirw.cpp
new file mode 100644
index 0000000..b364749
--- /dev/null
+++ b/include/inirw.cpp
@@ -0,0 +1,529 @@
+#include "stdafx.h"
+#include
+#include
+#include
+#include
+#include "inirw.h"
+
+#define SIZE_LINE 1024 //每行最大长度
+#define SIZE_FILENAME 256 //文件名最大长度
+
+#define min(x, y) (x <= y) ? x : y
+
+typedef enum _ELineType_ {
+ LINE_IDLE, //未处理行
+ LINE_ERROR, //错误行
+ LINE_EMPTY, //空白行或注释行
+ LINE_SECTION, //节定义行
+ LINE_VALUE //值定义行
+} ELineType ;
+
+
+static char gFilename[SIZE_FILENAME];
+static char *gBuffer;
+static int gBuflen;
+
+const char* GetBuffer()
+{
+ return gBuffer;
+}
+int GetBufferLen()
+{
+ return gBuflen;
+}
+
+
+//去除串首尾空格,原串被改写
+static char *StrStrip(char *s)
+{
+ size_t size;
+ char *p1, *p2;
+
+ size = strlen(s);
+ if (!size)
+ return s;
+
+ p2 = s + size - 1;
+
+ while ((p2 >= s) && isspace((unsigned char)*p2))
+ p2 --;
+ *(p2 + 1) = '\0';
+
+ p1 = s;
+ while (*p1 && isspace((unsigned char)*p1))
+ p1 ++;
+ if (s != p1)
+ memmove(s, p1, p2 - p1 + 2);
+ return s;
+}
+
+
+//不区分大小写比较字符串
+static int StriCmp(const char *s1, const char *s2)
+{
+ int ch1, ch2;
+ do
+ {
+ ch1 = (unsigned char)*(s1++);
+ if ((ch1 >= 'A') && (ch1 <= 'Z'))
+ ch1 += 0x20;
+
+ ch2 = (unsigned char)*(s2++);
+ if ((ch2 >= 'A') && (ch2 <= 'Z'))
+ ch2 += 0x20;
+ } while ( ch1 && (ch1 == ch2) );
+ return(ch1 - ch2);
+}
+
+
+//取一行
+//输入:数据区(指针及长度)
+//输出:行类型、有效内容串(去首尾空格)、注释首、注释尾、下一行首(行尾与下一行首间为换行符)
+// 有效内容位置为[buf, rem1)
+static int GetLine(char *buf, int buflen, char *content, char **rem1, char **rem2, char **nextline)
+{
+ char *cont1, *cont2;
+ int cntblank, cntCR, cntLF; //连续空格、换行符数量
+ char isQuot1, isQuot2; //引号
+ int i;
+ char *p;
+
+ //首先断行断注释,支持如下换行符:\r、\n、\r\n、\n\r
+ cntblank = 0;
+ cntCR = cntLF = 0;
+ isQuot1 = isQuot2 = 0;
+ cont1 = *rem1 = 0;
+ content[0] = 0;
+ for (i = 0, p = buf; i < buflen; i ++, p ++)
+ {
+ if (*p == 0) {
+ p ++;
+ break;
+ }
+ //2个CR或LF,行结束
+ if (cntCR == 2 || cntLF == 2) {
+ // 这个地方会导致两个LF时前一句读出来的"少一个
+ //p --; //回溯1
+ break;
+ }
+ //CR或LF各1个之后任意字符,行结束
+ if (cntCR + cntLF >= 2) {
+ break;
+ }
+ //CR或LF之后出现其它字符,行结束
+ if ((cntCR || cntLF) && *p != '\r' && *p != '\n')
+ break;
+
+ switch (*p) {
+ case '\r':
+ cntCR ++;
+ break;
+ case '\n':
+ cntLF ++;
+ break;
+ case '\'':
+ if (!isQuot2)
+ isQuot1 = 1 - isQuot1;
+ break;
+ case '\"':
+ if (!isQuot1)
+ isQuot2 = 1 - isQuot2;
+ break;
+ case ';':
+ case '#':
+ if (isQuot1 || isQuot2)
+ break;
+ if (*rem1 == NULL)
+ *rem1 = p - cntblank;
+ break;
+ default:
+ if (isspace((unsigned char)*p)) {
+ cntblank ++;
+ } else {
+ cntblank = 0;
+ if ((*rem1 == NULL) && (cont1 == NULL))
+ cont1 = p;
+ }
+ break;
+ }
+ }
+
+ *nextline = p;
+ *rem2 = p - cntCR - cntLF;
+ if (*rem1 == NULL)
+ *rem1 = *rem2;
+ cont2 = *rem1 - cntblank;
+
+ if (cont1 == NULL) {
+ cont1 = cont2;
+ return LINE_EMPTY;
+ }
+
+ i = (int)(cont2 - cont1);
+ if (i >= SIZE_LINE)
+ return LINE_ERROR;
+
+ //内容头尾已无空格
+ memcpy(content, cont1, i);
+ content[i] = 0;
+
+ if (content[0] == '[' && content[i - 1] == ']')
+ return LINE_SECTION;
+ if (strchr(content, '=') != NULL)
+ return LINE_VALUE;
+
+ return LINE_ERROR;
+}
+
+
+//取一节section
+//输入:节名称
+//输出:成功与否、节名称首、节名称尾、节内容首、节内容尾(含换行)、下一节首(节尾与下一节首间为空行或注释行)
+static int FindSection(const char *section, char **sect1, char **sect2, char **cont1, char **cont2, char **nextsect)
+{
+ int type;
+ char content[SIZE_LINE];
+ char *rem1, *rem2, *nextline = nullptr;
+
+ char *p = nullptr;
+ char *empty = nullptr;
+ int uselen = 0;
+ char found = 0;
+
+ if (gBuffer == NULL) {
+ return 0;
+ }
+
+ while (gBuflen - uselen > 0) {
+ p = gBuffer + uselen;
+ type = GetLine(p, gBuflen - uselen, content, &rem1, &rem2, &nextline);
+ uselen += (int)(nextline - p);
+
+ if (LINE_SECTION == type) {
+ if (found || section == NULL) break; //发现另一section
+ content[strlen(content) - 1] = 0; //去尾部]
+ StrStrip(content + 1); //去首尾空格
+ if (StriCmp(content + 1, section) == 0) {
+ found = 1;
+ *sect1 = p;
+ *sect2 = rem1;
+ *cont1 = nextline;
+ }
+ empty = nextline;
+ } else
+ if (LINE_VALUE == type) {
+ if (!found && section == NULL) {
+ found = 1;
+ *sect1 = p;
+ *sect2 = p;
+ *cont1 = p;
+ }
+ empty = nextline;
+ }
+ }
+
+ if (!found) return 0;
+
+ *cont2 = empty;
+ *nextsect = nextline;
+ return 1;
+}
+
+
+//从一行取键、值
+//输入:内容串(将被改写)
+//输出:键串、值串
+static void GetKeyValue(char *content, char **key, char **value)
+{
+ char *p;
+
+ p = strchr(content, '=');
+ *p = 0;
+ StrStrip(content);
+ StrStrip(p + 1);
+ *key = content;
+ *value = p + 1;
+}
+
+
+//释放ini文件所占资源
+void iniFileFree()
+{
+ if (gBuffer != NULL) {
+ free(gBuffer);
+ gBuffer = 0;
+ gBuflen = 0;
+ }
+}
+
+
+//加载ini文件至内存
+int iniFileLoad(const char *filename)
+{
+ FILE *file;
+ int len;
+
+ iniFileFree();
+ if (strlen(filename) >= sizeof(gFilename))
+ return 0;
+ strcpy(gFilename, filename);
+
+ file = fopen(gFilename, "rb");
+ if (file == NULL)
+ return 0;
+
+ fseek(file, 0, SEEK_END);
+ len = ftell(file);
+ gBuffer = (char*)malloc(len);
+ if (gBuffer == NULL) {
+ fclose(file);
+ return 0;
+ }
+
+ fseek(file, 0, SEEK_SET);
+ len = fread(gBuffer, 1, len, file);
+ fclose(file);
+ gBuflen = len;
+ return 1;
+}
+
+
+//读取值原始串
+static int iniGetValue(const char *section, const char *key, char *value, int maxlen, const char *defvalue)
+{
+ int type;
+ char content[SIZE_LINE];
+ char *rem1, *rem2, *nextline;
+ char *key0, *value0;
+
+ char *p;
+ int uselen = 0;
+ char found = 0;
+
+ int len;
+
+ if (gBuffer == NULL || key == NULL) {
+ if (value != NULL)
+ value[0] = 0;
+ return 0;
+ }
+
+ while (gBuflen - uselen > 0) {
+ p = gBuffer + uselen;
+ type = GetLine(p, gBuflen - uselen, content, &rem1, &rem2, &nextline);
+ uselen += (int)(nextline - p);
+
+ if (LINE_SECTION == type) {
+ if (found || section == NULL) break; //发现另一section
+ content[strlen(content) - 1] = 0; //去尾部]
+ StrStrip(content + 1); //去首尾空格
+ if (StriCmp(content + 1, section) == 0) {
+ found = 1;
+ }
+ } else
+ if (LINE_VALUE == type) {
+ if (!found && section == NULL) {
+ found = 1;
+ }
+ if (!found)
+ continue;
+ GetKeyValue(content, &key0, &value0);
+ if (StriCmp(key0, key) == 0) {
+ len = strlen(value0);
+ if (len == 0) break; //空值视为无效
+ if (value != NULL) {
+ len = min(len, maxlen - 1);
+ strncpy(value, value0, len);
+ value[len] = 0;
+ }
+ return 1;
+ }
+ }
+ }
+
+ //未发现键值取缺省
+ if (value != NULL) {
+ if (defvalue != NULL) {
+ len = min(strlen(defvalue), maxlen - 1);
+ strncpy(value, defvalue, len);
+ value[len] = 0;
+ } else {
+ value[0] = 0;
+ }
+ }
+ return 0;
+}
+
+
+//获取字符串,不带引号
+int iniGetString(const char *section, const char *key, char *value, int maxlen, const char *defvalue)
+{
+ int ret;
+ int len;
+
+ ret = iniGetValue(section, key, value, maxlen, defvalue);
+ if (!ret)
+ return ret;
+
+ //去首尾空格
+ len = strlen(value);
+ if (value[0] == '\'' && value[len - 1] == '\'') {
+ value[len - 1] = 0;
+ memmove(value, value + 1, len - 1);
+ } else
+ if (value[0] == '\"' && value[len - 1] == '\"') {
+ value[len - 1] = 0;
+ memmove(value, value + 1, len - 1);
+ }
+ return ret;
+}
+
+
+//获取整数值
+int iniGetInt(const char *section, const char *key, int defvalue)
+{
+ char valstr[64];
+
+ if (iniGetString(section, key, valstr, sizeof(valstr), ""))
+ return (int)strtol(valstr, NULL, 0);
+ return defvalue;
+}
+
+
+//获取浮点数
+double iniGetDouble(const char *section, const char *key, double defvalue)
+{
+ char valstr[64];
+
+ if (iniGetString(section, key, valstr, sizeof(valstr), ""))
+ return (int)atof(valstr);
+ return defvalue;
+}
+
+
+//设置字符串:若value为NULL,则删除该key所在行,包括注释
+int iniSetString(const char *section, const char *key, const char *value, bool quote)
+{
+ FILE *file;
+ char *sect1, *sect2, *cont1, *cont2, *nextsect;
+ char *p;
+ int len, type;
+ char content[SIZE_LINE];
+ char *key0, *value0;
+ char *rem1, *rem2, *nextline;
+
+ // 注了就可以创建文件了
+ //if (gBuffer == NULL) {
+ // return 0;
+ //}
+
+ if (FindSection(section, §1, §2, &cont1, &cont2, &nextsect) == 0)
+ {
+ //未找到节
+
+ //value无效则返回
+ if (value == NULL)
+ return 0;
+
+ //在文件尾部添加
+ file = fopen(gFilename, "ab");
+ if (file == NULL)
+ return 0;
+ if (quote)
+ {
+ fprintf(file, "\n[%s]\n%s=\"%s\"\n", section, key, value);
+ }
+ else
+ {
+ fprintf(file, "\n[%s]\n%s=%s\n", section, key, value);
+ }
+ fclose(file);
+ iniFileLoad(gFilename);
+ return 1;
+ }
+
+ //找到节,则节内查找key
+ p = cont1;
+ len = (int)(cont2 - cont1);
+ while (len > 0) {
+ type = GetLine(p, len, content, &rem1, &rem2, &nextline);
+
+ if (LINE_VALUE == type) {
+ GetKeyValue(content, &key0, &value0);
+ if (StriCmp(key0, key) == 0) {
+ //找到key
+ file = fopen(gFilename, "wb");
+ if (file == NULL)
+ return 0;
+ len = (int)(p - gBuffer);
+ fwrite(gBuffer, 1, len, file); //写入key之前部分
+ if (value == NULL) {
+ //value无效,删除
+ len = (int)(nextline - gBuffer); //整行连同注释一并删除
+ } else {
+ //value有效,改写
+ if (quote)
+ {
+ fprintf(file, "%s=\"%s\"", key, value);
+ }
+ else
+ {
+ fprintf(file, "%s=%s", key, value);
+ }
+ len = (int)(rem1 - gBuffer); //保留尾部原注释!
+ }
+ fwrite(gBuffer + len, 1, gBuflen - len, file); //写入key所在行含注释之后部分
+ fclose(file);
+ iniFileLoad(gFilename);
+ return 1;
+ }
+ }
+
+ len -= (int)(nextline - p);
+ p = nextline;
+ }
+
+ //未找到key
+
+ //value无效则返回
+ if (value == NULL)
+ return 0;
+
+ //在文件尾部添加
+ file = fopen(gFilename, "wb");
+ if (file == NULL)
+ return 0;
+ len = (int)(cont2 - gBuffer);
+ fwrite(gBuffer, 1, len, file); //写入key之前部分
+ if (quote)
+ {
+ fprintf(file, "%s=\"%s\"\n", key, value);
+ }
+ else
+ {
+ fprintf(file, "%s=%s\n", key, value);
+ }
+ fwrite(gBuffer + len, 1, gBuflen - len, file); //写入key之后部分
+ fclose(file);
+ iniFileLoad(gFilename);
+ return 1;
+}
+
+
+//设置整数值:base取值10、16、8,分别表示10、16、8进制,缺省为10进制
+int iniSetInt(const char *section, const char *key, int value, int base)
+{
+ char valstr[64];
+
+ switch (base) {
+ case 16:
+ sprintf(valstr, "0x%x", value);
+ return iniSetString(section, key, valstr, false);
+ case 8:
+ sprintf(valstr, "0%o", value);
+ return iniSetString(section, key, valstr, false);
+ default: //10
+ sprintf(valstr, "%d", value);
+ return iniSetString(section, key, valstr, false);
+ }
+}
diff --git a/include/inirw.h b/include/inirw.h
new file mode 100644
index 0000000..94503bf
--- /dev/null
+++ b/include/inirw.h
@@ -0,0 +1,55 @@
+/**
+ * 文件:inirw.h
+ * 版本:1.0
+ * 作者:taoyuanmin@gmail.com
+ *
+ * 说明:ini配置文件读写
+ * 1、支持;和#注释符号,支持行尾注释。
+ * 2、支持带引号'或"成对匹配的字符串,提取时自动去引号。引号中可带其它引号或;#注释符。
+ * 3、支持无section或空section(名称为空)。
+ * 4、支持10、16、8进制数,0x开头为16进制数,0开头为8进制。
+ * 5、支持section、key或=号前后带空格。
+ * 6、支持\n、\r、\r\n或\n\r换行格式。
+ * 7、不区分section、key大小写,但写入时以新串为准,并保持其大小写。
+ * 8、新增数据时,若section存在则在该节最后一个有效数据后添加,否则在文件尾部添加。
+ * 9、支持指定key所在整行删除,即删除该键值,包括注释。
+ * 10、可自动跳过格式错误行,修改时仍然保留。
+ * 11、修改时保留原注释:包括整行注释、行尾注释(包括前面空格)。
+ * 12、修改时保留原空行。以上三点主要是尽量保留原格式。
+ */
+
+
+#ifndef _INI_RW_H_
+#define _INI_RW_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+//加载ini文件至内存
+int iniFileLoad(const char *filename);
+//释放ini文件所占资源
+void iniFileFree();
+
+//获取字符串,不带引号
+int iniGetString(const char *section, const char *key, char *value, int size, const char *defvalue);
+//获取整数值
+int iniGetInt(const char *section, const char *key, int defvalue);
+//获取浮点数
+double iniGetDouble(const char *section, const char *key, double defvalue);
+
+//设置字符串:若value为NULL,则删除该key所在行,包括注释
+int iniSetString(const char *section, const char *key, const char *value,bool quote = true);
+//设置整数值:base取值10、16、8,分别表示10、16、8进制,缺省为10进制
+int iniSetInt(const char *section, const char *key, int value, int base);
+
+// 以下是用于加载字符串后用于别的用途,因为它所有的写入操作都是写文件
+// 不满足我需要给它添加字符串或加密的需求
+const char* GetBuffer();
+int GetBufferLen();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/include/toolkit.cpp b/include/toolkit.cpp
index 3512727..0d990e9 100644
--- a/include/toolkit.cpp
+++ b/include/toolkit.cpp
@@ -469,3 +469,44 @@ void GetOnFrontDisconnectedMsg(int ErrorId, char* ErrorMsg)
break;
}
}
+
+#if defined _WIN32 || WIN32 || _WINDOWS
+void GetDllPathByFunctionName(const char* szFunctionName, char* szPath)
+{
+ HMODULE hModule = nullptr;
+ GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, szFunctionName, &hModule);
+
+ GetModuleFileNameA(hModule, szPath, MAX_PATH);
+}
+
+void GetExePath(char* szPath)
+{
+ HMODULE hModule = GetModuleHandleA(nullptr);
+ //char szPath[MAX_PATH] = { 0 };
+ GetModuleFileNameA(hModule, szPath, MAX_PATH);
+}
+
+void GetDirectoryByPath(const char* szPath, char* szDirectory)
+{
+ //char szPath[_MAX_PATH] = { 0 };
+ char drive[_MAX_DRIVE] = { 0 };
+ char dir[_MAX_DIR] = { 0 };
+ char fname[_MAX_FNAME] = { 0 };
+ char ext[_MAX_EXT] = { 0 };
+
+ _splitpath(szPath, drive, dir, fname, ext);
+ _makepath(szDirectory, drive, dir, nullptr, nullptr);
+}
+
+void GetNewPathInSameDirectory(const char* szPath, const char* szFname, const char* szExt, char* szFileName)
+{
+ //char szPath[_MAX_PATH] = { 0 };
+ char drive[_MAX_DRIVE] = { 0 };
+ char dir[_MAX_DIR] = { 0 };
+ char fname[_MAX_FNAME] = { 0 };
+ char ext[_MAX_EXT] = { 0 };
+
+ _splitpath(szPath, drive, dir, fname, ext);
+ _makepath(szFileName, drive, dir, szFname, szExt);
+}
+#endif
diff --git a/include/toolkit.h b/include/toolkit.h
index bea689f..a9e494d 100644
--- a/include/toolkit.h
+++ b/include/toolkit.h
@@ -23,6 +23,9 @@ void GetExchangeTime_DCE(char* TradingDay, char* ActionDay, char* UpdateTime, in
void GetExchangeTime(char* TradingDay, char* ActionDay, char* UpdateTime, int* _TradingDay, int* _ActionDay, int* _UpdateTime, int* UpdateMillisec);
void GetExchangeTime(time_t Time, int* _TradingDay, int* _ActionDay, int* _UpdateTime);
+void GetUpdateTime_HH_mm_ss(char* UpdateTime, int* _HH, int* _mm, int* _ss);
+void GetUpdateTime_HHmmss(char* UpdateTime, int* _HH, int* _mm, int* _ss);
+
int GetDate(char* TradingDay);
int GetTime(char* UpdateTime);
@@ -31,4 +34,13 @@ double my_round(float val, int x = 0);
//根据OnFrontDisconnected(int nReason)的值填上错误消息
void GetOnFrontDisconnectedMsg(int ErrorId, char* ErrorMsg);
+// 通过公开的函数名,得到当前的路径
+void GetDllPathByFunctionName(const char* szFunctionName, char* szPath);
+// 得到当前可执行程序的路径
+void GetExePath(char* szPath);
+// 传入路径,得到目录
+void GetDirectoryByPath(const char* szPath, char* szDirectory);
+// 通过一个路径得到新的路径
+void GetNewPathInSameDirectory(const char* szPath, const char* szFname, const char* szExt, char* szFileName);
+
#endif
\ No newline at end of file
diff --git a/QuantBox_XAPI/ReadMe.txt b/languages/CPP/XAPI_CPP/ReadMe.txt
similarity index 100%
rename from QuantBox_XAPI/ReadMe.txt
rename to languages/CPP/XAPI_CPP/ReadMe.txt
diff --git a/QuantBox_XAPI/QuantBox_XAPI.cbp b/languages/CPP/XAPI_CPP/XAPI_CPP.cbp
similarity index 100%
rename from QuantBox_XAPI/QuantBox_XAPI.cbp
rename to languages/CPP/XAPI_CPP/XAPI_CPP.cbp
diff --git a/QuantBox_XAPI/QuantBox_XAPI.cpp b/languages/CPP/XAPI_CPP/XAPI_CPP.cpp
similarity index 100%
rename from QuantBox_XAPI/QuantBox_XAPI.cpp
rename to languages/CPP/XAPI_CPP/XAPI_CPP.cpp
diff --git a/languages/CPP/XAPI_CPP/XAPI_CPP.vcxproj b/languages/CPP/XAPI_CPP/XAPI_CPP.vcxproj
new file mode 100644
index 0000000..efdf847
--- /dev/null
+++ b/languages/CPP/XAPI_CPP/XAPI_CPP.vcxproj
@@ -0,0 +1,108 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+ {39599EFE-428F-408F-BF4F-BF462E37C5E8}
+ Win32Proj
+ XAPI_CPP
+
+
+
+ DynamicLibrary
+ true
+ v140
+ Unicode
+
+
+ DynamicLibrary
+ false
+ v140
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ ..\..\..\bin\$(Configuration)\$(PlatformTarget)\
+ $(ProjectName)_$(PlatformTarget)
+
+
+ false
+
+
+
+ Use
+ Level3
+ Disabled
+ WIN32;_DEBUG;_WINDOWS;_USRDLL;XAPI_CPP_EXPORTS;_CRT_SECURE_NO_WARNINGS;BUILDING_DLL;%(PreprocessorDefinitions)
+ true
+
+
+ Windows
+ true
+ ../../../include/XApiC.def
+
+
+
+
+
+
+
+
+ Level3
+ Use
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_WINDOWS;_USRDLL;XAPI_CPP_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+ Create
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/QuantBox_XAPI/QuantBox_XAPI.vcxproj.filters b/languages/CPP/XAPI_CPP/XAPI_CPP.vcxproj.filters
similarity index 94%
rename from QuantBox_XAPI/QuantBox_XAPI.vcxproj.filters
rename to languages/CPP/XAPI_CPP/XAPI_CPP.vcxproj.filters
index 49328ae..3067039 100644
--- a/QuantBox_XAPI/QuantBox_XAPI.vcxproj.filters
+++ b/languages/CPP/XAPI_CPP/XAPI_CPP.vcxproj.filters
@@ -30,10 +30,10 @@
Header Files
-
+
include
-
+
include
diff --git a/languages/CPP/XAPI_CPP/XApiC.cpp b/languages/CPP/XAPI_CPP/XApiC.cpp
new file mode 100644
index 0000000..0cd091a
--- /dev/null
+++ b/languages/CPP/XAPI_CPP/XApiC.cpp
@@ -0,0 +1,201 @@
+#include "stdafx.h"
+
+#include
+#include
+#include "../../../include/XApiC.h"
+#include "../../../include/QueueHeader.h"
+#include "../../../include/QueueEnum.h"
+
+#if defined WINDOWS || WIN32
+#include
+#else
+#include
+#include
+#endif
+
+
+void* X_LoadLib(const char* libPath)
+{
+ if (libPath == nullptr)
+ return nullptr;
+
+#if defined WINDOWS || WIN32
+ return LoadLibraryExA(libPath, nullptr, LOAD_WITH_ALTERED_SEARCH_PATH);
+#else
+ return dlopen(libPath, RTLD_NOW);
+#endif
+}
+
+const char* X_GetLastError()
+{
+#if defined WINDOWS || WIN32
+ char szBuf[256] = {0};
+ LPVOID lpMsgBuf;
+ DWORD dw = GetLastError();
+ FormatMessageA(
+ FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
+ NULL,
+ dw,
+ MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ (LPSTR)&lpMsgBuf,
+ 0, NULL);
+ return (const char*)lpMsgBuf;
+#else
+ extern int errno;
+ errno = 0;
+ return dlerror();
+#endif
+}
+
+void* X_GetFunction(void* lib, const char* ProcName)
+{
+ if (lib == nullptr)
+ return nullptr;
+#if defined WINDOWS || WIN32
+ return GetProcAddress((HMODULE)lib, ProcName);
+#else
+ return (dlsym(lib, ProcName));
+#endif
+}
+
+void X_FreeLib(void* lib)
+{
+ if (lib == nullptr)
+ return;
+
+#if defined WINDOWS || WIN32
+ FreeLibrary((HMODULE)lib);
+#else
+ dlclose(lib);
+#endif
+}
+
+ApiType X_GetApiTypes(void* pFun)
+{
+ if (pFun == nullptr)
+ return ApiType::ApiType_Nono;
+
+ void* p = ((fnOnRespone)pFun)(RequestType::RequestType_GetApiTypes, nullptr, nullptr, 0, 0, nullptr, 0, nullptr, 0, nullptr, 0);
+
+ return (ApiType)(char)(long long)(p);
+}
+
+const char* X_GetApiVersion(void* pFun)
+{
+ if (pFun == nullptr)
+ return nullptr;
+
+ return (const char*)((fnOnRespone)pFun)(RequestType::RequestType_GetApiVersion, nullptr, nullptr, 0, 0, nullptr, 0, nullptr, 0, nullptr, 0);
+}
+
+const char* X_GetApiName(void* pFun)
+{
+ if (pFun == nullptr)
+ return nullptr;
+
+ return (const char*)((fnOnRespone)pFun)(RequestType::RequestType_GetApiName, nullptr, nullptr, 0, 0, nullptr, 0, nullptr, 0, nullptr, 0);
+}
+
+void* X_Create(void* pFun)
+{
+ if (pFun == nullptr)
+ return nullptr;
+
+ return ((fnOnRespone)pFun)(RequestType::RequestType_Create, nullptr, nullptr, 0, 0, nullptr, 0, nullptr, 0, nullptr, 0);
+}
+
+void X_Register(void* pFun, void* pApi, fnOnRespone pCallback, void* pClass)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_Register, pApi, nullptr, 0, 0, (void*)pCallback, 0, pClass, 0, nullptr, 0);
+}
+
+void X_Connect(void* pFun, void* pApi, const char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_Connect, pApi, nullptr, 0, 0, pServerInfo, 0, pUserInfo, count, (void*)szPath, 0);
+}
+
+void X_Disconnect(void* pFun, void* pApi)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_Disconnect, pApi, nullptr, 0, 0, nullptr, 0, nullptr, 0, nullptr, 0);
+}
+
+void X_Subscribe(void* pFun, void* pApi, const char* szInstrument, const char* szExchange)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_Subscribe, pApi, nullptr, 0, 0, (void*)szInstrument, 0, (void*)szExchange, 0, nullptr, 0);
+}
+
+void X_Unsubscribe(void* pFun, void* pApi, const char* szInstrument, const char* szExchange)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_Unsubscribe, pApi, nullptr, 0, 0, (void*)szInstrument, 0, (void*)szExchange, 0, nullptr, 0);
+}
+
+void X_SubscribeQuote(void* pFun, void* pApi, const char* szInstrument, const char* szExchange)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_SubscribeQuote, pApi, nullptr, 0, 0, (void*)szInstrument, 0, (void*)szExchange, 0, nullptr, 0);
+}
+
+void X_UnsubscribeQuote(void* pFun, void* pApi, const char* szInstrument, const char* szExchange)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(RequestType::RequestType_UnsubscribeQuote, pApi, nullptr, 0, 0, (void*)szInstrument, 0, (void*)szExchange, 0, nullptr, 0);
+}
+
+void X_ReqQuery(void* pFun, void* pApi, QueryType type, ReqQueryField* query)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return;
+
+ ((fnOnRespone)pFun)(type, pApi, nullptr, 0, 0, query, sizeof(ReqQueryField), nullptr, 0, nullptr, 0);
+}
+
+const char* X_SendOrder(void* pFun, void* pApi, OrderField* pOrder, int count, char* pOut)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return nullptr;
+
+ return (const char*)((fnOnRespone)pFun)(RequestType::RequestType_ReqOrderInsert, pApi, nullptr, 0, 0, pOrder, count, pOut, 0, nullptr, 0);
+}
+
+const char* X_CancelOrder(void* pFun, void* pApi, OrderIDType* pIn, int count, char* pOut)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return nullptr;
+
+ return (const char*)((fnOnRespone)pFun)(RequestType::RequestType_ReqOrderAction, pApi, nullptr, 0, 0, pIn, count, pOut, 0, nullptr, 0);
+}
+
+const char* X_SendQuote(void* pFun, void* pApi, QuoteField* pQuote, int count, char* pOut)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return nullptr;
+
+ return (const char*)((fnOnRespone)pFun)(RequestType::RequestType_ReqQuoteInsert, pApi, nullptr, 0, 0, pQuote, count, pOut, 0, nullptr, 0);
+}
+
+const char* X_CancelQuote(void* pFun, void* pApi, OrderIDType* pIn, int count, char* pOut)
+{
+ if (pFun == nullptr || pApi == nullptr)
+ return nullptr;
+
+ return (const char*)((fnOnRespone)pFun)(RequestType::RequestType_ReqQuoteAction, pApi, nullptr, 0, 0, pIn, count, pOut, 0, nullptr, 0);
+}
diff --git a/languages/CPP/XAPI_CPP/XApiCpp.cpp b/languages/CPP/XAPI_CPP/XApiCpp.cpp
new file mode 100644
index 0000000..c12cb90
--- /dev/null
+++ b/languages/CPP/XAPI_CPP/XApiCpp.cpp
@@ -0,0 +1,17 @@
+#include "stdafx.h"
+#include "../../../include/XApiCpp.h"
+
+#include "XApiImpl.h"
+
+CXApi::CXApi()
+{
+}
+
+CXApi::~CXApi()
+{
+}
+
+CXApi* CXApi::CreateApi(const char* libPath)
+{
+ return new CXApiImpl(libPath);
+}
diff --git a/QuantBox_XAPI/XApiImpl.cpp b/languages/CPP/XAPI_CPP/XApiImpl.cpp
similarity index 62%
rename from QuantBox_XAPI/XApiImpl.cpp
rename to languages/CPP/XAPI_CPP/XApiImpl.cpp
index a3a9126..745ca0b 100644
--- a/QuantBox_XAPI/XApiImpl.cpp
+++ b/languages/CPP/XAPI_CPP/XApiImpl.cpp
@@ -3,8 +3,8 @@
#include
#include "XApiImpl.h"
-#include "../include/QueueEnum.h"
-#include "../include/XApiC.h"
+#include "../../../include/QueueEnum.h"
+#include "../../../include/XApiC.h"
void* __stdcall CXApiImpl::OnRespone(char type, void* pApi1, void* pApi2, double double1, double double2, void* ptr1, int size1, void* ptr2, int size2, void* ptr3, int size3)
{
@@ -23,53 +23,53 @@ void* CXApiImpl::_OnRespone(char type, void* pApi1, void* pApi2, double double1,
ResponeType rt = (ResponeType)type;
switch (rt)
{
- case OnConnectionStatus:
+ case ResponeType_OnConnectionStatus:
m_pSpi->OnConnectionStatus(this, (ConnectionStatus)(char)double1, (RspUserLoginField*)ptr1, size1);
break;
- case OnRtnError:
+ case ResponeType_OnRtnError:
m_pSpi->OnRtnError(this, (ErrorField*)ptr1);
break;
- case OnRtnDepthMarketData:
+ case ResponeType_OnRtnDepthMarketData:
m_pSpi->OnRtnDepthMarketDataN(this, (DepthMarketDataNField*)ptr1);
break;
- case OnRspQryInstrument:
+ case ResponeType_OnRspQryInstrument:
m_pSpi->OnRspQryInstrument(this, (InstrumentField*)ptr1, size1, double1 != 0);
break;
- case OnRspQryTradingAccount:
+ case ResponeType_OnRspQryTradingAccount:
m_pSpi->OnRspQryTradingAccount(this, (AccountField*)ptr1, size1, double1 != 0);
break;
- case OnRspQryInvestorPosition:
+ case ResponeType_OnRspQryInvestorPosition:
m_pSpi->OnRspQryInvestorPosition(this, (PositionField*)ptr1, size1, double1 != 0);
break;
- case OnRspQrySettlementInfo:
+ case ResponeType_OnRspQrySettlementInfo:
m_pSpi->OnRspQrySettlementInfo(this, (SettlementInfoField*)ptr1, size1, double1 != 0);
break;
- case OnRtnOrder:
+ case ResponeType_OnRtnOrder:
m_pSpi->OnRtnOrder(this, (OrderField*)ptr1);
break;
- case OnRtnTrade:
+ case ResponeType_OnRtnTrade:
m_pSpi->OnRtnTrade(this, (TradeField*)ptr1);
break;
- case OnRtnQuote:
+ case ResponeType_OnRtnQuote:
m_pSpi->OnRtnQuote(this, (QuoteField*)ptr1);
break;
- case OnRtnQuoteRequest:
+ case ResponeType_OnRtnQuoteRequest:
m_pSpi->OnRtnQuoteRequest(this, (QuoteRequestField*)ptr1);
break;
- case OnRspQryHistoricalTicks:
+ case ResponeType_OnRspQryHistoricalTicks:
m_pSpi->OnRspQryHistoricalTicks(this, (TickField*)ptr1, size1, (HistoricalDataRequestField*)ptr2, size2, double1 != 0);
break;
- case OnRspQryHistoricalBars:
+ case ResponeType_OnRspQryHistoricalBars:
m_pSpi->OnRspQryHistoricalBars(this, (BarField*)ptr1, size1, (HistoricalDataRequestField*)ptr2, size2, double1 != 0);
break;
- case OnRspQryInvestor:
+ case ResponeType_OnRspQryInvestor:
m_pSpi->OnRspQryInvestor(this, (InvestorField*)ptr1, size1, double1 != 0);
break;
- case OnFilterSubscribe:
+ case ResponeType_OnFilterSubscribe:
return (void*)m_pSpi->OnFilterSubscribe(this, (ExchangeType)(char)double1, (int)size1, (int)size1, (int)size3, (char*)ptr1);
default:
break;
@@ -77,7 +77,7 @@ void* CXApiImpl::_OnRespone(char type, void* pApi1, void* pApi2, double double1,
return nullptr;
}
-CXApiImpl::CXApiImpl(char* libPath) :CXApi()
+CXApiImpl::CXApiImpl(const char* libPath) :CXApi()
{
m_pLib = nullptr;
m_pFun = nullptr;
@@ -93,17 +93,17 @@ CXApiImpl::~CXApiImpl()
Disconnect();
}
-ApiType CXApiImpl::GetApiType()
+ApiType CXApiImpl::GetApiTypes()
{
- return X_GetApiType(m_pFun);
+ return X_GetApiTypes(m_pFun);
}
-char* CXApiImpl::GetApiVersion()
+const char* CXApiImpl::GetApiVersion()
{
return X_GetApiVersion(m_pFun);
}
-char* CXApiImpl::GetApiName()
+const char* CXApiImpl::GetApiName()
{
return X_GetApiName(m_pFun);
}
@@ -127,15 +127,15 @@ bool CXApiImpl::Init()
return false;
}
-char* CXApiImpl::GetLastError()
+const char* CXApiImpl::GetLastError()
{
return X_GetLastError();
}
-void CXApiImpl::Connect(char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count)
+void CXApiImpl::Connect(const char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count)
{
m_pApi = X_Create(m_pFun);
- X_Register(m_pFun, m_pApi, (void*)OnRespone, this);
+ X_Register(m_pFun, m_pApi, (fnOnRespone)OnRespone, this);
X_Connect(m_pFun, m_pApi, szPath, pServerInfo, pUserInfo, count);
}
@@ -150,46 +150,37 @@ void CXApiImpl::Disconnect()
m_pSpi = nullptr;
}
-void CXApiImpl::Subscribe(char* szInstrument, char* szExchange)
+void CXApiImpl::Subscribe(const char* szInstrument, const char* szExchange)
{
X_Subscribe(m_pFun, m_pApi, szInstrument, szExchange);
}
-void CXApiImpl::Unsubscribe(char* szInstrument, char* szExchange)
+void CXApiImpl::Unsubscribe(const char* szInstrument, const char* szExchange)
{
X_Unsubscribe(m_pFun, m_pApi, szInstrument, szExchange);
}
-void CXApiImpl::ReqQryInstrument(char* szInstrument, char* szExchange)
+void CXApiImpl::ReqQuery(QueryType type, ReqQueryField* query)
{
- X_ReqQryInstrument(m_pFun, m_pApi, szInstrument, szExchange);
+ X_ReqQuery(m_pFun, m_pApi, type, query);
}
-void CXApiImpl::ReqQryInvestorPosition(char* szInstrument, char* szExchange)
+const char* CXApiImpl::SendOrder(OrderField* pOrder, int count, char* pOut)
{
- X_ReqQryInvestorPosition(m_pFun, m_pApi, szInstrument, szExchange);
+ return X_SendOrder(m_pFun, m_pApi, pOrder, count, pOut);
}
-void CXApiImpl::ReqQryTradingAccount()
+const char* CXApiImpl::CancelOrder(OrderIDType* pIn, int count, char* pOut)
{
- X_ReqQryTradingAccount(m_pFun, m_pApi);
+ return X_CancelOrder(m_pFun, m_pApi, pIn, count, pOut);
}
-void CXApiImpl::SendOrder(OrderField* pOrder, OrderIDType* pInOut, int count)
+const char* CXApiImpl::SendQuote(QuoteField* pQuote, int count, char* pOut)
{
- X_SendOrder(m_pFun, m_pApi, pOrder, pInOut, count);
+ return X_SendQuote(m_pFun, m_pApi, pQuote, count, pOut);
}
-void CXApiImpl::CancelOrder(OrderIDType* pIn, OrderIDType* pOut, int count)
+const char* CXApiImpl::CancelQuote(OrderIDType* pIn, int count, char* pOut)
{
- X_CancelOrder(m_pFun, m_pApi, pIn, pOut, count);
-}
-
-void CXApiImpl::SendQuote(QuoteField* pQuote, OrderIDType* pAskOut, OrderIDType* pBidOut, int count)
-{
- X_SendQuote(m_pFun, m_pApi, pQuote, pAskOut, pBidOut, count);
-}
-void CXApiImpl::CancelQuote(OrderIDType* pIn, OrderIDType* pOut, int count)
-{
- X_CancelQuote(m_pFun, m_pApi, pIn, pOut, count);
+ return X_CancelQuote(m_pFun, m_pApi, pIn, count, pOut);
}
diff --git a/languages/CPP/XAPI_CPP/XApiImpl.h b/languages/CPP/XAPI_CPP/XApiImpl.h
new file mode 100644
index 0000000..97e6104
--- /dev/null
+++ b/languages/CPP/XAPI_CPP/XApiImpl.h
@@ -0,0 +1,46 @@
+#pragma once
+#include "../../../include/XApiCpp.h"
+
+#include "../../../include/QueueHeader.h"
+
+class CXApiImpl :
+ public CXApi
+{
+public:
+ CXApiImpl(const char* libPath);
+ ~CXApiImpl();
+
+ virtual ApiType GetApiTypes();
+ virtual const char* GetApiVersion();
+ virtual const char* GetApiName();
+
+ virtual bool Init();
+ virtual const char* GetLastError();
+ virtual void RegisterSpi(CXSpi *pSpi);
+
+ virtual void Connect(const char* szPath, ServerInfoField* pServerInfo, UserInfoField* pUserInfo, int count);
+ virtual void Disconnect();
+
+ virtual void Subscribe(const char* szInstrument, const char* szExchange);
+ virtual void Unsubscribe(const char* szInstrument, const char* szExchange);
+
+ virtual void ReqQuery(QueryType type, ReqQueryField* query);
+
+ virtual const char* SendOrder(OrderField* pOrder, int count, char* pOut);
+ virtual const char* CancelOrder(OrderIDType* pIn, int count, char* pOut);
+
+ virtual const char* SendQuote(QuoteField* pQuote, int count, char* pOut);
+ virtual const char* CancelQuote(OrderIDType* pIn, int count, char* pOut);
+public:
+ static void* __stdcall OnRespone(char type, void* pApi1, void* pApi2, double double1, double double2, void* ptr1, int size1, void* ptr2, int size2, void* ptr3, int size3);
+private:
+ void* _OnRespone(char type, void* pApi1, void* pApi2, double double1, double double2, void* ptr1, int size1, void* ptr2, int size2, void* ptr3, int size3);
+
+ void* m_pLib;
+ void* m_pFun;
+ void* m_pApi;
+
+ CXSpi *m_pSpi;
+ char m_LibPath[1024];
+};
+
diff --git a/QuantBox_Tdx_Trade/dllmain.cpp b/languages/CPP/XAPI_CPP/dllmain.cpp
similarity index 100%
rename from QuantBox_Tdx_Trade/dllmain.cpp
rename to languages/CPP/XAPI_CPP/dllmain.cpp
diff --git a/QuantBox_XAPI/stdafx.cpp b/languages/CPP/XAPI_CPP/stdafx.cpp
similarity index 100%
rename from QuantBox_XAPI/stdafx.cpp
rename to languages/CPP/XAPI_CPP/stdafx.cpp
diff --git a/QuantBox_XAPI/stdafx.h b/languages/CPP/XAPI_CPP/stdafx.h
similarity index 100%
rename from QuantBox_XAPI/stdafx.h
rename to languages/CPP/XAPI_CPP/stdafx.h
diff --git a/languages/CPP/XAPI_CPP/targetver.h b/languages/CPP/XAPI_CPP/targetver.h
new file mode 100644
index 0000000..87c0086
--- /dev/null
+++ b/languages/CPP/XAPI_CPP/targetver.h
@@ -0,0 +1,8 @@
+#pragma once
+
+// Including SDKDDKVer.h defines the highest available Windows platform.
+
+// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
+// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
+
+#include
diff --git a/languages/CSharp/XAPI_CSharp.sln b/languages/CSharp/XAPI_CSharp.sln
new file mode 100644
index 0000000..bf2538c
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp.sln
@@ -0,0 +1,40 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.21005.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XAPI_CSharp", "XAPI_CSharp\XAPI_CSharp.csproj", "{6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|x64 = Debug|x64
+ Debug64|Any CPU = Debug64|Any CPU
+ Debug64|x64 = Debug64|x64
+ Release|Any CPU = Release|Any CPU
+ Release|x64 = Release|x64
+ Release64|Any CPU = Release64|Any CPU
+ Release64|x64 = Release64|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug|x64.ActiveCfg = Debug|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug|x64.Build.0 = Debug|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug64|Any CPU.ActiveCfg = Debug64|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug64|Any CPU.Build.0 = Debug64|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug64|x64.ActiveCfg = Debug64|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Debug64|x64.Build.0 = Debug64|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release|x64.ActiveCfg = Release|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release|x64.Build.0 = Release|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release64|Any CPU.ActiveCfg = Release64|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release64|Any CPU.Build.0 = Release64|Any CPU
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release64|x64.ActiveCfg = Release64|x64
+ {6AA065F5-2E4A-4112-A3AE-1F75CAE42FFB}.Release64|x64.Build.0 = Release64|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/languages/CSharp/XAPI_CSharp/COM/ClassFactoryBase.cs b/languages/CSharp/XAPI_CSharp/COM/ClassFactoryBase.cs
new file mode 100644
index 0000000..b64ad36
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/ClassFactoryBase.cs
@@ -0,0 +1,152 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace XAPI.COM
+{
+ class ClassFactoryBase : IClassFactory
+ {
+ // CoRegisterClassObject() is used to register a Class Factory
+ // into COM's internal table of Class Factories.
+ [DllImport("ole32.dll")]
+ static extern int CoRegisterClassObject([In] ref Guid rclsid,
+ [MarshalAs(UnmanagedType.IUnknown)] object pUnk, uint dwClsContext,
+ uint flags, out uint lpdwRegister);
+
+ // Called by an COM EXE Server that can register multiple class objects
+ // to inform COM about all registered classes, and permits activation
+ // requests for those class objects.
+ // This function causes OLE to inform the SCM about all the registered
+ // classes, and begins letting activation requests into the server process.
+ [DllImport("ole32.dll")]
+ static extern int CoResumeClassObjects();
+
+ // CoRevokeClassObject() is used to unregister a Class Factory
+ // from COM's internal table of Class Factories.
+ [DllImport("ole32.dll")]
+ static extern int CoRevokeClassObject(uint dwRegister);
+
+ public ClassFactoryBase()
+ {
+ }
+
+ protected UInt32 m_locked = 0;
+ protected uint m_ClassContext = (uint)CLSCTX.CLSCTX_LOCAL_SERVER;
+ protected Guid m_ClassId;
+ protected uint m_Flags;
+ protected uint m_Cookie;
+
+ public virtual void virtual_CreateInstance(IntPtr pUnkOuter, ref Guid riid, out IntPtr ppvObject)
+ {
+ IntPtr nullPtr = new IntPtr(0);
+ ppvObject = nullPtr;
+ }
+
+ public uint ClassContext
+ {
+ get
+ {
+ return m_ClassContext;
+ }
+ set
+ {
+ m_ClassContext = value;
+ }
+ }
+
+ public Guid ClassId
+ {
+ get
+ {
+ return m_ClassId;
+ }
+ set
+ {
+ m_ClassId = value;
+ }
+ }
+
+ public uint Flags
+ {
+ get
+ {
+ return m_Flags;
+ }
+ set
+ {
+ m_Flags = value;
+ }
+ }
+
+ public bool RegisterClassObject()
+ {
+ // Register the class factory
+ int i = CoRegisterClassObject
+ (
+ ref m_ClassId,
+ this,
+ ClassContext,
+ Flags,
+ out m_Cookie
+ );
+
+ if (i == 0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ public bool RevokeClassObject()
+ {
+ int i = CoRevokeClassObject(m_Cookie);
+
+ if (i == 0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ public static bool ResumeClassObjects()
+ {
+ int i = CoResumeClassObjects();
+
+ if (i == 0)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ #region IClassFactory Implementations
+ public void CreateInstance(IntPtr pUnkOuter, ref Guid riid, out IntPtr ppvObject)
+ {
+ virtual_CreateInstance(pUnkOuter, ref riid, out ppvObject);
+ }
+
+ public void LockServer(bool bLock)
+ {
+ if (bLock)
+ {
+ ManagedCOMLocalServer.InterlockedIncrementServerLockCount();
+ }
+ else
+ {
+ ManagedCOMLocalServer.InterlockedDecrementServerLockCount();
+ }
+
+ // Always attempt to see if we need to shutdown this server application.
+ ManagedCOMLocalServer.AttemptToTerminateServer();
+ }
+ #endregion
+ }
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/Delegate.cs b/languages/CSharp/XAPI_CSharp/COM/Delegate.cs
new file mode 100644
index 0000000..29af39b
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/Delegate.cs
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+
+namespace XAPI.COM
+{
+ // 中文问题,以及枚举问题,使用新Class来替代Struct
+ [ComVisible(false)]
+ public delegate void DelegateOnConnectionStatus(XApiCom sender, int status, string status_String, RspUserLoginClass userLogin, int size1);
+ [ComVisible(false)]
+ public delegate void DelegateOnRtnError(XApiCom sender, ErrorClass error);
+ [ComVisible(false)]
+ public delegate void DelegateOnLog(XApiCom sender, LogClass log);
+
+ [ComVisible(false)]
+ public delegate void DelegateOnRtnDepthMarketData(XApiCom sender, DepthMarketDataNClass marketData);
+ //public delegate void DelegateOnRtnQuoteRequest(object sender, [In]ref QuoteRequestField quoteRequest);
+
+ [ComVisible(false)]
+ public delegate void DelegateOnRspQryInstrument(XApiCom sender, InstrumentClass instrument, int size1, bool bIsLast);
+ [ComVisible(false)]
+ public delegate void DelegateOnRspQryTradingAccount(XApiCom sender, AccountClass account, int size1, bool bIsLast);
+ [ComVisible(false)]
+ public delegate void DelegateOnRspQryInvestorPosition(XApiCom sender, PositionClass position, int size1, bool bIsLast);
+ //public delegate void DelegateOnRspQrySettlementInfo(object sender, SettlementInfoClass settlementInfo, int size1, bool bIsLast);
+ //public delegate void DelegateOnRspQryInvestor(object sender, InvestorField investor, int size1, bool bIsLast);
+ [ComVisible(false)]
+ public delegate void DelegateOnRtnOrder(XApiCom sender, OrderClass order);
+ [ComVisible(false)]
+ public delegate void DelegateOnRtnTrade(XApiCom sender, TradeClass trade);
+ //public delegate void DelegateOnRtnQuote(object sender, QuoteField quote);
+ [ComVisible(false)]
+ public delegate void DelegateOnRspQryOrder(XApiCom sender, OrderClass order, int size1, bool bIsLast);
+ [ComVisible(false)]
+ public delegate void DelegateOnRspQryTrade(XApiCom sender, TradeClass trade, int size1, bool bIsLast);
+ //public delegate void DelegateOnRspQryQuote(object sender, QuoteField quote, int size1, bool bIsLast);
+
+ //public delegate void DelegateOnRspQryHistoricalTicks(object sender, IntPtr pTicks, int size1, HistoricalDataRequestField request, int size2, bool bIsLast);
+ //public delegate void DelegateOnRspQryHistoricalBars(object sender, IntPtr pBars, int size1, HistoricalDataRequestField request, int size2, bool bIsLast);
+
+ //public delegate bool DelegateOnFilterSubscribe(object sender, ExchangeType exchange, int instrument_part1, int instrument_part2, int instrument_part3, IntPtr pInstrument);
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/GarbageCollection.cs b/languages/CSharp/XAPI_CSharp/COM/GarbageCollection.cs
new file mode 100644
index 0000000..2aa11ec
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/GarbageCollection.cs
@@ -0,0 +1,63 @@
+using System;
+using System.Threading;
+
+namespace XAPI.COM
+{
+ ///
+ /// Summary description for GarbageCollection.
+ ///
+ class GarbageCollection
+ {
+ protected bool m_bContinueThread;
+ protected bool m_GCWatchStopped;
+ protected int m_iInterval;
+ protected ManualResetEvent m_EventThreadEnded;
+
+ public GarbageCollection(int iInterval)
+ {
+ m_bContinueThread = true;
+ m_GCWatchStopped = false;
+ m_iInterval = iInterval;
+ m_EventThreadEnded = new ManualResetEvent(false);
+ }
+
+ public void GCWatch()
+ {
+ Console.WriteLine("GarbageCollection.GCWatch() is now running on another thread.");
+ // Pause for a moment to provide a delay to make threads more apparent.
+ while (ContinueThread())
+ {
+ GC.Collect();
+ Thread.Sleep(m_iInterval);
+ }
+
+ Console.WriteLine("Goind to call m_EventThreadEnded.Set().");
+ m_EventThreadEnded.Set();
+ }
+
+ protected bool ContinueThread()
+ {
+ lock(this)
+ {
+ return m_bContinueThread;
+ }
+ }
+
+ public void StopThread()
+ {
+ lock(this)
+ {
+ Console.WriteLine("StopThread().");
+ m_bContinueThread = false;
+ }
+ }
+
+ public void WaitForThreadToStop()
+ {
+ Console.WriteLine("WaitForThreadToStop().");
+ m_EventThreadEnded.WaitOne();
+ m_EventThreadEnded.Reset();
+ Console.WriteLine("WaitForThreadToStop() exiting.");
+ }
+ }
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/IClassFactory.cs b/languages/CSharp/XAPI_CSharp/COM/IClassFactory.cs
new file mode 100644
index 0000000..1ddae0d
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/IClassFactory.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace XAPI.COM
+{
+ // Interface IClassFactory is here to provide a C# definition of the
+ // COM IClassFactory interface.
+ [
+ ComImport, // This interface originated from COM.
+ ComVisible(false), // It is not hard to imagine that this interface must not be exposed to COM.
+ InterfaceType(ComInterfaceType.InterfaceIsIUnknown), // Indicate that this interface is not IDispatch-based.
+ Guid("00000001-0000-0000-C000-000000000046") // This GUID is the actual GUID of IClassFactory.
+ ]
+ public interface IClassFactory
+ {
+ void CreateInstance(IntPtr pUnkOuter, ref Guid riid, out IntPtr ppvObject);
+ void LockServer(bool fLock);
+ }
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/IXApi.cs b/languages/CSharp/XAPI_CSharp/COM/IXApi.cs
new file mode 100644
index 0000000..367fc4a
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/IXApi.cs
@@ -0,0 +1,53 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Windows.Forms;
+
+namespace XAPI.COM
+{
+ [ComVisible(true)]
+ [Guid("DBCAEFA9-4337-47B8-9B47-66070604CE2C")]
+ public interface IXApi
+ {
+ [DispId(1)]
+ void SetLibPath(string LibPath);
+ [DispId(2)]
+ void SetServerInfo(string key,object value);
+ [DispId(3)]
+ void SetUserInfo(string key, object value);
+
+
+ [DispId(10)]
+ void Connect();
+ [DispId(11)]
+ void Disconnect();
+
+ [DispId(20)]
+ void Subscribe(string szInstrument, string szExchange);
+ [DispId(21)]
+ void Unsubscribe(string szInstrument, string szExchange);
+
+ [DispId(31)]
+ void NewOrder();
+ [DispId(32)]
+ void SetOrder(string key, object value);
+ [DispId(33)]
+ string SendOrder();
+ [DispId(34)]
+ string CancelOrder(string id);
+
+ [DispId(40)]
+ void NewQuery();
+ [DispId(41)]
+ void SetQuery(string key, object value);
+ [DispId(42)]
+ void ReqQuery(XAPI.QueryType type);
+ [DispId(50)]
+ QueueData TryDequeue();
+
+ [DispId(60)]
+ void GCCollect();
+ }
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/IXApiEvents.cs b/languages/CSharp/XAPI_CSharp/COM/IXApiEvents.cs
new file mode 100644
index 0000000..83b78cf
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/IXApiEvents.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+
+namespace XAPI.COM
+{
+ ///
+ /// 将object sender改成XApiCom sender后,在MATLAB下只是OnData事件可以注册后收到消息,而其它的事件都无法直接收到
+ /// 如果将OnConnectionStatus这类的事件修改成不带类成员的这种,一些信息又无法传递
+ ///
+ [ComVisible(true)]
+ [Guid("4D7F9B54-3098-45AE-8EEB-4ED24AC47613")]
+ [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
+ public interface IXApiEvents
+ {
+ [DispId(2)]
+ void OnConnectionStatus(XApiCom sender, int status, string status_String, RspUserLoginClass userLogin, int size1);
+ [DispId(3)]
+ void OnRtnError(XApiCom sender, ErrorClass error);
+ [DispId(4)]
+ void OnLog(XApiCom sender, LogClass log);
+
+ [DispId(5)]
+ void OnRtnDepthMarketData(XApiCom sender, DepthMarketDataNClass marketData);
+ //public delegate void DelegateOnRtnQuoteRequest(object sender, [In]ref QuoteRequestField quoteRequest);
+
+ [DispId(6)]
+ void OnRspQryInstrument(XApiCom sender, InstrumentClass instrument, int size1, bool bIsLast);
+ [DispId(7)]
+ void OnRspQryTradingAccount(XApiCom sender, AccountClass account, int size1, bool bIsLast);
+ [DispId(8)]
+ void OnRspQryInvestorPosition(XApiCom sender, PositionClass position, int size1, bool bIsLast);
+ //public delegate void DelegateOnRspQrySettlementInfo(object sender, SettlementInfoClass settlementInfo, int size1, bool bIsLast);
+ //public delegate void DelegateOnRspQryInvestor(object sender, InvestorField investor, int size1, bool bIsLast);
+ [DispId(9)]
+ void OnRtnOrder(XApiCom sender, OrderClass order);
+ [DispId(10)]
+ void OnRtnTrade(XApiCom sender, TradeClass trade);
+ //public delegate void DelegateOnRtnQuote(object sender, QuoteField quote);
+ [DispId(11)]
+ void OnRspQryOrder(XApiCom sender, OrderClass order, int size1, bool bIsLast);
+ [DispId(12)]
+ void OnRspQryTrade(XApiCom sender, TradeClass trade, int size1, bool bIsLast);
+ //public delegate void DelegateOnRspQryQuote(object sender, QuoteField quote, int size1, bool bIsLast);
+
+ //public delegate void DelegateOnRspQryHistoricalTicks(object sender, IntPtr pTicks, int size1, HistoricalDataRequestField request, int size2, bool bIsLast);
+ //public delegate void DelegateOnRspQryHistoricalBars(object sender, IntPtr pBars, int size1, HistoricalDataRequestField request, int size2, bool bIsLast);
+
+ //public delegate bool DelegateOnFilterSubscribe(object sender, ExchangeType exchange, int instrument_part1, int instrument_part2, int instrument_part3, IntPtr pInstrument);
+
+ }
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/ManagedCOMLocalServer.cs b/languages/CSharp/XAPI_CSharp/COM/ManagedCOMLocalServer.cs
new file mode 100644
index 0000000..6de3b0f
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/ManagedCOMLocalServer.cs
@@ -0,0 +1,385 @@
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+using System.Runtime.InteropServices;
+using Microsoft.Win32;
+using System.Text;
+using System.Threading;
+
+namespace XAPI.COM
+{
+ [Flags]
+ enum COINIT : uint
+ {
+ /// Initializes the thread for multi-threaded object concurrency.
+ COINIT_MULTITHREADED = 0x0,
+ /// Initializes the thread for apartment-threaded object concurrency.
+ COINIT_APARTMENTTHREADED = 0x2,
+ /// Disables DDE for Ole1 support.
+ COINIT_DISABLE_OLE1DDE = 0x4,
+ /// Trades memory for speed.
+ COINIT_SPEED_OVER_MEMORY = 0x8
+ }
+
+ [Flags]
+ enum CLSCTX : uint
+ {
+ CLSCTX_INPROC_SERVER = 0x1,
+ CLSCTX_INPROC_HANDLER = 0x2,
+ CLSCTX_LOCAL_SERVER = 0x4,
+ CLSCTX_INPROC_SERVER16 = 0x8,
+ CLSCTX_REMOTE_SERVER = 0x10,
+ CLSCTX_INPROC_HANDLER16 = 0x20,
+ CLSCTX_RESERVED1 = 0x40,
+ CLSCTX_RESERVED2 = 0x80,
+ CLSCTX_RESERVED3 = 0x100,
+ CLSCTX_RESERVED4 = 0x200,
+ CLSCTX_NO_CODE_DOWNLOAD = 0x400,
+ CLSCTX_RESERVED5 = 0x800,
+ CLSCTX_NO_CUSTOM_MARSHAL= 0x1000,
+ CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000,
+ CLSCTX_NO_FAILURE_LOG = 0x4000,
+ CLSCTX_DISABLE_AAA = 0x8000,
+ CLSCTX_ENABLE_AAA = 0x10000,
+ CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000,
+ CLSCTX_INPROC = CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
+ CLSCTX_SERVER = CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER,
+ CLSCTX_ALL = CLSCTX_SERVER|CLSCTX_INPROC_HANDLER
+ }
+
+ [Flags]
+ enum REGCLS : uint
+ {
+ REGCLS_SINGLEUSE = 0,
+ REGCLS_MULTIPLEUSE = 1,
+ REGCLS_MULTI_SEPARATE = 2,
+ REGCLS_SUSPENDED = 4,
+ REGCLS_SURROGATE = 8
+ }
+
+ // We import the POINT structure because it is referenced
+ // by the MSG structure.
+ [ComVisible(false)]
+ [StructLayout( LayoutKind.Sequential )]
+ public struct POINT
+ {
+ public int X;
+ public int Y;
+
+ public POINT( int x, int y )
+ {
+ this.X = x;
+ this.Y = y;
+ }
+
+ public static implicit operator Point( POINT p )
+ {
+ return new Point( p.X, p.Y );
+ }
+
+ public static implicit operator POINT( Point p )
+ {
+ return new POINT( p.X, p.Y );
+ }
+ }
+
+ // We import the MSG structure because it is referenced
+ // by the GetMessage(), TranslateMessage() and DispatchMessage()
+ // Win32 APIs.
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential)]
+ [CLSCompliant(false)]
+ public struct MSG
+ {
+ public IntPtr hwnd;
+ public uint message;
+ public IntPtr wParam;
+ public IntPtr lParam;
+ public uint time;
+ public POINT pt;
+ }
+
+ // Note that ManagedCOMLocalServer_Impl01 is NOT declared as public.
+ // This is so that it will not be exposed to COM when we call regasm
+ // or tlbexp.
+ class ManagedCOMLocalServer
+ {
+ // CoInitializeEx() can be used to set the apartment model
+ // of individual threads.
+ [DllImport("ole32.dll")]
+ static extern int CoInitializeEx(IntPtr pvReserved, uint dwCoInit);
+
+ // CoUninitialize() is used to uninitialize a COM thread.
+ [DllImport("ole32.dll")]
+ static extern void CoUninitialize();
+
+ // PostThreadMessage() allows us to post a Windows Message to
+ // a specific thread (identified by its thread id).
+ // We will need this API to post a WM_QUIT message to the main
+ // thread in order to terminate this application.
+ [DllImport("user32.dll")]
+ static extern bool PostThreadMessage(uint idThread, uint Msg, UIntPtr wParam,
+ IntPtr lParam);
+
+ // GetCurrentThreadId() allows us to obtain the thread id of the
+ // calling thread. This allows us to post the WM_QUIT message to
+ // the main thread.
+ [DllImport("kernel32.dll")]
+ static extern uint GetCurrentThreadId();
+
+ // We will be manually performing a Message Loop within the main thread
+ // of this application. Hence we will need to import GetMessage(),
+ // TranslateMessage() and DispatchMessage().
+ [DllImport("user32.dll")]
+ static extern bool GetMessage(out MSG lpMsg, IntPtr hWnd, uint wMsgFilterMin,
+ uint wMsgFilterMax);
+
+ [DllImport("user32.dll")]
+ static extern bool TranslateMessage([In] ref MSG lpMsg);
+
+ [DllImport("user32.dll")]
+ static extern IntPtr DispatchMessage([In] ref MSG lpmsg);
+
+ // Define two common GUID objects for public usage.
+ public static Guid IID_IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}");
+ public static Guid IID_IDispatch = new Guid("{00020400-0000-0000-C000-000000000046}");
+
+ protected static uint m_uiMainThreadId; // Stores the main thread's thread id.
+ protected static int m_iObjsInUse; // Keeps a count on the total number of objects alive.
+ protected static int m_iServerLocks;// Keeps a lock count on this application.
+
+ // This property returns the main thread's id.
+ public static uint MainThreadId
+ {
+ get
+ {
+ return m_uiMainThreadId;
+ }
+ }
+
+ // This method performs a thread-safe incrementation of the objects count.
+ public static int InterlockedIncrementObjectsCount()
+ {
+ Console.WriteLine("InterlockedIncrementObjectsCount()");
+ // Increment the global count of objects.
+ return Interlocked.Increment(ref m_iObjsInUse);
+ }
+
+ // This method performs a thread-safe decrementation the objects count.
+ public static int InterlockedDecrementObjectsCount()
+ {
+ Console.WriteLine("InterlockedDecrementObjectsCount()");
+ // Decrement the global count of objects.
+ return Interlocked.Decrement(ref m_iObjsInUse);
+ }
+
+ // Returns the total number of objects alive currently.
+ public static int ObjectsCount
+ {
+ get
+ {
+ lock(typeof(ManagedCOMLocalServer))
+ {
+ return m_iObjsInUse;
+ }
+ }
+ }
+
+ // This method performs a thread-safe incrementation the
+ // server lock count.
+ public static int InterlockedIncrementServerLockCount()
+ {
+ Console.WriteLine("InterlockedIncrementServerLockCount()");
+ // Increment the global lock count of this server.
+ return Interlocked.Increment(ref m_iServerLocks);
+ }
+
+ // This method performs a thread-safe decrementation the
+ // server lock count.
+ public static int InterlockedDecrementServerLockCount()
+ {
+ Console.WriteLine("InterlockedDecrementServerLockCount()");
+ // Decrement the global lock count of this server.
+ return Interlocked.Decrement(ref m_iServerLocks);
+ }
+
+ // Returns the current server lock count.
+ public static int ServerLockCount
+ {
+ get
+ {
+ lock(typeof(ManagedCOMLocalServer))
+ {
+ return m_iServerLocks;
+ }
+ }
+ }
+
+ // AttemptToTerminateServer() will check to see if
+ // the objects count and the server lock count has
+ // both dropped to zero.
+ // If so, we post a WM_QUIT message to the main thread's
+ // message loop. This will cause the message loop to
+ // exit and hence the termination of this application.
+ public static void AttemptToTerminateServer()
+ {
+ lock(typeof(ManagedCOMLocalServer))
+ {
+ Console.WriteLine("AttemptToTerminateServer()");
+
+ // Get the most up-to-date values of these critical data.
+ int iObjsInUse = ObjectsCount;
+ int iServerLocks = ServerLockCount;
+
+ // Print out these info for debug purposes.
+ StringBuilder sb = new StringBuilder("");
+ sb.AppendFormat("m_iObjsInUse : {0}. m_iServerLocks : {1}", iObjsInUse, iServerLocks);
+ Console.WriteLine(sb.ToString());
+
+ if ((iObjsInUse > 0) || (iServerLocks > 0))
+ {
+ Console.WriteLine("There are still referenced objects or the server lock count is non-zero.");
+ }
+ else
+ {
+ UIntPtr wParam = new UIntPtr(0);
+ IntPtr lParam = new IntPtr(0);
+ Console.WriteLine("PostThreadMessage(WM_QUIT)");
+ PostThreadMessage(MainThreadId, 0x0012, wParam, lParam);
+ }
+ }
+ }
+
+ // ProcessArguments() will process the command-line arguments
+ // of this application.
+ // If the return value is true, we carry
+ // on and start this application.
+ // If the return value is false, we terminate
+ // this application immediately.
+ protected static bool ProcessArguments(string[] args)
+ {
+ bool bRet = true;
+
+ if (args.Length > 0)
+ {
+ RegistryKey key = null;
+ RegistryKey key2 = null;
+
+ switch (args[0].ToLower())
+ {
+ case "-embedding":
+ Console.WriteLine("Request to start as out-of-process COM server.");
+ break;
+
+ case "-register":
+ case "/register":
+ try
+ {
+ key = Registry.ClassesRoot.CreateSubKey("CLSID\\" + Marshal.GenerateGuidForType(typeof(XApiCom)).ToString("B"));
+ key2 = key.CreateSubKey("LocalServer32");
+ key2.SetValue(null, Application.ExecutablePath);
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show("Error while registering the server:\n"+ex.ToString());
+ }
+ finally
+ {
+ if (key != null)
+ key.Close();
+ if (key2 != null)
+ key2.Close();
+ }
+ bRet = false;
+ break;
+
+ case "-unregister":
+ case "/unregister":
+ try
+ {
+ key = Registry.ClassesRoot.OpenSubKey("CLSID\\" + Marshal.GenerateGuidForType(typeof(XApiCom)).ToString("B"), true);
+ key.DeleteSubKey("LocalServer32");
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show("Error while unregistering the server:\n"+ex.ToString());
+ }
+ finally
+ {
+ if (key != null)
+ key.Close();
+ if (key2 != null)
+ key2.Close();
+ }
+ bRet = false;
+ break;
+
+ default:
+ Console.WriteLine("Unknown argument: " + args[0] + "\nValid are : -register, -unregister and -embedding");
+ break;
+ }
+ }
+
+ return bRet;
+ }
+
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main(string[] args)
+ {
+ if (!ProcessArguments(args))
+ {
+ return;
+ }
+
+ // Initialize critical member variables.
+ m_iObjsInUse = 0;
+ m_iServerLocks = 0;
+ m_uiMainThreadId = GetCurrentThreadId();
+
+ // Register the SimpleCOMObjectClassFactory.
+ SimpleCOMObjectClassFactory factory = new SimpleCOMObjectClassFactory();
+ factory.ClassContext = (uint)CLSCTX.CLSCTX_LOCAL_SERVER;
+ factory.ClassId = Marshal.GenerateGuidForType(typeof(XApiCom));
+ factory.Flags = (uint)REGCLS.REGCLS_MULTIPLEUSE | (uint)REGCLS.REGCLS_SUSPENDED;
+ factory.RegisterClassObject();
+ ClassFactoryBase.ResumeClassObjects();
+
+ // Start up the garbage collection thread.
+ GarbageCollection GarbageCollector = new GarbageCollection(10000);
+ Thread GarbageCollectionThread = new Thread(new ThreadStart(GarbageCollector.GCWatch));
+
+ // Set the name of the thread object.
+ GarbageCollectionThread.Name = "Garbage Collection Thread";
+ // Start the thread.
+ GarbageCollectionThread.Start();
+
+ // Start the message loop.
+ MSG msg;
+ IntPtr null_hwnd = new IntPtr(0);
+ while (GetMessage(out msg, null_hwnd, 0, 0) != false)
+ {
+ TranslateMessage(ref msg);
+ DispatchMessage(ref msg);
+ }
+ Console.WriteLine("Out of message loop.");
+
+ // Revoke the class factory immediately.
+ // Don't wait until the thread has stopped before
+ // we perform revokation.
+ factory.RevokeClassObject();
+ Console.WriteLine("SimpleCOMObjectClassFactory Revoked.");
+
+ // Now stop the Garbage Collector thread.
+ GarbageCollector.StopThread();
+ GarbageCollector.WaitForThreadToStop();
+ Console.WriteLine("GarbageCollector thread stopped.");
+
+ // Just an indication that this COM EXE Server is stopped.
+ Console.WriteLine("Press [ENTER] to exit.");
+ Console.ReadLine();
+ }
+ }
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/SimpleCOMObject.cs b/languages/CSharp/XAPI_CSharp/COM/SimpleCOMObject.cs
new file mode 100644
index 0000000..a959c89
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/SimpleCOMObject.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Diagnostics;
+using System.Text;
+using System.Windows.Forms; // For using MessageBox.
+using Interop.SimpleCOMObject; // In order to implement ISimpleCOMObject.
+using System.Runtime.InteropServices; // For use of the GuidAttribute, ProgIdAttribute and ClassInterfaceAttribute.
+
+namespace XAPI.COM
+{
+ ///
+ /// Summary description for SimpleCOMObject.
+ /// This is the class that will be exported to unmanaged COM client apps.
+ ///
+ [
+ Guid("E1FE1223-45C2-4872-9B1E-634FB850E753"), // We indicate a specific CLSID for "ManagedCOMLocalServer_Impl01.SimpleCOMObject" for convenience of searching the registry.
+ ProgId("ManagedCOMLocalServer_Impl01.SimpleCOMObject"), // This ProgId is used by default. Not 100% necessary.
+ ClassInterface(ClassInterfaceType.None) // Specify that we will not generate any additional interface with a name like _SimpleCOMObject.
+ ]
+ public class SimpleCOMObject :
+ ReferenceCountedObjectBase, // SimpleCOMObject is derived from ReferenceCountedObjectBase so that we can track its creation and destruction.
+ ISimpleCOMObject // SimpleCOMObject must implement the ISimpleCOMObject interface.
+ {
+ private int m_iLongProperty;
+
+ public SimpleCOMObject()
+ {
+ // ReferenceCountedObjectBase constructor will be invoked.
+ Console.WriteLine("SimpleCOMObject constructor.");
+ }
+
+ ~SimpleCOMObject()
+ {
+ // ReferenceCountedObjectBase destructor will be invoked.
+ Console.WriteLine("SimpleCOMObject destructor.");
+ }
+
+ public int LongProperty
+ {
+ get
+ {
+ return m_iLongProperty;
+ }
+
+ set
+ {
+ m_iLongProperty = value;
+ }
+ }
+
+ public void Method01 (String strMessage)
+ {
+ StringBuilder sb = new StringBuilder(strMessage);
+
+ sb.Append(LongProperty.ToString());
+
+ MessageBox.Show(sb.ToString(), "ManagedCOMLocalServer_Impl01.SimpleCOMObject");
+ }
+ }
+
+ //class SimpleCOMObjectClassFactory : ClassFactoryBase
+ //{
+ // public override void virtual_CreateInstance(IntPtr pUnkOuter, ref Guid riid, out IntPtr ppvObject)
+ // {
+ // Console.WriteLine("SimpleCOMObjectClassFactory.CreateInstance().");
+ // Console.WriteLine("Requesting Interface : " + riid.ToString());
+
+ // if (riid == Marshal.GenerateGuidForType(typeof(ISimpleCOMObject)) ||
+ // riid == ManagedCOMLocalServer.IID_IDispatch ||
+ // riid == ManagedCOMLocalServer.IID_IUnknown)
+ // {
+ // SimpleCOMObject SimpleCOMObject_New = new SimpleCOMObject();
+
+ // ppvObject = Marshal.GetComInterfaceForObject(SimpleCOMObject_New, typeof(ISimpleCOMObject));
+ // }
+ // else
+ // {
+ // throw new COMException("No interface", unchecked((int) 0x80004002));
+ // }
+ // }
+ //}
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/Struct.cs b/languages/CSharp/XAPI_CSharp/COM/Struct.cs
new file mode 100644
index 0000000..e56f6ed
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/Struct.cs
@@ -0,0 +1,717 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Text;
+
+
+namespace XAPI.COM
+{
+ ///持仓
+ [ComVisible(true)]
+ [Guid("07C1DA6E-A85E-4931-ABE6-03681A3DBB0B")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class PositionClass
+ {
+ public string InstrumentName;
+ public string Symbol;
+ public string InstrumentID;
+ public string ExchangeID;
+ public string ClientID;
+ public string AccountID;
+
+ public int Side;
+ public string Side_String;
+ public int HedgeFlag;
+ public string HedgeFlag_String;
+ public int Date;
+ public double PositionCost;
+
+ public double Position;
+ public double TodayPosition;
+ public double HistoryPosition;
+ public double HistoryFrozen;
+
+ ///今日买卖持仓
+ public double TodayBSPosition;
+ ///今日买卖持仓冻结
+ public double TodayBSFrozen;
+ ///今日申赎持仓
+ public double TodayPRPosition;
+ ///今日申赎持仓冻结
+ public double TodayPRFrozen;
+
+ public string PortfolioID1;
+ public string PortfolioID2;
+ public string PortfolioID3;
+
+ public int Business;
+ public string Business_String;
+ }
+
+ ///
+ /// 做市商双向报价
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct QuoteField
+ {
+ public byte[] InstrumentName;
+ public string Symbol;
+ public string InstrumentID;
+ public string ExchangeID;
+ public string ClientID;
+ public string AccountID;
+
+
+ public double AskQty;
+ public double AskPrice;
+ public OpenCloseType AskOpenClose;
+ public HedgeFlagType AskHedgeFlag;
+
+ public double BidQty;
+ public double BidPrice;
+ public OpenCloseType BidOpenClose;
+ public HedgeFlagType BidHedgeFlag;
+
+ public OrderStatus Status;
+ public ExecType ExecType;
+
+
+ public string QuoteReqID;
+ public string LocalID;
+ public string ID;
+ public string AskID;
+ public string BidID;
+ public string AskOrderID;
+ public string BidOrderID;
+
+ public int XErrorID;
+ public int RawErrorID;
+ public byte[] Text;
+ }
+
+ ///
+ /// 订单信息
+ ///
+ [ComVisible(true)]
+ [Guid("23FC4E48-54FF-4A89-B924-B8668C5D9570")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class OrderClass
+ {
+ public string InstrumentName;
+ public string Symbol;
+ public string InstrumentID;
+ public string ExchangeID;
+ public string ClientID;
+ public string AccountID;
+
+
+ public int Side;
+ public string Side_String;
+ public double Qty;
+ public double Price;
+ public int OpenClose;
+ public string OpenClose_String;
+ public int HedgeFlag;
+ public string HedgeFlag_String;
+ public int Date;
+ public int Time;
+
+
+ public string ID;
+ public string OrderID;
+ public string LocalID;
+
+
+ public int Type;
+ public string Type_String;
+ public double StopPx;
+ public int TimeInForce;
+ public string TimeInForce_String;
+
+ public int Status;
+ public string Status_String;
+ public int ExecType;
+ public string ExecType_String;
+ public double LeavesQty;
+ public double CumQty;
+ public double AvgPx;
+
+ public int XErrorID;
+ public int RawErrorID;
+ public string Text;
+
+ public int ReserveInt32;
+ public string ReserveChar64;
+
+ public string PortfolioID1;
+ public string PortfolioID2;
+ public string PortfolioID3;
+
+ public int Business;
+ public string Business_String;
+ }
+
+ ///
+ /// 成交回报
+ ///
+ [ComVisible(true)]
+ [Guid("9FF68AA1-CB14-49E5-91F9-856400663C5E")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class TradeClass
+ {
+ public string InstrumentName;
+ public string Symbol;
+ public string InstrumentID;
+ public string ExchangeID;
+ public string ClientID;
+ public string AccountID;
+
+ public int Side;
+ public string Side_String;
+ public double Qty;
+ public double Price;
+ public int OpenClose;
+ public string OpenClose_String;
+ public int HedgeFlag;
+ public string HedgeFlag_String;
+ public int Date;
+ public int Time;
+
+
+ public string ID;
+ public string TradeID;
+
+ public double Commission;
+
+ public int ReserveInt32;
+ public string ReserveChar64;
+
+
+ public string PortfolioID1;
+ public string PortfolioID2;
+ public string PortfolioID3;
+
+ public int Business;
+ public string Business_String;
+ }
+
+
+ ///
+ /// 错误信息
+ ///
+ [ComVisible(true)]
+ [Guid("5F68D385-04A7-4247-8C07-839C6CE68EFF")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class ErrorClass
+ {
+ ///
+ /// 错误代码
+ ///
+ public int XErrorID;
+ ///
+ /// 错误代码
+ ///
+ public int RawErrorID;
+ ///
+ /// 错误信息
+ ///
+ public string Text;
+ ///
+ /// 信息来源
+ ///
+ public string Source;
+ }
+
+
+ ///
+ /// 日志信息
+ ///
+ [ComVisible(true)]
+ [Guid("4A4FDEFA-AEA6-496E-AE92-F00FD28A2075")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class LogClass
+ {
+ ///
+ /// 日志级别
+ ///
+ public int Level;
+ public string Level_String;
+ ///
+ /// 错误信息
+ ///
+ public string Message;
+ }
+
+
+ [ComVisible(true)]
+ [Guid("D642BDD2-8BB7-4BC9-BDC4-29CF05D1EAD4")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class RspUserLoginClass
+ {
+ public int TradingDay;
+ public int LoginTime;
+ public string SessionID;
+ public string UserID;
+ public string AccountID;
+ public string InvestorName;
+ public int XErrorID;
+ public int RawErrorID;
+ public string Text;
+ }
+
+
+
+ ///
+ /// DepthField行情
+ ///
+ [ComVisible(true)]
+ [Guid("6A9597AE-9AB2-4C48-8A96-F386DBCD8AB6")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class DepthClass
+ {
+ public double Price;
+ public int Size;
+ public int Count;
+ }
+
+
+ ///
+ /// 合约信息
+ ///
+ [ComVisible(true)]
+ [Guid("37ED5322-1C11-477A-AC97-F947AD8532B2")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class InstrumentClass
+ {
+ public string InstrumentName;
+ public string Symbol;
+ public string InstrumentID;
+ public string ExchangeID;
+ public string ClientID;
+ public string AccountID;
+
+
+ public string ExchangeInstID;
+
+
+ ///
+ /// 类型
+ ///
+ public int Type;
+ public string Type_String;
+ ///
+ /// 合约数量乘数
+ ///
+ public int VolumeMultiple;
+ ///
+ /// 最小变动价位
+ ///
+ public double PriceTick;
+ ///
+ /// 到期日
+ ///
+ public int ExpireDate;
+
+ ///
+ /// 执行价
+ ///
+ public double StrikePrice;
+ ///
+ /// 期权类型
+ ///
+ public int OptionsType;
+ public string OptionsType_String;
+ ///
+ /// 产品代码
+ ///
+ public string ProductID;
+ ///
+ /// 基础商品代码
+ ///
+ public string UnderlyingInstrID;
+ ///合约生命周期状态
+ public int InstLifePhase;
+ public string InstLifePhase_String;
+ }
+
+ ///
+ /// 账号
+ ///
+ [ComVisible(true)]
+ [Guid("6A75FF0C-C78F-4805-96AB-0FB4AF196152")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class AccountClass
+ {
+ public string ClientID;
+ public string AccountID;
+ public string CurrencyID;
+ ///
+ /// 上次结算准备金
+ ///
+ public double PreBalance;
+ ///
+ /// 当前保证金总额
+ ///
+ public double CurrMargin;
+ ///
+ /// 平仓盈亏
+ ///
+ public double CloseProfit;
+ ///
+ /// 持仓盈亏
+ ///
+ public double PositionProfit;
+ ///
+ /// 期货结算准备金
+ ///
+ public double Balance;
+ ///
+ /// 可用资金
+ ///
+ public double Available;
+ ///
+ /// 入金金额
+ ///
+ public double Deposit;
+ ///
+ /// 出金金额
+ ///
+ public double Withdraw;
+ ///
+ /// 可取资金
+ ///
+ public double WithdrawQuota;
+ ///
+ /// 冻结的过户费
+ ///
+ public double FrozenTransferFee;
+ ///
+ /// 冻结的印花税
+ ///
+ public double FrozenStampTax;
+ ///
+ /// 冻结的手续费
+ ///
+ public double FrozenCommission;
+ ///
+ /// 冻结的资金
+ ///
+ public double FrozenCash;
+ ///
+ /// 过户费
+ ///
+ public double TransferFee;
+ ///
+ /// 印花税
+ ///
+ public double StampTax;
+ ///
+ /// 手续费
+ ///
+ public double Commission;
+ ///
+ /// 资金差额
+ ///
+ public double CashIn;
+ }
+
+
+
+ ///
+ /// 发给做市商的询价请求
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct QuoteRequestField
+ {
+ ///
+ /// 合约代码
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
+ public string Symbol;
+ ///
+ /// 合约代码
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 31)]
+ public string InstrumentID;
+ ///
+ /// 交易所代码
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 9)]
+ public string ExchangeID;
+ ///
+ /// 交易日
+ ///
+ public int TradingDay;
+ ///
+ /// 询价时间
+ ///
+ public int QuoteTime;
+
+ ///
+ /// 询价编号
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
+ public string QuoteID;
+ }
+
+ ///
+ /// 结算信息
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct SettlementInfoField
+ {
+ public int Size;
+ ///
+ /// 交易日
+ ///
+ public int TradingDay;
+ /////
+ ///// 消息正文
+ /////
+ //[MarshalAs(UnmanagedType.ByValArray, SizeConst = 501)]
+ //public byte[] Content;
+ }
+
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct SettlementInfoClass
+ {
+ ///
+ /// 交易日
+ ///
+ public int TradingDay;
+ /////
+ ///// 消息正文
+ /////
+ public string Content;
+ }
+
+ ///
+ /// 投资者
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct InvestorField
+ {
+ public string InvestorID;
+ public string BrokerID;
+ public int IdentifiedCardType;
+ public string IdentifiedCardType_String;
+ public string IdentifiedCardNo;
+ public string InvestorName;
+ }
+
+
+ //[ComVisible(false)]
+ //[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ //public struct OrderIDType
+ //{
+ // public string ID;
+ //}
+
+
+ [ComVisible(true)]
+ [Guid("734AF40E-D336-4C0C-A8B7-C7DB9C7FF726")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class DepthMarketDataNClass
+ {
+ public int TradingDay;
+ public int ActionDay;
+ public int UpdateTime;
+ public int UpdateMillisec;
+ public string Symbol;
+ public string InstrumentID;
+ public string ExchangeID;
+
+ ///
+ /// 交易所代码
+ ///
+ public int Exchange;
+
+
+ ///
+ /// 最新价
+ ///
+ public double LastPrice;
+ ///
+ /// 数量
+ ///
+ public double Volume;
+ ///
+ /// 成交金额
+ ///
+ public double Turnover;
+ ///
+ /// 持仓量
+ ///
+ public double OpenInterest;
+ ///
+ /// 当日均价
+ ///
+ public double AveragePrice;
+
+
+ ///
+ /// 今开盘
+ ///
+ public double OpenPrice;
+ ///
+ /// 最高价
+ ///
+ public double HighestPrice;
+ ///
+ /// 最低价
+ ///
+ public double LowestPrice;
+ ///
+ /// 今收盘
+ ///
+ public double ClosePrice;
+ ///
+ /// 本次结算价
+ ///
+ public double SettlementPrice;
+
+ ///
+ /// 涨停板价
+ ///
+ public double UpperLimitPrice;
+ ///
+ /// 跌停板价
+ ///
+ public double LowerLimitPrice;
+ ///
+ /// 昨收盘
+ ///
+ public double PreClosePrice;
+ ///
+ /// 上次结算价
+ ///
+ public double PreSettlementPrice;
+ ///
+ /// 昨持仓量
+ ///
+ public double PreOpenInterest;
+
+ ///交易阶段类型
+ public int TradingPhase;
+ public string TradingPhase_String;
+
+
+ public double AskPrice1;
+ public int AskSize;
+ public double BidPrice1;
+ public int BidSize;
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ///
+ /// Tick行情
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct TickField
+ {
+ public int Date;
+ public int Time;
+ public int Millisecond;
+
+ public double LastPrice;
+ public double Volume;
+ public double OpenInterest;
+ public double BidPrice1;
+ public double AskPrice1;
+ public int BidSize1;
+ public int AskSize1;
+ }
+
+ ///
+ /// Bar行情
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct BarField
+ {
+ public int Date;
+ public int Time;
+
+ public double Open;
+ public double High;
+ public double Low;
+ public double Close;
+ public double Volume;
+ public double OpenInterest;
+ public double Turnover;
+ }
+
+
+
+ ///
+ /// 合约信息
+ ///
+ [ComVisible(false)]
+ [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
+ public struct HistoricalDataRequestField
+ {
+ public int Date1;
+ public int Date2;
+ public int Time1;
+ public int Time2;
+
+ public DataObjetType DataType;
+ public BarType BarType;
+ public int BarSize;
+
+ public int RequestId;
+ public int CurrentDate;
+ public int lRequest;
+
+ ///
+ /// 合约代码
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
+ public string Symbol;
+ ///
+ /// 合约代码
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 31)]
+ public string InstrumentID;
+ ///
+ /// 交易所代码
+ ///
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 9)]
+ public string ExchangeID;
+ }
+
+ [ComVisible(true)]
+ [Guid("42AB7905-CC91-480A-AEF0-FF8795872FF4")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
+ public class QueueData
+ {
+ public int Type;
+ public string Type_String;
+ public object Sender;
+ public object Data1;
+ public object Data2;
+ public object Data3;
+ public object Data4;
+ }
+
+}
diff --git a/languages/CSharp/XAPI_CSharp/COM/XApiCom.cs b/languages/CSharp/XAPI_CSharp/COM/XApiCom.cs
new file mode 100644
index 0000000..aba2dfe
--- /dev/null
+++ b/languages/CSharp/XAPI_CSharp/COM/XApiCom.cs
@@ -0,0 +1,928 @@
+using Ideafixxxer.Generics;
+using XAPI.Callback;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+//using System.EnterpriseServices;
+using System.Linq;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Windows.Forms;
+using Microsoft.Win32;
+
+namespace XAPI.COM
+{
+ [ComVisible(true)]
+ [Guid("825E3182-8444-4580-8A8C-965485FBF451")]
+ [ClassInterface(ClassInterfaceType.None)]
+ [ComSourceInterfaces(typeof(IXApiEvents))]
+ [ProgId("XAPI.COM")]
+ //[EventTrackingEnabled(true)]
+ //[Description("Interface Serviced Component")]
+ public class XApiCom : UserControl,/*ServicedComponent,*/ IXApi,
+ IObjectSafety // implement IObjectSafety to supress the unsafe for scripting
+ // warning message
+ {
+ #region Constants
+ // Constants for implementation of the IObjectSafety interface.
+ private const int INTERFACESAFE_FOR_UNTRUSTED_CALLER = 0x00000001;
+ private const int INTERFACESAFE_FOR_UNTRUSTED_DATA = 0x00000002;
+ private Label label1;
+ private const int S_OK = 0;
+ #endregion
+
+ #region IObjectSafety Methods
+ public int GetInterfaceSafetyOptions(ref Guid riid, out int pdwSupportedOptions, out int pdwEnabledOptions)
+ {
+ pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA;
+ pdwEnabledOptions = INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA;
+ return S_OK; // return S_OK
+ }
+
+ public int SetInterfaceSafetyOptions(ref Guid riid, int dwOptionSetMask, int dwEnabledOptions)
+ {
+ return S_OK; // return S_OK
+ }
+ #endregion
+
+ public event DelegateOnConnectionStatus OnConnectionStatus;
+ public event DelegateOnRtnError OnRtnError;
+ public event DelegateOnLog OnLog;
+ public event DelegateOnRtnDepthMarketData OnRtnDepthMarketData;
+ public event DelegateOnRspQryInstrument OnRspQryInstrument;
+ public event DelegateOnRspQryTradingAccount OnRspQryTradingAccount;
+ public event DelegateOnRspQryInvestorPosition OnRspQryInvestorPosition;
+ public event DelegateOnRtnOrder OnRtnOrder;
+ public event DelegateOnRtnTrade OnRtnTrade;
+ public event DelegateOnRspQryOrder OnRspQryOrder;
+ public event DelegateOnRspQryTrade OnRspQryTrade;
+
+ private readonly ConcurrentQueue MessageQueue;
+
+ private readonly XApi api;
+ private ServerInfoField _Server;
+ private UserInfoField _User;
+ private OrderField _Order;
+ private ReqQueryField _Query;
+
+ //private static int cookie;
+ //private static RegistrationServices msRegSvc = new RegistrationServices();
+
+ // http://www.codeproject.com/Articles/24089/Create-ActiveX-in-NET-Step-by-Step
+ // http://www.codeproject.com/Articles/1256/Exposing-Windows-Forms-Controls-as-ActiveX-control
+ ///
+ ///Register the class as a control and set its CodeBase entry
+ ///
+ ///The registry key of the control
+ [ComRegisterFunction()]
+ public static void RegisterClass(string key)
+ {
+ // Strip off HKEY_CLASSES_ROOT\ from the passed key as I don't need it
+ StringBuilder sb = new StringBuilder(key);
+ sb.Replace(@"HKEY_CLASSES_ROOT\", "");
+
+ // Open the CLSID\{guid} key for write access
+ RegistryKey k = Registry.ClassesRoot.OpenSubKey(sb.ToString(), true);
+
+ // And create the 'Control' key - this allows it to show up in
+ // the ActiveX control container
+ RegistryKey ctrl = k.CreateSubKey("Control");
+ ctrl.Close();
+
+ // Next create the CodeBase entry - needed if not string named and GACced.
+ RegistryKey inprocServer32 = k.OpenSubKey("InprocServer32", true);
+ inprocServer32.SetValue("CodeBase", Assembly.GetExecutingAssembly().CodeBase);
+ inprocServer32.Close();
+
+ // 是否有必要将InprocServer32给删了来支持进程外呢?
+ RegistryKey localServer32 = k.CreateSubKey("LocalServer32");
+ localServer32.SetValue("", Assembly.GetExecutingAssembly().Location);
+ inprocServer32.Close();
+
+ // Finally close the main key
+ k.Close();
+ }
+
+ ///
+ ///Called to unregister the control
+ ///
+ ///The registry key
+ [ComUnregisterFunction()]
+ public static void UnregisterClass(string key)
+ {
+ StringBuilder sb = new StringBuilder(key);
+ sb.Replace(@"HKEY_CLASSES_ROOT\", "");
+
+ // Open HKCR\CLSID\{guid} for write access
+ RegistryKey k = Registry.ClassesRoot.OpenSubKey(sb.ToString(), true);
+
+ // Delete the 'Control' key, but don't throw an exception if it does not exist
+ k.DeleteSubKey("Control", false);
+
+ // Next open up InprocServer32
+ RegistryKey inprocServer32 = k.OpenSubKey("InprocServer32", true);
+
+ // And delete the CodeBase key, again not throwing if missing
+ k.DeleteSubKey("CodeBase", false);
+
+ // Finally close the main key
+ k.Close();
+ }
+
+ public XApiCom()
+ {
+ MessageQueue = new ConcurrentQueue();
+
+ api = new XApi();
+
+ api.OnConnectionStatus = OnConnectionStatus_callback;
+ api.OnRtnError = OnRtnError_callback;
+ api.OnLog = OnLog_callback;
+
+ api.OnRtnDepthMarketData = OnRtnDepthMarketData_callback;
+ //base.OnRtnQuoteRequest = OnRtnQuoteRequest_callback;
+
+ api.OnRspQryInstrument = OnRspQryInstrument_callback;
+ api.OnRspQryTradingAccount = OnRspQryTradingAccount_callback;
+ api.OnRspQryInvestorPosition = OnRspQryInvestorPosition_callback;
+ //base.OnRspQrySettlementInfo = OnRspQrySettlementInfo_callback;
+
+ api.OnRspQryOrder = OnRspQryOrder_callback;
+ api.OnRspQryTrade = OnRspQryTrade_callback;
+ //base.OnRspQryQuote = OnRspQryQuote_callback;
+
+ api.OnRtnOrder = OnRtnOrder_callback;
+ api.OnRtnTrade = OnRtnTrade_callback;
+ //base.OnRtnQuote = OnRtnQuote_callback;
+
+ //base.OnRspQryHistoricalTicks = OnRspQryHistoricalTicks_callback;
+ //base.OnRspQryHistoricalBars = OnRspQryHistoricalBars_callback;
+
+ //base.OnRspQryInvestor = OnRspQryInvestor_callback;
+
+ InitializeComponent();
+
+
+ Console.WriteLine("ReferenceCountedObjectBase contructor.");
+ // We increment the global count of objects.
+ ManagedCOMLocalServer.InterlockedIncrementObjectsCount();
+ }
+
+ ~XApiCom()
+ {
+ Console.WriteLine("ReferenceCountedObjectBase destructor.");
+ // We decrement the global count of objects.
+ ManagedCOMLocalServer.InterlockedDecrementObjectsCount();
+ // We then immediately test to see if we the conditions
+ // are right to attempt to terminate this server application.
+ ManagedCOMLocalServer.AttemptToTerminateServer();
+ }
+
+ public void SetLibPath(string LibPath)
+ {
+ api.LibPath = LibPath;
+ }
+
+ public void SetServerInfo(string key, object value)
+ {
+ Type type = typeof(ServerInfoField);
+ FieldInfo field = type.GetField(key,BindingFlags.Public | BindingFlags.Instance);
+ if (field == null)
+ {
+ throw new ArgumentException(key +" is not exist!", key);
+ }
+ try
+ {
+ object obj = Helper.ChangeType(value, field.FieldType);
+ field.SetValueForValueType(ref _Server, obj);
+ }
+ catch(Exception ex)
+ {
+ throw new InvalidCastException(ex.Message);
+ }
+ }
+
+ public void SetUserInfo(string key, object value)
+ {
+ Type type = typeof(UserInfoField);
+ FieldInfo field = type.GetField(key, BindingFlags.Public | BindingFlags.Instance);
+ if (field == null)
+ {
+ throw new ArgumentException(key + " is not exist!", key);
+ }
+ try
+ {
+ object obj = Helper.ChangeType(value, field.FieldType);
+ field.SetValueForValueType(ref _User, obj);
+ }
+ catch (Exception ex)
+ {
+ throw new InvalidCastException(ex.Message);
+ }
+ }
+
+ public void Connect()
+ {
+ api.Server = _Server;
+ api.User = _User;
+ api.Connect();
+ }
+
+ public void Disconnect()
+ {
+ api.Disconnect();
+ }
+
+ public void Subscribe(string szInstrument, string szExchange)
+ {
+ api.Subscribe(szInstrument, szExchange);
+ }
+
+ public void Unsubscribe(string szInstrument, string szExchange)
+ {
+ api.Unsubscribe(szInstrument, szExchange);
+ }
+
+ public void NewOrder()
+ {
+ _Order = default(OrderField);
+ }
+ public void SetOrder(string key, object value)
+ {
+ Type type = typeof(OrderField);
+ FieldInfo field = type.GetField(key, BindingFlags.Public | BindingFlags.Instance);
+ if (field == null)
+ {
+ throw new ArgumentException(key + " is not exist!", key);
+ }
+ try
+ {
+ object obj = Helper.ChangeType(value, field.FieldType);
+ field.SetValueForValueType(ref _Order, obj);
+ }
+ catch (Exception ex)
+ {
+ throw new InvalidCastException(ex.Message);
+ }
+ }
+
+ public string SendOrder()
+ {
+ return api.SendOrder(ref _Order);
+ }
+ public string CancelOrder(string id)
+ {
+ return api.CancelOrder(id);
+ }
+
+ public void NewQuery()
+ {
+ _Query = default(ReqQueryField);
+ }
+ public void SetQuery(string key, object value)
+ {
+ Type type = typeof(ReqQueryField);
+ FieldInfo field = type.GetField(key, BindingFlags.Public | BindingFlags.Instance);
+ if (field == null)
+ {
+ throw new ArgumentException(key + " is not exist!", key);
+ }
+ try
+ {
+ object obj = Helper.ChangeType(value, field.FieldType);
+ field.SetValueForValueType(ref _Query, obj);
+ }
+ catch (Exception ex)
+ {
+ throw new InvalidCastException(ex.Message);
+ }
+ }
+
+ public void ReqQuery(XAPI.QueryType type)
+ {
+ api.ReqQuery(type,ref _Query);
+ }
+
+ public QueueData TryDequeue()
+ {
+ QueueData qd;
+ if (MessageQueue.TryDequeue(out qd))
+ {
+ return qd;
+ }
+ return null;
+ }
+
+ ///
+ /// 给COM使用,进行内存回收
+ ///
+ public void GCCollect()
+ {
+ api.GCCollect();
+ }
+
+ private void OnConnectionStatus_callback(object sender, XAPI.ConnectionStatus status, [In] ref RspUserLoginField userLogin, int size1)
+ {
+ RspUserLoginClass cls = new RspUserLoginClass();
+
+ if (size1 > 0)
+ {
+ RspUserLoginField field = userLogin;
+
+ cls.TradingDay = field.TradingDay;
+ cls.LoginTime = field.LoginTime;
+ cls.SessionID = field.SessionID;
+ cls.UserID = field.UserID;
+ cls.AccountID = field.AccountID;
+ cls.InvestorName = field.InvestorName();
+ cls.XErrorID = field.XErrorID;
+ cls.RawErrorID = field.RawErrorID;
+ cls.Text = field.Text();
+ }
+
+ if (null == OnConnectionStatus)
+ {
+ QueueData qd = new QueueData();
+ qd.Type = (int)ResponeType.OnConnectionStatus;
+ qd.Type_String = Enum.ToString(ResponeType.OnConnectionStatus);
+ qd.Sender = this;
+ qd.Data1 = status;
+ qd.Data2 = Enum.ToString(status);
+ qd.Data3 = cls;
+ qd.Data4 = size1;
+
+ MessageQueue.Enqueue(qd);
+ }
+ else
+ {
+ OnConnectionStatus(this, (int)status, Enum.ToString(status), cls, size1);
+ }
+ }
+
+ private void OnRtnError_callback(object sender, [In] ref ErrorField error)
+ {
+ ErrorClass cls = null;
+
+ cls = new ErrorClass();
+ ErrorField field = error;
+
+ cls.XErrorID = field.XErrorID;
+ cls.RawErrorID = field.RawErrorID;
+ cls.Text = field.Text();
+ cls.Source = field.Source;
+
+ if (null == OnRtnError)
+ {
+ QueueData qd = new QueueData();
+ qd.Type = (int)ResponeType.OnRtnError;
+ qd.Type_String = Enum