Full Code of timercrack/trader for AI

master 371edcfa1ad1 cached
81 files
1.6 MB
533.1k tokens
2284 symbols
1 requests
Download .txt
Showing preview only (1,729K chars total). Download the full file or copy to clipboard to get everything.
Repository: timercrack/trader
Branch: master
Commit: 371edcfa1ad1
Files: 81
Total size: 1.6 MB

Directory structure:
gitextract_abenshp1/

├── .gitignore
├── LICENSE.md
├── README.md
├── README.rst
├── __init__.py
├── ctp_native/
│   ├── __init__.py
│   ├── bus.py
│   ├── gateway.py
│   └── state_store.py
├── dashboard/
│   ├── __init__.py
│   ├── settings.py
│   ├── static/
│   │   ├── css/
│   │   │   └── global.css
│   │   └── js/
│   │       ├── bar.js
│   │       ├── corr.js
│   │       ├── global.js
│   │       ├── nav.js
│   │       └── status.js
│   ├── templates/
│   │   ├── global/
│   │   │   ├── base_site.html
│   │   │   ├── paginator-mobile.html
│   │   │   ├── paginator.html
│   │   │   └── top_navbar.html
│   │   └── panel/
│   │       ├── correlation.html
│   │       ├── instrument.html
│   │       ├── performance.html
│   │       └── status.html
│   ├── urls.py
│   └── wsgi.py
├── main.py
├── manage.py
├── native/
│   └── ctp_bridge/
│       ├── CMakeLists.txt
│       ├── CMakePresets.json
│       ├── README.md
│       ├── api/
│       │   ├── linux/
│       │   │   ├── DataCollect.h
│       │   │   ├── ThostFtdcMdApi.h
│       │   │   ├── ThostFtdcTraderApi.h
│       │   │   ├── ThostFtdcUserApiDataType.h
│       │   │   ├── ThostFtdcUserApiStruct.h
│       │   │   ├── error.dtd
│       │   │   └── error.xml
│       │   └── win/
│       │       ├── DataCollect.h
│       │       ├── ThostFtdcMdApi.h
│       │       ├── ThostFtdcTraderApi.h
│       │       ├── ThostFtdcUserApiDataType.h
│       │       ├── ThostFtdcUserApiStruct.h
│       │       ├── WinDataCollect.lib
│       │       ├── error.dtd
│       │       ├── error.xml
│       │       ├── thostmduserapi_se.lib
│       │       └── thosttraderapi_se.lib
│       ├── build_win.bat
│       ├── scripts/
│       │   ├── build_native_bridge.ps1
│       │   └── sync_thost_api.ps1
│       └── src/
│           └── py_module.cpp
├── panel/
│   ├── __init__.py
│   ├── admin.py
│   ├── apps.py
│   ├── const.py
│   ├── forms.py
│   ├── models.py
│   ├── templatetags/
│   │   ├── __init__.py
│   │   └── custom_tag.py
│   ├── tests.py
│   ├── urls.py
│   └── views.py
├── requirements.txt
├── runtime_config.py
├── strategy/
│   ├── __init__.py
│   ├── base_strategy.py
│   ├── brother2.py
│   └── kronos.py
├── utils/
│   ├── ApiStruct.py
│   ├── __init__.py
│   ├── fetch_data.py
│   ├── func_container.py
│   ├── model/
│   │   ├── __init__.py
│   │   ├── kronos.py
│   │   └── module.py
│   ├── my_logger.py
│   ├── read_config.py
│   └── tick.py
└── weixin_notifier.py

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
# ===== Python =====
__pycache__/
*.py[cod]
*$py.class
*.pyd
*.so
*.egg-info/
.Python
.github/
# Virtual environments
.venv/
venv/
env/
ENV/
.python-version

# Packaging / build artifacts
build/
dist/
pip-wheel-metadata/

# Test / type-check / coverage caches
.pytest_cache/
.mypy_cache/
.ruff_cache/
.pyre/
.hypothesis/
.coverage
.coverage.*
htmlcov/

# ===== Django =====
*.log
db.sqlite3
db.sqlite3-journal
media/
staticfiles/

# ===== Local runtime/config/secrets =====
config.ini
config.yaml
examples/
test/
deploy/
brother3.py
doc/
migrations/
# ===== IDE / Editor =====
.idea/
.vscode/
*.swp
*.swo
.cache/
**/.cache/
.clang*
# ===== OS files =====
.DS_Store
Thumbs.db
Desktop.ini

# ===== C/C++ / CMake / Visual Studio artifacts =====
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
compile_commands.json
Makefile
*.dir/
*.vcxproj.user
*.suo
*.user
*.userosscache
*.sln.docstates
*.obj
*.o
*.pdb
*.idb
*.ilk
*.exp

# Project-native build outputs
native/**/build/
native/**/x64/
native/**/Release/
native/**/Debug/
ctp_native/**/build/

# CTP runtime flow/log dirs
native/ctp_bridge/flow/
dashboard/Logs/

# Runtime state / local snapshots
native_state.json
*.pid


================================================
FILE: LICENSE.md
================================================
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1.  Definitions.

    "License" shall mean the terms and conditions for use, reproduction,
    and distribution as defined by Sections 1 through 9 of this document.

    "Licensor" shall mean the copyright owner or entity authorized by
    the copyright owner that is granting the License.

    "Legal Entity" shall mean the union of the acting entity and all
    other entities that control, are controlled by, or are under common
    control with that entity. For the purposes of this definition,
    "control" means (i) the power, direct or indirect, to cause the
    direction or management of such entity, whether by contract or
    otherwise, or (ii) ownership of fifty percent (50%) or more of the
    outstanding shares, or (iii) beneficial ownership of such entity.

    "You" (or "Your") shall mean an individual or Legal Entity
    exercising permissions granted by this License.

    "Source" form shall mean the preferred form for making modifications,
    including but not limited to software source code, documentation
    source, and configuration files.

    "Object" form shall mean any form resulting from mechanical
    transformation or translation of a Source form, including but
    not limited to compiled object code, generated documentation,
    and conversions to other media types.

    "Work" shall mean the work of authorship, whether in Source or
    Object form, made available under the License, as indicated by a
    copyright notice that is included in or attached to the work
    (an example is provided in the Appendix below).

    "Derivative Works" shall mean any work, whether in Source or Object
    form, that is based on (or derived from) the Work and for which the
    editorial revisions, annotations, elaborations, or other modifications
    represent, as a whole, an original work of authorship. For the purposes
    of this License, Derivative Works shall not include works that remain
    separable from, or merely link (or bind by name) to the interfaces of,
    the Work and Derivative Works thereof.

    "Contribution" shall mean any work of authorship, including
    the original version of the Work and any modifications or additions
    to that Work or Derivative Works thereof, that is intentionally
    submitted to Licensor for inclusion in the Work by the copyright owner
    or by an individual or Legal Entity authorized to submit on behalf of
    the copyright owner. For the purposes of this definition, "submitted"
    means any form of electronic, verbal, or written communication sent
    to the Licensor or its representatives, including but not limited to
    communication on electronic mailing lists, source code control systems,
    and issue tracking systems that are managed by, or on behalf of, the
    Licensor for the purpose of discussing and improving the Work, but
    excluding communication that is conspicuously marked or otherwise
    designated in writing by the copyright owner as "Not a Contribution."

    "Contributor" shall mean Licensor and any individual or Legal Entity
    on behalf of whom a Contribution has been received by Licensor and
    subsequently incorporated within the Work.

2.  Grant of Copyright License. Subject to the terms and conditions of
    this License, each Contributor hereby grants to You a perpetual,
    worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    copyright license to reproduce, prepare Derivative Works of,
    publicly display, publicly perform, sublicense, and distribute the
    Work and such Derivative Works in Source or Object form.

3.  Grant of Patent License. Subject to the terms and conditions of
    this License, each Contributor hereby grants to You a perpetual,
    worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    (except as stated in this section) patent license to make, have made,
    use, offer to sell, sell, import, and otherwise transfer the Work,
    where such license applies only to those patent claims licensable
    by such Contributor that are necessarily infringed by their
    Contribution(s) alone or by combination of their Contribution(s)
    with the Work to which such Contribution(s) was submitted. If You
    institute patent litigation against any entity (including a
    cross-claim or counterclaim in a lawsuit) alleging that the Work
    or a Contribution incorporated within the Work constitutes direct
    or contributory patent infringement, then any patent licenses
    granted to You under this License for that Work shall terminate
    as of the date such litigation is filed.

4.  Redistribution. You may reproduce and distribute copies of the
    Work or Derivative Works thereof in any medium, with or without
    modifications, and in Source or Object form, provided that You
    meet the following conditions:

    (a) You must give any other recipients of the Work or
    Derivative Works a copy of this License; and

    (b) You must cause any modified files to carry prominent notices
    stating that You changed the files; and

    (c) You must retain, in the Source form of any Derivative Works
    that You distribute, all copyright, patent, trademark, and
    attribution notices from the Source form of the Work,
    excluding those notices that do not pertain to any part of
    the Derivative Works; and

    (d) If the Work includes a "NOTICE" text file as part of its
    distribution, then any Derivative Works that You distribute must
    include a readable copy of the attribution notices contained
    within such NOTICE file, excluding those notices that do not
    pertain to any part of the Derivative Works, in at least one
    of the following places: within a NOTICE text file distributed
    as part of the Derivative Works; within the Source form or
    documentation, if provided along with the Derivative Works; or,
    within a display generated by the Derivative Works, if and
    wherever such third-party notices normally appear. The contents
    of the NOTICE file are for informational purposes only and
    do not modify the License. You may add Your own attribution
    notices within Derivative Works that You distribute, alongside
    or as an addendum to the NOTICE text from the Work, provided
    that such additional attribution notices cannot be construed
    as modifying the License.

    You may add Your own copyright statement to Your modifications and
    may provide additional or different license terms and conditions
    for use, reproduction, or distribution of Your modifications, or
    for any such Derivative Works as a whole, provided Your use,
    reproduction, and distribution of the Work otherwise complies with
    the conditions stated in this License.

5.  Submission of Contributions. Unless You explicitly state otherwise,
    any Contribution intentionally submitted for inclusion in the Work
    by You to the Licensor shall be under the terms and conditions of
    this License, without any additional terms or conditions.
    Notwithstanding the above, nothing herein shall supersede or modify
    the terms of any separate license agreement you may have executed
    with Licensor regarding such Contributions.

6.  Trademarks. This License does not grant permission to use the trade
    names, trademarks, service marks, or product names of the Licensor,
    except as required for reasonable and customary use in describing the
    origin of the Work and reproducing the content of the NOTICE file.

7.  Disclaimer of Warranty. Unless required by applicable law or
    agreed to in writing, Licensor provides the Work (and each
    Contributor provides its Contributions) on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    implied, including, without limitation, any warranties or conditions
    of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
    PARTICULAR PURPOSE. You are solely responsible for determining the
    appropriateness of using or redistributing the Work and assume any
    risks associated with Your exercise of permissions under this License.

8.  Limitation of Liability. In no event and under no legal theory,
    whether in tort (including negligence), contract, or otherwise,
    unless required by applicable law (such as deliberate and grossly
    negligent acts) or agreed to in writing, shall any Contributor be
    liable to You for damages, including any direct, indirect, special,
    incidental, or consequential damages of any character arising as a
    result of this License or out of the use or inability to use the
    Work (including but not limited to damages for loss of goodwill,
    work stoppage, computer failure or malfunction, or any and all
    other commercial damages or losses), even if such Contributor
    has been advised of the possibility of such damages.

9.  Accepting Warranty or Additional Liability. While redistributing
    the Work or Derivative Works thereof, You may choose to offer,
    and charge a fee for, acceptance of support, warranty, indemnity,
    or other liability obligations and/or rights consistent with this
    License. However, in accepting such obligations, You may act only
    on Your own behalf and on Your sole responsibility, not on behalf
    of any other Contributor, and only if You agree to indemnify,
    defend, and hold each Contributor harmless for any liability
    incurred by, or claims asserted against, such Contributor by reason
    of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "{}"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

Copyright 2016 timercrack

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


================================================
FILE: README.md
================================================
# trader

`trader` 是一个以 **CTP 原生链路** 为核心的交易项目,包含:

- 原生网关(`native/ctp_bridge` + `ctp_native`)
- 策略执行(`strategy`)
- Django 管理与可视化(`dashboard` + `panel`)

## 架构概览

### 核心模块

- `runtime_config.py`:运行时配置入口(仅读取根目录 `config.yaml`)
- `ctp_native/`:Python 侧网关与本地消息总线
- `native/ctp_bridge/`:pybind11 C++ 扩展,连接 Thost API
- `strategy/`:交易策略与查询/报单流程
- `dashboard/` + `panel/`:Django 后台与页面展示

### 运行链路(简化)

1. 读取 `config.yaml`
2. 初始化 `ctp_bridge_native` 并登录 CTP
3. `ctp_native` 在本地总线上分发请求/回报
4. `strategy` 消费事件并执行策略逻辑

## 快速开始

### 1) 环境准备

- Python 3.14(项目当前使用版本)
- 安装依赖:`requirements.txt`
- Windows 如使用 CTP 原生扩展:需可用 MSVC + CMake

### 2) 配置

编辑项目根目录 `config.yaml`,重点检查 `ctp_native` 章节:

- `gateway = pybind`
- `module = ctp_bridge_native`
- `module_path` 指向本地编译输出目录
- 补齐登录参数(`broker_id`、`investor_id`、`password`、`appid`、`authcode` 等)

企业微信日志推送配置在 `weixin` 章节:

- `CorpID`
- `Secret`
- `Token`、`EncodingAESKey`(保留与 flower 配置结构对齐)

发送策略默认沿用旧 flower 行为:`agentid=0`、`touser=@all`。

配置后,`trader` 会直接推送日志到企业微信,不再依赖单独运行 `flower`。

默认配置键结构(示例值)如下,和当前代码中的默认配置字典保持一致:

```yaml
trade:
  command_timeout: 5
  ignore_inst: ""
  transport: native

ctp_native:
  gateway: pybind
  module: ctp_bridge_native
  client_class: CtpClient
  module_path: /path/to/trader/native/ctp_bridge/build
  dll_dir: /path/to/trader/native/ctp_bridge/api/win
  trade_front: tcp://xxx:xxx
  market_front: tcp://xxx:xxx
  broker_id: "9999"
  investor_id: "123456"
  password: passwd
  appid: xxx
  authcode: xxx
  userinfo: xxx
  flow_path: /path/to/trader/native/ctp_bridge/flow
  request_timeout_ms: 10000
  test_instrument: IF99

log:
  level: DEBUG
  format: "%(asctime)s %(name)s [%(levelname)s] %(message)s"
  weixin_level: INFO
  weixin_format: "[%(levelname)s] %(message)s"

host:
  ip: 1.2.3.4
  mac: 02:03:04:5a:6b:7c

ssh_tunnel:
  enabled: false
  host: 127.0.0.1
  port: 22
  local_node: localhost
  private_key_linux: /root/.ssh/id_ed25519
  private_key_win: C:\\Users\\timer\\.ssh\\id_ed25519.ppk

weixin:
  Token: ""
  EncodingAESKey: ""
  CorpID: ""
  Secret: ""
```

### 3) 常用命令

- 启动交易主程序:`python main.py`
- Django 检查:`python manage.py check`
- Native 查询烟测:`python test/test_ctp.py`

### 4) 原生扩展构建(可选)

若需要本地编译 `ctp_bridge_native`:

- Windows(MSVC):

```powershell
cd native/ctp_bridge
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release
```

- Linux:

```bash
cd native/ctp_bridge
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
```

详细说明见:`native/ctp_bridge/README.md`

## 目录说明

- `native/ctp_bridge`:C++ 扩展源码与 CMake
- `ctp_native`:Python 网关封装
- `strategy`:策略实现
- `dashboard`、`panel`、`templates`、`static`:Web 展示与后台


================================================
FILE: README.rst
================================================
trader
======

操盘大哥的交易组件


INSTALL
=======

先装talib的C库,再用pip装依赖。

修改 mysql 配置文件 /etc/my.cnf.d/server.cnf ,增加如下配置:

    [mysqld]

    wait_timeout=31536000

    interactive_timeout=31536000

重启mysql服务

License
-------

``trader`` is offered under the Apache 2 license.


================================================
FILE: __init__.py
================================================
# coding=utf-8
#
# Copyright 2016 timercrack
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# version is a human-readable version number.

# version_info is a four-tuple for programmatic comparison. The first
# three numbers are the components of the version number.  The fourth
# is zero for an official release, positive for a development branch,
# or negative for a release candidate or beta (after the base version
# number has been incremented)

version = "0.1"
version_info = (0, 1, 0, 0)


================================================
FILE: ctp_native/__init__.py
================================================
# coding=utf-8

from .bus import LocalRedisLikeClient
from .gateway import NativeGateway, get_gateway
from .state_store import state_store

__all__ = [
    'LocalRedisLikeClient',
    'NativeGateway',
    'get_gateway',
    'state_store',
]


================================================
FILE: ctp_native/bus.py
================================================
# coding=utf-8
from __future__ import annotations

import asyncio
import fnmatch
import inspect
import logging
from typing import Any
import orjson

from ctp_native.gateway import NativeGateway, get_gateway
from ctp_native.state_store import state_store
from runtime_config import runtime_config

logger = logging.getLogger('NativeBus')


class LocalPubSub:
    def __init__(self, bus: 'LocalEventBus', ignore_subscribe_messages: bool = True):
        self._bus = bus
        self._ignore_subscribe_messages = ignore_subscribe_messages
        self._queue: asyncio.Queue[dict[str, Any]] = asyncio.Queue()
        self._patterns: set[str] = set()
        self.in_pubsub = False
        self._closed = False

    async def psubscribe(self, *patterns: str):
        for pattern in patterns:
            self._patterns.add(pattern)
            self._bus.register(pattern, self)
            if not self._ignore_subscribe_messages:
                await self._queue.put({'type': 'psubscribe', 'pattern': pattern, 'channel': None, 'data': 1})
        self.in_pubsub = len(self._patterns) > 0

    async def punsubscribe(self, *patterns: str):
        targets = set(patterns) if patterns else set(self._patterns)
        for pattern in list(targets):
            self._bus.unregister(pattern, self)
            self._patterns.discard(pattern)
            if not self._ignore_subscribe_messages:
                await self._queue.put({'type': 'punsubscribe', 'pattern': pattern, 'channel': None, 'data': 0})
        self.in_pubsub = len(self._patterns) > 0
        await self._queue.put({'type': 'punsubscribe', 'pattern': None, 'channel': None, 'data': 0})

    async def unsubscribe(self):
        await self.punsubscribe()

    async def close(self):
        if self._closed:
            return
        await self.punsubscribe()
        self._closed = True

    async def _push(self, pattern: str, channel: str, data: Any):
        await self._queue.put({'type': 'pmessage', 'pattern': pattern, 'channel': channel, 'data': data})

    async def listen(self):
        while True:
            msg = await self._queue.get()
            yield msg
            if msg.get('type') == 'punsubscribe' and not self.in_pubsub:
                break


class LocalEventBus:
    def __init__(self):
        self._subs: dict[str, set[LocalPubSub]] = {}

    def register(self, pattern: str, sub: LocalPubSub):
        self._subs.setdefault(pattern, set()).add(sub)

    def unregister(self, pattern: str, sub: LocalPubSub):
        subs = self._subs.get(pattern)
        if not subs:
            return
        subs.discard(sub)
        if not subs:
            self._subs.pop(pattern, None)

    async def publish(self, channel: str, payload: Any):
        for pattern, subs in list(self._subs.items()):
            if not fnmatch.fnmatch(channel, pattern):
                continue
            for sub in list(subs):
                await sub._push(pattern, channel, payload)


class LocalRedisLikeClient:
    def __init__(self, loop: asyncio.AbstractEventLoop):
        self._loop = loop
        self._bus = LocalEventBus()
        self._gateway: NativeGateway = get_gateway()
        self._request_format = runtime_config.get('MSG_CHANNEL', 'request_format', fallback='MSG:CTP:REQ:{}')
        self._trade_response_format = runtime_config.get('MSG_CHANNEL', 'trade_response_format', fallback='MSG:CTP:RSP:TRADE:{}:{}')
        self._market_response_format = runtime_config.get('MSG_CHANNEL', 'market_response_format', fallback='MSG:CTP:RSP:MARKET:{}:{}')
        self._request_prefix = self._request_format.split('{}')[0]
        self._gateway.set_event_callback(self._on_gateway_event_sync)

    async def start(self):
        await self._gateway.start()

    async def stop(self):
        await self._gateway.stop()
        state_store.dump_snapshot()

    def pubsub(self, ignore_subscribe_messages: bool = True):
        return LocalPubSub(self._bus, ignore_subscribe_messages=ignore_subscribe_messages)

    def get(self, key: str):
        return state_store.get(key)

    def set(self, key: str, value: Any, ex: int | None = None):
        state_store.set(key, value, ex=ex)

    def publish(self, channel: str, payload: Any):
        if channel.startswith(self._request_prefix):
            req_name = channel[len(self._request_prefix):]
            self._schedule(self._handle_request(req_name, payload))
            return 1
        self._schedule(self._bus.publish(channel, payload))
        return 1

    async def _on_gateway_event(self, topic: str, data: dict[str, Any]):
        if topic in {
            'OnFrontConnected',
            'OnFrontDisconnected',
            'OnFrontConnectedMd',
            'OnFrontDisconnectedMd',
            'OnRspAuthenticate',
            'OnRspUserLogin',
            'OnRspUserLoginMd',
            'OnRspSettlementInfoConfirm',
            'OnRspError',
        }:
            logger.debug('gateway event %s: %s', topic, data)
        # 统一兼容历史 channel 风格
        if topic.startswith('OnRtnDepthMarketData'):
            inst = data.get('InstrumentID', 'UNKNOWN')
            channel = self._market_response_format.format('OnRtnDepthMarketData', inst)
        else:
            order_ref = data.get('OrderRef', data.get('RequestID', 0))
            channel = self._trade_response_format.format(topic, order_ref)
        await self._bus.publish(channel, orjson.dumps(data))

    def _on_gateway_event_sync(self, topic: str, data: dict[str, Any]):
        self._schedule(self._on_gateway_event(topic, data))

    async def _handle_request(self, req_name: str, payload: Any):
        try:
            data = orjson.loads(payload) if payload else {}
        except Exception:
            data = payload
        request_id = 0
        if isinstance(data, dict):
            request_id = int(data.get('RequestID', 0) or 0)
        try:
            rows = await self._gateway.request(req_name, data)
            rows = rows or []
            if req_name.startswith('ReqQry'):
                rsp_name = 'OnRspQry' + req_name[6:]
                await self._publish_rows(self._trade_response_format.format(rsp_name, request_id), rows)
            elif req_name in {'SubscribeMarketData', 'UnSubscribeMarketData'}:
                rsp_name = 'OnRspSubMarketData' if req_name == 'SubscribeMarketData' else 'OnRspUnSubMarketData'
                await self._publish_rows(self._market_response_format.format(rsp_name, 0), rows)
            elif req_name == 'ReqOrderAction':
                await self._publish_rows(self._trade_response_format.format('OnRspOrderAction', 0), rows)
            else:
                # ReqOrderInsert 无需同步回包,回报由 OnRtnOrder/OnRtnTrade 异步事件提供
                pass
        except Exception as e:
            logger.warning('native request failed: %s payload=%s err=%s', req_name, data, repr(e), exc_info=True)
            err_row = {'ErrorID': -1, 'ErrorMsg': repr(e), 'RequestID': request_id, 'bIsLast': True}
            if req_name in {'SubscribeMarketData', 'UnSubscribeMarketData'}:
                await self._bus.publish(self._market_response_format.format('OnRspError', request_id), orjson.dumps(err_row))
            else:
                await self._bus.publish(self._trade_response_format.format('OnRspError', request_id), orjson.dumps(err_row))

    async def _publish_rows(self, channel: str, rows: list[dict[str, Any]]):
        if not rows:
            await self._bus.publish(channel, orjson.dumps({'empty': True, 'bIsLast': True}))
            return
        for idx, row in enumerate(rows):
            if 'bIsLast' not in row:
                row['bIsLast'] = idx == len(rows) - 1
            await self._bus.publish(channel, orjson.dumps(row))

    def _schedule(self, coro):
        if inspect.isawaitable(coro):
            self._loop.call_soon_threadsafe(asyncio.create_task, coro)  # type: ignore[arg-type]


================================================
FILE: ctp_native/gateway.py
================================================
# coding=utf-8
from __future__ import annotations

import logging
import importlib
import sys
import os
import asyncio
from abc import ABC, abstractmethod
from typing import Any, Callable

from runtime_config import runtime_config

logger = logging.getLogger('NativeGateway')
REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))).replace('\\', '/')


class NativeGateway(ABC):
    @abstractmethod
    async def start(self):
        raise NotImplementedError()

    @abstractmethod
    async def stop(self):
        raise NotImplementedError()

    @abstractmethod
    async def request(self, req_name: str, payload: Any) -> list[dict[str, Any]]:
        raise NotImplementedError()

    @abstractmethod
    def set_event_callback(self, cb: Callable[[str, dict[str, Any]], Any]):
        raise NotImplementedError()


class PlaceholderGateway(NativeGateway):
    def __init__(self):
        self._cb = None

    async def start(self):
        logger.warning('当前使用 PlaceholderGateway,请接入 pybind11 Thost 原生扩展。')

    async def stop(self):
        return None

    async def request(self, req_name: str, payload: Any) -> list[dict[str, Any]]:
        request_id = 0
        if isinstance(payload, dict):
            request_id = int(payload.get('RequestID', 0) or 0)
        return [{
            'ErrorID': -1,
            'ErrorMsg': f'Native gateway is not implemented for {req_name}',
            'RequestID': request_id,
            'bIsLast': True,
            'empty': True,
        }]

    def set_event_callback(self, cb: Callable[[str, dict[str, Any]], Any]):
        self._cb = cb


class PybindGateway(NativeGateway):
    def __init__(self):
        self._cb = None
        self._client = None
        self._fallback_reason = None
        self._request_timeout_ms = 10000

    async def start(self):
        try:
            def _resolve(path: str) -> str:
                """将相对路径解析为相对于项目根目录的绝对路径"""
                if path and not os.path.isabs(path):
                    return os.path.normpath(os.path.join(REPO_ROOT, path))
                return path

            dll_dir = _resolve(runtime_config.get('CTP_NATIVE', 'dll_dir', fallback=f'{REPO_ROOT}/native/ctp_bridge/api/win').strip())
            if os.name == 'nt' and dll_dir and os.path.isdir(dll_dir):
                os.add_dll_directory(dll_dir)
            module_path = _resolve(runtime_config.get('CTP_NATIVE', 'module_path', fallback=f'{REPO_ROOT}/native/ctp_bridge/build').strip())
            if module_path and module_path not in sys.path:
                sys.path.insert(0, module_path)
            module_name = runtime_config.get('CTP_NATIVE', 'module', fallback='ctp_bridge_native')
            class_name = runtime_config.get('CTP_NATIVE', 'client_class', fallback='CtpClient')
            module = importlib.import_module(module_name)
            client_cls = getattr(module, class_name)
            self._client = client_cls()

            login_cfg = {
                'trade_front': runtime_config.get('CTP_NATIVE', 'trade_front', fallback='').strip(),
                'market_front': runtime_config.get('CTP_NATIVE', 'market_front', fallback='').strip(),
                'broker_id': runtime_config.get('CTP_NATIVE', 'broker_id', fallback='').strip(),
                'investor_id': runtime_config.get('CTP_NATIVE', 'investor_id', fallback='').strip(),
                'password': runtime_config.get('CTP_NATIVE', 'password', fallback='').strip(),
                'appid': runtime_config.get('CTP_NATIVE', 'appid', fallback='').strip(),
                'authcode': runtime_config.get('CTP_NATIVE', 'authcode', fallback='').strip(),
                'userinfo': runtime_config.get('CTP_NATIVE', 'userinfo', fallback='').strip(),
            }
            missing = [k for k, v in login_cfg.items() if not v]
            if missing:
                raise RuntimeError(f'CTP_NATIVE required config missing: {", ".join(missing)}')

            if hasattr(self._client, 'configure'):
                self._request_timeout_ms = runtime_config.getint('CTP_NATIVE', 'request_timeout_ms', fallback=10000)
                self._client.configure({
                    **login_cfg,
                    'ip': runtime_config.get('CTP_NATIVE', 'ip', fallback='1.2.3.4'),
                    'mac': runtime_config.get('CTP_NATIVE', 'mac', fallback='02:03:04:5a:6b:7c'),
                    'flow_path': _resolve(runtime_config.get('CTP_NATIVE', 'flow_path', fallback=f'{REPO_ROOT}/native/ctp_bridge/flow')),
                    'request_timeout_ms': self._request_timeout_ms,
                })
            if self._cb and hasattr(self._client, 'set_event_callback'):
                self._client.set_event_callback(self._cb)
            if hasattr(self._client, 'start'):
                self._client.start()
            self._fallback_reason = None
        except Exception as e:
            self._client = None
            self._fallback_reason = repr(e)
            logger.warning('Pybind gateway unavailable, fallback to placeholder mode: %s', self._fallback_reason)

    async def stop(self):
        if self._client and hasattr(self._client, 'stop'):
            loop = asyncio.get_running_loop()
            await loop.run_in_executor(None, self._client.stop)

    async def request(self, req_name: str, payload: Any) -> list[dict[str, Any]]:
        if not self._client:
            request_id = 0
            if isinstance(payload, dict):
                request_id = int(payload.get('RequestID', 0) or 0)
            return [{
                'ErrorID': -1,
                'ErrorMsg': f'Pybind gateway unavailable: {self._fallback_reason}',
                'RequestID': request_id,
                'bIsLast': True,
                'empty': True,
            }]
        if not hasattr(self._client, 'request'):
            raise RuntimeError('pybind client missing request(req_name, payload) method')
        loop = asyncio.get_running_loop()
        timeout_s = max(float(self._request_timeout_ms) / 1000.0 + 2.0, 3.0)
        try:
            result = await asyncio.wait_for(
                loop.run_in_executor(None, self._client.request, req_name, payload),
                timeout=timeout_s,
            )
        except asyncio.TimeoutError as exc:
            raise TimeoutError(f'Pybind request timeout after {timeout_s:.1f}s: {req_name}') from exc
        if result is None:
            return []
        if isinstance(result, dict):
            return [result]
        return list(result)

    def set_event_callback(self, cb: Callable[[str, dict[str, Any]], Any]):
        self._cb = cb
        if self._client and hasattr(self._client, 'set_event_callback'):
            self._client.set_event_callback(cb)


def get_gateway() -> NativeGateway:
    gateway_name = runtime_config.get('CTP_NATIVE', 'gateway', fallback='placeholder').lower().strip()
    if gateway_name == 'pybind':
        return PybindGateway()
    if gateway_name == 'placeholder':
        return PlaceholderGateway()
    logger.warning('未知 native gateway=%s,自动回退 placeholder', gateway_name)
    return PlaceholderGateway()


================================================
FILE: ctp_native/state_store.py
================================================
# coding=utf-8
import os
import threading
import time
from typing import Any

from appdirs import AppDirs
import orjson


class NativeStateStore:
    def __init__(self):
        self._lock = threading.RLock()
        self._kv: dict[str, Any] = {}
        self._expire_at: dict[str, float] = {}
        dirs = AppDirs('trader')
        self._cache_dir = dirs.user_cache_dir
        self._snapshot_file = os.path.join(self._cache_dir, 'native_state.json')
        self._load_snapshot()

    def _load_snapshot(self):
        if not os.path.exists(self._snapshot_file):
            return
        try:
            with open(self._snapshot_file, 'rt', encoding='utf-8') as f:
                data = orjson.loads(f.read())
            if isinstance(data, dict):
                self._kv.update(data.get('kv', {}))
                expire_at = data.get('expire_at', {})
                if isinstance(expire_at, dict):
                    self._expire_at.update({str(k): float(v) for k, v in expire_at.items()})
        except Exception:
            # 快照损坏不应阻塞主流程
            pass

    def dump_snapshot(self):
        try:
            if not os.path.exists(self._cache_dir):
                os.makedirs(self._cache_dir)
            payload = {
                'kv': self._kv,
                'expire_at': self._expire_at,
            }
            with open(self._snapshot_file, 'wb') as f:
                f.write(orjson.dumps(payload))
        except Exception:
            # 快照失败不影响交易流程
            pass

    def _is_expired(self, key: str) -> bool:
        expire_at = self._expire_at.get(key)
        if expire_at is None:
            return False
        if expire_at <= time.time():
            self._kv.pop(key, None)
            self._expire_at.pop(key, None)
            return True
        return False

    def get(self, key: str, default: Any = None):
        with self._lock:
            if self._is_expired(key):
                return default
            return self._kv.get(key, default)

    def set(self, key: str, value: Any, ex: int | None = None):
        with self._lock:
            self._kv[key] = value
            if ex is not None:
                self._expire_at[key] = time.time() + ex
            else:
                self._expire_at.pop(key, None)

    def delete(self, key: str):
        with self._lock:
            self._kv.pop(key, None)
            self._expire_at.pop(key, None)


state_store = NativeStateStore()


================================================
FILE: dashboard/__init__.py
================================================
# coding=utf-8
#
# Copyright 2016 timercrack
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.


================================================
FILE: dashboard/settings.py
================================================
"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 3.2.9.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
import sys
import atexit
import logging
from appdirs import AppDirs
from pathlib import Path
import platform
import yaml

LOCAL_PORT = 3306
logger = logging.getLogger('dashboard.settings')
ssh_tunnel = None
BASE_DIR = Path(__file__).resolve().parent.parent


def _load_root_config_yaml():
    config_path = BASE_DIR / 'config.yaml'
    if not config_path.exists():
        return {}
    with open(config_path, 'rt', encoding='utf-8') as f:
        data = yaml.safe_load(f) or {}
    return data if isinstance(data, dict) else {}


ROOT_CONFIG = _load_root_config_yaml()


def _start_ssh_tunnel_if_needed():
    global ssh_tunnel, LOCAL_PORT
    tunnel_cfg = ROOT_CONFIG.get('ssh_tunnel', {}) if isinstance(ROOT_CONFIG.get('ssh_tunnel', {}), dict) else {}
    local_node = str(tunnel_cfg.get('local_node', '')).strip()
    if local_node and platform.node() == local_node:
        return
    try:
        enabled = bool(tunnel_cfg.get('enabled', True))
        if not enabled:
            logger.info('SSH tunnel disabled by config.yaml ssh_tunnel.enabled=false')
            return

        from sshtunnel import SSHTunnelForwarder
        ssh_host = str(tunnel_cfg.get('host', '')).strip()
        ssh_port = int(tunnel_cfg.get('port', 22) or 22)
        ssh_username = 'root'
        if sys.platform == 'win32':
            ssh_key = str(tunnel_cfg.get('private_key_win', '')).strip()
        else:
            ssh_key = str(tunnel_cfg.get('private_key_linux', '')).strip()

        if not ssh_host or not ssh_key:
            logger.warning('SSH tunnel config missing required fields(host/private_key_[linux|win]), fallback to local mysql 3306')
            LOCAL_PORT = 3306
            return

        ssh_tunnel = SSHTunnelForwarder(
            (ssh_host, ssh_port),
            ssh_private_key=ssh_key,
            ssh_username=ssh_username,
            remote_bind_address=('127.0.0.1', 3306),
        )
        ssh_tunnel.start()
        LOCAL_PORT = ssh_tunnel.local_bind_port

        def _cleanup_tunnel():
            try:
                if ssh_tunnel:
                    ssh_tunnel.stop()
            except Exception:
                pass

        atexit.register(_cleanup_tunnel)
    except Exception as e:
        logger.warning('SSH tunnel start failed, fallback to local mysql 3306: %s', repr(e))
        LOCAL_PORT = 3306


_start_ssh_tunnel_if_needed()

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-m@zyyr4j=$8t4n^cj7!y4$yep&6-&kor6+zn8bk)ygfq*l2kk('

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'panel.apps.PanelConfig'
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'dashboard.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'dashboard.wsgi.application'


# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'quantdb',
        'HOST': '127.0.0.1',
        'USER': 'quant',
        'PASSWORD': '123456',
        'PORT': LOCAL_PORT
    },
}

app_dir = AppDirs('dashboard')
LOGGING = {
    'version': 1,
    'formatters': {'my_formatter': {'format': '%(asctime)s %(name)s [%(levelname)s] %(message)s'}},
    'handlers': {
        'file': {
            'level': 'DEBUG',
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': os.path.join(app_dir.user_log_dir, 'dashboard.log'),
            'maxBytes': 1024 * 1024 * 5,  # 5 MB
            'backupCount': 5,
            'formatter': 'my_formatter',
        },
        'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'my_formatter'},
    },
    'loggers': {
        'panel': {'handlers': ['file', 'console'], 'level': 'DEBUG'},
        'dashboard.settings': {'handlers': ['file', 'console'], 'level': 'DEBUG'},
    }
}

# Password validation
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]

CACHES = {
    "default": {
        "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
        "LOCATION": "trader-dashboard-local-cache",
        "TIMEOUT": 3600 * 24,  # one day
    }
}

# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'Asia/Shanghai'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_URL = '/static/'
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "static"),
]
LOGIN_URL = '/admin/'
LOGIN_REDIRECT_URL = '/'
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
if sys.platform == 'linux':
    DEBUG = True
    ALLOWED_HOSTS = ['*']


================================================
FILE: dashboard/static/css/global.css
================================================
body {
    font-family: -apple-system, "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei", "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif;
}

.panel-heading-sm{
    height: 28px;
    padding: 4px 10px;
}

.panel-body-sm{
   padding: 5px 10px;
}

table.table-heading-sm thead tr th, table.table-heading-sm  tbody tr td{
  	font-size: 12px;
    height: 28px;
    padding: 4px 10px;
}

.table-body-sm{
   padding: 5px 10px;
}

.capitalize {
    text-transform: capitalize;
}

.navbar-default {
  background-color: #2da8e4;
  border-color: #108ec9;
}
.navbar-default .navbar-brand {
  color: #ffffff;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ffffff;
}
.navbar-default .navbar-text {
  color: #ffffff;
}
.navbar-default .navbar-nav > li > a {
  color: #ffffff;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #ffffff;
}
.navbar-default .navbar-nav > li > .dropdown-menu {
  background-color: #2da8e4;
}
.navbar-default .navbar-nav > li > .dropdown-menu > li > a {
  color: #ffffff;
}
.navbar-default .navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav > li > .dropdown-menu > li > a:focus {
  color: #ffffff;
  background-color: #108ec9;
}
.navbar-default .navbar-nav > li > .dropdown-menu > li > .divider {
  background-color: #108ec9;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
  color: #ffffff;
  background-color: #108ec9;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #ffffff;
  background-color: #108ec9;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: #ffffff;
  background-color: #108ec9;
}
.navbar-default .navbar-toggle {
  border-color: #108ec9;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #108ec9;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #ffffff;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #ffffff;
}
.navbar-default .navbar-link {
  color: #ffffff;
}
.navbar-default .navbar-link:hover {
  color: #ffffff;
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #ffffff;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #ffffff;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #ffffff;
    background-color: #108ec9;
  }
}

================================================
FILE: dashboard/static/js/bar.js
================================================
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById("main"));

option = {
  backgroundColor: "#000000",
  color: [
    "#ff0",
    "#0f0",
    "#61a0a8",
    "#d48265",
    "#91c7ae",
    "#749f83",
    "#ca8622",
    "#bda29a",
    "#6e7074",
    "#546570",
    "#c4ccd3",
  ],
  title: {
    text: "交易信号",
    left: 0,
    textStyle: {
      color: "#ffdf00",
    },
  },
  animation: false,
  grid: {
    left: "4%",
    right: "3%",
  },
  tooltip: {
    trigger: "axis",
    axisPointer: {
      type: "line",
    },
  },
  legend: {
    data: [
      "日K",
      {
        name: "UP_LINE",
      },
      {
        name: "DOWN_LINE",
      },
    ],
    selectedMode: false,
    textStyle: {
      color: "#fff",
    },
  },
  xAxis: {
    type: "category",
    data: [],
    axisLine: {
      lineStyle: {
        color: "#9c0000",
      },
    },
    boundaryGap: false,
  },
  yAxis: {
    type: "value",
    splitNumber: 3,
    splitLine: {
      lineStyle: {
        color: "#9c0000",
      },
    },
    axisLine: {
      lineStyle: {
        color: "#9c0000",
      },
    },
    scale: true,
    min: "dataMin",
    max: "dataMax",
  },
  dataZoom: [
    {
      show: true,
      type: "slider",
      backgroundColor: "#000",
      fillerColor: "#212421",
      borderColor: "#525152",
      handleIcon:
        "M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z",
      handleSize: "70%",
      textStyle: {
        color: "#94aede",
      },
      throttle: 0,
      start: 80,
      end: 100,
    },
  ],
  series: [
    {
      name: "日K",
      type: "candlestick",
      data: [],
      itemStyle: {
        normal: {
          color: "#000000",
          color0: "#6be7ff",
          borderColor: "#ff4142",
          borderColor0: "#6be7ff",
        },
      },
      markLine: {
        symbol: ["none", "none"],
        label: {
          normal: { show: false },
          emphasis: { show: false },
        },
        lineStyle: {
          normal: {
            width: 3,
            type: "solid",
            color: "#fff",
          },
        },
        animation: false,
        data: [],
      },
    },
    {
      name: "UP_LINE",
      type: "line",
      lineStyle: { normal: { width: 1, color: "#ff0" } },
      showSymbol: false,
      data: [],
    },
    {
      name: "DOWN_LINE",
      type: "line",
      lineStyle: { normal: { width: 1, color: "#0f0" } },
      showSymbol: false,
      data: [],
    },
  ],
};

// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);

$.get(
  "/bar_data?strategy=" +
    getUrlParameter("strategy") +
    "&inst_id=" +
    getUrlParameter("inst_id"),
  function (rst) {
    myChart.setOption({
      title: {
        text: rst.title,
      },
      xAxis: {
        data: rst.x,
      },
      series: [
        {
          name: "日K",
          data: rst.k,
          markLine: {
            data: rst.trade,
          },
        },
        {
          name: "UP_LINE",
          data: rst.up,
        },
        {
          name: "DOWN_LINE",
          data: rst.down,
        },
      ],
    });
  },
);

$(window).on("resize", function () {
  myChart.resize();
});


================================================
FILE: dashboard/static/js/corr.js
================================================
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById("main"));

option = {
  tooltip: {
    position: "top",
  },
  grid: {
    top: "8%",
    left: "11%",
    right: "1%",
    bottom: "1%",
  },
  xAxis: {
    type: "category",
    position: "top",
    axisLabel: {
      interval: 0,
      rotate: -45,
    },
    data: [],
  },
  yAxis: {
    type: "category",
    axisLabel: { interval: 0 },
    inverse: true,
    data: [],
  },
  visualMap: {
    type: "piecewise",
    min: -1,
    max: 1,
    calculable: true,
    precision: 0.01,
    splitNumber: 8,
    orient: "vertical",
    left: "right",
    bottom: "19%",
    inRange: {
      color: [
        "#313695",
        "#4575b4",
        "#74add1",
        "#abd9e9",
        "#e0f3f8",
        "#ffffbf",
        "#fee090",
        "#fdae61",
        "#f46d43",
        "#d73027",
        "#a50026",
      ],
    },
  },
  series: [
    {
      name: "相关性系数",
      type: "heatmap",
      data: [],
    },
    {
      name: "投资组合评分",
      title: { offsetCenter: [0, "20%"] },
      type: "gauge",
      axisLine: {
        lineStyle: {
          color: [
            [0.2, "#be201f"],
            [0.4, "#f99a27"],
            [0.6, "#fade00"],
            [0.8, "#8bc536"],
            [1, "#009f47"],
          ],
        },
      },
      splitLine: { show: false },
      min: 0,
      max: 100,
      center: ["75%", "31%"],
      radius: "45%",
      data: [],
    },
  ],
};

// 使用刚指定的配置项和数据显示图表。
myChart.showLoading();
myChart.setOption(option);

function load_chart() {
  myChart.showLoading();
  var $checked = $("input[type=checkbox]:checked");
  if ($checked.length == 0) {
    return;
  }
  var ids = [];
  $checked.each(function () {
    ids.push($(this).val());
  });
  $.get(
    "/corr_data?strategy=" +
      getUrlParameter("strategy") +
      "&year=" +
      getUrlParameter("year") +
      "&insts=" +
      JSON.stringify(ids),
    function (rst) {
      myChart.hideLoading();
      myChart.setOption({
        xAxis: {
          data: rst.index,
        },
        yAxis: {
          data: rst.index,
        },
        series: [
          {
            name: "相关性系数",
            data: rst.data,
          },
          {
            name: "投资组合评分",
            data: [{ value: rst.score, name: "投资组合评分" }],
          },
        ],
      });
    },
  );
}

$(window).on("resize", function () {
  myChart.resize();
});

$(function () {
  $(".button-checkbox").each(function () {
    // Settings
    var $widget = $(this),
      $button = $widget.find("button"),
      $checkbox = $widget.find("input:checkbox"),
      color = $button.data("color"),
      settings = {
        on: {
          icon: "glyphicon glyphicon-check",
        },
        off: {
          icon: "glyphicon glyphicon-unchecked",
        },
      };
    // Event Handlers
    $button.on("click", function () {
      $checkbox.prop("checked", !$checkbox.is(":checked"));
      var checks = $(
        "#div" + $(this).data("sec") + " > span > input:checked",
      ).length;
      $("#" + $(this).data("sec") + " > b").text(checks);
      load_chart();
      $checkbox.triggerHandler("change");
      updateDisplay();
    });
    $checkbox.on("change", function () {
      updateDisplay();
    });
    // Actions
    function updateDisplay() {
      var isChecked = $checkbox.is(":checked");
      // Set the button's state
      $button.data("state", isChecked ? "on" : "off");
      // Set the button's icon
      $button
        .find(".state-icon")
        .removeClass()
        .addClass("state-icon " + settings[$button.data("state")].icon);
      // Update the button's color
      if (isChecked) {
        $button.removeClass("btn-default").addClass("btn-" + color + " active");
      } else {
        $button.removeClass("btn-" + color + " active").addClass("btn-default");
      }
    }
    // Initialization
    function init() {
      updateDisplay();
      // Inject the icon if applicable
      if ($button.find(".state-icon").length == 0) {
        $button.prepend(
          '<i class="state-icon ' +
            settings[$button.data("state")].icon +
            '"></i>',
        );
      }
    }
    init();
  });
  load_chart();
});


================================================
FILE: dashboard/static/js/global.js
================================================
var getUrlParameter = function getUrlParameter(sParam) {
    var sPageURL = decodeURIComponent(window.location.search.substring(1)),
        sURLVariables = sPageURL.split('&'),
        sParameterName,
        i;

    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
            return sParameterName[1] === undefined ? true : sParameterName[1];
        }
    }
};


================================================
FILE: dashboard/static/js/nav.js
================================================
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById("main"));

// 指定图表的配置项和数据
var option = {
  title: {
    text: "操盘大哥v2.0",
  },
  tooltip: {
    trigger: "axis",
  },
  toolbox: {
    feature: {
      saveAsImage: {},
    },
  },
  legend: {
    data: ["单位净值"],
  },
  xAxis: {
    type: "time",
    splitLine: {
      show: false,
    },
  },
  yAxis: {
    type: "value",
    splitLine: {
      show: false,
    },
    scale: true,
    boundaryGap: ["10%", "10%"],
  },
  // dataZoom: [
  //     {   // 这个dataZoom组件,默认控制x轴。
  //         type: 'slider', // 这个 dataZoom 组件是 slider 型 dataZoom 组件
  //         start: 50,      // 左边在 10% 的位置。
  //         end: 100         // 右边在 60% 的位置。
  //     }
  // ],
  series: [
    {
      name: "单位净值",
      type: "line",
      data: [],
    },
  ],
};

// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);

$.get("/nav_data?strategy=" + getUrlParameter("strategy"), function (rst) {
  myChart.setOption({
    series: [
      {
        name: "单位净值",
        data: rst,
      },
    ],
  });
});

$(window).on("resize", function () {
  myChart.resize();
});


================================================
FILE: dashboard/static/js/status.js
================================================
// 基于准备好的dom,初始化echarts实例
var secChart = echarts.init(document.getElementById("section"));
var posChart = echarts.init(document.getElementById("position"));

secChart.setOption({
  title: {
    text: "持仓合约分类",
  },
  tooltip: {
    trigger: "axis",
  },
  legend: {
    x: "center",
    data: ["持仓"],
  },
  radar: [
    {
      indicator: [],
    },
  ],
  series: [
    {
      type: "radar",
      tooltip: {
        trigger: "item",
      },
      itemStyle: { normal: { areaStyle: { type: "default" } } },
      data: [
        {
          value: [],
          name: "持仓",
        },
      ],
    },
  ],
  color: ["#2e78b9"],
});

posChart.setOption({
  title: {
    text: "持仓方向对比",
    x: "center",
  },
  color: [
    "#ab4340",
    "#3a773a",
    "#61a0a8",
    "#d48265",
    "#91c7ae",
    "#749f83",
    "#ca8622",
    "#bda29a",
    "#6e7074",
    "#546570",
    "#c4ccd3",
  ],
  tooltip: {
    trigger: "item",
    formatter: "{a} <br/>{b} : {c} ({d}%)",
  },
  legend: {
    orient: "vertical",
    left: "left",
    data: ["多头持仓", "空头持仓"],
  },
  series: [
    {
      name: "持仓",
      type: "pie",
      data: [],
      label: {
        normal: {
          show: true,
          position: "inside",
          formatter: "{c}",
        },
      },
      itemStyle: {
        emphasis: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: "rgba(0, 0, 0, 0.5)",
        },
      },
    },
  ],
});

$.get("/status_data?strategy=" + getUrlParameter("strategy"), function (rst) {
  var maxVal = Math.max.apply(null, rst.section) || 10;
  secChart.setOption({
    radar: [
      {
        indicator: rst.section_labels.map(function (label) {
          return { text: label, max: maxVal };
        }),
      },
    ],
    series: [
      {
        data: [
          {
            value: rst.section,
            name: "持仓",
          },
        ],
      },
    ],
  });
  posChart.setOption({
    series: [
      {
        name: "持仓",
        data: [
          { value: rst.long, name: "多头持仓" },
          { value: rst.short, name: "空头持仓" },
        ],
      },
    ],
  });
});

$(window).on("resize", function () {
  secChart.resize();
});


================================================
FILE: dashboard/templates/global/base_site.html
================================================
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="timercrack">
    <title>和弦基金</title>
    <link rel="icon" href="{% static 'image/favicon.ico' %}">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.6.3/css/font-awesome.min.css">
    <link rel="stylesheet" href="{% static "css/global.css" %}">
    {% block extracss %}{% endblock %}
</head>
<body>
{% include 'global/top_navbar.html' %}
<div class="container-fluid" role="main">
    {% block content %}{% endblock %}
    <footer class="modal-footer">
        <p>© 2016 V2.0 timercrack.me All Rights Reserved. timercrack 版权所有</p>
    </footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.1.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.3/echarts.min.js"></script>
<script src="{% static "js/global.js" %}"></script>
{% block extrajs %}{% endblock %}
</body>
</html>


================================================
FILE: dashboard/templates/global/paginator-mobile.html
================================================
{% load custom_tag %}
{% if paginator %}
    <div class="content-block">
        <p class="buttons-row">
            {% if page_obj.has_previous %}
                <a class="button button-round"
                   href="?page={{ page_obj.previous_page_number }}{{ request | format_query_string }}">上一页</a>
            {% endif %}
            {% if page_obj.has_next %}
                <a class="button button-round"
                   href="?page={{ page_obj.next_page_number }}{{ request | format_query_string }}">下一页</a>
            {% endif %}
        </p>
    </div>
{% endif %}

================================================
FILE: dashboard/templates/global/paginator.html
================================================
{% load custom_tag %}
{% if paginator %}
    <div class="container-fluid" id="split-page">
        <div class="page_size">
            共<span>&nbsp;{{ paginator.count }}&nbsp;</span>条
            <label for="page_size">每页条数</label>
            <select id="page_size">
                <option value="5">5</option>
                <option value="10">10</option>
                <option value="20">20</option>
                <option value="50">50</option>
            </select>
        </div>
        <ul class="pagination" style="float: right">
            {% if page_obj.has_previous %}
                <li><a href="?page={{ page_obj.previous_page_number }}{{ request | format_query_string }}"
                       aria-label="Previous"><span
                        aria-hidden="true">&laquo;</span></a></li>
            {% endif %}
            {% for number in paginator.page_range %}
                {% if paginator.num_pages <= 14 %}
                    <li {% if number == page_obj.number %}class="active"{% endif %}>
                        <a href="?page={{ number }}{{ request | format_query_string }}">{{ number }}</a>
                    </li>
                {% else %}
                    {% if number|add:"5" > page_obj.number and number|add:"-5" < page_obj.number %}
                        <li {% if number == page_obj.number %}class="active"{% endif %}>
                            <a href="?page={{ number }}{{ request | format_query_string }}">{{ number }}</a>
                        </li>
                    {% elif number|add:"5" == page_obj.number or number|add:"-5" == page_obj.number %}
                        <li class="disabled">
                            <a>...</a>
                        </li>
                    {% elif number <= 3 %}
                        <li>
                            <a href="?page={{ number }}{{ request | format_query_string }}">{{ number }}</a>
                        </li>
                    {% elif number|add:"3" > paginator.num_pages %}
                        <li>
                            <a href="?page={{ number }}{{ request | format_query_string }}">{{ number }}</a>
                        </li>
                    {% endif %}
                {% endif %}
            {% endfor %}
            {% if page_obj.has_next %}
                <li><a href="?page={{ page_obj.next_page_number }}{{ request | format_query_string }}"
                       aria-label="Next"><span
                        aria-hidden="true">&raquo;</span></a></li>
            {% endif %}
        </ul>
    </div>
{% endif %}

================================================
FILE: dashboard/templates/global/top_navbar.html
================================================
{% load custom_tag %}
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">策略展示</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">{{ cur_stra.name }}<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        {% for stra in stra_list %}
                            <li><a href="{{ request|change_strategy:stra.id }}">{{ stra.name }}</a></li>
                        {% endfor %}
                    </ul>
                </li>
                {% url 'panel:status_view' as stat_url %}
                {% url 'panel:performance_view' as perf_url %}
                {% url 'panel:instrument_view' as inst_url %}
                {% url 'panel:correlation_view' as corr_url %}
                <li {% if stat_url in request.get_full_path %}class="active"{% endif %}><a
                        href="{{ stat_url }}?strategy={{ cur_stra.id }}">状态监控</a></li>
                <li {% if perf_url in request.get_full_path %}class="active"{% endif %}><a
                        href="{{ perf_url }}?strategy={{ cur_stra.id }}">绩效分析</a></li>
                <li {% if inst_url in request.get_full_path %}class="active"{% endif %}><a
                        href="{{ inst_url }}?strategy={{ cur_stra.id }}&inst_id=1">合约分析</a></li>
                <li {% if corr_url in request.get_full_path %}class="active"{% endif %}><a
                        href="{{ corr_url }}?strategy={{ cur_stra.id }}&year=3">组合分析</a>
                </li>
                <li><a href="{% url 'admin:index' %}">后台管理</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">欢迎:<strong>{{ user.get_full_name }}</strong></a></li>
                <li><a href="{% url 'admin:logout' %}?next={% url 'admin:login' %}">
                    <span class="glyphicon glyphicon-log-out"></span> 注销</a></li>
            </ul>
        </div>
    </div>
</nav>


================================================
FILE: dashboard/templates/panel/correlation.html
================================================
{% extends 'global/base_site.html' %}
{% load static %}
{% block extrajs %}
    {{ block.super }}
    <script src="{% static 'js/corr.js' %}"></script>
{% endblock %}
{% block content %}
    <div class="row">
        <div class="col-md-6" id="main" style="width: 600px;height:550px;"></div>
        <div class="col-md-6">
            {% for section, insts in inst_list %}
                <div class="row">
                    <div class="panel panel-{% if section == '农牧' %}success{% elif section == '贵金属' %}warning{% elif section == '金融' %}danger{% elif section == '有色金属' %}info{% elif section == '新能源' %}info{% elif section == '黑色产业' %}default{% elif section == '能源' %}danger{% elif section == '化工' %}primary{% else %}primary{% endif %}">
                        <div class="panel-heading panel-heading-sm">
                            <h3 class="panel-title" id="{{ section }}">{{ section }} <b>{{ insts.count }}</b> / {{ insts.count }}</h3>
                        </div>
                        <div class="panel-body panel-body-sm" id="div{{ section }}">
                            {% for inst in insts %}
                                <span class="button-checkbox">
                                <button type="button" class="btn" data-sec="{{ section }}" data-color="{% if section == '农牧' %}success{% elif section == '贵金属' %}warning{% elif section == '金融' %}danger{% elif section == '有色金属' %}info{% elif section == '新能源' %}info{% elif section == '黑色产业' %}default{% elif section == '能源' %}danger{% elif section == '化工' %}primary{% else %}primary{% endif %}">{{ inst.name }}</button>
                                <input type="checkbox" class="hidden" title="" value="{{ inst.id }}"
                                       {% if inst.id in strategy_inst %}checked{% endif %}/>
                            </span>
                            {% endfor %}
                        </div>
                    </div>
                </div>
            {% endfor %}
        </div>
    </div>
{% endblock %}


================================================
FILE: dashboard/templates/panel/instrument.html
================================================
{% extends 'global/base_site.html' %}
{% load static %}
{% block extrajs %}
    {{ block.super }}
    <script src="{% static 'js/bar.js' %}"></script>
{% endblock %}
{% block content %}
    <div class="row">
        {% for exchange, insts in inst_list.items %}
            <div class="col-md-1">
                <div class="dropdown">
                    <button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true"
                            aria-expanded="false">{{ exchange }}<span class="caret"></span></button>
                    <ul class="dropdown-menu" aria-labelledby="dLabel">
                        {% for obj in insts %}
                            <li><a href="{% url 'panel:instrument_view' %}?strategy={{ cur_stra.id }}&inst_id={{ obj.id }}">{{ obj.name }}</a></li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        {% endfor %}
    </div>
    <div class="row">
        <div class="col-md-12" id="main" style="width: 100%;height:500px;"></div>
    </div>
{% endblock %}


================================================
FILE: dashboard/templates/panel/performance.html
================================================
{% extends 'global/base_site.html' %}
{% load static %}
{% block extrajs %}
    {{ block.super }}
    <script src="{% static 'js/nav.js' %}"></script>
{% endblock %}
{% block content %}
    <div id="main" style="width: 100%;height:500px;"></div>
{% endblock %}


================================================
FILE: dashboard/templates/panel/status.html
================================================
{% extends 'global/base_site.html' %}
{% load static %}
{% load custom_tag %}
{% block extrajs %}
    {{ block.super }}
    <script src="{% static 'js/status.js' %}"></script>
{% endblock %}
{% block content %}
    <div class="row">
        <div class="col-md-2">
            <div class="panel panel-info">
                <div class="panel-heading panel-heading-sm">
                    <h3 class="panel-title">静态市值</h3>
                </div>
                <div class="panel-body panel-body-sm">
                    <span class="fa fa-rmb">{{ pre_balance }}</span>
                </div>
            </div>
        </div>
        <div class="col-md-2">
            <div class="panel panel-primary">
                <div class="panel-heading panel-heading-sm">
                    <h3 class="panel-title">动态市值</h3>
                </div>
                <div class="panel-body panel-body-sm">
                    <span class="fa fa-rmb">{{ current }}</span>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="panel panel-{% if margin <= 50 %}success{% elif margin <= 75 %}warning{% else %}danger{% endif %}">
                <div class="panel-heading panel-heading-sm">
                    <h3 class="panel-title">保证金占用</h3>
                </div>
                <div class="panel-body panel-body-sm">
                    <div class="progress">
                        <div class="progress-bar progress-bar-{% if margin <= 50 %}success{% elif margin <= 75 %}warning{% else %}danger{% endif %} progress-bar-striped"
                             role="progressbar"
                             aria-valuenow="{{ margin }}" aria-valuemin="0" aria-valuemax="100"
                             style="width: {{ margin }}%">
                            <span>{{ margin }}%</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6" id="section" style="width: 600px;height:400px;"></div>
        <div class="col-md-6" id="position" style="width: 600px;height:400px;"></div>
    </div>
    <div class="row table-responsive">
        <div class="col-md-12">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th>合约</th>
                    <th>代码</th>
                    <th>夜盘</th>
                    <th>方向</th>
                    <th>数量</th>
                    <th>持仓均价</th>
                    <th>开仓日期</th>
                    <th>持仓盈亏</th>
                </tr>
                </thead>
                <tbody>
                {% for sig in open_list %}
                    <tr class="success">
                        <td>{{ sig.instrument }} <b>(开仓)</b></td>
                        <td>{{ sig.code }}</td>
                        <td>{% if sig.instrument.night_trade == 1 %}有{% endif %}</td>
                        <td>{{ sig.get_type_display }}</td>
                        <td>{{ sig.volume }}</td>
                        <td>{{ sig.price|number }}</td>
                        <td>{{ sig.trigger_time.date }}</td>
                        <td>-</td>
                    </tr>
                {% endfor %}
                {% for pos in pos_list %}
                    <tr class="{% if pos.code in close_list %}danger{% elif pos.code in roll_list %}warning{% endif %}">
                        <td>{{ pos.instrument }}{% if pos.code in close_list %} <b>(平仓)</b>{% elif pos.code in roll_list %} <b>(换月)</b>{% endif %}</td>
                        <td>{{ pos.code }}</td>
                        <td>{% if pos.instrument.night_trade == 1 %}有{% endif %}</td>
                        <td>{{ pos.direction }}</td>
                        <td>{{ pos.shares }}</td>
                        <td>{{ pos.avg_entry_price|number }}</td>
                        <td>{{ pos.open_time.date }}</td>
                        <td><span class="fa fa-rmb"> {% if pos.profit == None %}0{% else %}{{ pos.profit|number }}{% endif %}</span></td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
{% endblock %}


================================================
FILE: dashboard/urls.py
================================================
"""dashboard URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.urls import include, re_path
from django.contrib import admin
from django.views.generic import RedirectView

admin.site.site_header = '操盘大哥v2.0-商品期货版'

urlpatterns = [
    re_path(r'^admin/', admin.site.urls),
    re_path(r'^', include('panel.urls', namespace='panel')),
    re_path(r'^$', RedirectView.as_view(url='/status?strategy=1'), name='go-to-status'),
]


================================================
FILE: dashboard/wsgi.py
================================================
"""
WSGI config for dashboard project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dashboard.settings")

application = get_wsgi_application()


================================================
FILE: main.py
================================================
# coding=utf-8
#
# Copyright 2016 timercrack
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import sys
import os
import re
import importlib
import pathlib
import django
ROOT = os.path.dirname(os.path.abspath(__file__))
if ROOT not in sys.path:
    sys.path.insert(0, ROOT)
os.environ["DJANGO_SETTINGS_MODULE"] = "dashboard.settings"
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
django.setup()
import logging
from logging import handlers

_strategy_dir = pathlib.Path(ROOT) / 'strategy'
_brother_re = re.compile(r'^brother(\d+)\.py$')
_candidates: list[tuple[int, str]] = []
for f in _strategy_dir.iterdir():
    m = _brother_re.match(f.name)
    if m:
        _candidates.append((int(m.group(1)), f.stem))
_candidates.sort(reverse=True)

TradeStrategy = None
_strategy_name = None
for _ver, _mod_name in _candidates:
    try:
        _mod = importlib.import_module(f'strategy.{_mod_name}')
        TradeStrategy = _mod.TradeStrategy
        _strategy_name = getattr(TradeStrategy, '__doc__', '')
        if '—' in _strategy_name:
            _strategy_name = _strategy_name.split('—')[0].strip()
        elif '-' in _strategy_name:
            _strategy_name = _strategy_name.split('-')[0].strip()
        break
    except ImportError:
        continue

if TradeStrategy is None:
    raise RuntimeError('未找到任何 strategy/brotherXXX.py 策略文件')

from utils.read_config import config_file, app_dir, config
from weixin_notifier import install_weixin_log_handler


if __name__ == '__main__':
    if not os.path.exists(app_dir.user_log_dir):
        os.makedirs(app_dir.user_log_dir)
    log_file = os.path.join(app_dir.user_log_dir, 'trader.log')
    file_handler = handlers.RotatingFileHandler(log_file, encoding='utf-8', maxBytes=1024*1024, backupCount=1)
    general_formatter = logging.Formatter(config.get('LOG', 'format'))
    file_handler.setFormatter(general_formatter)
    file_handler.setLevel(config.get('LOG', 'file_level', fallback='DEBUG'))
    console_handler = logging.StreamHandler()
    console_handler.setFormatter(general_formatter)
    console_handler.setLevel('DEBUG')
    logger = logging.getLogger()
    logger.setLevel('DEBUG')
    logger.addHandler(file_handler)
    logger.addHandler(console_handler)
    install_weixin_log_handler(logger)
    logger = logging.getLogger("main")
    pid_path = os.path.join(app_dir.user_cache_dir, 'trader.pid')
    if not os.path.exists(pid_path):
        if not os.path.exists(app_dir.user_cache_dir):
            os.makedirs(app_dir.user_cache_dir)
    with open(pid_path, 'w') as pid_file:
        pid_file.write(str(os.getpid()))
    print('Big Brother is watching you!')
    print('used config file:', config_file)
    print('log stored in:', app_dir.user_log_dir)
    print('pid file:', pid_path)
    print('strategy:', _strategy_name)
    TradeStrategy(name=_strategy_name).run()


================================================
FILE: manage.py
================================================
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dashboard.settings")
    from django.core.management import execute_from_command_line
    execute_from_command_line(sys.argv)


================================================
FILE: native/ctp_bridge/CMakeLists.txt
================================================
cmake_minimum_required(VERSION 3.31)

if(POLICY CMP0091)
    cmake_policy(SET CMP0091 NEW)
endif()

project(ctp_bridge_native VERSION 0.1.0 LANGUAGES CXX)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Export compile_commands.json" FORCE)

option(CTP_STRICT_LINK "Fail configure when Thost native libs are missing" OFF)

find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)

execute_process(
    COMMAND "${Python3_EXECUTABLE}" -m pybind11 --cmakedir
    OUTPUT_VARIABLE _pybind11_cmake_dir
    OUTPUT_STRIP_TRAILING_WHITESPACE
    COMMAND_ERROR_IS_FATAL ANY
)
set(pybind11_DIR "${_pybind11_cmake_dir}" CACHE PATH "pybind11 CMake config dir")
find_package(pybind11 CONFIG REQUIRED)

pybind11_add_module(ctp_bridge_native src/py_module.cpp)

target_compile_features(ctp_bridge_native PRIVATE cxx_std_23)
set_target_properties(ctp_bridge_native PROPERTIES
    CXX_EXTENSIONS OFF
)

if(MSVC)
    target_compile_options(ctp_bridge_native PRIVATE /std:c++latest /utf-8 /bigobj /EHsc)
endif()

if(WIN32)
    set(THOST_API_DIR "${CMAKE_CURRENT_SOURCE_DIR}/api/win")
elseif(UNIX)
    set(THOST_API_DIR "${CMAKE_CURRENT_SOURCE_DIR}/api/linux")
else()
    message(FATAL_ERROR "Unsupported platform for Thost API")
endif()

target_include_directories(ctp_bridge_native PRIVATE
    "$<BUILD_INTERFACE:${THOST_API_DIR}>"
)

if(WIN32)
    set(THOST_TRADER_LIB "${THOST_API_DIR}/thosttraderapi_se.lib")
    set(THOST_MD_LIB "${THOST_API_DIR}/thostmduserapi_se.lib")
    if(EXISTS "${THOST_TRADER_LIB}" AND EXISTS "${THOST_MD_LIB}")
        target_link_libraries(ctp_bridge_native PRIVATE
            "${THOST_TRADER_LIB}"
            "${THOST_MD_LIB}"
        )
    elseif(CTP_STRICT_LINK)
        message(FATAL_ERROR "Thost .lib files not found under ${THOST_API_DIR}")
    else()
        message(WARNING "Thost .lib files not found under ${THOST_API_DIR}, build will use header-only skeleton.")
    endif()
endif()

if(UNIX)
    set(THOST_TRADER_SO "${THOST_API_DIR}/thosttraderapi_se.so")
    set(THOST_MD_SO "${THOST_API_DIR}/thostmduserapi_se.so")
    if(EXISTS "${THOST_TRADER_SO}" AND EXISTS "${THOST_MD_SO}")
        # 使用 -l:filename 兼容非 lib*.so 命名,并通过 target_link_libraries 保证库顺序正确
        target_link_directories(ctp_bridge_native PRIVATE "${THOST_API_DIR}")
        target_link_libraries(ctp_bridge_native PRIVATE
            "-l:thosttraderapi_se.so"
            "-l:thostmduserapi_se.so"
        )
        set_target_properties(ctp_bridge_native PROPERTIES
            BUILD_RPATH "${THOST_API_DIR}"
            INSTALL_RPATH "$ORIGIN/native/ctp_bridge/api/linux;$ORIGIN"
        )
    elseif(CTP_STRICT_LINK)
        message(FATAL_ERROR "Thost .so files not found under ${THOST_API_DIR}")
    else()
        message(WARNING "Thost .so files not found under ${THOST_API_DIR}, build will use header-only skeleton.")
    endif()
endif()


================================================
FILE: native/ctp_bridge/CMakePresets.json
================================================
{
  "version": 3,
  "configurePresets": [
    {
      "name": "win",
      "displayName": "Windows (Ninja)",
      "description": "Use Ninja + MSVC cl and generate compile_commands.json",
      "generator": "Ninja",
      "binaryDir": "${sourceDir}/build",
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Release",
        "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
      }
    },
    {
      "name": "linux",
      "displayName": "Linux (Default Generator)",
      "description": "Use system default generator and generate compile_commands.json",
      "binaryDir": "${sourceDir}/build",
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Release",
        "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
      }
    }
  ],
  "buildPresets": [
    {
      "name": "win",
      "configurePreset": "win"
    },
    {
      "name": "linux",
      "configurePreset": "linux"
    }
  ]
}


================================================
FILE: native/ctp_bridge/README.md
================================================
# ctp_bridge_native(简化说明)

`ctp_bridge_native` 是 `trader` 的本地 C++ 扩展,用于通过 pybind11 直连 CTP Thost API。

## 目录结构

- `CMakeLists.txt`:构建入口
- `src/py_module.cpp`:`CtpClient` 导出与回调桥接
- `api/win`、`api/linux`:Thost 头文件与库

## 构建

在 `native/ctp_bridge` 目录下执行 CMake 构建。

当前构建设置:

- C++ 标准:`C++23`
- Windows + MSVC:启用 `/std:c++latest` 与 `/utf-8`

### Windows(MSVC)最小命令

```powershell
cd native/ctp_bridge
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release
```

### Linux(GCC/Clang)最小命令

```bash
cd native/ctp_bridge
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
```

### 动态库准备(按平台,必须)

除了头文件,还需要把 CTP 动态库放到对应平台目录:

- Linux:`native/ctp_bridge/api/linux/`
  - `thosttraderapi_se.so`
  - `thostmduserapi_se.so`
  - `DataCollect.so` 或 `LinuxDataCollect.so`
- Windows:`native/ctp_bridge/api/win/`
  - 对应的 Trader/Md/DataCollect 运行库(通常为 `.dll`,并与 `.lib` 配套)

> 注意:前两个交易/行情库用于编译与链接 Python 扩展模块;`DataCollect` 库为行情链路运行时自动调用依赖,也必须放在对应目录。

编译成功后,通常模块输出在:

- `native/ctp_bridge/build`

## 配置

在项目根目录 `config.yaml` 的 `ctp_native` 章节确保:

- `gateway = pybind`
- `module = ctp_bridge_native`
- `module_path = <构建输出目录>`(例如 `native/ctp_bridge/build`)

## 快速验证

回到项目根目录执行:

- `python test/test_ctp.py`

Linux 建议先做一次依赖检查(确认模块已正确链接 Thost 动态库):

```bash
ldd ctp_bridge_native.cpython-314-x86_64-linux-gnu.so
```

输出中应能看到:

- `thosttraderapi_se.so => .../native/ctp_bridge/api/linux/thosttraderapi_se.so`
- `thostmduserapi_se.so => .../native/ctp_bridge/api/linux/thostmduserapi_se.so`

按当前配置方案,只需在 `config.yaml` 里设置好 `ctp_native.module_path`,无需把扩展模块复制到项目根目录。

若需要企业微信日志推送,请在 `config.yaml` 的 `weixin` 章节补齐 `CorpID`、`Secret`(以及可选 `AgentID`、`ToUser`)。
当前 `trader` 已内置该推送能力,无需再单独运行 `flower`。

可选环境变量:

- `CTP_TEST_WARMUP_SECONDS`:登录预热秒数
- `CTP_TEST_INSTRUMENT`:优先测试合约(若无效会自动回退)

## 常见问题(Linux)

- `ModuleNotFoundError: No module named 'ctp_bridge_native'`
  - 原因:`ctp_native.module_path` 未指向构建目录。
  - 处理:检查 `config.yaml` 中 `ctp_native.module_path` 是否正确。

- `ImportError: undefined symbol: CThostFtdc...CreateFtdc...`
  - 原因:模块未正确链接/加载 Thost 动态库。
  - 处理:确认 `api/linux` 下两个 `thost*.so` 文件存在,重新执行 CMake 构建,并用 `ldd` 验证依赖是否解析成功。


================================================
FILE: native/ctp_bridge/api/linux/DataCollect.h
================================================
#ifndef DATA_COLLECT_H
#define DATA_COLLECT_H

#define DLL_EXPORT __declspec(dllexport)

#if defined(IS_WINCOLLECT_LIB) && defined(WIN32)
#ifdef LIB_DATA_COLLECT_API_EXPORT
#define DATA_COLLECT_API_EXPORT __declspec(dllexport)
#else
#define DATA_COLLECT_API_EXPORT __declspec(dllimport)
#endif
#else
#define DATA_COLLECT_API_EXPORT
#endif

/// 获取AES加密和RSA加密的终端信息 pSystemInfo的空间需要调用者自己分配
/// 至少270个字节
///  windows返回值定义
/* 返回的int值 不为0 表示采集信息有误 具体哪个采集项有问题需要做如下判断
从低位开始分别标示 终端信息 ->系统盘分区信息
返回值 & (0x01 << 0) 不为0 表示终端类型未采集到
返回值 & (0x01 << 1) 不为0 表示 信息采集时间获取异常
返回值 & (0x01 << 2) 不为0 表示ip 获取失败
(采集多个相同类型信息的场景有一个采集到 即表示采集成功) 返回值 & (0x01 << 3)
不为0 表示mac 获取失败 返回值 & (0x01 << 4) 不为0 表示 设备名 获取失败 返回值
& (0x01 << 5) 不为0 表示 操作系统版本 获取失败 返回值 & (0x01 << 6) 不为0
表示 硬盘序列号 获取失败 返回值 & (0x01 << 7) 不为0 表示 CPU序列号 获取失败
返回值 & (0x01 << 8) 不为0 表示 BIOS 获取失败
返回值 & (0x01 << 9) 不为0 表示 系统盘分区信息 获取失败
*/

/// linux返回值定义
/* 返回的int值 不为0 表示采集信息有误 具体哪个采集项有问题需要做如下判断
从低位开始分别标示 终端信息 -> BIOS信息
返回值 & (0x01 << 0) 不为0 表示终端类型未采集到
返回值 & (0x01 << 1) 不为0 表示 信息采集时间获取异常
返回值 & (0x01 << 2) 不为0 表示ip 获取失败
(采集多个相同类型信息的场景有一个采集到 即表示采集成功) 返回值 & (0x01 << 3)
不为0 表示mac 获取失败 返回值 & (0x01 << 4) 不为0 表示 设备名 获取失败 返回值
& (0x01 << 5) 不为0 表示 操作系统版本 获取失败 返回值 & (0x01 << 6) 不为0
表示 硬盘序列号 获取失败 返回值 & (0x01 << 7) 不为0 表示 CPU序列号 获取失败
返回值 & (0x01 << 8) 不为0 表示 BIOS 获取失败
*/

DATA_COLLECT_API_EXPORT int CTP_GetSystemInfo(char *pSystemInfo, int &nLen);

// 版本号格式
// Sfit + 生产还是测试秘钥(pro/tst) + 秘钥版本 + 编译时间 + 版本(内部)

DATA_COLLECT_API_EXPORT const char *CTP_GetDataCollectApiVersion(void);

#endif


================================================
FILE: native/ctp_bridge/api/linux/ThostFtdcMdApi.h
================================================
/////////////////////////////////////////////////////////////////////////
///@system 新一代交易所系统
///@company 上海期货信息技术有限公司
///@file ThostFtdcMdApi.h
///@brief 定义了客户端接口
///@history 
///20060106	赵鸿昊		创建该文件
/////////////////////////////////////////////////////////////////////////

#if !defined(THOST_FTDCMDAPI_H)
#define THOST_FTDCMDAPI_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ThostFtdcUserApiStruct.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 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) {};

	///登出请求响应
	virtual void OnRspUserLogout(CThostFtdcUserLogoutField *pUserLogout, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///请求查询组播合约响应
	virtual void OnRspQryMulticastInstrument(CThostFtdcMulticastInstrumentField *pMulticastInstrument, 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 存贮订阅信息文件的目录,默认为当前目录
	///@param bIsProductionMode true:使用生产版本的API  false:使用测评版本API
	///@return 创建出的UserApi
	///modify for udp marketdata
	static CThostFtdcMdApi *CreateFtdcMdApi(const char *pszFlowPath = "", const bool bIsUsingUdp=false, const bool bIsMulticast=false, bool bIsProductionMode=true);
	
	///获取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 RegisterNameServer优先于RegisterFront
	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;
	

	///登出请求
	virtual int ReqUserLogout(CThostFtdcUserLogoutField *pUserLogout, int nRequestID) = 0;

	///请求查询组播合约
	virtual int ReqQryMulticastInstrument(CThostFtdcQryMulticastInstrumentField *pQryMulticastInstrument, int nRequestID) = 0;
protected:
	~CThostFtdcMdApi(){};
};

#endif


================================================
FILE: native/ctp_bridge/api/linux/ThostFtdcTraderApi.h
================================================
/////////////////////////////////////////////////////////////////////////
///@system 新一代交易所系统
///@company 上海期货信息技术有限公司
///@file ThostFtdcTraderApi.h
///@brief 定义了客户端接口
///@history 
///20060106	赵鸿昊		创建该文件
/////////////////////////////////////////////////////////////////////////

#if !defined(THOST_FTDCTRADERAPI_H)
#define THOST_FTDCTRADERAPI_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ThostFtdcUserApiStruct.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 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) {};

	///登出请求响应
	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 OnRspUserAuthMethod(CThostFtdcRspUserAuthMethodField *pRspUserAuthMethod, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///获取图形验证码请求的回复
	virtual void OnRspGenUserCaptcha(CThostFtdcRspGenUserCaptchaField *pRspGenUserCaptcha, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///获取短信验证码请求的回复
	virtual void OnRspGenUserText(CThostFtdcRspGenUserTextField *pRspGenUserText, 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 OnRspQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, 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 OnRspBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///期权自对冲录入请求响应
	virtual void OnRspOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///期权自对冲操作请求响应
	virtual void OnRspOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, 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 OnRspQryUserSession(CThostFtdcUserSessionField *pUserSession, 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 OnRspQryTraderOffer(CThostFtdcTraderOfferField *pTraderOffer, 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 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 OnRspQrySecAgentTradingAccount(CThostFtdcTradingAccountField *pTradingAccount, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///请求查询二级代理商资金校验模式响应
	virtual void OnRspQrySecAgentCheckMode(CThostFtdcSecAgentCheckModeField *pSecAgentCheckMode, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///请求查询二级代理商信息响应
	virtual void OnRspQrySecAgentTradeInfo(CThostFtdcSecAgentTradeInfoField *pSecAgentTradeInfo, 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 OnRspQryOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///请求查询投资单元响应
	virtual void OnRspQryInvestUnit(CThostFtdcInvestUnitField *pInvestUnit, 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 OnRtnBulletin(CThostFtdcBulletinField *pBulletin) {};

	///交易通知
	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 OnErrRtnBatchOrderAction(CThostFtdcBatchOrderActionField *pBatchOrderAction, CThostFtdcRspInfoField *pRspInfo) {};

	///期权自对冲通知
	virtual void OnRtnOptionSelfClose(CThostFtdcOptionSelfCloseField *pOptionSelfClose) {};

	///期权自对冲录入错误回报
	virtual void OnErrRtnOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, CThostFtdcRspInfoField *pRspInfo) {};

	///期权自对冲操作错误回报
	virtual void OnErrRtnOptionSelfCloseAction(CThostFtdcOptionSelfCloseActionField *pOptionSelfCloseAction, 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) {};

	///请求查询分类合约响应
	virtual void OnRspQryClassifiedInstrument(CThostFtdcInstrumentField *pInstrument, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///请求组合优惠比例响应
	virtual void OnRspQryCombPromotionParam(CThostFtdcCombPromotionParamField *pCombPromotionParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者风险结算持仓查询响应
	virtual void OnRspQryRiskSettleInvstPosition(CThostFtdcRiskSettleInvstPositionField *pRiskSettleInvstPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///风险结算产品查询响应
	virtual void OnRspQryRiskSettleProductStatus(CThostFtdcRiskSettleProductStatusField *pRiskSettleProductStatus, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPBM期货合约参数查询响应
	virtual void OnRspQrySPBMFutureParameter(CThostFtdcSPBMFutureParameterField *pSPBMFutureParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPBM期权合约参数查询响应
	virtual void OnRspQrySPBMOptionParameter(CThostFtdcSPBMOptionParameterField *pSPBMOptionParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPBM品种内对锁仓折扣参数查询响应
	virtual void OnRspQrySPBMIntraParameter(CThostFtdcSPBMIntraParameterField *pSPBMIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPBM跨品种抵扣参数查询响应
	virtual void OnRspQrySPBMInterParameter(CThostFtdcSPBMInterParameterField *pSPBMInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPBM组合保证金套餐查询响应
	virtual void OnRspQrySPBMPortfDefinition(CThostFtdcSPBMPortfDefinitionField *pSPBMPortfDefinition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者SPBM套餐选择查询响应
	virtual void OnRspQrySPBMInvestorPortfDef(CThostFtdcSPBMInvestorPortfDefField *pSPBMInvestorPortfDef, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者新型组合保证金系数查询响应
	virtual void OnRspQryInvestorPortfMarginRatio(CThostFtdcInvestorPortfMarginRatioField *pInvestorPortfMarginRatio, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者产品SPBM明细查询响应
	virtual void OnRspQryInvestorProdSPBMDetail(CThostFtdcInvestorProdSPBMDetailField *pInvestorProdSPBMDetail, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者商品组SPMM记录查询响应
	virtual void OnRspQryInvestorCommoditySPMMMargin(CThostFtdcInvestorCommoditySPMMMarginField *pInvestorCommoditySPMMMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者商品群SPMM记录查询响应
	virtual void OnRspQryInvestorCommodityGroupSPMMMargin(CThostFtdcInvestorCommodityGroupSPMMMarginField *pInvestorCommodityGroupSPMMMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPMM合约参数查询响应
	virtual void OnRspQrySPMMInstParam(CThostFtdcSPMMInstParamField *pSPMMInstParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPMM产品参数查询响应
	virtual void OnRspQrySPMMProductParam(CThostFtdcSPMMProductParamField *pSPMMProductParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///SPBM附加跨品种抵扣参数查询响应
	virtual void OnRspQrySPBMAddOnInterParameter(CThostFtdcSPBMAddOnInterParameterField *pSPBMAddOnInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RCAMS产品组合信息查询响应
	virtual void OnRspQryRCAMSCombProductInfo(CThostFtdcRCAMSCombProductInfoField *pRCAMSCombProductInfo, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RCAMS同合约风险对冲参数查询响应
	virtual void OnRspQryRCAMSInstrParameter(CThostFtdcRCAMSInstrParameterField *pRCAMSInstrParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RCAMS品种内风险对冲参数查询响应
	virtual void OnRspQryRCAMSIntraParameter(CThostFtdcRCAMSIntraParameterField *pRCAMSIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RCAMS跨品种风险折抵参数查询响应
	virtual void OnRspQryRCAMSInterParameter(CThostFtdcRCAMSInterParameterField *pRCAMSInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RCAMS空头期权风险调整参数查询响应
	virtual void OnRspQryRCAMSShortOptAdjustParam(CThostFtdcRCAMSShortOptAdjustParamField *pRCAMSShortOptAdjustParam, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RCAMS策略组合持仓查询响应
	virtual void OnRspQryRCAMSInvestorCombPosition(CThostFtdcRCAMSInvestorCombPositionField *pRCAMSInvestorCombPosition, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者品种RCAMS保证金查询响应
	virtual void OnRspQryInvestorProdRCAMSMargin(CThostFtdcInvestorProdRCAMSMarginField *pInvestorProdRCAMSMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RULE合约保证金参数查询响应
	virtual void OnRspQryRULEInstrParameter(CThostFtdcRULEInstrParameterField *pRULEInstrParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RULE品种内对锁仓折扣参数查询响应
	virtual void OnRspQryRULEIntraParameter(CThostFtdcRULEIntraParameterField *pRULEIntraParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///RULE跨品种抵扣参数查询响应
	virtual void OnRspQryRULEInterParameter(CThostFtdcRULEInterParameterField *pRULEInterParameter, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者产品RULE保证金查询响应
	virtual void OnRspQryInvestorProdRULEMargin(CThostFtdcInvestorProdRULEMarginField *pInvestorProdRULEMargin, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者新型组合保证金开关查询响应
	virtual void OnRspQryInvestorPortfSetting(CThostFtdcInvestorPortfSettingField *pInvestorPortfSetting, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///投资者申报费阶梯收取记录查询响应
	virtual void OnRspQryInvestorInfoCommRec(CThostFtdcInvestorInfoCommRecField *pInvestorInfoCommRec, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///组合腿信息查询响应
	virtual void OnRspQryCombLeg(CThostFtdcCombLegField *pCombLeg, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///对冲设置请求响应
	virtual void OnRspOffsetSetting(CThostFtdcInputOffsetSettingField *pInputOffsetSetting, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///对冲设置撤销请求响应
	virtual void OnRspCancelOffsetSetting(CThostFtdcInputOffsetSettingField *pInputOffsetSetting, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};

	///对冲设置通知
	virtual void OnRtnOffsetSetting(CThostFtdcOffsetSettingField *pOffsetSetting) {};

	///对冲设置错误回报
	virtual void OnErrRtnOffsetSetting(CThostFtdcInputOffsetSettingField *pInputOffsetSetting, CThostFtdcRspInfoField *pRspInfo) {};

	///对冲设置撤销错误回报
	virtual void OnErrRtnCancelOffsetSetting(CThostFtdcCancelOffsetSettingField *pCancelOffsetSetting, CThostFtdcRspInfoField *pRspInfo) {};

	///投资者对冲设置查询响应
	virtual void OnRspQryOffsetSetting(CThostFtdcOffsetSettingField *pOffsetSetting, CThostFtdcRspInfoField *pRspInfo, int nRequestID, bool bIsLast) {};
};

class TRADER_API_EXPORT CThostFtdcTraderApi
{
public:
	///创建TraderApi
	///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录
	///@param bIsProductionMode true:使用生产版本的API  false:使用测评版本的API
	///@return 创建出的UserApi
	static CThostFtdcTraderApi *CreateFtdcTraderApi(const char *pszFlowPath = "", bool bIsProductionMode = true);
	
	///获取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 pFrontInfo:输入输出参数,用于存储获取到的前置信息,不能为空
	/// @remark 连接成功后,可获取正确的前置地址信息
	/// @remark 登录成功后,可获取正确的前置流控信息
	virtual void GetFrontInfo(CThostFtdcFrontInfoField* pFrontInfo) =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 RegisterNameServer优先于RegisterFront
	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:只传送登录后公共流的内容
	///        THOST_TERT_NONE:取消订阅公共流
	///@remark 该方法要在Init方法前调用。若不调用则不会收到公共流的数据。
	virtual void SubscribePublicTopic(THOST_TE_RESUME_TYPE nResumeType) = 0;

	///客户端认证请求
	virtual int ReqAuthenticate(CThostFtdcReqAuthenticateField *pReqAuthenticateField, int nRequestID) = 0;

	///注册用户终端信息,用于中继服务器多连接模式
	///需要在终端认证成功后,用户登录前调用该接口
	virtual int RegisterUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0;

	///上报用户终端信息,用于中继服务器操作员登录模式
	///操作员登录后,可以多次调用该接口上报客户信息
	virtual int SubmitUserSystemInfo(CThostFtdcUserSystemInfoField *pUserSystemInfo) = 0;
	///注册用户终端信息,用于中继服务器多连接模式.用于微信小程序等应用上报信息.
	virtual int RegisterWechatUserSystemInfo(CThostFtdcWechatUserSystemInfoField *pUserSystemInfo) = 0;
	///上报用户终端信息,用于中继服务器操作员登录模式.用于微信小程序等应用上报信息.
	virtual int SubmitWechatUserSystemInfo(CThostFtdcWechatUserSystemInfoField *pUserSystemInfo) = 0;

	///用户登录请求
	virtual int ReqUserLogin(CThostFtdcReqUserLoginField *pReqUserLoginField, int nRequestID) = 0;

	///登出请求
	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 ReqUserAuthMethod(CThostFtdcReqUserAuthMethodField *pReqUserAuthMethod, int nRequestID) = 0;

	///用户发出获取图形验证码请求
	virtual int ReqGenUserCaptcha(CThostFtdcReqGenUserCaptchaField *pReqGenUserCaptcha, int nRequestID) = 0;

	///用户发出获取短信验证码请求
	virtual int ReqGenUserText(CThostFtdcReqGenUserTextField *pReqGenUserText, int nRequestID) = 0;

	///用户发出带有图片验证码的登陆请求
	virtual int ReqUserLoginWithCaptcha(CThostFtdcReqUserLoginWithCaptchaField *pReqUserLoginWithCaptcha, int nRequestID) = 0;

	///用户发出带有短信验证码的登陆请求
	virtual int ReqUserLoginWithText(CThostFtdcReqUserLoginWithTextField *pReqUserLoginWithText, int nRequestID) = 0;

	///用户发出带有动态口令的登陆请求
	virtual int ReqUserLoginWithOTP(CThostFtdcReqUserLoginWithOTPField *pReqUserLoginWithOTP, 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 ReqQryMaxOrderVolume(CThostFtdcQryMaxOrderVolumeField *pQryMaxOrderVolume, 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 ReqBatchOrderAction(CThostFtdcInputBatchOrderActionField *pInputBatchOrderAction, int nRequestID) = 0;

	///期权自对冲录入请求
	virtual int ReqOptionSelfCloseInsert(CThostFtdcInputOptionSelfCloseField *pInputOptionSelfClose, int nRequestID) = 0;

	///期权自对冲操作请求
	virtual int ReqOptionSelfCloseAction(CThostFtdcInputOptionSelfCloseActionField *pInputOptionSelfCloseAction, 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 ReqQryUserSession(CThostFtdcQryUserSessionField *pQryUserSession, 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 ReqQryTraderOffer(CThostFtdcQryTraderOfferField *pQryTraderOffer, 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 ReqQryMMInstrumentCommissionRate(CThostFtdcQryMMInstrumentCommissionRateField *pQryMMInstrumentCommissionRate, int nRequestID) = 0;

	///请求查询做市商期权合约手续费
	virtual int ReqQryMMOptionInstrCommRate(CThostFtdcQryMMOptionInstrCommRateField *pQryMMOptionInstrCommRate, int nRequestID) = 0;

	///请求查询报单手续费
	virtual int ReqQryInstrumentOrderCommRate(CThostFtdcQryInstrumentOrderCommRateField *pQryInstrumentOrderCommRate, int nRequestID) = 0;

	///请求查询资金账户
	virtual int ReqQrySecAgentTradingAccount(CThostFtdcQryTradingAccountField *pQryTradingAccount, int nRequestID) = 0;

	///请求查询二级代理商资金校验模式
	virtual int ReqQrySecAgentCheckMode(CThostFtdcQrySecAgentCheckModeField *pQrySecAgentCheckMode, int nRequestID) = 0;

	///请求查询二级代理商信息
	virtual int ReqQrySecAgentTradeInfo(CThostFtdcQrySecAgentTradeInfoField *pQrySecAgentTradeInfo, 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 ReqQryOptionSelfClose(CThostFtdcQryOptionSelfCloseField *pQryOptionSelfClose, int nRequestID) = 0;

	///请求查询投资单元
	virtual int ReqQryInvestUnit(CThostFtdcQryInvestUnitField *pQryInvestUnit, 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;

	///请求查询分类合约
	virtual int ReqQryClassifiedInstrument(CThostFtdcQryClassifiedInstrumentField *pQryClassifiedInstrument, int nRequestID) = 0;

	///请求组合优惠比例
	virtual int ReqQryCombPromotionParam(CThostFtdcQryCombPromotionParamField *pQryCombPromotionParam, int nRequestID) = 0;

	///投资者风险结算持仓查询
	virtual int ReqQryRiskSettleInvstPosition(CThostFtdcQryRiskSettleInvstPositionField *pQryRiskSettleInvstPosition, int nRequestID) = 0;

	///风险结算产品查询
	virtual int ReqQryRiskSettleProductStatus(CThostFtdcQryRiskSettleProductStatusField *pQryRiskSettleProductStatus, int nRequestID) = 0;

	///SPBM期货合约参数查询
	virtual int ReqQrySPBMFutureParameter(CThostFtdcQrySPBMFutureParameterField *pQrySPBMFutureParameter, int nRequestID) = 0;

	///SPBM期权合约参数查询
	virtual int ReqQrySPBMOptionParameter(CThostFtdcQrySPBMOptionParameterField *pQrySPBMOptionParameter, int nRequestID) = 0;

	///SPBM品种内对锁仓折扣参数查询
	virtual int ReqQrySPBMIntraParameter(CThostFtdcQrySPBMIntraParameterField *pQrySPBMIntraParameter, int nRequestID) = 0;

	///SPBM跨品种抵扣参数查询
	virtual int ReqQrySPBMInterParameter(CThostFtdcQrySPBMInterParameterField *pQrySPBMInterParameter, int nRequestID) = 0;

	///SPBM组合保证金套餐查询
	virtual int ReqQrySPBMPortfDefinition(CThostFtdcQrySPBMPortfDefinitionField *pQrySPBMPortfDefinition, int nRequestID) = 0;

	///投资者SPBM套餐选择查询
	virtual int ReqQrySPBMInvestorPortfDef(CThostFtdcQrySPBMInvestorPortfDefField *pQrySPBMInvestorPortfDef, int nRequestID) = 0;

	///投资者新型组合保证金系数查询
	virtual int ReqQryInvestorPortfMarginRatio(CThostFtdcQryInvestorPortfMarginRatioField *pQryInvestorPortfMarginRatio, int nRequestID) = 0;

	///投资者产品SPBM明细查询
	virtual int ReqQryInvestorProdSPBMDetail(CThostFtdcQryInvestorProdSPBMDetailField *pQryInvestorProdSPBMDetail, int nRequestID) = 0;

	///投资者商品组SPMM记录查询
	virtual int ReqQryInvestorCommoditySPMMMargin(CThostFtdcQryInvestorCommoditySPMMMarginField *pQryInvestorCommoditySPMMMargin, int nRequestID) = 0;

	///投资者商品群SPMM记录查询
	virtual int ReqQryInvestorCommodityGroupSPMMMargin(CThostFtdcQryInvestorCommodityGroupSPMMMarginField *pQryInvestorCommodityGroupSPMMMargin, int nRequestID) = 0;

	///SPMM合约参数查询
	virtual int ReqQrySPMMInstParam(CThostFtdcQrySPMMInstParamField *pQrySPMMInstParam, int nRequestID) = 0;

	///SPMM产品参数查询
	virtual int ReqQrySPMMProductParam(CThostFtdcQrySPMMProductParamField *pQrySPMMProductParam, int nRequestID) = 0;

	///SPBM附加跨品种抵扣参数查询
	virtual int ReqQrySPBMAddOnInterParameter(CThostFtdcQrySPBMAddOnInterParameterField *pQrySPBMAddOnInterParameter, int nRequestID) = 0;

	///RCAMS产品组合信息查询
	virtual int ReqQryRCAMSCombProductInfo(CThostFtdcQryRCAMSCombProductInfoField *pQryRCAMSCombProductInfo, int nRequestID) = 0;

	///RCAMS同合约风险对冲参数查询
	virtual int ReqQryRCAMSInstrParameter(CThostFtdcQryRCAMSInstrParameterField *pQryRCAMSInstrParameter, int nRequestID) = 0;

	///RCAMS品种内风险对冲参数查询
	virtual int ReqQryRCAMSIntraParameter(CThostFtdcQryRCAMSIntraParameterField *pQryRCAMSIntraParameter, int nRequestID) = 0;

	///RCAMS跨品种风险折抵参数查询
	virtual int ReqQryRCAMSInterParameter(CThostFtdcQryRCAMSInterParameterField *pQryRCAMSInterParameter, int nRequestID) = 0;

	///RCAMS空头期权风险调整参数查询
	virtual int ReqQryRCAMSShortOptAdjustParam(CThostFtdcQryRCAMSShortOptAdjustParamField *pQryRCAMSShortOptAdjustParam, int nRequestID) = 0;

	///RCAMS策略组合持仓查询
	virtual int ReqQryRCAMSInvestorCombPosition(CThostFtdcQryRCAMSInvestorCombPositionField *pQryRCAMSInvestorCombPosition, int nRequestID) = 0;

	///投资者品种RCAMS保证金查询
	virtual int ReqQryInvestorProdRCAMSMargin(CThostFtdcQryInvestorProdRCAMSMarginField *pQryInvestorProdRCAMSMargin, int nRequestID) = 0;

	///RULE合约保证金参数查询
	virtual int ReqQryRULEInstrParameter(CThostFtdcQryRULEInstrParameterField *pQryRULEInstrParameter, int nRequestID) = 0;

	///RULE品种内对锁仓折扣参数查询
	virtual int ReqQryRULEIntraParameter(CThostFtdcQryRULEIntraParameterField *pQryRULEIntraParameter, int nRequestID) = 0;

	///RULE跨品种抵扣参数查询
	virtual int ReqQryRULEInterParameter(CThostFtdcQryRULEInterParameterField *pQryRULEInterParameter, int nRequestID) = 0;

	///投资者产品RULE保证金查询
	virtual int ReqQryInvestorProdRULEMargin(CThostFtdcQryInvestorProdRULEMarginField *pQryInvestorProdRULEMargin, int nRequestID) = 0;

	///投资者新型组合保证金开关查询
	virtual int ReqQryInvestorPortfSetting(CThostFtdcQryInvestorPortfSettingField *pQryInvestorPortfSetting, int nRequestID) = 0;

	///投资者申报费阶梯收取记录查询
	virtual int ReqQryInvestorInfoCommRec(CThostFtdcQryInvestorInfoCommRecField *pQryInvestorInfoCommRec, int nRequestID) = 0;

	///组合腿信息查询
	virtual int ReqQryCombLeg(CThostFtdcQryCombLegField *pQryCombLeg, int nRequestID) = 0;

	///对冲设置请求
	virtual int ReqOffsetSetting(CThostFtdcInputOffsetSettingField *pInputOffsetSetting, int nRequestID) = 0;

	///对冲设置撤销请求
	virtual int ReqCancelOffsetSetting(CThostFtdcInputOffsetSettingField *pInputOffsetSetting, int nRequestID) = 0;

	///投资者对冲设置查询
	virtual int ReqQryOffsetSetting(CThostFtdcQryOffsetSettingField *pQryOffsetSetting, int nRequestID) = 0;
protected:
	~CThostFtdcTraderApi(){};
};

#endif


================================================
FILE: native/ctp_bridge/api/linux/ThostFtdcUserApiDataType.h
================================================
/////////////////////////////////////////////////////////////////////////
///@system 新一代交易所系统
///@company 上海期货信息技术有限公司
///@file ThostFtdcUserApiDataType.h
///@brief 定义了客户端接口使用的业务数据类型
///@history 
///20060106	赵鸿昊		创建该文件
/////////////////////////////////////////////////////////////////////////

#ifndef THOST_FTDCDATATYPE_H
#define THOST_FTDCDATATYPE_H

enum THOST_TE_RESUME_TYPE
{
	THOST_TERT_RESTART = 0,
	THOST_TERT_RESUME,
	THOST_TERT_QUICK,
	THOST_TERT_NONE
};

/////////////////////////////////////////////////////////////////////////
///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];

/////////////////////////////////////////////////////////////////////////
///TFtdcOldExchangeInstIDType是一个合约在交易所的代码类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcOldExchangeInstIDType[31];

/////////////////////////////////////////////////////////////////////////
///TFtdcExchangeInstIDType是一个合约在交易所的代码类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcExchangeInstIDType[81];

/////////////////////////////////////////////////////////////////////////
///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];

/////////////////////////////////////////////////////////////////////////
///TFtdcOldInstrumentIDType是一个合约代码类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcOldInstrumentIDType[31];

/////////////////////////////////////////////////////////////////////////
///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];

/////////////////////////////////////////////////////////////////////////
///TFtdcClientLoginRemarkType是一个客户登录备注2类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcClientLoginRemarkType[151];

/////////////////////////////////////////////////////////////////////////
///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];

/////////////////////////////////////////////////////////////////////////
///TFtdcOldIPAddressType是一个IP地址类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcOldIPAddressType[16];

/////////////////////////////////////////////////////////////////////////
///TFtdcIPAddressType是一个IP地址类型
/////////////////////////////////////////////////////////////////////////
typedef char TThostFtdcIPAddressType[33];

/////////////////////////////////////////////////////////////////////////
///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_FrgPrmtRdCard 'K'
///资管产品备案函
#define THOST_FTDC_ICT_CptMngPrdLetter 'L'
///港澳台居民居住证
#define THOST_FTDC_ICT_HKMCTwResidencePermit 'M'
///统一社会信用代码
#define THOST_FTDC_ICT_UniformSocialCreditCode 'N'
///机构成立证明文件
#define THOST_FTDC_ICT_CorporationCertNo 'O'
///其他证件
#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[81];

/////////////////////////////////////////////////////////////////////////
///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'
///强制用户登出
#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_ExitEmergency 'G'

typedef char TThostFtdcFunctionCodeType;

/////////////////////////////////////////////////////////////////////////
///TFtdcBrokerFunctionCodeType是一个经纪公司功能代码类型
/////////////////////////////////////////////////////////////////////////
///强制用户登出
#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'
///系统功能:登入/登出/修改密码等
#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_ExecOrderNoCheck 'M'
///指定
#define THOST_FTDC_BFC_Designate 'N'
///证券处置
#define THOST_FTDC_BFC_StockDisposal 'O'
///席位资金预警
#define THOST_FTDC_BFC_BrokerDepositWarn 'Q'
///备兑不足预警
#define THOST_FTDC_BFC_CoverWarn 'S'
///行权试算
#define THOST_FTDC_BFC_PreExecOrder 'T'
///行权交收风险
#define THOST_FTDC_BFC_ExecOrderRisk 'P'
///持仓限额预警
#define THOST_FTDC_BFC_PosiLimitWarn 'U'
///持仓限额查询
#define THOST_FTDC_BFC_QryPosiLimit 'V'
///银期签到签退
#define THOST_FTDC_BFC_FBSign 'W'
///银期签约解约
#define THOST_FTDC_BFC_FBAccount 'X'

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'
///TAS合约
#define THOST_FTDC_PC_TAS '7'
///金属指数
#define THOST_FTDC_PC_MI 'I'

typedef char TThostFtdcProductClassType;

/////////////////////////////////////////////////////////////////////////
///TFtdcAPIProductClassType是一个产品类型类型
/////////////////////////////////////////////////////////////////////////
///期货单一合约
#define THOST_FTDC_APC_FutureSingle '1'
///期权单一合约
#define THOST_FTDC_APC_OptionSingle '2'
///可交易期货(含期货组合和期货单一合约)
#define THOST_FTDC_APC_Futures '3'
///可交易期权(含期权组合和期权单一合约)
#define THOST_FTDC_APC_Options '4'
///可下单套利组合
#define THOST_FTDC_APC_TradingComb '5'
///可申请的组合(可以申请的组合合约 包含可以交易的合约)
#define THOST_FTDC_APC_UnTradingComb '6'
///所有可以交易合约
#define THOST_FTDC_APC_AllTrading '7'
///所有合约(包含不能交易合约 慎用)
#define THOST_FTDC_APC_All '8'

typedef char TThostFtdcAPIProductClassType;

/////////////////////////////////////////////////////////////////////////
///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_MarketMaker '5'
///第一腿投机第二腿套保
#define THOST_FTDC_HF_SpecHedge '6'
///第一腿套保第二腿投机
#define THOST_FTDC_HF_HedgeSpec '7'

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'
///做市商
#define THOST_FTDC_CIDT_MarketMaker '5'

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'
///最新价浮动上浮1个ticks
#define THOST_FTDC_OPT_LastPricePlusOneTicks '5'
///最新价浮动上浮2个ticks
#define THOST_FTDC_OPT_LastPricePlusTwoTicks '6'
///最新价浮动上浮3个ticks
#define THOST_FTDC_OPT_LastPricePlusThreeTicks '7'
///卖一价
#define THOST_FTDC_OPT_AskPrice1 '8'
///卖一价浮动上浮1个ticks
#define THOST_FTDC_OPT_AskPrice1PlusOneTicks '9'
///卖一价浮动上浮2个ticks
#define THOST_FTDC_OPT_AskPrice1PlusTwoTicks 'A'
///卖一价浮动上浮3个ticks
#define THOST_FTDC_OPT_AskPrice1PlusThreeTicks 'B'
///买一价
#define THOST_FTDC_OPT_BidPrice1 'C'
///买一价浮动上浮1个ticks
#define THOST_FTDC_OPT_BidPrice1PlusOneTicks 'D'
///买一价浮动上浮2个ticks
#define THOST_FTDC_OPT_BidPrice1PlusTwoTicks 'E'
///买一价浮动上浮3个ticks
#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'
///本地强平资金不足忽略敞口
#define THOST_FTDC_FCC_Notverifycapital '8'
///本地强平资金不足
#define THOST_FTDC_FCC_LocalLackDeposit '9'
///本地强平违规持仓忽略敞口
#define THOST_FTDC_FCC_LocalViolationNocheck 'a'
///本地强平违规持仓
#define THOST_FTDC_FCC_LocalViolation 'b'

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'
///大宗交易成交衍生
#define THOST_FTDC_ORDT_DeriveFromBlockTrade '6'
///期转现成交衍生
#define THOST_FTDC_ORDT_DeriveFromEFPTrade '7'

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是一个成交类型类型
/////////////////////////////////////////////////////////////////////////
///组合持仓拆分为单一持仓,初始化不应包含该类型的持仓
#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'
///大宗交易成交
#define THOST_FTDC_TRDT_BlockTrade '5'

typedef char TThostFtdcTradeTypeType;

/////////////////////////////////////////////////////////////////////////
///TFtdcSpecPosiTypeType是一个特殊持仓明细标识类型
/////////////////////////////////////////////////////////////////////////
///普通持仓明细
#define THOST_FTDC_SPOST_Common '#'
///TAS合约成交产生的标的合约持仓明细
#define THOST_FTDC_SPOST_Tas '0'

typedef char TThostFtdcSpecPosiTypeType;

/////////////////////////////////////////////////////////////////////////
///TFtdcPriceSourceType是一个成交价来源类型
/////////////////////////////////////////////////////////////////////////
///前成交价
#define THOST_FTDC_PSRC_LastPrice '0'
///买委托价
#define THOST_FTDC_PSRC_Buy '1'
///卖委托价
#define THOST_FTDC_PSRC_Sell '2'
///场外成交价
#define THOST_FTDC_PSRC_OTC '3'

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'
///交易业务处理
#define THOST_FTDC_IS_TransactionProcessing '7'

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;

/////////////////////////////////////////////////////////////////////////
///TFtdcSecType是一个时间(秒)类型
/////////////////////////////////////////////////////////////////////////
typedef int TThostFtdcSecType;

/////////////////////////////////////////////////////////////////////////
///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'
///按某一标准
#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'
///结算是否判断存在未复核的出入金和分项资金
#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_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'
///银期开户是否验证开户银行卡号是否是预留银行账户
#define THOST_FTDC_TPID_IsCheckBankAcc 'I'
///弱密码最后修改日期
#define THOST_FTDC_TPID_PasswordDeadLine 'J'
///强密码校验
#define THOST_FTDC_TPID_IsStrongPassword 'K'
///自有资金质押比
#define THOST_FTDC_TPID_BalanceMorgage 'a'
///最小密码长度
#define THOST_FTDC_TPID_MinPwdLen 'O'
///IP当日最大登陆失败次数
#define THOST_FTDC_TPID_LoginFailMaxNumForIP 'U'
///密码有效期
#define THOST_FTDC_TPID_PasswordPeriod 'V'
///历史密码重复限制次数
#define THOST_FTDC_TPID_PwdHistoryCmp 'X'
///转账是否验证预留银行账户
#define THOST_FTDC_TPID_TranferChkProperty 'i'
///非交易时间异常报单校验参数
#define THOST_FTDC_TPID_TradeChkPhase 'j'
///其他异常报单校验参数(价格和手数)
#define THOST_FTDC_TPID_TradeChkPriceVol 'k'
///卖出垂直价差组合新算法
#define THOST_FTDC_TPID_NewBESMarginAlgo 'l'

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'
///上期所非持仓变动明细
#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是一个发布路径类型
////////////////////////////////////////////////////////
Download .txt
gitextract_abenshp1/

├── .gitignore
├── LICENSE.md
├── README.md
├── README.rst
├── __init__.py
├── ctp_native/
│   ├── __init__.py
│   ├── bus.py
│   ├── gateway.py
│   └── state_store.py
├── dashboard/
│   ├── __init__.py
│   ├── settings.py
│   ├── static/
│   │   ├── css/
│   │   │   └── global.css
│   │   └── js/
│   │       ├── bar.js
│   │       ├── corr.js
│   │       ├── global.js
│   │       ├── nav.js
│   │       └── status.js
│   ├── templates/
│   │   ├── global/
│   │   │   ├── base_site.html
│   │   │   ├── paginator-mobile.html
│   │   │   ├── paginator.html
│   │   │   └── top_navbar.html
│   │   └── panel/
│   │       ├── correlation.html
│   │       ├── instrument.html
│   │       ├── performance.html
│   │       └── status.html
│   ├── urls.py
│   └── wsgi.py
├── main.py
├── manage.py
├── native/
│   └── ctp_bridge/
│       ├── CMakeLists.txt
│       ├── CMakePresets.json
│       ├── README.md
│       ├── api/
│       │   ├── linux/
│       │   │   ├── DataCollect.h
│       │   │   ├── ThostFtdcMdApi.h
│       │   │   ├── ThostFtdcTraderApi.h
│       │   │   ├── ThostFtdcUserApiDataType.h
│       │   │   ├── ThostFtdcUserApiStruct.h
│       │   │   ├── error.dtd
│       │   │   └── error.xml
│       │   └── win/
│       │       ├── DataCollect.h
│       │       ├── ThostFtdcMdApi.h
│       │       ├── ThostFtdcTraderApi.h
│       │       ├── ThostFtdcUserApiDataType.h
│       │       ├── ThostFtdcUserApiStruct.h
│       │       ├── WinDataCollect.lib
│       │       ├── error.dtd
│       │       ├── error.xml
│       │       ├── thostmduserapi_se.lib
│       │       └── thosttraderapi_se.lib
│       ├── build_win.bat
│       ├── scripts/
│       │   ├── build_native_bridge.ps1
│       │   └── sync_thost_api.ps1
│       └── src/
│           └── py_module.cpp
├── panel/
│   ├── __init__.py
│   ├── admin.py
│   ├── apps.py
│   ├── const.py
│   ├── forms.py
│   ├── models.py
│   ├── templatetags/
│   │   ├── __init__.py
│   │   └── custom_tag.py
│   ├── tests.py
│   ├── urls.py
│   └── views.py
├── requirements.txt
├── runtime_config.py
├── strategy/
│   ├── __init__.py
│   ├── base_strategy.py
│   ├── brother2.py
│   └── kronos.py
├── utils/
│   ├── ApiStruct.py
│   ├── __init__.py
│   ├── fetch_data.py
│   ├── func_container.py
│   ├── model/
│   │   ├── __init__.py
│   │   ├── kronos.py
│   │   └── module.py
│   ├── my_logger.py
│   ├── read_config.py
│   └── tick.py
└── weixin_notifier.py
Download .txt
Showing preview only (211K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (2284 symbols across 35 files)

FILE: ctp_native/bus.py
  class LocalPubSub (line 18) | class LocalPubSub:
    method __init__ (line 19) | def __init__(self, bus: 'LocalEventBus', ignore_subscribe_messages: bo...
    method psubscribe (line 27) | async def psubscribe(self, *patterns: str):
    method punsubscribe (line 35) | async def punsubscribe(self, *patterns: str):
    method unsubscribe (line 45) | async def unsubscribe(self):
    method close (line 48) | async def close(self):
    method _push (line 54) | async def _push(self, pattern: str, channel: str, data: Any):
    method listen (line 57) | async def listen(self):
  class LocalEventBus (line 65) | class LocalEventBus:
    method __init__ (line 66) | def __init__(self):
    method register (line 69) | def register(self, pattern: str, sub: LocalPubSub):
    method unregister (line 72) | def unregister(self, pattern: str, sub: LocalPubSub):
    method publish (line 80) | async def publish(self, channel: str, payload: Any):
  class LocalRedisLikeClient (line 88) | class LocalRedisLikeClient:
    method __init__ (line 89) | def __init__(self, loop: asyncio.AbstractEventLoop):
    method start (line 99) | async def start(self):
    method stop (line 102) | async def stop(self):
    method pubsub (line 106) | def pubsub(self, ignore_subscribe_messages: bool = True):
    method get (line 109) | def get(self, key: str):
    method set (line 112) | def set(self, key: str, value: Any, ex: int | None = None):
    method publish (line 115) | def publish(self, channel: str, payload: Any):
    method _on_gateway_event (line 123) | async def _on_gateway_event(self, topic: str, data: dict[str, Any]):
    method _on_gateway_event_sync (line 145) | def _on_gateway_event_sync(self, topic: str, data: dict[str, Any]):
    method _handle_request (line 148) | async def _handle_request(self, req_name: str, payload: Any):
    method _publish_rows (line 178) | async def _publish_rows(self, channel: str, rows: list[dict[str, Any]]):
    method _schedule (line 187) | def _schedule(self, coro):

FILE: ctp_native/gateway.py
  class NativeGateway (line 18) | class NativeGateway(ABC):
    method start (line 20) | async def start(self):
    method stop (line 24) | async def stop(self):
    method request (line 28) | async def request(self, req_name: str, payload: Any) -> list[dict[str,...
    method set_event_callback (line 32) | def set_event_callback(self, cb: Callable[[str, dict[str, Any]], Any]):
  class PlaceholderGateway (line 36) | class PlaceholderGateway(NativeGateway):
    method __init__ (line 37) | def __init__(self):
    method start (line 40) | async def start(self):
    method stop (line 43) | async def stop(self):
    method request (line 46) | async def request(self, req_name: str, payload: Any) -> list[dict[str,...
    method set_event_callback (line 58) | def set_event_callback(self, cb: Callable[[str, dict[str, Any]], Any]):
  class PybindGateway (line 62) | class PybindGateway(NativeGateway):
    method __init__ (line 63) | def __init__(self):
    method start (line 69) | async def start(self):
    method stop (line 122) | async def stop(self):
    method request (line 127) | async def request(self, req_name: str, payload: Any) -> list[dict[str,...
    method set_event_callback (line 156) | def set_event_callback(self, cb: Callable[[str, dict[str, Any]], Any]):
  function get_gateway (line 162) | def get_gateway() -> NativeGateway:

FILE: ctp_native/state_store.py
  class NativeStateStore (line 11) | class NativeStateStore:
    method __init__ (line 12) | def __init__(self):
    method _load_snapshot (line 21) | def _load_snapshot(self):
    method dump_snapshot (line 36) | def dump_snapshot(self):
    method _is_expired (line 50) | def _is_expired(self, key: str) -> bool:
    method get (line 60) | def get(self, key: str, default: Any = None):
    method set (line 66) | def set(self, key: str, value: Any, ex: int | None = None):
    method delete (line 74) | def delete(self, key: str):

FILE: dashboard/settings.py
  function _load_root_config_yaml (line 27) | def _load_root_config_yaml():
  function _start_ssh_tunnel_if_needed (line 39) | def _start_ssh_tunnel_if_needed():

FILE: dashboard/static/js/corr.js
  function load_chart (line 90) | function load_chart() {
  function updateDisplay (line 165) | function updateDisplay() {
  function init (line 182) | function init() {

FILE: native/ctp_bridge/api/linux/ThostFtdcMdApi.h
  function class (line 29) | class CThostFtdcMdSpi
  function class (line 80) | class MD_API_EXPORT CThostFtdcMdApi

FILE: native/ctp_bridge/api/linux/ThostFtdcTraderApi.h
  function class (line 29) | class CThostFtdcTraderSpi
  function class (line 533) | class TRADER_API_EXPORT CThostFtdcTraderApi

FILE: native/ctp_bridge/api/linux/ThostFtdcUserApiDataType.h
  type THOST_TE_RESUME_TYPE (line 13) | enum THOST_TE_RESUME_TYPE
  type TThostFtdcExchangePropertyType (line 149) | typedef char TThostFtdcExchangePropertyType;
  type TThostFtdcIPPortType (line 204) | typedef int TThostFtdcIPPortType;
  type TThostFtdcIdCardTypeType (line 285) | typedef char TThostFtdcIdCardTypeType;
  type TThostFtdcInvestorRangeType (line 337) | typedef char TThostFtdcInvestorRangeType;
  type TThostFtdcDepartmentRangeType (line 349) | typedef char TThostFtdcDepartmentRangeType;
  type TThostFtdcDataSyncStatusType (line 361) | typedef char TThostFtdcDataSyncStatusType;
  type TThostFtdcBrokerDataSyncStatusType (line 371) | typedef char TThostFtdcBrokerDataSyncStatusType;
  type TThostFtdcExchangeConnectStatusType (line 383) | typedef char TThostFtdcExchangeConnectStatusType;
  type TThostFtdcTraderConnectStatusType (line 397) | typedef char TThostFtdcTraderConnectStatusType;
  type TThostFtdcFunctionCodeType (line 435) | typedef char TThostFtdcFunctionCodeType;
  type TThostFtdcBrokerFunctionCodeType (line 551) | typedef char TThostFtdcBrokerFunctionCodeType;
  type TThostFtdcOrderActionStatusType (line 563) | typedef char TThostFtdcOrderActionStatusType;
  type TThostFtdcOrderStatusType (line 587) | typedef char TThostFtdcOrderStatusType;
  type TThostFtdcOrderSubmitStatusType (line 607) | typedef char TThostFtdcOrderSubmitStatusType;
  type TThostFtdcPositionDateType (line 617) | typedef char TThostFtdcPositionDateType;
  type TThostFtdcPositionDateTypeType (line 627) | typedef char TThostFtdcPositionDateTypeType;
  type TThostFtdcTradingRoleType (line 639) | typedef char TThostFtdcTradingRoleType;
  type TThostFtdcProductClassType (line 661) | typedef char TThostFtdcProductClassType;
  type TThostFtdcAPIProductClassType (line 683) | typedef char TThostFtdcAPIProductClassType;
  type TThostFtdcInstLifePhaseType (line 697) | typedef char TThostFtdcInstLifePhaseType;
  type TThostFtdcDirectionType (line 707) | typedef char TThostFtdcDirectionType;
  type TThostFtdcPositionTypeType (line 717) | typedef char TThostFtdcPositionTypeType;
  type TThostFtdcPosiDirectionType (line 729) | typedef char TThostFtdcPosiDirectionType;
  type TThostFtdcSysSettlementStatusType (line 745) | typedef char TThostFtdcSysSettlementStatusType;
  type TThostFtdcRatioAttrType (line 755) | typedef char TThostFtdcRatioAttrType;
  type TThostFtdcHedgeFlagType (line 773) | typedef char TThostFtdcHedgeFlagType;
  type TThostFtdcBillHedgeFlagType (line 785) | typedef char TThostFtdcBillHedgeFlagType;
  type TThostFtdcClientIDTypeType (line 799) | typedef char TThostFtdcClientIDTypeType;
  type TThostFtdcOrderPriceTypeType (line 837) | typedef char TThostFtdcOrderPriceTypeType;
  type TThostFtdcOffsetFlagType (line 857) | typedef char TThostFtdcOffsetFlagType;
  type TThostFtdcForceCloseReasonType (line 887) | typedef char TThostFtdcForceCloseReasonType;
  type TThostFtdcOrderTypeType (line 909) | typedef char TThostFtdcOrderTypeType;
  type TThostFtdcTimeConditionType (line 927) | typedef char TThostFtdcTimeConditionType;
  type TThostFtdcVolumeConditionType (line 939) | typedef char TThostFtdcVolumeConditionType;
  type TThostFtdcContingentConditionType (line 977) | typedef char TThostFtdcContingentConditionType;
  type TThostFtdcActionFlagType (line 987) | typedef char TThostFtdcActionFlagType;
  type TThostFtdcTradingRightType (line 999) | typedef char TThostFtdcTradingRightType;
  type TThostFtdcOrderSourceType (line 1009) | typedef char TThostFtdcOrderSourceType;
  type TThostFtdcTradeTypeType (line 1029) | typedef char TThostFtdcTradeTypeType;
  type TThostFtdcSpecPosiTypeType (line 1039) | typedef char TThostFtdcSpecPosiTypeType;
  type TThostFtdcPriceSourceType (line 1053) | typedef char TThostFtdcPriceSourceType;
  type TThostFtdcInstrumentStatusType (line 1075) | typedef char TThostFtdcInstrumentStatusType;
  type TThostFtdcInstStatusEnterReasonType (line 1087) | typedef char TThostFtdcInstStatusEnterReasonType;
  type TThostFtdcOrderActionRefType (line 1092) | typedef int TThostFtdcOrderActionRefType;
  type TThostFtdcInstallCountType (line 1097) | typedef int TThostFtdcInstallCountType;
  type TThostFtdcInstallIDType (line 1102) | typedef int TThostFtdcInstallIDType;
  type TThostFtdcErrorIDType (line 1107) | typedef int TThostFtdcErrorIDType;
  type TThostFtdcSettlementIDType (line 1112) | typedef int TThostFtdcSettlementIDType;
  type TThostFtdcVolumeType (line 1117) | typedef int TThostFtdcVolumeType;
  type TThostFtdcFrontIDType (line 1122) | typedef int TThostFtdcFrontIDType;
  type TThostFtdcSessionIDType (line 1127) | typedef int TThostFtdcSessionIDType;
  type TThostFtdcSequenceNoType (line 1132) | typedef int TThostFtdcSequenceNoType;
  type TThostFtdcCommandNoType (line 1137) | typedef int TThostFtdcCommandNoType;
  type TThostFtdcMillisecType (line 1142) | typedef int TThostFtdcMillisecType;
  type TThostFtdcSecType (line 1147) | typedef int TThostFtdcSecType;
  type TThostFtdcVolumeMultipleType (line 1152) | typedef int TThostFtdcVolumeMultipleType;
  type TThostFtdcTradingSegmentSNType (line 1157) | typedef int TThostFtdcTradingSegmentSNType;
  type TThostFtdcRequestIDType (line 1162) | typedef int TThostFtdcRequestIDType;
  type TThostFtdcYearType (line 1167) | typedef int TThostFtdcYearType;
  type TThostFtdcMonthType (line 1172) | typedef int TThostFtdcMonthType;
  type TThostFtdcBoolType (line 1177) | typedef int TThostFtdcBoolType;
  type TThostFtdcPriceType (line 1182) | typedef double TThostFtdcPriceType;
  type TThostFtdcRatioType (line 1197) | typedef double TThostFtdcRatioType;
  type TThostFtdcMoneyType (line 1202) | typedef double TThostFtdcMoneyType;
  type TThostFtdcLargeVolumeType (line 1207) | typedef double TThostFtdcLargeVolumeType;
  type TThostFtdcSequenceSeriesType (line 1212) | typedef short TThostFtdcSequenceSeriesType;
  type TThostFtdcCommPhaseNoType (line 1217) | typedef short TThostFtdcCommPhaseNoType;
  type TThostFtdcUnderlyingMultipleType (line 1227) | typedef double TThostFtdcUnderlyingMultipleType;
  type TThostFtdcPriorityType (line 1232) | typedef int TThostFtdcPriorityType;
  type TThostFtdcBatchStatusType (line 1314) | typedef char TThostFtdcBatchStatusType;
  type TThostFtdcReturnStyleType (line 1359) | typedef char TThostFtdcReturnStyleType;
  type TThostFtdcReturnPatternType (line 1369) | typedef char TThostFtdcReturnPatternType;
  type TThostFtdcReturnLevelType (line 1393) | typedef char TThostFtdcReturnLevelType;
  type TThostFtdcReturnStandardType (line 1403) | typedef char TThostFtdcReturnStandardType;
  type TThostFtdcMortgageTypeType (line 1413) | typedef char TThostFtdcMortgageTypeType;
  type TThostFtdcInvestorSettlementParamIDType (line 1425) | typedef char TThostFtdcInvestorSettlementParamIDType;
  type TThostFtdcExchangeSettlementParamIDType (line 1453) | typedef char TThostFtdcExchangeSettlementParamIDType;
  type TThostFtdcSystemParamIDType (line 1505) | typedef char TThostFtdcSystemParamIDType;
  type TThostFtdcTradeParamIDType (line 1563) | typedef char TThostFtdcTradeParamIDType;
  type TThostFtdcSubEntryFundNoType (line 1623) | typedef int TThostFtdcSubEntryFundNoType;
  type TThostFtdcFileIDType (line 1653) | typedef char TThostFtdcFileIDType;
  type TThostFtdcFileTypeType (line 1668) | typedef char TThostFtdcFileTypeType;
  type TThostFtdcFileFormatType (line 1680) | typedef char TThostFtdcFileFormatType;
  type TThostFtdcFileUploadStatusType (line 1696) | typedef char TThostFtdcFileUploadStatusType;
  type TThostFtdcTransferDirectionType (line 1706) | typedef char TThostFtdcTransferDirectionType;
  type TThostFtdcMonthCountType (line 1756) | typedef int TThostFtdcMonthCountType;
  type TThostFtdcSpecialCreateRuleType (line 1786) | typedef char TThostFtdcSpecialCreateRuleType;
  type TThostFtdcBasisPriceTypeType (line 1796) | typedef char TThostFtdcBasisPriceTypeType;
  type TThostFtdcProductLifePhaseType (line 1808) | typedef char TThostFtdcProductLifePhaseType;
  type TThostFtdcDeliveryModeType (line 1818) | typedef char TThostFtdcDeliveryModeType;
  type TThostFtdcFundIOTypeType (line 1845) | typedef char TThostFtdcFundIOTypeType;
  type TThostFtdcFundTypeType (line 1859) | typedef char TThostFtdcFundTypeType;
  type TThostFtdcFundDirectionType (line 1869) | typedef char TThostFtdcFundDirectionType;
  type TThostFtdcFundStatusType (line 1881) | typedef char TThostFtdcFundStatusType;
  type TThostFtdcPublishStatusType (line 1903) | typedef char TThostFtdcPublishStatusType;
  type TThostFtdcSystemStatusType (line 1943) | typedef char TThostFtdcSystemStatusType;
  type TThostFtdcSettlementStatusType (line 1957) | typedef char TThostFtdcSettlementStatusType;
  type TThostFtdcInvestorTypeType (line 2028) | typedef char TThostFtdcInvestorTypeType;
  type TThostFtdcBrokerTypeType (line 2038) | typedef char TThostFtdcBrokerTypeType;
  type TThostFtdcRiskLevelType (line 2052) | typedef char TThostFtdcRiskLevelType;
  type TThostFtdcFeeAcceptStyleType (line 2066) | typedef char TThostFtdcFeeAcceptStyleType;
  type TThostFtdcPasswordTypeType (line 2076) | typedef char TThostFtdcPasswordTypeType;
  type TThostFtdcAlgorithmType (line 2090) | typedef char TThostFtdcAlgorithmType;
  type TThostFtdcIncludeCloseProfitType (line 2100) | typedef char TThostFtdcIncludeCloseProfitType;
  type TThostFtdcAllWithoutTradeType (line 2112) | typedef char TThostFtdcAllWithoutTradeType;
  type TThostFtdcTradeSerialNoType (line 2147) | typedef int TThostFtdcTradeSerialNoType;
  type TThostFtdcFuturePwdFlagType (line 2197) | typedef char TThostFtdcFuturePwdFlagType;
  type TThostFtdcTransferTypeType (line 2207) | typedef char TThostFtdcTransferTypeType;
  type TThostFtdcTransferValidFlagType (line 2254) | typedef char TThostFtdcTransferValidFlagType;
  type TThostFtdcReasonType (line 2271) | typedef char TThostFtdcReasonType;
  type TThostFtdcSexType (line 2288) | typedef char TThostFtdcSexType;
  type TThostFtdcUserTypeType (line 2345) | typedef char TThostFtdcUserTypeType;
  type TThostFtdcRateTypeType (line 2358) | typedef char TThostFtdcRateTypeType;
  type TThostFtdcNoteTypeType (line 2376) | typedef char TThostFtdcNoteTypeType;
  type TThostFtdcSettlementStyleType (line 2386) | typedef char TThostFtdcSettlementStyleType;
  type TThostFtdcSettlementBillTypeType (line 2406) | typedef char TThostFtdcSettlementBillTypeType;
  type TThostFtdcUserRightTypeType (line 2422) | typedef char TThostFtdcUserRightTypeType;
  type TThostFtdcMarginPriceTypeType (line 2436) | typedef char TThostFtdcMarginPriceTypeType;
  type TThostFtdcBillGenStatusType (line 2448) | typedef char TThostFtdcBillGenStatusType;
  type TThostFtdcAlgoTypeType (line 2458) | typedef char TThostFtdcAlgoTypeType;
  type TThostFtdcHandlePositionAlgoIDType (line 2470) | typedef char TThostFtdcHandlePositionAlgoIDType;
  type TThostFtdcFindMarginRateAlgoIDType (line 2482) | typedef char TThostFtdcFindMarginRateAlgoIDType;
  type TThostFtdcHandleTradingAccountAlgoIDType (line 2494) | typedef char TThostFtdcHandleTradingAccountAlgoIDType;
  type TThostFtdcPersonTypeType (line 2528) | typedef char TThostFtdcPersonTypeType;
  type TThostFtdcQueryInvestorRangeType (line 2540) | typedef char TThostFtdcQueryInvestorRangeType;
  type TThostFtdcInvestorRiskStatusType (line 2556) | typedef char TThostFtdcInvestorRiskStatusType;
  type TThostFtdcLegIDType (line 2561) | typedef int TThostFtdcLegIDType;
  type TThostFtdcLegMultipleType (line 2566) | typedef int TThostFtdcLegMultipleType;
  type TThostFtdcImplyLevelType (line 2571) | typedef int TThostFtdcImplyLevelType;
  type TThostFtdcUserEventTypeType (line 2612) | typedef char TThostFtdcUserEventTypeType;
  type TThostFtdcCloseStyleType (line 2627) | typedef char TThostFtdcCloseStyleType;
  type TThostFtdcStatModeType (line 2641) | typedef char TThostFtdcStatModeType;
  type TThostFtdcParkedOrderStatusType (line 2653) | typedef char TThostFtdcParkedOrderStatusType;
  type TThostFtdcVirDealStatusType (line 2673) | typedef char TThostFtdcVirDealStatusType;
  type TThostFtdcOrgSystemIDType (line 2685) | typedef char TThostFtdcOrgSystemIDType;
  type TThostFtdcVirTradeStatusType (line 2705) | typedef char TThostFtdcVirTradeStatusType;
  type TThostFtdcVirBankAccTypeType (line 2717) | typedef char TThostFtdcVirBankAccTypeType;
  type TThostFtdcVirementStatusType (line 2727) | typedef char TThostFtdcVirementStatusType;
  type TThostFtdcVirementAvailAbilityType (line 2739) | typedef char TThostFtdcVirementAvailAbilityType;
  type TThostFtdcVirementTradeCodeType (line 2753) | typedef char TThostFtdcVirementTradeCodeType;
  type TThostFtdcTopicIDType (line 2773) | typedef int TThostFtdcTopicIDType;
  type TThostFtdcAMLOpParamValueType (line 2813) | typedef double TThostFtdcAMLOpParamValueType;
  type TThostFtdcAMLGenStatusType (line 2898) | typedef char TThostFtdcAMLGenStatusType;
  type TThostFtdcAMLMoneyType (line 2913) | typedef double TThostFtdcAMLMoneyType;
  type TThostFtdcAMLFileAmountType (line 2918) | typedef int TThostFtdcAMLFileAmountType;
  type TThostFtdcCFMMCKeyKindType (line 2940) | typedef char TThostFtdcCFMMCKeyKindType;
  type TThostFtdcSerialType (line 3150) | typedef int TThostFtdcSerialType;
  type TThostFtdcPlateSerialType (line 3155) | typedef int TThostFtdcPlateSerialType;
  type TThostFtdcCorrectSerialType (line 3165) | typedef int TThostFtdcCorrectSerialType;
  type TThostFtdcFutureSerialType (line 3170) | typedef int TThostFtdcFutureSerialType;
  type TThostFtdcApplicationIDType (line 3175) | typedef int TThostFtdcApplicationIDType;
  type TThostFtdcBankProxyIDType (line 3180) | typedef int TThostFtdcBankProxyIDType;
  type TThostFtdcFBTCoreIDType (line 3185) | typedef int TThostFtdcFBTCoreIDType;
  type TThostFtdcServerPortType (line 3190) | typedef int TThostFtdcServerPortType;
  type TThostFtdcRepealedTimesType (line 3195) | typedef int TThostFtdcRepealedTimesType;
  type TThostFtdcRepealTimeIntervalType (line 3200) | typedef int TThostFtdcRepealTimeIntervalType;
  type TThostFtdcTotalTimesType (line 3205) | typedef int TThostFtdcTotalTimesType;
  type TThostFtdcFBTRequestIDType (line 3210) | typedef int TThostFtdcFBTRequestIDType;
  type TThostFtdcTIDType (line 3215) | typedef int TThostFtdcTIDType;
  type TThostFtdcTradeAmountType (line 3220) | typedef double TThostFtdcTradeAmountType;
  type TThostFtdcCustFeeType (line 3225) | typedef double TThostFtdcCustFeeType;
  type TThostFtdcFutureFeeType (line 3230) | typedef double TThostFtdcFutureFeeType;
  type TThostFtdcSingleMaxAmtType (line 3235) | typedef double TThostFtdcSingleMaxAmtType;
  type TThostFtdcSingleMinAmtType (line 3240) | typedef double TThostFtdcSingleMinAmtType;
  type TThostFtdcTotalAmtType (line 3245) | typedef double TThostFtdcTotalAmtType;
  type TThostFtdcCertificationTypeType (line 3275) | typedef char TThostFtdcCertificationTypeType;
  type TThostFtdcFileBusinessCodeType (line 3313) | typedef char TThostFtdcFileBusinessCodeType;
  type TThostFtdcCashExchangeCodeType (line 3323) | typedef char TThostFtdcCashExchangeCodeType;
  type TThostFtdcYesNoIndicatorType (line 3333) | typedef char TThostFtdcYesNoIndicatorType;
  type TThostFtdcBanlanceTypeType (line 3347) | typedef char TThostFtdcBanlanceTypeType;
  type TThostFtdcGenderType (line 3359) | typedef char TThostFtdcGenderType;
  type TThostFtdcFeePayFlagType (line 3371) | typedef char TThostFtdcFeePayFlagType;
  type TThostFtdcPassWordKeyTypeType (line 3385) | typedef char TThostFtdcPassWordKeyTypeType;
  type TThostFtdcFBTPassWordTypeType (line 3399) | typedef char TThostFtdcFBTPassWordTypeType;
  type TThostFtdcFBTEncryModeType (line 3411) | typedef char TThostFtdcFBTEncryModeType;
  type TThostFtdcBankRepealFlagType (line 3423) | typedef char TThostFtdcBankRepealFlagType;
  type TThostFtdcBrokerRepealFlagType (line 3435) | typedef char TThostFtdcBrokerRepealFlagType;
  type TThostFtdcInstitutionTypeType (line 3447) | typedef char TThostFtdcInstitutionTypeType;
  type TThostFtdcLastFragmentType (line 3457) | typedef char TThostFtdcLastFragmentType;
  type TThostFtdcBankAccStatusType (line 3469) | typedef char TThostFtdcBankAccStatusType;
  type TThostFtdcMoneyAccountStatusType (line 3479) | typedef char TThostFtdcMoneyAccountStatusType;
  type TThostFtdcManageStatusType (line 3491) | typedef char TThostFtdcManageStatusType;
  type TThostFtdcSystemTypeType (line 3503) | typedef char TThostFtdcSystemTypeType;
  type TThostFtdcTxnEndFlagType (line 3523) | typedef char TThostFtdcTxnEndFlagType;
  type TThostFtdcProcessStatusType (line 3535) | typedef char TThostFtdcProcessStatusType;
  type TThostFtdcCustTypeType (line 3545) | typedef char TThostFtdcCustTypeType;
  type TThostFtdcFBTTransferDirectionType (line 3555) | typedef char TThostFtdcFBTTransferDirectionType;
  type TThostFtdcOpenOrDestroyType (line 3565) | typedef char TThostFtdcOpenOrDestroyType;
  type TThostFtdcAvailabilityFlagType (line 3577) | typedef char TThostFtdcAvailabilityFlagType;
  type TThostFtdcOrganTypeType (line 3589) | typedef char TThostFtdcOrganTypeType;
  type TThostFtdcOrganLevelType (line 3599) | typedef char TThostFtdcOrganLevelType;
  type TThostFtdcProtocalIDType (line 3619) | typedef char TThostFtdcProtocalIDType;
  type TThostFtdcConnectModeType (line 3629) | typedef char TThostFtdcConnectModeType;
  type TThostFtdcSyncModeType (line 3639) | typedef char TThostFtdcSyncModeType;
  type TThostFtdcBankAccTypeType (line 3651) | typedef char TThostFtdcBankAccTypeType;
  type TThostFtdcFutureAccTypeType (line 3663) | typedef char TThostFtdcFutureAccTypeType;
  type TThostFtdcOrganStatusType (line 3683) | typedef char TThostFtdcOrganStatusType;
  type TThostFtdcCCBFeeModeType (line 3693) | typedef char TThostFtdcCCBFeeModeType;
  type TThostFtdcCommApiTypeType (line 3705) | typedef char TThostFtdcCommApiTypeType;
  type TThostFtdcServiceIDType (line 3710) | typedef int TThostFtdcServiceIDType;
  type TThostFtdcServiceLineNoType (line 3715) | typedef int TThostFtdcServiceLineNoType;
  type TThostFtdcLinkStatusType (line 3730) | typedef char TThostFtdcLinkStatusType;
  type TThostFtdcCommApiPointerType (line 3735) | typedef int TThostFtdcCommApiPointerType;
  type TThostFtdcPwdFlagType (line 3747) | typedef char TThostFtdcPwdFlagType;
  type TThostFtdcSecuAccTypeType (line 3761) | typedef char TThostFtdcSecuAccTypeType;
  type TThostFtdcTransferStatusType (line 3771) | typedef char TThostFtdcTransferStatusType;
  type TThostFtdcSponsorTypeType (line 3781) | typedef char TThostFtdcSponsorTypeType;
  type TThostFtdcReqRspTypeType (line 3791) | typedef char TThostFtdcReqRspTypeType;
  type TThostFtdcFBTUserEventTypeType (line 3829) | typedef char TThostFtdcFBTUserEventTypeType;
  type TThostFtdcDBOPSeqNoType (line 3849) | typedef int TThostFtdcDBOPSeqNoType;
  type TThostFtdcDBOperationType (line 3876) | typedef char TThostFtdcDBOperationType;
  type TThostFtdcSyncFlagType (line 3886) | typedef char TThostFtdcSyncFlagType;
  type TThostFtdcSyncTypeType (line 3903) | typedef char TThostFtdcSyncTypeType;
  type TThostFtdcExDirectionType (line 3928) | typedef char TThostFtdcExDirectionType;
  type TThostFtdcFBEAmtType (line 3943) | typedef double TThostFtdcFBEAmtType;
  type TThostFtdcExRateType (line 3963) | typedef double TThostFtdcExRateType;
  type TThostFtdcFBEResultFlagType (line 3977) | typedef char TThostFtdcFBEResultFlagType;
  type TThostFtdcFBETotalExCntType (line 4002) | typedef int TThostFtdcFBETotalExCntType;
  type TThostFtdcFBEExchStatusType (line 4012) | typedef char TThostFtdcFBEExchStatusType;
  type TThostFtdcFBEFileFlagType (line 4022) | typedef char TThostFtdcFBEFileFlagType;
  type TThostFtdcFBEAlreadyTradeType (line 4032) | typedef char TThostFtdcFBEAlreadyTradeType;
  type TThostFtdcFBEUserEventTypeType (line 4063) | typedef char TThostFtdcFBEUserEventTypeType;
  type TThostFtdcFBEReqFlagType (line 4089) | typedef char TThostFtdcFBEReqFlagType;
  type TThostFtdcNotifyClassType (line 4107) | typedef char TThostFtdcNotifyClassType;
  type TThostFtdcForceCloseTypeType (line 4129) | typedef char TThostFtdcForceCloseTypeType;
  type TThostFtdcRiskNotifyMethodType (line 4148) | typedef char TThostFtdcRiskNotifyMethodType;
  type TThostFtdcRiskNotifyStatusType (line 4166) | typedef char TThostFtdcRiskNotifyStatusType;
  type TThostFtdcRiskUserEventType (line 4174) | typedef char TThostFtdcRiskUserEventType;
  type TThostFtdcParamIDType (line 4179) | typedef int TThostFtdcParamIDType;
  type TThostFtdcConditionalOrderSortTypeType (line 4207) | typedef char TThostFtdcConditionalOrderSortTypeType;
  type TThostFtdcSendTypeType (line 4227) | typedef char TThostFtdcSendTypeType;
  type TThostFtdcClientIDStatusType (line 4245) | typedef char TThostFtdcClientIDStatusType;
  type TThostFtdcQuestionTypeType (line 4282) | typedef char TThostFtdcQuestionTypeType;
  type TThostFtdcSeqNoType (line 4292) | typedef int TThostFtdcSeqNoType;
  type TThostFtdcBusinessTypeType (line 4314) | typedef char TThostFtdcBusinessTypeType;
  type TThostFtdcCfmmcReturnCodeType (line 4330) | typedef char TThostFtdcCfmmcReturnCodeType;
  type TThostFtdcExReturnCodeType (line 4335) | typedef int TThostFtdcExReturnCodeType;
  type TThostFtdcClientTypeType (line 4353) | typedef char TThostFtdcClientTypeType;
  type TThostFtdcExchangeIDTypeType (line 4369) | typedef char TThostFtdcExchangeIDTypeType;
  type TThostFtdcExClientIDTypeType (line 4381) | typedef char TThostFtdcExClientIDTypeType;
  type TThostFtdcUpdateFlagType (line 4439) | typedef char TThostFtdcUpdateFlagType;
  type TThostFtdcApplyOperateIDType (line 4461) | typedef char TThostFtdcApplyOperateIDType;
  type TThostFtdcApplyStatusIDType (line 4477) | typedef char TThostFtdcApplyStatusIDType;
  type TThostFtdcSendMethodType (line 4487) | typedef char TThostFtdcSendMethodType;
  type TThostFtdcEventModeType (line 4512) | typedef char TThostFtdcEventModeType;
  type TThostFtdcUOAAutoSendType (line 4526) | typedef char TThostFtdcUOAAutoSendType;
  type TThostFtdcQueryDepthType (line 4531) | typedef int TThostFtdcQueryDepthType;
  type TThostFtdcDataCenterIDType (line 4536) | typedef int TThostFtdcDataCenterIDType;
  type TThostFtdcFlowIDType (line 4548) | typedef char TThostFtdcFlowIDType;
  type TThostFtdcCheckLevelType (line 4560) | typedef char TThostFtdcCheckLevelType;
  type TThostFtdcCheckNoType (line 4565) | typedef int TThostFtdcCheckNoType;
  type TThostFtdcCheckStatusType (line 4581) | typedef char TThostFtdcCheckStatusType;
  type TThostFtdcUsedStatusType (line 4593) | typedef char TThostFtdcUsedStatusType;
  type TThostFtdcBankAcountOriginType (line 4613) | typedef char TThostFtdcBankAcountOriginType;
  type TThostFtdcMonthBillTradeSumType (line 4625) | typedef char TThostFtdcMonthBillTradeSumType;
  type TThostFtdcFBTTradeCodeEnumType (line 4639) | typedef char TThostFtdcFBTTradeCodeEnumType;
  type TThostFtdcTimestampType (line 4654) | typedef int TThostFtdcTimestampType;
  type TThostFtdcLastDriftType (line 4669) | typedef int TThostFtdcLastDriftType;
  type TThostFtdcLastSuccessType (line 4674) | typedef int TThostFtdcLastSuccessType;
  type TThostFtdcOTPTypeType (line 4694) | typedef char TThostFtdcOTPTypeType;
  type TThostFtdcOTPStatusType (line 4716) | typedef char TThostFtdcOTPStatusType;
  type TThostFtdcBrokerUserTypeType (line 4726) | typedef char TThostFtdcBrokerUserTypeType;
  type TThostFtdcFutureTypeType (line 4736) | typedef char TThostFtdcFutureTypeType;
  type TThostFtdcFundEventTypeType (line 4760) | typedef char TThostFtdcFundEventTypeType;
  type TThostFtdcAccountSourceTypeType (line 4770) | typedef char TThostFtdcAccountSourceTypeType;
  type TThostFtdcCodeSourceTypeType (line 4780) | typedef char TThostFtdcCodeSourceTypeType;
  type TThostFtdcUserRangeType (line 4790) | typedef char TThostFtdcUserRangeType;
  type TThostFtdcByGroupType (line 4810) | typedef char TThostFtdcByGroupType;
  type TThostFtdcTradeSumStatModeType (line 4822) | typedef char TThostFtdcTradeSumStatModeType;
  type TThostFtdcComTypeType (line 4827) | typedef int TThostFtdcComTypeType;
  type TThostFtdcCSRCMoneyType (line 4932) | typedef double TThostFtdcCSRCMoneyType;
  type TThostFtdcCSRCPriceType (line 4937) | typedef double TThostFtdcCSRCPriceType;
  type TThostFtdcCSRCStrikePriceType (line 4947) | typedef double TThostFtdcCSRCStrikePriceType;
  type TThostFtdcExprSetModeType (line 4977) | typedef char TThostFtdcExprSetModeType;
  type TThostFtdcRateInvestorRangeType (line 4989) | typedef char TThostFtdcRateInvestorRangeType;
  type TThostFtdcDRIdentityIDType (line 4999) | typedef int TThostFtdcDRIdentityIDType;
  type TThostFtdcSyncDataStatusType (line 5021) | typedef char TThostFtdcSyncDataStatusType;
  type TThostFtdcTradeSourceType (line 5031) | typedef char TThostFtdcTradeSourceType;
  type TThostFtdcFlexStatModeType (line 5043) | typedef char TThostFtdcFlexStatModeType;
  type TThostFtdcByInvestorRangeType (line 5053) | typedef char TThostFtdcByInvestorRangeType;
  type TThostFtdcSequenceNo12Type (line 5063) | typedef int TThostFtdcSequenceNo12Type;
  type TThostFtdcPropertyInvestorRangeType (line 5075) | typedef char TThostFtdcPropertyInvestorRangeType;
  type TThostFtdcFileStatusType (line 5087) | typedef char TThostFtdcFileStatusType;
  type TThostFtdcFileGenStyleType (line 5097) | typedef char TThostFtdcFileGenStyleType;
  type TThostFtdcSysOperModeType (line 5117) | typedef char TThostFtdcSysOperModeType;
  type TThostFtdcSysOperTypeType (line 5155) | typedef char TThostFtdcSysOperTypeType;
  type TThostFtdcCSRCDataQueyTypeType (line 5165) | typedef char TThostFtdcCSRCDataQueyTypeType;
  type TThostFtdcFreezeStatusType (line 5175) | typedef char TThostFtdcFreezeStatusType;
  type TThostFtdcStandardStatusType (line 5185) | typedef char TThostFtdcStandardStatusType;
  type TThostFtdcRightParamTypeType (line 5204) | typedef char TThostFtdcRightParamTypeType;
  type TThostFtdcDataStatusType (line 5224) | typedef char TThostFtdcDataStatusType;
  type TThostFtdcAMLCheckStatusType (line 5238) | typedef char TThostFtdcAMLCheckStatusType;
  type TThostFtdcAmlDateTypeType (line 5248) | typedef char TThostFtdcAmlDateTypeType;
  type TThostFtdcAmlCheckLevelType (line 5262) | typedef char TThostFtdcAmlCheckLevelType;
  type TThostFtdcExportFileTypeType (line 5284) | typedef char TThostFtdcExportFileTypeType;
  type TThostFtdcSettleManagerTypeType (line 5298) | typedef char TThostFtdcSettleManagerTypeType;
  type TThostFtdcSettleManagerLevelType (line 5322) | typedef char TThostFtdcSettleManagerLevelType;
  type TThostFtdcSettleManagerGroupType (line 5334) | typedef char TThostFtdcSettleManagerGroupType;
  type TThostFtdcLimitUseTypeType (line 5364) | typedef char TThostFtdcLimitUseTypeType;
  type TThostFtdcDataResourceType (line 5376) | typedef char TThostFtdcDataResourceType;
  type TThostFtdcMarginTypeType (line 5388) | typedef char TThostFtdcMarginTypeType;
  type TThostFtdcActiveTypeType (line 5398) | typedef char TThostFtdcActiveTypeType;
  type TThostFtdcMarginRateTypeType (line 5410) | typedef char TThostFtdcMarginRateTypeType;
  type TThostFtdcBackUpStatusType (line 5424) | typedef char TThostFtdcBackUpStatusType;
  type TThostFtdcInitSettlementType (line 5436) | typedef char TThostFtdcInitSettlementType;
  type TThostFtdcReportStatusType (line 5450) | typedef char TThostFtdcReportStatusType;
  type TThostFtdcSaveStatusType (line 5460) | typedef char TThostFtdcSaveStatusType;
  type TThostFtdcSettArchiveStatusType (line 5474) | typedef char TThostFtdcSettArchiveStatusType;
  type TThostFtdcCTPTypeType (line 5486) | typedef char TThostFtdcCTPTypeType;
  type TThostFtdcCloseDealTypeType (line 5506) | typedef char TThostFtdcCloseDealTypeType;
  type TThostFtdcMortgageFundUseRangeType (line 5520) | typedef char TThostFtdcMortgageFundUseRangeType;
  type TThostFtdcCurrencyUnitType (line 5525) | typedef double TThostFtdcCurrencyUnitType;
  type TThostFtdcExchangeRateType (line 5530) | typedef double TThostFtdcExchangeRateType;
  type TThostFtdcSpecProductTypeType (line 5542) | typedef char TThostFtdcSpecProductTypeType;
  type TThostFtdcFundMortgageTypeType (line 5552) | typedef char TThostFtdcFundMortgageTypeType;
  type TThostFtdcAccountSettlementParamIDType (line 5562) | typedef char TThostFtdcAccountSettlementParamIDType;
  type TThostFtdcFundMortDirectionType (line 5582) | typedef char TThostFtdcFundMortDirectionType;
  type TThostFtdcBusinessClassType (line 5594) | typedef char TThostFtdcBusinessClassType;
  type TThostFtdcSwapSourceTypeType (line 5604) | typedef char TThostFtdcSwapSourceTypeType;
  type TThostFtdcCurrExDirectionType (line 5614) | typedef char TThostFtdcCurrExDirectionType;
  type TThostFtdcCurrencySwapStatusType (line 5634) | typedef char TThostFtdcCurrencySwapStatusType;
  type TThostFtdcReqFlagType (line 5658) | typedef char TThostFtdcReqFlagType;
  type TThostFtdcResFlagType (line 5670) | typedef char TThostFtdcResFlagType;
  type TThostFtdcRecordCountType (line 5680) | typedef int TThostFtdcRecordCountType;
  type TThostFtdcExStatusType (line 5695) | typedef char TThostFtdcExStatusType;
  type TThostFtdcClientRegionType (line 5707) | typedef char TThostFtdcClientRegionType;
  type TThostFtdcHasBoardType (line 5772) | typedef char TThostFtdcHasBoardType;
  type TThostFtdcStartModeType (line 5784) | typedef char TThostFtdcStartModeType;
  type TThostFtdcTemplateTypeType (line 5796) | typedef char TThostFtdcTemplateTypeType;
  type TThostFtdcLoginModeType (line 5806) | typedef char TThostFtdcLoginModeType;
  type TThostFtdcPromptTypeType (line 5816) | typedef char TThostFtdcPromptTypeType;
  type TThostFtdcHasTrusteeType (line 5856) | typedef char TThostFtdcHasTrusteeType;
  type TThostFtdcAmTypeType (line 5894) | typedef char TThostFtdcAmTypeType;
  type TThostFtdcCSRCFundIOTypeType (line 5909) | typedef char TThostFtdcCSRCFundIOTypeType;
  type TThostFtdcCusAccountTypeType (line 5923) | typedef char TThostFtdcCusAccountTypeType;
  type TThostFtdcLanguageTypeType (line 5943) | typedef char TThostFtdcLanguageTypeType;
  type TThostFtdcAssetmgrClientTypeType (line 5960) | typedef char TThostFtdcAssetmgrClientTypeType;
  type TThostFtdcAssetmgrTypeType (line 5970) | typedef char TThostFtdcAssetmgrTypeType;
  type TThostFtdcCheckInstrTypeType (line 6007) | typedef char TThostFtdcCheckInstrTypeType;
  type TThostFtdcDeliveryTypeType (line 6017) | typedef char TThostFtdcDeliveryTypeType;
  type TThostFtdcBigMoneyType (line 6022) | typedef double TThostFtdcBigMoneyType;
  type TThostFtdcMaxMarginSideAlgorithmType (line 6032) | typedef char TThostFtdcMaxMarginSideAlgorithmType;
  type TThostFtdcDAClientTypeType (line 6044) | typedef char TThostFtdcDAClientTypeType;
  type TThostFtdcDCEPriorityType (line 6059) | typedef int TThostFtdcDCEPriorityType;
  type TThostFtdcTradeGroupIDType (line 6064) | typedef int TThostFtdcTradeGroupIDType;
  type TThostFtdcIsCheckPrepaType (line 6069) | typedef int TThostFtdcIsCheckPrepaType;
  type TThostFtdcUOAAssetmgrTypeType (line 6079) | typedef char TThostFtdcUOAAssetmgrTypeType;
  type TThostFtdcDirectionEnType (line 6089) | typedef char TThostFtdcDirectionEnType;
  type TThostFtdcOffsetFlagEnType (line 6109) | typedef char TThostFtdcOffsetFlagEnType;
  type TThostFtdcHedgeFlagEnType (line 6121) | typedef char TThostFtdcHedgeFlagEnType;
  type TThostFtdcFundIOTypeEnType (line 6133) | typedef char TThostFtdcFundIOTypeEnType;
  type TThostFtdcFundTypeEnType (line 6147) | typedef char TThostFtdcFundTypeEnType;
  type TThostFtdcFundDirectionEnType (line 6157) | typedef char TThostFtdcFundDirectionEnType;
  type TThostFtdcFundMortDirectionEnType (line 6167) | typedef char TThostFtdcFundMortDirectionEnType;
  type TThostFtdcOptionsTypeType (line 6182) | typedef char TThostFtdcOptionsTypeType;
  type TThostFtdcStrikeModeType (line 6194) | typedef char TThostFtdcStrikeModeType;
  type TThostFtdcStrikeTypeType (line 6204) | typedef char TThostFtdcStrikeTypeType;
  type TThostFtdcApplyTypeType (line 6212) | typedef char TThostFtdcApplyTypeType;
  type TThostFtdcGiveUpDataSourceType (line 6222) | typedef char TThostFtdcGiveUpDataSourceType;
  type TThostFtdcExecResultType (line 6257) | typedef char TThostFtdcExecResultType;
  type TThostFtdcStrikeSequenceType (line 6262) | typedef int TThostFtdcStrikeSequenceType;
  type TThostFtdcCombinationTypeType (line 6295) | typedef char TThostFtdcCombinationTypeType;
  type TThostFtdcDceCombinationTypeType (line 6323) | typedef char TThostFtdcDceCombinationTypeType;
  type TThostFtdcOptionRoyaltyPriceTypeType (line 6335) | typedef char TThostFtdcOptionRoyaltyPriceTypeType;
  type TThostFtdcBalanceAlgorithmType (line 6345) | typedef char TThostFtdcBalanceAlgorithmType;
  type TThostFtdcActionTypeType (line 6355) | typedef char TThostFtdcActionTypeType;
  type TThostFtdcForQuoteStatusType (line 6367) | typedef char TThostFtdcForQuoteStatusType;
  type TThostFtdcValueMethodType (line 6377) | typedef char TThostFtdcValueMethodType;
  type TThostFtdcExecOrderPositionFlagType (line 6387) | typedef char TThostFtdcExecOrderPositionFlagType;
  type TThostFtdcExecOrderCloseFlagType (line 6397) | typedef char TThostFtdcExecOrderCloseFlagType;
  type TThostFtdcProductTypeType (line 6407) | typedef char TThostFtdcProductTypeType;
  type TThostFtdcCZCEUploadFileNameType (line 6429) | typedef char TThostFtdcCZCEUploadFileNameType;
  type TThostFtdcDCEUploadFileNameType (line 6451) | typedef char TThostFtdcDCEUploadFileNameType;
  type TThostFtdcSHFEUploadFileNameType (line 6465) | typedef char TThostFtdcSHFEUploadFileNameType;
  type TThostFtdcCFFEXUploadFileNameType (line 6479) | typedef char TThostFtdcCFFEXUploadFileNameType;
  type TThostFtdcCombDirectionType (line 6491) | typedef char TThostFtdcCombDirectionType;
  type TThostFtdcStrikeOffsetTypeType (line 6505) | typedef char TThostFtdcStrikeOffsetTypeType;
  type TThostFtdcReserveOpenAccStasType (line 6519) | typedef char TThostFtdcReserveOpenAccStasType;
  type TThostFtdcBulletinIDType (line 6534) | typedef int TThostFtdcBulletinIDType;
  type TThostFtdcNewsUrgencyType (line 6544) | typedef char TThostFtdcNewsUrgencyType;
  type TThostFtdcWeakPasswordSourceType (line 6584) | typedef char TThostFtdcWeakPasswordSourceType;
  type TThostFtdcOptSelfCloseFlagType (line 6608) | typedef char TThostFtdcOptSelfCloseFlagType;
  type TThostFtdcBizTypeType (line 6618) | typedef char TThostFtdcBizTypeType;
  type TThostFtdcAppTypeType (line 6632) | typedef char TThostFtdcAppTypeType;
  type TThostFtdcSystemInfoLenType (line 6642) | typedef int TThostFtdcSystemInfoLenType;
  type TThostFtdcAdditionalInfoLenType (line 6647) | typedef int TThostFtdcAdditionalInfoLenType;
  type TThostFtdcCurrentAuthMethodType (line 6672) | typedef int TThostFtdcCurrentAuthMethodType;
  type TThostFtdcCaptchaInfoLenType (line 6677) | typedef int TThostFtdcCaptchaInfoLenType;
  type TThostFtdcUserTextSeqType (line 6687) | typedef int TThostFtdcUserTextSeqType;
  type TThostFtdcHandshakeDataLenType (line 6697) | typedef int TThostFtdcHandshakeDataLenType;
  type TThostFtdcRsaKeyVersionType (line 6707) | typedef int TThostFtdcRsaKeyVersionType;
  type TThostFtdcQueryFreqType (line 6722) | typedef int TThostFtdcQueryFreqType;
  type TThostFtdcResponseValueType (line 6732) | typedef char TThostFtdcResponseValueType;
  type TThostFtdcOTCTradeTypeType (line 6742) | typedef char TThostFtdcOTCTradeTypeType;
  type TThostFtdcMatchTypeType (line 6752) | typedef char TThostFtdcMatchTypeType;
  type TThostFtdcRiskValueType (line 6762) | typedef double TThostFtdcRiskValueType;
  type TThostFtdcDiscountRatioType (line 6772) | typedef double TThostFtdcDiscountRatioType;
  type TThostFtdcAuthTypeType (line 6782) | typedef char TThostFtdcAuthTypeType;
  type TThostFtdcClassTypeType (line 6796) | typedef char TThostFtdcClassTypeType;
  type TThostFtdcTradingTypeType (line 6808) | typedef char TThostFtdcTradingTypeType;
  type TThostFtdcProductStatusType (line 6818) | typedef char TThostFtdcProductStatusType;
  type TThostFtdcSyncDeltaStatusType (line 6832) | typedef char TThostFtdcSyncDeltaStatusType;
  type TThostFtdcActionDirectionType (line 6844) | typedef char TThostFtdcActionDirectionType;
  type TThostFtdcOrderCancelAlgType (line 6854) | typedef char TThostFtdcOrderCancelAlgType;
  type TThostFtdcCommonIntType (line 6864) | typedef int TThostFtdcCommonIntType;
  type TThostFtdcOpenLimitControlLevelType (line 6881) | typedef char TThostFtdcOpenLimitControlLevelType;
  type TThostFtdcOrderFreqControlLevelType (line 6893) | typedef char TThostFtdcOrderFreqControlLevelType;
  type TThostFtdcEnumBoolType (line 6903) | typedef char TThostFtdcEnumBoolType;
  type TThostFtdcTimeRangeType (line 6917) | typedef char TThostFtdcTimeRangeType;
  type TThostFtdcDeltaType (line 6922) | typedef double TThostFtdcDeltaType;
  type TThostFtdcSpreadIdType (line 6927) | typedef int TThostFtdcSpreadIdType;
  type TThostFtdcPortfolioType (line 6943) | typedef char TThostFtdcPortfolioType;
  type TThostFtdcPortfolioDefIDType (line 6948) | typedef int TThostFtdcPortfolioDefIDType;
  type TThostFtdcWithDrawParamIDType (line 6956) | typedef char TThostFtdcWithDrawParamIDType;
  type TThostFtdcInvstTradingRightType (line 6971) | typedef char TThostFtdcInvstTradingRightType;
  type TThostFtdcThostFunctionCodeType (line 6976) | typedef int TThostFtdcThostFunctionCodeType;
  type TThostFtdcSPMMDiscountRatioType (line 6981) | typedef double TThostFtdcSPMMDiscountRatioType;
  type TThostFtdcInstMarginCalIDType (line 7008) | typedef char TThostFtdcInstMarginCalIDType;
  type TThostFtdcHedgeRateType (line 7018) | typedef double TThostFtdcHedgeRateType;
  type TThostFtdcRCAMSPriorityType (line 7023) | typedef int TThostFtdcRCAMSPriorityType;
  type TThostFtdcAdjustValueType (line 7028) | typedef double TThostFtdcAdjustValueType;
  type TThostFtdcRCAMSCombinationTypeType (line 7044) | typedef char TThostFtdcRCAMSCombinationTypeType;
  type TThostFtdcPortfTypeType (line 7059) | typedef char TThostFtdcPortfTypeType;
  type TThostFtdcInstrumentClassType (line 7071) | typedef char TThostFtdcInstrumentClassType;
  type TThostFtdcCommodityGroupIDType (line 7076) | typedef int TThostFtdcCommodityGroupIDType;
  type TThostFtdcStdPositionType (line 7081) | typedef double TThostFtdcStdPositionType;
  type TThostFtdcProdChangeFlagType (line 7093) | typedef char TThostFtdcProdChangeFlagType;
  type TThostFtdcPwdRcdSrcType (line 7109) | typedef char TThostFtdcPwdRcdSrcType;
  type TThostFtdcAddrSrvModeType (line 7121) | typedef char TThostFtdcAddrSrvModeType;
  type TThostFtdcAddrVerType (line 7131) | typedef char TThostFtdcAddrVerType;
  type TThostFtdcTGSessionQryStatusType (line 7156) | typedef char TThostFtdcTGSessionQryStatusType;
  type TThostFtdcOffsetTypeType (line 7170) | typedef char TThostFtdcOffsetTypeType;
  type TThostFtdcApplySrcType (line 7190) | typedef char TThostFtdcApplySrcType;

FILE: native/ctp_bridge/api/linux/ThostFtdcUserApiStruct.h
  type CThostFtdcDisseminationField (line 21) | struct CThostFtdcDisseminationField
  type CThostFtdcReqUserLoginField (line 30) | struct CThostFtdcReqUserLoginField
  type CThostFtdcRspUserLoginField (line 61) | struct CThostFtdcRspUserLoginField
  type CThostFtdcUserLogoutField (line 104) | struct CThostFtdcUserLogoutField
  type CThostFtdcForceUserLogoutField (line 113) | struct CThostFtdcForceUserLogoutField
  type CThostFtdcReqAuthenticateField (line 122) | struct CThostFtdcReqAuthenticateField
  type CThostFtdcRspAuthenticateField (line 137) | struct CThostFtdcRspAuthenticateField
  type CThostFtdcAuthenticationInfoField (line 152) | struct CThostFtdcAuthenticationInfoField
  type CThostFtdcRspUserLogin2Field (line 175) | struct CThostFtdcRspUserLogin2Field
  type CThostFtdcTransferHeaderField (line 208) | struct CThostFtdcTransferHeaderField
  type CThostFtdcTransferBankToFutureReqField (line 239) | struct CThostFtdcTransferBankToFutureReqField
  type CThostFtdcTransferBankToFutureRspField (line 256) | struct CThostFtdcTransferBankToFutureRspField
  type CThostFtdcTransferFutureToBankReqField (line 273) | struct CThostFtdcTransferFutureToBankReqField
  type CThostFtdcTransferFutureToBankRspField (line 290) | struct CThostFtdcTransferFutureToBankRspField
  type CThostFtdcTransferQryBankReqField (line 307) | struct CThostFtdcTransferQryBankReqField
  type CThostFtdcTransferQryBankRspField (line 320) | struct CThostFtdcTransferQryBankRspField
  type CThostFtdcTransferQryDetailReqField (line 339) | struct CThostFtdcTransferQryDetailReqField
  type CThostFtdcTransferQryDetailRspField (line 346) | struct CThostFtdcTransferQryDetailRspField
  type CThostFtdcRspInfoField (line 379) | struct CThostFtdcRspInfoField
  type CThostFtdcExchangeField (line 388) | struct CThostFtdcExchangeField
  type CThostFtdcProductField (line 399) | struct CThostFtdcProductField
  type CThostFtdcInstrumentField (line 446) | struct CThostFtdcInstrumentField
  type CThostFtdcBrokerField (line 521) | struct CThostFtdcBrokerField
  type CThostFtdcTraderField (line 534) | struct CThostFtdcTraderField
  type CThostFtdcInvestorField (line 557) | struct CThostFtdcInvestorField
  type CThostFtdcTradingCodeField (line 592) | struct CThostFtdcTradingCodeField
  type CThostFtdcPartBrokerField (line 615) | struct CThostFtdcPartBrokerField
  type CThostFtdcSuperUserField (line 628) | struct CThostFtdcSuperUserField
  type CThostFtdcSuperUserFunctionField (line 641) | struct CThostFtdcSuperUserFunctionField
  type CThostFtdcInvestorGroupField (line 650) | struct CThostFtdcInvestorGroupField
  type CThostFtdcTradingAccountField (line 661) | struct CThostFtdcTradingAccountField
  type CThostFtdcInvestorPositionField (line 766) | struct CThostFtdcInvestorPositionField
  type CThostFtdcInstrumentMarginRateField (line 873) | struct CThostFtdcInstrumentMarginRateField
  type CThostFtdcInstrumentCommissionRateField (line 904) | struct CThostFtdcInstrumentCommissionRateField
  type CThostFtdcDepthMarketDataField (line 937) | struct CThostFtdcDepthMarketDataField
  type CThostFtdcInstrumentTradingRightField (line 1038) | struct CThostFtdcInstrumentTradingRightField
  type CThostFtdcBrokerUserField (line 1055) | struct CThostFtdcBrokerUserField
  type CThostFtdcBrokerUserPasswordField (line 1074) | struct CThostFtdcBrokerUserPasswordField
  type CThostFtdcBrokerUserFunctionField (line 1093) | struct CThostFtdcBrokerUserFunctionField
  type CThostFtdcTraderOfferField (line 1104) | struct CThostFtdcTraderOfferField
  type CThostFtdcSettlementInfoField (line 1149) | struct CThostFtdcSettlementInfoField
  type CThostFtdcInstrumentMarginRateAdjustField (line 1170) | struct CThostFtdcInstrumentMarginRateAdjustField
  type CThostFtdcExchangeMarginRateField (line 1197) | struct CThostFtdcExchangeMarginRateField
  type CThostFtdcExchangeMarginRateAdjustField (line 1220) | struct CThostFtdcExchangeMarginRateAdjustField
  type CThostFtdcExchangeRateField (line 1257) | struct CThostFtdcExchangeRateField
  type CThostFtdcSettlementRefField (line 1272) | struct CThostFtdcSettlementRefField
  type CThostFtdcCurrentTimeField (line 1281) | struct CThostFtdcCurrentTimeField
  type CThostFtdcCommPhaseField (line 1294) | struct CThostFtdcCommPhaseField
  type CThostFtdcLoginInfoField (line 1305) | struct CThostFtdcLoginInfoField
  type CThostFtdcLogoutAllField (line 1358) | struct CThostFtdcLogoutAllField
  type CThostFtdcFrontStatusField (line 1369) | struct CThostFtdcFrontStatusField
  type CThostFtdcUserPasswordUpdateField (line 1382) | struct CThostFtdcUserPasswordUpdateField
  type CThostFtdcInputOrderField (line 1395) | struct CThostFtdcInputOrderField
  type CThostFtdcOrderField (line 1468) | struct CThostFtdcOrderField
  type CThostFtdcExchangeOrderField (line 1609) | struct CThostFtdcExchangeOrderField
  type CThostFtdcExchangeOrderInsertErrorField (line 1708) | struct CThostFtdcExchangeOrderInsertErrorField
  type CThostFtdcInputOrderActionField (line 1727) | struct CThostFtdcInputOrderActionField
  type CThostFtdcOrderActionField (line 1774) | struct CThostFtdcOrderActionField
  type CThostFtdcExchangeOrderActionField (line 1845) | struct CThostFtdcExchangeOrderActionField
  type CThostFtdcExchangeOrderActionErrorField (line 1890) | struct CThostFtdcExchangeOrderActionErrorField
  type CThostFtdcExchangeTradeField (line 1911) | struct CThostFtdcExchangeTradeField
  type CThostFtdcTradeField (line 1962) | struct CThostFtdcTradeField
  type CThostFtdcUserSessionField (line 2033) | struct CThostFtdcUserSessionField
  type CThostFtdcQryMaxOrderVolumeField (line 2064) | struct CThostFtdcQryMaxOrderVolumeField
  type CThostFtdcSettlementInfoConfirmField (line 2089) | struct CThostFtdcSettlementInfoConfirmField
  type CThostFtdcSyncDepositField (line 2108) | struct CThostFtdcSyncDepositField
  type CThostFtdcSyncFundMortgageField (line 2131) | struct CThostFtdcSyncFundMortgageField
  type CThostFtdcBrokerSyncField (line 2148) | struct CThostFtdcBrokerSyncField
  type CThostFtdcSyncingInvestorField (line 2155) | struct CThostFtdcSyncingInvestorField
  type CThostFtdcSyncingTradingCodeField (line 2190) | struct CThostFtdcSyncingTradingCodeField
  type CThostFtdcSyncingInvestorGroupField (line 2207) | struct CThostFtdcSyncingInvestorGroupField
  type CThostFtdcSyncingTradingAccountField (line 2218) | struct CThostFtdcSyncingTradingAccountField
  type CThostFtdcSyncingInvestorPositionField (line 2321) | struct CThostFtdcSyncingInvestorPositionField
  type CThostFtdcSyncingInstrumentMarginRateField (line 2426) | struct CThostFtdcSyncingInstrumentMarginRateField
  type CThostFtdcSyncingInstrumentCommissionRateField (line 2453) | struct CThostFtdcSyncingInstrumentCommissionRateField
  type CThostFtdcSyncingInstrumentTradingRightField (line 2480) | struct CThostFtdcSyncingInstrumentTradingRightField
  type CThostFtdcQryOrderField (line 2497) | struct CThostFtdcQryOrderField
  type CThostFtdcQryTradeField (line 2520) | struct CThostFtdcQryTradeField
  type CThostFtdcQryInvestorPositionField (line 2543) | struct CThostFtdcQryInvestorPositionField
  type CThostFtdcQryTradingAccountField (line 2560) | struct CThostFtdcQryTradingAccountField
  type CThostFtdcQryInvestorField (line 2575) | struct CThostFtdcQryInvestorField
  type CThostFtdcQryTradingCodeField (line 2584) | struct CThostFtdcQryTradingCodeField
  type CThostFtdcQryInvestorGroupField (line 2601) | struct CThostFtdcQryInvestorGroupField
  type CThostFtdcQryInstrumentMarginRateField (line 2608) | struct CThostFtdcQryInstrumentMarginRateField
  type CThostFtdcQryInstrumentCommissionRateField (line 2627) | struct CThostFtdcQryInstrumentCommissionRateField
  type CThostFtdcQryInstrumentTradingRightField (line 2644) | struct CThostFtdcQryInstrumentTradingRightField
  type CThostFtdcQryBrokerField (line 2657) | struct CThostFtdcQryBrokerField
  type CThostFtdcQryTraderField (line 2664) | struct CThostFtdcQryTraderField
  type CThostFtdcQrySuperUserFunctionField (line 2675) | struct CThostFtdcQrySuperUserFunctionField
  type CThostFtdcQryUserSessionField (line 2682) | struct CThostFtdcQryUserSessionField
  type CThostFtdcQryPartBrokerField (line 2695) | struct CThostFtdcQryPartBrokerField
  type CThostFtdcQryFrontStatusField (line 2706) | struct CThostFtdcQryFrontStatusField
  type CThostFtdcQryExchangeOrderField (line 2713) | struct CThostFtdcQryExchangeOrderField
  type CThostFtdcQryOrderActionField (line 2730) | struct CThostFtdcQryOrderActionField
  type CThostFtdcQryExchangeOrderActionField (line 2741) | struct CThostFtdcQryExchangeOrderActionField
  type CThostFtdcQrySuperUserField (line 2754) | struct CThostFtdcQrySuperUserField
  type CThostFtdcQryExchangeField (line 2761) | struct CThostFtdcQryExchangeField
  type CThostFtdcQryProductField (line 2768) | struct CThostFtdcQryProductField
  type CThostFtdcQryInstrumentField (line 2781) | struct CThostFtdcQryInstrumentField
  type CThostFtdcQryDepthMarketDataField (line 2800) | struct CThostFtdcQryDepthMarketDataField
  type CThostFtdcQryBrokerUserField (line 2813) | struct CThostFtdcQryBrokerUserField
  type CThostFtdcQryBrokerUserFunctionField (line 2822) | struct CThostFtdcQryBrokerUserFunctionField
  type CThostFtdcQryTraderOfferField (line 2831) | struct CThostFtdcQryTraderOfferField
  type CThostFtdcQrySyncDepositField (line 2842) | struct CThostFtdcQrySyncDepositField
  type CThostFtdcQrySettlementInfoField (line 2851) | struct CThostFtdcQrySettlementInfoField
  type CThostFtdcQryExchangeMarginRateField (line 2866) | struct CThostFtdcQryExchangeMarginRateField
  type CThostFtdcQryExchangeMarginRateAdjustField (line 2881) | struct CThostFtdcQryExchangeMarginRateAdjustField
  type CThostFtdcQryExchangeRateField (line 2894) | struct CThostFtdcQryExchangeRateField
  type CThostFtdcQrySyncFundMortgageField (line 2905) | struct CThostFtdcQrySyncFundMortgageField
  type CThostFtdcQryHisOrderField (line 2914) | struct CThostFtdcQryHisOrderField
  type CThostFtdcOptionInstrMiniMarginField (line 2939) | struct CThostFtdcOptionInstrMiniMarginField
  type CThostFtdcOptionInstrMarginAdjustField (line 2960) | struct CThostFtdcOptionInstrMarginAdjustField
  type CThostFtdcOptionInstrCommRateField (line 2993) | struct CThostFtdcOptionInstrCommRateField
  type CThostFtdcOptionInstrTradeCostField (line 3028) | struct CThostFtdcOptionInstrTradeCostField
  type CThostFtdcQryOptionInstrTradeCostField (line 3057) | struct CThostFtdcQryOptionInstrTradeCostField
  type CThostFtdcQryOptionInstrCommRateField (line 3080) | struct CThostFtdcQryOptionInstrCommRateField
  type CThostFtdcIndexPriceField (line 3097) | struct CThostFtdcIndexPriceField
  type CThostFtdcInputExecOrderField (line 3110) | struct CThostFtdcInputExecOrderField
  type CThostFtdcInputExecOrderActionField (line 3161) | struct CThostFtdcInputExecOrderActionField
  type CThostFtdcExecOrderField (line 3200) | struct CThostFtdcExecOrderField
  type CThostFtdcExecOrderActionField (line 3299) | struct CThostFtdcExecOrderActionField
  type CThostFtdcQryExecOrderField (line 3364) | struct CThostFtdcQryExecOrderField
  type CThostFtdcExchangeExecOrderField (line 3385) | struct CThostFtdcExchangeExecOrderField
  type CThostFtdcQryExchangeExecOrderField (line 3454) | struct CThostFtdcQryExchangeExecOrderField
  type CThostFtdcQryExecOrderActionField (line 3471) | struct CThostFtdcQryExecOrderActionField
  type CThostFtdcExchangeExecOrderActionField (line 3482) | struct CThostFtdcExchangeExecOrderActionField
  type CThostFtdcQryExchangeExecOrderActionField (line 3531) | struct CThostFtdcQryExchangeExecOrderActionField
  type CThostFtdcErrExecOrderField (line 3544) | struct CThostFtdcErrExecOrderField
  type CThostFtdcQryErrExecOrderField (line 3599) | struct CThostFtdcQryErrExecOrderField
  type CThostFtdcErrExecOrderActionField (line 3608) | struct CThostFtdcErrExecOrderActionField
  type CThostFtdcQryErrExecOrderActionField (line 3651) | struct CThostFtdcQryErrExecOrderActionField
  type CThostFtdcOptionInstrTradingRightField (line 3660) | struct CThostFtdcOptionInstrTradingRightField
  type CThostFtdcQryOptionInstrTradingRightField (line 3679) | struct CThostFtdcQryOptionInstrTradingRightField
  type CThostFtdcInputForQuoteField (line 3694) | struct CThostFtdcInputForQuoteField
  type CThostFtdcForQuoteField (line 3721) | struct CThostFtdcForQuoteField
  type CThostFtdcQryForQuoteField (line 3778) | struct CThostFtdcQryForQuoteField
  type CThostFtdcExchangeForQuoteField (line 3799) | struct CThostFtdcExchangeForQuoteField
  type CThostFtdcQryExchangeForQuoteField (line 3832) | struct CThostFtdcQryExchangeForQuoteField
  type CThostFtdcInputQuoteField (line 3849) | struct CThostFtdcInputQuoteField
  type CThostFtdcInputQuoteActionField (line 3912) | struct CThostFtdcInputQuoteActionField
  type CThostFtdcQuoteField (line 3957) | struct CThostFtdcQuoteField
  type CThostFtdcQuoteActionField (line 4076) | struct CThostFtdcQuoteActionField
  type CThostFtdcQryQuoteField (line 4143) | struct CThostFtdcQryQuoteField
  type CThostFtdcExchangeQuoteField (line 4166) | struct CThostFtdcExchangeQuoteField
  type CThostFtdcQryExchangeQuoteField (line 4245) | struct CThostFtdcQryExchangeQuoteField
  type CThostFtdcQryQuoteActionField (line 4262) | struct CThostFtdcQryQuoteActionField
  type CThostFtdcExchangeQuoteActionField (line 4273) | struct CThostFtdcExchangeQuoteActionField
  type CThostFtdcQryExchangeQuoteActionField (line 4312) | struct CThostFtdcQryExchangeQuoteActionField
  type CThostFtdcOptionInstrDeltaField (line 4325) | struct CThostFtdcOptionInstrDeltaField
  type CThostFtdcForQuoteRspField (line 4342) | struct CThostFtdcForQuoteRspField
  type CThostFtdcStrikeOffsetField (line 4361) | struct CThostFtdcStrikeOffsetField
  type CThostFtdcQryStrikeOffsetField (line 4380) | struct CThostFtdcQryStrikeOffsetField
  type CThostFtdcInputBatchOrderActionField (line 4393) | struct CThostFtdcInputBatchOrderActionField
  type CThostFtdcBatchOrderActionField (line 4422) | struct CThostFtdcBatchOrderActionField
  type CThostFtdcExchangeBatchOrderActionField (line 4471) | struct CThostFtdcExchangeBatchOrderActionField
  type CThostFtdcQryBatchOrderActionField (line 4504) | struct CThostFtdcQryBatchOrderActionField
  type CThostFtdcCombInstrumentGuardField (line 4515) | struct CThostFtdcCombInstrumentGuardField
  type CThostFtdcQryCombInstrumentGuardField (line 4530) | struct CThostFtdcQryCombInstrumentGuardField
  type CThostFtdcInputCombActionField (line 4543) | struct CThostFtdcInputCombActionField
  type CThostFtdcCombActionField (line 4582) | struct CThostFtdcCombActionField
  type CThostFtdcQryCombActionField (line 4653) | struct CThostFtdcQryCombActionField
  type CThostFtdcExchangeCombActionField (line 4670) | struct CThostFtdcExchangeCombActionField
  type CThostFtdcQryExchangeCombActionField (line 4719) | struct CThostFtdcQryExchangeCombActionField
  type CThostFtdcProductExchRateField (line 4736) | struct CThostFtdcProductExchRateField
  type CThostFtdcQryProductExchRateField (line 4751) | struct CThostFtdcQryProductExchRateField
  type CThostFtdcQryForQuoteParamField (line 4762) | struct CThostFtdcQryForQuoteParamField
  type CThostFtdcForQuoteParamField (line 4775) | struct CThostFtdcForQuoteParamField
  type CThostFtdcMMOptionInstrCommRateField (line 4792) | struct CThostFtdcMMOptionInstrCommRateField
  type CThostFtdcQryMMOptionInstrCommRateField (line 4823) | struct CThostFtdcQryMMOptionInstrCommRateField
  type CThostFtdcMMInstrumentCommissionRateField (line 4836) | struct CThostFtdcMMInstrumentCommissionRateField
  type CThostFtdcQryMMInstrumentCommissionRateField (line 4863) | struct CThostFtdcQryMMInstrumentCommissionRateField
  type CThostFtdcInstrumentOrderCommRateField (line 4876) | struct CThostFtdcInstrumentOrderCommRateField
  type CThostFtdcQryInstrumentOrderCommRateField (line 4905) | struct CThostFtdcQryInstrumentOrderCommRateField
  type CThostFtdcTradeParamField (line 4918) | struct CThostFtdcTradeParamField
  type CThostFtdcInstrumentMarginRateULField (line 4931) | struct CThostFtdcInstrumentMarginRateULField
  type CThostFtdcFutureLimitPosiParamField (line 4956) | struct CThostFtdcFutureLimitPosiParamField
  type CThostFtdcLoginForbiddenIPField (line 4977) | struct CThostFtdcLoginForbiddenIPField
  type CThostFtdcIPListField (line 4986) | struct CThostFtdcIPListField
  type CThostFtdcInputOptionSelfCloseField (line 4997) | struct CThostFtdcInputOptionSelfCloseField
  type CThostFtdcInputOptionSelfCloseActionField (line 5040) | struct CThostFtdcInputOptionSelfCloseActionField
  type CThostFtdcOptionSelfCloseField (line 5079) | struct CThostFtdcOptionSelfCloseField
  type CThostFtdcOptionSelfCloseActionField (line 5170) | struct CThostFtdcOptionSelfCloseActionField
  type CThostFtdcQryOptionSelfCloseField (line 5233) | struct CThostFtdcQryOptionSelfCloseField
  type CThostFtdcExchangeOptionSelfCloseField (line 5254) | struct CThostFtdcExchangeOptionSelfCloseField
  type CThostFtdcQryOptionSelfCloseActionField (line 5315) | struct CThostFtdcQryOptionSelfCloseActionField
  type CThostFtdcExchangeOptionSelfCloseActionField (line 5326) | struct CThostFtdcExchangeOptionSelfCloseActionField
  type CThostFtdcSyncDelaySwapField (line 5373) | struct CThostFtdcSyncDelaySwapField
  type CThostFtdcQrySyncDelaySwapField (line 5400) | struct CThostFtdcQrySyncDelaySwapField
  type CThostFtdcInvestUnitField (line 5409) | struct CThostFtdcInvestUnitField
  type CThostFtdcQryInvestUnitField (line 5432) | struct CThostFtdcQryInvestUnitField
  type CThostFtdcSecAgentCheckModeField (line 5443) | struct CThostFtdcSecAgentCheckModeField
  type CThostFtdcSecAgentTradeInfoField (line 5458) | struct CThostFtdcSecAgentTradeInfoField
  type CThostFtdcMarketDataField (line 5471) | struct CThostFtdcMarketDataField
  type CThostFtdcMarketDataBaseField (line 5526) | struct CThostFtdcMarketDataBaseField
  type CThostFtdcMarketDataStaticField (line 5541) | struct CThostFtdcMarketDataStaticField
  type CThostFtdcMarketDataLastMatchField (line 5562) | struct CThostFtdcMarketDataLastMatchField
  type CThostFtdcMarketDataBestPriceField (line 5575) | struct CThostFtdcMarketDataBestPriceField
  type CThostFtdcMarketDataBid23Field (line 5588) | struct CThostFtdcMarketDataBid23Field
  type CThostFtdcMarketDataAsk23Field (line 5601) | struct CThostFtdcMarketDataAsk23Field
  type CThostFtdcMarketDataBid45Field (line 5614) | struct CThostFtdcMarketDataBid45Field
  type CThostFtdcMarketDataAsk45Field (line 5627) | struct CThostFtdcMarketDataAsk45Field
  type CThostFtdcMarketDataUpdateTimeField (line 5640) | struct CThostFtdcMarketDataUpdateTimeField
  type CThostFtdcMarketDataBandingPriceField (line 5655) | struct CThostFtdcMarketDataBandingPriceField
  type CThostFtdcMarketDataExchangeField (line 5664) | struct CThostFtdcMarketDataExchangeField
  type CThostFtdcSpecificInstrumentField (line 5671) | struct CThostFtdcSpecificInstrumentField
  type CThostFtdcInstrumentStatusField (line 5680) | struct CThostFtdcInstrumentStatusField
  type CThostFtdcQryInstrumentStatusField (line 5705) | struct CThostFtdcQryInstrumentStatusField
  type CThostFtdcInvestorAccountField (line 5716) | struct CThostFtdcInvestorAccountField
  type CThostFtdcPositionProfitAlgorithmField (line 5729) | struct CThostFtdcPositionProfitAlgorithmField
  type CThostFtdcDiscountField (line 5744) | struct CThostFtdcDiscountField
  type CThostFtdcQryTransferBankField (line 5757) | struct CThostFtdcQryTransferBankField
  type CThostFtdcTransferBankField (line 5766) | struct CThostFtdcTransferBankField
  type CThostFtdcQryInvestorPositionDetailField (line 5779) | struct CThostFtdcQryInvestorPositionDetailField
  type CThostFtdcInvestorPositionDetailField (line 5796) | struct CThostFtdcInvestorPositionDetailField
  type CThostFtdcTradingAccountPasswordField (line 5863) | struct CThostFtdcTradingAccountPasswordField
  type CThostFtdcMDTraderOfferField (line 5876) | struct CThostFtdcMDTraderOfferField
  type CThostFtdcQryMDTraderOfferField (line 5921) | struct CThostFtdcQryMDTraderOfferField
  type CThostFtdcQryNoticeField (line 5932) | struct CThostFtdcQryNoticeField
  type CThostFtdcNoticeField (line 5939) | struct CThostFtdcNoticeField
  type CThostFtdcUserRightField (line 5950) | struct CThostFtdcUserRightField
  type CThostFtdcQrySettlementInfoConfirmField (line 5963) | struct CThostFtdcQrySettlementInfoConfirmField
  type CThostFtdcLoadSettlementInfoField (line 5976) | struct CThostFtdcLoadSettlementInfoField
  type CThostFtdcBrokerWithdrawAlgorithmField (line 5983) | struct CThostFtdcBrokerWithdrawAlgorithmField
  type CThostFtdcTradingAccountPasswordUpdateV1Field (line 6008) | struct CThostFtdcTradingAccountPasswordUpdateV1Field
  type CThostFtdcTradingAccountPasswordUpdateField (line 6021) | struct CThostFtdcTradingAccountPasswordUpdateField
  type CThostFtdcQryCombinationLegField (line 6036) | struct CThostFtdcQryCombinationLegField
  type CThostFtdcQrySyncStatusField (line 6051) | struct CThostFtdcQrySyncStatusField
  type CThostFtdcCombinationLegField (line 6058) | struct CThostFtdcCombinationLegField
  type CThostFtdcSyncStatusField (line 6079) | struct CThostFtdcSyncStatusField
  type CThostFtdcQryLinkManField (line 6088) | struct CThostFtdcQryLinkManField
  type CThostFtdcLinkManField (line 6097) | struct CThostFtdcLinkManField
  type CThostFtdcQryBrokerUserEventField (line 6126) | struct CThostFtdcQryBrokerUserEventField
  type CThostFtdcBrokerUserEventField (line 6137) | struct CThostFtdcBrokerUserEventField
  type CThostFtdcQryContractBankField (line 6166) | struct CThostFtdcQryContractBankField
  type CThostFtdcContractBankField (line 6177) | struct CThostFtdcContractBankField
  type CThostFtdcInvestorPositionCombineDetailField (line 6190) | struct CThostFtdcInvestorPositionCombineDetailField
  type CThostFtdcParkedOrderField (line 6241) | struct CThostFtdcParkedOrderField
  type CThostFtdcParkedOrderActionField (line 6320) | struct CThostFtdcParkedOrderActionField
  type CThostFtdcQryParkedOrderField (line 6373) | struct CThostFtdcQryParkedOrderField
  type CThostFtdcQryParkedOrderActionField (line 6390) | struct CThostFtdcQryParkedOrderActionField
  type CThostFtdcRemoveParkedOrderField (line 6407) | struct CThostFtdcRemoveParkedOrderField
  type CThostFtdcRemoveParkedOrderActionField (line 6420) | struct CThostFtdcRemoveParkedOrderActionField
  type CThostFtdcInvestorWithdrawAlgorithmField (line 6433) | struct CThostFtdcInvestorWithdrawAlgorithmField
  type CThostFtdcQryInvestorPositionCombineDetailField (line 6450) | struct CThostFtdcQryInvestorPositionCombineDetailField
  type CThostFtdcMarketDataAveragePriceField (line 6467) | struct CThostFtdcMarketDataAveragePriceField
  type CThostFtdcVerifyInvestorPasswordField (line 6474) | struct CThostFtdcVerifyInvestorPasswordField
  type CThostFtdcUserIPField (line 6485) | struct CThostFtdcUserIPField
  type CThostFtdcTradingNoticeInfoField (line 6504) | struct CThostFtdcTradingNoticeInfoField
  type CThostFtdcTradingNoticeField (line 6523) | struct CThostFtdcTradingNoticeField
  type CThostFtdcQryTradingNoticeField (line 6546) | struct CThostFtdcQryTradingNoticeField
  type CThostFtdcQryErrOrderField (line 6557) | struct CThostFtdcQryErrOrderField
  type CThostFtdcErrOrderField (line 6566) | struct CThostFtdcErrOrderField
  type CThostFtdcErrorConditionalOrderField (line 6643) | struct CThostFtdcErrorConditionalOrderField
  type CThostFtdcQryErrOrderActionField (line 6784) | struct CThostFtdcQryErrOrderActionField
  type CThostFtdcErrOrderActionField (line 6793) | struct CThostFtdcErrOrderActionField
  type CThostFtdcQryExchangeSequenceField (line 6868) | struct CThostFtdcQryExchangeSequenceField
  type CThostFtdcExchangeSequenceField (line 6875) | struct CThostFtdcExchangeSequenceField
  type CThostFtdcQryMaxOrderVolumeWithPriceField (line 6886) | struct CThostFtdcQryMaxOrderVolumeWithPriceField
  type CThostFtdcQryBrokerTradingParamsField (line 6913) | struct CThostFtdcQryBrokerTradingParamsField
  type CThostFtdcBrokerTradingParamsField (line 6926) | struct CThostFtdcBrokerTradingParamsField
  type CThostFtdcQryBrokerTradingAlgosField (line 6947) | struct CThostFtdcQryBrokerTradingAlgosField
  type CThostFtdcBrokerTradingAlgosField (line 6960) | struct CThostFtdcBrokerTradingAlgosField
  type CThostFtdcQueryBrokerDepositField (line 6979) | struct CThostFtdcQueryBrokerDepositField
  type CThostFtdcBrokerDepositField (line 6988) | struct CThostFtdcBrokerDepositField
  type CThostFtdcQryCFMMCBrokerKeyField (line 7019) | struct CThostFtdcQryCFMMCBrokerKeyField
  type CThostFtdcCFMMCBrokerKeyField (line 7026) | struct CThostFtdcCFMMCBrokerKeyField
  type CThostFtdcCFMMCTradingAccountKeyField (line 7045) | struct CThostFtdcCFMMCTradingAccountKeyField
  type CThostFtdcQryCFMMCTradingAccountKeyField (line 7060) | struct CThostFtdcQryCFMMCTradingAccountKeyField
  type CThostFtdcBrokerUserOTPParamField (line 7069) | struct CThostFtdcBrokerUserOTPParamField
  type CThostFtdcManualSyncBrokerUserOTPField (line 7090) | struct CThostFtdcManualSyncBrokerUserOTPField
  type CThostFtdcCommRateModelField (line 7105) | struct CThostFtdcCommRateModelField
  type CThostFtdcQryCommRateModelField (line 7116) | struct CThostFtdcQryCommRateModelField
  type CThostFtdcMarginModelField (line 7125) | struct CThostFtdcMarginModelField
  type CThostFtdcQryMarginModelField (line 7136) | struct CThostFtdcQryMarginModelField
  type CThostFtdcEWarrantOffsetField (line 7145) | struct CThostFtdcEWarrantOffsetField
  type CThostFtdcQryEWarrantOffsetField (line 7170) | struct CThostFtdcQryEWarrantOffsetField
  type CThostFtdcQryInvestorProductGroupMarginField (line 7187) | struct CThostFtdcQryInvestorProductGroupMarginField
  type CThostFtdcInvestorProductGroupMarginField (line 7206) | struct CThostFtdcInvestorProductGroupMarginField
  type CThostFtdcQueryCFMMCTradingAccountTokenField (line 7271) | struct CThostFtdcQueryCFMMCTradingAccountTokenField
  type CThostFtdcCFMMCTradingAccountTokenField (line 7282) | struct CThostFtdcCFMMCTradingAccountTokenField
  type CThostFtdcQryProductGroupField (line 7297) | struct CThostFtdcQryProductGroupField
  type CThostFtdcProductGroupField (line 7308) | struct CThostFtdcProductGroupField
  type CThostFtdcBulletinField (line 7323) | struct CThostFtdcBulletinField
  type CThostFtdcQryBulletinField (line 7352) | struct CThostFtdcQryBulletinField
  type CThostFtdcMulticastInstrumentField (line 7367) | struct CThostFtdcMulticastInstrumentField
  type CThostFtdcQryMulticastInstrumentField (line 7386) | struct CThostFtdcQryMulticastInstrumentField
  type CThostFtdcAppIDAuthAssignField (line 7397) | struct CThostFtdcAppIDAuthAssignField
  type CThostFtdcReqOpenAccountField (line 7408) | struct CThostFtdcReqOpenAccountField
  type CThostFtdcReqCancelAccountField (line 7503) | struct CThostFtdcReqCancelAccountField
  type CThostFtdcReqChangeAccountField (line 7598) | struct CThostFtdcReqChangeAccountField
  type CThostFtdcReqTransferField (line 7685) | struct CThostFtdcReqTransferField
  type CThostFtdcRspTransferField (line 7778) | struct CThostFtdcRspTransferField
  type CThostFtdcReqRepealField (line 7875) | struct CThostFtdcReqRepealField
  type CThostFtdcRspRepealField (line 7982) | struct CThostFtdcRspRepealField
  type CThostFtdcReqQueryAccountField (line 8093) | struct CThostFtdcReqQueryAccountField
  type CThostFtdcRspQueryAccountField (line 8172) | struct CThostFtdcRspQueryAccountField
  type CThostFtdcFutureSignIOField (line 8255) | struct CThostFtdcFutureSignIOField
  type CThostFtdcRspFutureSignInField (line 8302) | struct CThostFtdcRspFutureSignInField
  type CThostFtdcReqFutureSignOutField (line 8357) | struct CThostFtdcReqFutureSignOutField
  type CThostFtdcRspFutureSignOutField (line 8404) | struct CThostFtdcRspFutureSignOutField
  type CThostFtdcReqQueryTradeResultBySerialField (line 8455) | struct CThostFtdcReqQueryTradeResultBySerialField
  type CThostFtdcRspQueryTradeResultBySerialField (line 8514) | struct CThostFtdcRspQueryTradeResultBySerialField
  type CThostFtdcReqDayEndFileReadyField (line 8571) | struct CThostFtdcReqDayEndFileReadyField
  type CThostFtdcReturnResultField (line 8604) | struct CThostFtdcReturnResultField
  type CThostFtdcVerifyFuturePasswordField (line 8613) | struct CThostFtdcVerifyFuturePasswordField
  type CThostFtdcVerifyCustInfoField (line 8656) | struct CThostFtdcVerifyCustInfoField
  type CThostFtdcVerifyFuturePasswordAndCustInfoField (line 8671) | struct CThostFtdcVerifyFuturePasswordAndCustInfoField
  type CThostFtdcDepositResultInformField (line 8692) | struct CThostFtdcDepositResultInformField
  type CThostFtdcReqSyncKeyField (line 8711) | struct CThostFtdcReqSyncKeyField
  type CThostFtdcRspSyncKeyField (line 8756) | struct CThostFtdcRspSyncKeyField
  type CThostFtdcNotifyQueryAccountField (line 8805) | struct CThostFtdcNotifyQueryAccountField
  type CThostFtdcTransferSerialField (line 8892) | struct CThostFtdcTransferSerialField
  type CThostFtdcQryTransferSerialField (line 8953) | struct CThostFtdcQryTransferSerialField
  type CThostFtdcNotifyFutureSignInField (line 8966) | struct CThostFtdcNotifyFutureSignInField
  type CThostFtdcNotifyFutureSignOutField (line 9021) | struct CThostFtdcNotifyFutureSignOutField
  type CThostFtdcNotifySyncKeyField (line 9072) | struct CThostFtdcNotifySyncKeyField
  type CThostFtdcQryAccountregisterField (line 9121) | struct CThostFtdcQryAccountregisterField
  type CThostFtdcAccountregisterField (line 9136) | struct CThostFtdcAccountregisterField
  type CThostFtdcOpenAccountField (line 9177) | struct CThostFtdcOpenAccountField
  type CThostFtdcCancelAccountField (line 9276) | struct CThostFtdcCancelAccountField
  type CThostFtdcChangeAccountField (line 9375) | struct CThostFtdcChangeAccountField
  type CThostFtdcSecAgentACIDMapField (line 9466) | struct CThostFtdcSecAgentACIDMapField
  type CThostFtdcQrySecAgentACIDMapField (line 9481) | struct CThostFtdcQrySecAgentACIDMapField
  type CThostFtdcUserRightsAssignField (line 9494) | struct CThostFtdcUserRightsAssignField
  type CThostFtdcBrokerUserRightAssignField (line 9505) | struct CThostFtdcBrokerUserRightAssignField
  type CThostFtdcDRTransferField (line 9516) | struct CThostFtdcDRTransferField
  type CThostFtdcFensUserInfoField (line 9529) | struct CThostFtdcFensUserInfoField
  type CThostFtdcCurrTransferIdentityField (line 9540) | struct CThostFtdcCurrTransferIdentityField
  type CThostFtdcLoginForbiddenUserField (line 9547) | struct CThostFtdcLoginForbiddenUserField
  type CThostFtdcQryLoginForbiddenUserField (line 9560) | struct CThostFtdcQryLoginForbiddenUserField
  type CThostFtdcTradingAccountReserveField (line 9569) | struct CThostFtdcTradingAccountReserveField
  type CThostFtdcQryLoginForbiddenIPField (line 9582) | struct CThostFtdcQryLoginForbiddenIPField
  type CThostFtdcQryIPListField (line 9591) | struct CThostFtdcQryIPListField
  type CThostFtdcQryUserRightsAssignField (line 9600) | struct CThostFtdcQryUserRightsAssignField
  type CThostFtdcReserveOpenAccountConfirmField (line 9609) | struct CThostFtdcReserveOpenAccountConfirmField
  type CThostFtdcReserveOpenAccountField (line 9696) | struct CThostFtdcReserveOpenAccountField
  type CThostFtdcAccountPropertyField (line 9775) | struct CThostFtdcAccountPropertyField
  type CThostFtdcQryCurrDRIdentityField (line 9808) | struct CThostFtdcQryCurrDRIdentityField
  type CThostFtdcCurrDRIdentityField (line 9815) | struct CThostFtdcCurrDRIdentityField
  type CThostFtdcQrySecAgentCheckModeField (line 9822) | struct CThostFtdcQrySecAgentCheckModeField
  type CThostFtdcQrySecAgentTradeInfoField (line 9831) | struct CThostFtdcQrySecAgentTradeInfoField
  type CThostFtdcReqUserAuthMethodField (line 9840) | struct CThostFtdcReqUserAuthMethodField
  type CThostFtdcRspUserAuthMethodField (line 9851) | struct CThostFtdcRspUserAuthMethodField
  type CThostFtdcReqGenUserCaptchaField (line 9858) | struct CThostFtdcReqGenUserCaptchaField
  type CThostFtdcRspGenUserCaptchaField (line 9869) | struct CThostFtdcRspGenUserCaptchaField
  type CThostFtdcReqGenUserTextField (line 9882) | struct CThostFtdcReqGenUserTextField
  type CThostFtdcRspGenUserTextField (line 9893) | struct CThostFtdcRspGenUserTextField
  type CThostFtdcReqUserLoginWithCaptchaField (line 9900) | struct CThostFtdcReqUserLoginWithCaptchaField
  type CThostFtdcReqUserLoginWithTextField (line 9931) | struct CThostFtdcReqUserLoginWithTextField
  type CThostFtdcReqUserLoginWithOTPField (line 9962) | struct CThostFtdcReqUserLoginWithOTPField
  type CThostFtdcReqApiHandshakeField (line 9993) | struct CThostFtdcReqApiHandshakeField
  type CThostFtdcRspApiHandshakeField (line 10000) | struct CThostFtdcRspApiHandshakeField
  type CThostFtdcReqVerifyApiKeyField (line 10011) | struct CThostFtdcReqVerifyApiKeyField
  type CThostFtdcDepartmentUserField (line 10020) | struct CThostFtdcDepartmentUserField
  type CThostFtdcQueryFreqField (line 10033) | struct CThostFtdcQueryFreqField
  type CThostFtdcAuthForbiddenIPField (line 10042) | struct CThostFtdcAuthForbiddenIPField
  type CThostFtdcQryAuthForbiddenIPField (line 10049) | struct CThostFtdcQryAuthForbiddenIPField
  type CThostFtdcSyncDelaySwapFrozenField (line 10056) | struct CThostFtdcSyncDelaySwapFrozenField
  type CThostFtdcUserSystemInfoField (line 10073) | struct CThostFtdcUserSystemInfoField
  type CThostFtdcAuthUserIDField (line 10098) | struct CThostFtdcAuthUserIDField
  type CThostFtdcAuthIPField (line 10111) | struct CThostFtdcAuthIPField
  type CThostFtdcQryClassifiedInstrumentField (line 10122) | struct CThostFtdcQryClassifiedInstrumentField
  type CThostFtdcQryCombPromotionParamField (line 10139) | struct CThostFtdcQryCombPromotionParamField
  type CThostFtdcCombPromotionParamField (line 10148) | struct CThostFtdcCombPromotionParamField
  type CThostFtdcReqUserLoginSMField (line 10161) | struct CThostFtdcReqUserLoginSMField
  type CThostFtdcQryRiskSettleInvstPositionField (line 10200) | struct CThostFtdcQryRiskSettleInvstPositionField
  type CThostFtdcQryRiskSettleProductStatusField (line 10211) | struct CThostFtdcQryRiskSettleProductStatusField
  type CThostFtdcRiskSettleInvstPositionField (line 10218) | struct CThostFtdcRiskSettleInvstPositionField
  type CThostFtdcRiskSettleProductStatusField (line 10321) | struct CThostFtdcRiskSettleProductStatusField
  type CThostFtdcSyncDeltaInfoField (line 10332) | struct CThostFtdcSyncDeltaInfoField
  type CThostFtdcSyncDeltaProductStatusField (line 10345) | struct CThostFtdcSyncDeltaProductStatusField
  type CThostFtdcSyncDeltaInvstPosDtlField (line 10358) | struct CThostFtdcSyncDeltaInvstPosDtlField
  type CThostFtdcSyncDeltaInvstPosCombDtlField (line 10423) | struct CThostFtdcSyncDeltaInvstPosCombDtlField
  type CThostFtdcSyncDeltaTradingAccountField (line 10470) | struct CThostFtdcSyncDeltaTradingAccountField
  type CThostFtdcSyncDeltaInitInvstMarginField (line 10575) | struct CThostFtdcSyncDeltaInitInvstMarginField
  type CThostFtdcSyncDeltaDceCombInstrumentField (line 10610) | struct CThostFtdcSyncDeltaDceCombInstrumentField
  type CThostFtdcSyncDeltaInvstMarginRateField (line 10637) | struct CThostFtdcSyncDeltaInvstMarginRateField
  type CThostFtdcSyncDeltaExchMarginRateField (line 10666) | struct CThostFtdcSyncDeltaExchMarginRateField
  type CThostFtdcSyncDeltaOptExchMarginField (line 10689) | struct CThostFtdcSyncDeltaOptExchMarginField
  type CThostFtdcSyncDeltaOptInvstMarginField (line 10718) | struct CThostFtdcSyncDeltaOptInvstMarginField
  type CThostFtdcSyncDeltaInvstMarginRateULField (line 10753) | struct CThostFtdcSyncDeltaInvstMarginRateULField
  type CThostFtdcSyncDeltaOptInvstCommRateField (line 10780) | struct CThostFtdcSyncDeltaOptInvstCommRateField
  type CThostFtdcSyncDeltaInvstCommRateField (line 10813) | struct CThostFtdcSyncDeltaInvstCommRateField
  type CThostFtdcSyncDeltaProductExchRateField (line 10842) | struct CThostFtdcSyncDeltaProductExchRateField
  type CThostFtdcSyncDeltaDepthMarketDataField (line 10857) | struct CThostFtdcSyncDeltaDepthMarketDataField
  type CThostFtdcSyncDeltaIndexPriceField (line 10958) | struct CThostFtdcSyncDeltaIndexPriceField
  type CThostFtdcSyncDeltaEWarrantOffsetField (line 10973) | struct CThostFtdcSyncDeltaEWarrantOffsetField
  type CThostFtdcSPBMFutureParameterField (line 10998) | struct CThostFtdcSPBMFutureParameterField
  type CThostFtdcSPBMOptionParameterField (line 11025) | struct CThostFtdcSPBMOptionParameterField
  type CThostFtdcSPBMIntraParameterField (line 11048) | struct CThostFtdcSPBMIntraParameterField
  type CThostFtdcSPBMInterParameterField (line 11063) | struct CThostFtdcSPBMInterParameterField
  type CThostFtdcSyncSPBMParameterEndField (line 11080) | struct CThostFtdcSyncSPBMParameterEndField
  type CThostFtdcQrySPBMFutureParameterField (line 11087) | struct CThostFtdcQrySPBMFutureParameterField
  type CThostFtdcQrySPBMOptionParameterField (line 11098) | struct CThostFtdcQrySPBMOptionParameterField
  type CThostFtdcQrySPBMIntraParameterField (line 11109) | struct CThostFtdcQrySPBMIntraParameterField
  type CThostFtdcQrySPBMInterParameterField (line 11118) | struct CThostFtdcQrySPBMInterParameterField
  type CThostFtdcSPBMPortfDefinitionField (line 11129) | struct CThostFtdcSPBMPortfDefinitionField
  type CThostFtdcSPBMInvestorPortfDefField (line 11142) | struct CThostFtdcSPBMInvestorPortfDefField
  type CThostFtdcInvestorPortfMarginRatioField (line 11155) | struct CThostFtdcInvestorPortfMarginRatioField
  type CThostFtdcQrySPBMPortfDefinitionField (line 11172) | struct CThostFtdcQrySPBMPortfDefinitionField
  type CThostFtdcQrySPBMInvestorPortfDefField (line 11183) | struct CThostFtdcQrySPBMInvestorPortfDefField
  type CThostFtdcQryInvestorPortfMarginRatioField (line 11194) | struct CThostFtdcQryInvestorPortfMarginRatioField
  type CThostFtdcInvestorProdSPBMDetailField (line 11207) | struct CThostFtdcInvestorProdSPBMDetailField
  type CThostFtdcQryInvestorProdSPBMDetailField (line 11254) | struct CThostFtdcQryInvestorProdSPBMDetailField
  type CThostFtdcPortfTradeParamSettingField (line 11267) | struct CThostFtdcPortfTradeParamSettingField
  type CThostFtdcInvestorTradingRightField (line 11284) | struct CThostFtdcInvestorTradingRightField
  type CThostFtdcMortgageParamField (line 11295) | struct CThostFtdcMortgageParamField
  type CThostFtdcWithDrawParamField (line 11308) | struct CThostFtdcWithDrawParamField
  type CThostFtdcThostUserFunctionField (line 11321) | struct CThostFtdcThostUserFunctionField
  type CThostFtdcQryThostUserFunctionField (line 11332) | struct CThostFtdcQryThostUserFunctionField
  type CThostFtdcSPBMAddOnInterParameterField (line 11341) | struct CThostFtdcSPBMAddOnInterParameterField
  type CThostFtdcQrySPBMAddOnInterParameterField (line 11358) | struct CThostFtdcQrySPBMAddOnInterParameterField
  type CThostFtdcQryInvestorCommoditySPMMMarginField (line 11369) | struct CThostFtdcQryInvestorCommoditySPMMMarginField
  type CThostFtdcQryInvestorCommodityGroupSPMMMarginField (line 11380) | struct CThostFtdcQryInvestorCommodityGroupSPMMMarginField
  type CThostFtdcQrySPMMInstParamField (line 11391) | struct CThostFtdcQrySPMMInstParamField
  type CThostFtdcQrySPMMProductParamField (line 11398) | struct CThostFtdcQrySPMMProductParamField
  type CThostFtdcInvestorCommoditySPMMMarginField (line 11405) | struct CThostFtdcInvestorCommoditySPMMMarginField
  type CThostFtdcInvestorCommodityGroupSPMMMarginField (line 11456) | struct CThostFtdcInvestorCommodityGroupSPMMMarginField
  type CThostFtdcSPMMInstParamField (line 11503) | struct CThostFtdcSPMMInstParamField
  type CThostFtdcSPMMProductParamField (line 11518) | struct CThostFtdcSPMMProductParamField
  type CThostFtdcQryTraderAssignField (line 11531) | struct CThostFtdcQryTraderAssignField
  type CThostFtdcTraderAssignField (line 11538) | struct CThostFtdcTraderAssignField
  type CThostFtdcInvestorInfoCntSettingField (line 11553) | struct CThostFtdcInvestorInfoCntSettingField
  type CThostFtdcRCAMSCombProductInfoField (line 11572) | struct CThostFtdcRCAMSCombProductInfoField
  type CThostFtdcRCAMSInstrParameterField (line 11587) | struct CThostFtdcRCAMSInstrParameterField
  type CThostFtdcRCAMSIntraParameterField (line 11600) | struct CThostFtdcRCAMSIntraParameterField
  type CThostFtdcRCAMSInterParameterField (line 11613) | struct CThostFtdcRCAMSInterParameterField
  type CThostFtdcRCAMSShortOptAdjustParamField (line 11632) | struct CThostFtdcRCAMSShortOptAdjustParamField
  type CThostFtdcRCAMSInvestorCombPositionField (line 11647) | struct CThostFtdcRCAMSInvestorCombPositionField
  type CThostFtdcInvestorProdRCAMSMarginField (line 11676) | struct CThostFtdcInvestorProdRCAMSMarginField
  type CThostFtdcQryRCAMSCombProductInfoField (line 11735) | struct CThostFtdcQryRCAMSCombProductInfoField
  type CThostFtdcQryRCAMSInstrParameterField (line 11746) | struct CThostFtdcQryRCAMSInstrParameterField
  type CThostFtdcQryRCAMSIntraParameterField (line 11753) | struct CThostFtdcQryRCAMSIntraParameterField
  type CThostFtdcQryRCAMSInterParameterField (line 11760) | struct CThostFtdcQryRCAMSInterParameterField
  type CThostFtdcQryRCAMSShortOptAdjustParamField (line 11771) | struct CThostFtdcQryRCAMSShortOptAdjustParamField
  type CThostFtdcQryRCAMSInvestorCombPositionField (line 11778) | struct CThostFtdcQryRCAMSInvestorCombPositionField
  type CThostFtdcQryInvestorProdRCAMSMarginField (line 11791) | struct CThostFtdcQryInvestorProdRCAMSMarginField
  type CThostFtdcRULEInstrParameterField (line 11804) | struct CThostFtdcRULEInstrParameterField
  type CThostFtdcRULEIntraParameterField (line 11833) | struct CThostFtdcRULEIntraParameterField
  type CThostFtdcRULEInterParameterField (line 11852) | struct CThostFtdcRULEInterParameterField
  type CThostFtdcQryRULEInstrParameterField (line 11877) | struct CThostFtdcQryRULEInstrParameterField
  type CThostFtdcQryRULEIntraParameterField (line 11886) | struct CThostFtdcQryRULEIntraParameterField
  type CThostFtdcQryRULEInterParameterField (line 11895) | struct CThostFtdcQryRULEInterParameterField
  type CThostFtdcInvestorProdRULEMarginField (line 11908) | struct CThostFtdcInvestorProdRULEMarginField
  type CThostFtdcQryInvestorProdRULEMarginField (line 11967) | struct CThostFtdcQryInvestorProdRULEMarginField
  type CThostFtdcSyncDeltaSPBMPortfDefinitionField (line 11982) | struct CThostFtdcSyncDeltaSPBMPortfDefinitionField
  type CThostFtdcSyncDeltaSPBMInvstPortfDefField (line 11999) | struct CThostFtdcSyncDeltaSPBMInvstPortfDefField
  type CThostFtdcSyncDeltaSPBMFutureParameterField (line 12016) | struct CThostFtdcSyncDeltaSPBMFutureParameterField
  type CThostFtdcSyncDeltaSPBMOptionParameterField (line 12047) | struct CThostFtdcSyncDeltaSPBMOptionParameterField
  type CThostFtdcSyncDeltaSPBMIntraParameterField (line 12074) | struct CThostFtdcSyncDeltaSPBMIntraParameterField
  type CThostFtdcSyncDeltaSPBMInterParameterField (line 12093) | struct CThostFtdcSyncDeltaSPBMInterParameterField
  type CThostFtdcSyncDeltaSPBMAddOnInterParamField (line 12114) | struct CThostFtdcSyncDeltaSPBMAddOnInterParamField
  type CThostFtdcSyncDeltaSPMMInstParamField (line 12135) | struct CThostFtdcSyncDeltaSPMMInstParamField
  type CThostFtdcSyncDeltaSPMMProductParamField (line 12154) | struct CThostFtdcSyncDeltaSPMMProductParamField
  type CThostFtdcSyncDeltaInvestorSPMMModelField (line 12171) | struct CThostFtdcSyncDeltaInvestorSPMMModelField
  type CThostFtdcSyncDeltaSPMMModelParamField (line 12188) | struct CThostFtdcSyncDeltaSPMMModelParamField
  type CThostFtdcSyncDeltaRCAMSCombProdInfoField (line 12211) | struct CThostFtdcSyncDeltaRCAMSCombProdInfoField
  type CThostFtdcSyncDeltaRCAMSInstrParameterField (line 12230) | struct CThostFtdcSyncDeltaRCAMSInstrParameterField
  type CThostFtdcSyncDeltaRCAMSIntraParameterField (line 12247) | struct CThostFtdcSyncDeltaRCAMSIntraParameterField
  type CThostFtdcSyncDeltaRCAMSInterParameterField (line 12264) | struct CThostFtdcSyncDeltaRCAMSInterParameterField
  type CThostFtdcSyncDeltaRCAMSSOptAdjParamField (line 12287) | struct CThostFtdcSyncDeltaRCAMSSOptAdjParamField
  type CThostFtdcSyncDeltaRCAMSCombRuleDtlField (line 12306) | struct CThostFtdcSyncDeltaRCAMSCombRuleDtlField
  type CThostFtdcSyncDeltaRCAMSInvstCombPosField (line 12339) | struct CThostFtdcSyncDeltaRCAMSInvstCombPosField
  type CThostFtdcSyncDeltaRULEInstrParameterField (line 12372) | struct CThostFtdcSyncDeltaRULEInstrParameterField
  type CThostFtdcSyncDeltaRULEIntraParameterField (line 12405) | struct CThostFtdcSyncDeltaRULEIntraParameterField
  type CThostFtdcSyncDeltaRULEInterParameterField (line 12428) | struct CThostFtdcSyncDeltaRULEInterParameterField
  type CThostFtdcIpAddrParamField (line 12457) | struct CThostFtdcIpAddrParamField
  type CThostFtdcQryIpAddrParamField (line 12488) | struct CThostFtdcQryIpAddrParamField
  type CThostFtdcTGIpAddrParamField (line 12495) | struct CThostFtdcTGIpAddrParamField
  type CThostFtdcQryTGIpAddrParamField (line 12528) | struct CThostFtdcQryTGIpAddrParamField
  type CThostFtdcTGSessionQryStatusField (line 12539) | struct CThostFtdcTGSessionQryStatusField
  type CThostFtdcLocalAddrConfigField (line 12548) | struct CThostFtdcLocalAddrConfigField
  type CThostFtdcQryLocalAddrConfigField (line 12563) | struct CThostFtdcQryLocalAddrConfigField
  type CThostFtdcReqQueryBankAccountBySecField (line 12570) | struct CThostFtdcReqQueryBankAccountBySecField
  type CThostFtdcRspQueryBankAccountBySecField (line 12653) | struct CThostFtdcRspQueryBankAccountBySecField
  type CThostFtdcReqTransferBySecField (line 12740) | struct CThostFtdcReqTransferBySecField
  type CThostFtdcRspTransferBySecField (line 12837) | struct CThostFtdcRspTransferBySecField
  type CThostFtdcNotifyQueryFutureAccountBySecField (line 12938) | struct CThostFtdcNotifyQueryFutureAccountBySecField
  type CThostFtdcExitEmergencyField (line 13029) | struct CThostFtdcExitEmergencyField
  type CThostFtdcInvestorPortfMarginModelField (line 13036) | struct CThostFtdcInvestorPortfMarginModelField
  type CThostFtdcInvestorPortfSettingField (line 13047) | struct CThostFtdcInvestorPortfSettingField
  type CThostFtdcQryInvestorPortfSettingField (line 13062) | struct CThostFtdcQryInvestorPortfSettingField
  type CThostFtdcUserPasswordUpdateFromSecField (line 13073) | struct CThostFtdcUserPasswordUpdateFromSecField
  type CThostFtdcSettlementInfoConfirmFromSecField (line 13088) | struct CThostFtdcSettlementInfoConfirmFromSecField
  type CThostFtdcTradingAccountPasswordUpdateFromSecField (line 13103) | struct CThostFtdcTradingAccountPasswordUpdateFromSecField
  type CThostFtdcRiskForbiddenRightField (line 13120) | struct CThostFtdcRiskForbiddenRightField
  type CThostFtdcInvestorInfoCommRecField (line 13133) | struct CThostFtdcInvestorInfoCommRecField
  type CThostFtdcQryInvestorInfoCommRecField (line 13160) | struct CThostFtdcQryInvestorInfoCommRecField
  type CThostFtdcCombLegField (line 13171) | struct CThostFtdcCombLegField
  type CThostFtdcQryCombLegField (line 13188) | struct CThostFtdcQryCombLegField
  type CThostFtdcInputOffsetSettingField (line 13195) | struct CThostFtdcInputOffsetSettingField
  type CThostFtdcOffsetSettingField (line 13226) | struct CThostFtdcOffsetSettingField
  type CThostFtdcCancelOffsetSettingField (line 13299) | struct CThostFtdcCancelOffsetSettingField
  type CThostFtdcQryOffsetSettingField (line 13354) | struct CThostFtdcQryOffsetSettingField
  type CThostFtdcAddrAppIDRelationField (line 13367) | struct CThostFtdcAddrAppIDRelationField
  type CThostFtdcQryAddrAppIDRelationField (line 13380) | struct CThostFtdcQryAddrAppIDRelationField
  type CThostFtdcWechatUserSystemInfoField (line 13387) | struct CThostFtdcWechatUserSystemInfoField
  type CThostFtdcInvestorReserveInfoField (line 13410) | struct CThostFtdcInvestorReserveInfoField
  type CThostFtdcQryInvestorDepartmentFlatField (line 13421) | struct CThostFtdcQryInvestorDepartmentFlatField
  type CThostFtdcInvestorDepartmentFlatField (line 13428) | struct CThostFtdcInvestorDepartmentFlatField
  type CThostFtdcQryDepartmentUserField (line 13439) | struct CThostFtdcQryDepartmentUserField
  type CThostFtdcFrontInfoField (line 13447) | struct CThostFtdcFrontInfoField

FILE: native/ctp_bridge/api/win/ThostFtdcMdApi.h
  function class (line 29) | class CThostFtdcMdSpi
  function class (line 80) | class MD_API_EXPORT CThostFtdcMdApi

FILE: native/ctp_bridge/api/win/ThostFtdcTraderApi.h
  function class (line 29) | class CThostFtdcTraderSpi
  function class (line 533) | class TRADER_API_EXPORT CThostFtdcTraderApi

FILE: native/ctp_bridge/api/win/ThostFtdcUserApiDataType.h
  type THOST_TE_RESUME_TYPE (line 13) | enum THOST_TE_RESUME_TYPE
  type TThostFtdcExchangePropertyType (line 149) | typedef char TThostFtdcExchangePropertyType;
  type TThostFtdcIPPortType (line 204) | typedef int TThostFtdcIPPortType;
  type TThostFtdcIdCardTypeType (line 285) | typedef char TThostFtdcIdCardTypeType;
  type TThostFtdcInvestorRangeType (line 337) | typedef char TThostFtdcInvestorRangeType;
  type TThostFtdcDepartmentRangeType (line 349) | typedef char TThostFtdcDepartmentRangeType;
  type TThostFtdcDataSyncStatusType (line 361) | typedef char TThostFtdcDataSyncStatusType;
  type TThostFtdcBrokerDataSyncStatusType (line 371) | typedef char TThostFtdcBrokerDataSyncStatusType;
  type TThostFtdcExchangeConnectStatusType (line 383) | typedef char TThostFtdcExchangeConnectStatusType;
  type TThostFtdcTraderConnectStatusType (line 397) | typedef char TThostFtdcTraderConnectStatusType;
  type TThostFtdcFunctionCodeType (line 435) | typedef char TThostFtdcFunctionCodeType;
  type TThostFtdcBrokerFunctionCodeType (line 551) | typedef char TThostFtdcBrokerFunctionCodeType;
  type TThostFtdcOrderActionStatusType (line 563) | typedef char TThostFtdcOrderActionStatusType;
  type TThostFtdcOrderStatusType (line 587) | typedef char TThostFtdcOrderStatusType;
  type TThostFtdcOrderSubmitStatusType (line 607) | typedef char TThostFtdcOrderSubmitStatusType;
  type TThostFtdcPositionDateType (line 617) | typedef char TThostFtdcPositionDateType;
  type TThostFtdcPositionDateTypeType (line 627) | typedef char TThostFtdcPositionDateTypeType;
  type TThostFtdcTradingRoleType (line 639) | typedef char TThostFtdcTradingRoleType;
  type TThostFtdcProductClassType (line 661) | typedef char TThostFtdcProductClassType;
  type TThostFtdcAPIProductClassType (line 683) | typedef char TThostFtdcAPIProductClassType;
  type TThostFtdcInstLifePhaseType (line 697) | typedef char TThostFtdcInstLifePhaseType;
  type TThostFtdcDirectionType (line 707) | typedef char TThostFtdcDirectionType;
  type TThostFtdcPositionTypeType (line 717) | typedef char TThostFtdcPositionTypeType;
  type TThostFtdcPosiDirectionType (line 729) | typedef char TThostFtdcPosiDirectionType;
  type TThostFtdcSysSettlementStatusType (line 745) | typedef char TThostFtdcSysSettlementStatusType;
  type TThostFtdcRatioAttrType (line 755) | typedef char TThostFtdcRatioAttrType;
  type TThostFtdcHedgeFlagType (line 773) | typedef char TThostFtdcHedgeFlagType;
  type TThostFtdcBillHedgeFlagType (line 785) | typedef char TThostFtdcBillHedgeFlagType;
  type TThostFtdcClientIDTypeType (line 799) | typedef char TThostFtdcClientIDTypeType;
  type TThostFtdcOrderPriceTypeType (line 837) | typedef char TThostFtdcOrderPriceTypeType;
  type TThostFtdcOffsetFlagType (line 857) | typedef char TThostFtdcOffsetFlagType;
  type TThostFtdcForceCloseReasonType (line 887) | typedef char TThostFtdcForceCloseReasonType;
  type TThostFtdcOrderTypeType (line 909) | typedef char TThostFtdcOrderTypeType;
  type TThostFtdcTimeConditionType (line 927) | typedef char TThostFtdcTimeConditionType;
  type TThostFtdcVolumeConditionType (line 939) | typedef char TThostFtdcVolumeConditionType;
  type TThostFtdcContingentConditionType (line 977) | typedef char TThostFtdcContingentConditionType;
  type TThostFtdcActionFlagType (line 987) | typedef char TThostFtdcActionFlagType;
  type TThostFtdcTradingRightType (line 999) | typedef char TThostFtdcTradingRightType;
  type TThostFtdcOrderSourceType (line 1009) | typedef char TThostFtdcOrderSourceType;
  type TThostFtdcTradeTypeType (line 1029) | typedef char TThostFtdcTradeTypeType;
  type TThostFtdcSpecPosiTypeType (line 1039) | typedef char TThostFtdcSpecPosiTypeType;
  type TThostFtdcPriceSourceType (line 1053) | typedef char TThostFtdcPriceSourceType;
  type TThostFtdcInstrumentStatusType (line 1075) | typedef char TThostFtdcInstrumentStatusType;
  type TThostFtdcInstStatusEnterReasonType (line 1087) | typedef char TThostFtdcInstStatusEnterReasonType;
  type TThostFtdcOrderActionRefType (line 1092) | typedef int TThostFtdcOrderActionRefType;
  type TThostFtdcInstallCountType (line 1097) | typedef int TThostFtdcInstallCountType;
  type TThostFtdcInstallIDType (line 1102) | typedef int TThostFtdcInstallIDType;
  type TThostFtdcErrorIDType (line 1107) | typedef int TThostFtdcErrorIDType;
  type TThostFtdcSettlementIDType (line 1112) | typedef int TThostFtdcSettlementIDType;
  type TThostFtdcVolumeType (line 1117) | typedef int TThostFtdcVolumeType;
  type TThostFtdcFrontIDType (line 1122) | typedef int TThostFtdcFrontIDType;
  type TThostFtdcSessionIDType (line 1127) | typedef int TThostFtdcSessionIDType;
  type TThostFtdcSequenceNoType (line 1132) | typedef int TThostFtdcSequenceNoType;
  type TThostFtdcCommandNoType (line 1137) | typedef int TThostFtdcCommandNoType;
  type TThostFtdcMillisecType (line 1142) | typedef int TThostFtdcMillisecType;
  type TThostFtdcSecType (line 1147) | typedef int TThostFtdcSecType;
  type TThostFtdcVolumeMultipleType (line 1152) | typedef int TThostFtdcVolumeMultipleType;
  type TThostFtdcTradingSegmentSNType (line 1157) | typedef int TThostFtdcTradingSegmentSNType;
  type TThostFtdcRequestIDType (line 1162) | typedef int TThostFtdcRequestIDType;
  type TThostFtdcYearType (line 1167) | typedef int TThostFtdcYearType;
  type TThostFtdcMonthType (line 1172) | typedef int TThostFtdcMonthType;
  type TThostFtdcBoolType (line 1177) | typedef int TThostFtdcBoolType;
  type TThostFtdcPriceType (line 1182) | typedef double TThostFtdcPriceType;
  type TThostFtdcRatioType (line 1197) | typedef double TThostFtdcRatioType;
  type TThostFtdcMoneyType (line 1202) | typedef double TThostFtdcMoneyType;
  type TThostFtdcLargeVolumeType (line 1207) | typedef double TThostFtdcLargeVolumeType;
  type TThostFtdcSequenceSeriesType (line 1212) | typedef short TThostFtdcSequenceSeriesType;
  type TThostFtdcCommPhaseNoType (line 1217) | typedef short TThostFtdcCommPhaseNoType;
  type TThostFtdcUnderlyingMultipleType (line 1227) | typedef double TThostFtdcUnderlyingMultipleType;
  type TThostFtdcPriorityType (line 1232) | typedef int TThostFtdcPriorityType;
  type TThostFtdcBatchStatusType (line 1314) | typedef char TThostFtdcBatchStatusType;
  type TThostFtdcReturnStyleType (line 1359) | typedef char TThostFtdcReturnStyleType;
  type TThostFtdcReturnPatternType (line 1369) | typedef char TThostFtdcReturnPatternType;
  type TThostFtdcReturnLevelType (line 1393) | typedef char TThostFtdcReturnLevelType;
  type TThostFtdcReturnStandardType (line 1403) | typedef char TThostFtdcReturnStandardType;
  type TThostFtdcMortgageTypeType (line 1413) | typedef char TThostFtdcMortgageTypeType;
  type TThostFtdcInvestorSettlementParamIDType (line 1425) | typedef char TThostFtdcInvestorSettlementParamIDType;
  type TThostFtdcExchangeSettlementParamIDType (line 1453) | typedef char TThostFtdcExchangeSettlementParamIDType;
  type TThostFtdcSystemParamIDType (line 1505) | typedef char TThostFtdcSystemParamIDType;
  type TThostFtdcTradeParamIDType (line 1563) | typedef char TThostFtdcTradeParamIDType;
  type TThostFtdcSubEntryFundNoType (line 1623) | typedef int TThostFtdcSubEntryFundNoType;
  type TThostFtdcFileIDType (line 1653) | typedef char TThostFtdcFileIDType;
  type TThostFtdcFileTypeType (line 1668) | typedef char TThostFtdcFileTypeType;
  type TThostFtdcFileFormatType (line 1680) | typedef char TThostFtdcFileFormatType;
  type TThostFtdcFileUploadStatusType (line 1696) | typedef char TThostFtdcFileUploadStatusType;
  type TThostFtdcTransferDirectionType (line 1706) | typedef char TThostFtdcTransferDirectionType;
  type TThostFtdcMonthCountType (line 1756) | typedef int TThostFtdcMonthCountType;
  type TThostFtdcSpecialCreateRuleType (line 1786) | typedef char TThostFtdcSpecialCreateRuleType;
  type TThostFtdcBasisPriceTypeType (line 1796) | typedef char TThostFtdcBasisPriceTypeType;
  type TThostFtdcProductLifePhaseType (line 1808) | typedef char TThostFtdcProductLifePhaseType;
  type TThostFtdcDeliveryModeType (line 1818) | typedef char TThostFtdcDeliveryModeType;
  type TThostFtdcFundIOTypeType (line 1845) | typedef char TThostFtdcFundIOTypeType;
  type TThostFtdcFundTypeType (line 1859) | typedef char TThostFtdcFundTypeType;
  type TThostFtdcFundDirectionType (line 1869) | typedef char TThostFtdcFundDirectionType;
  type TThostFtdcFundStatusType (line 1881) | typedef char TThostFtdcFundStatusType;
  type TThostFtdcPublishStatusType (line 1903) | typedef char TThostFtdcPublishStatusType;
  type TThostFtdcSystemStatusType (line 1943) | typedef char TThostFtdcSystemStatusType;
  type TThostFtdcSettlementStatusType (line 1957) | typedef char TThostFtdcSettlementStatusType;
  type TThostFtdcInvestorTypeType (line 2028) | typedef char TThostFtdcInvestorTypeType;
  type TThostFtdcBrokerTypeType (line 2038) | typedef char TThostFtdcBrokerTypeType;
  type TThostFtdcRiskLevelType (line 2052) | typedef char TThostFtdcRiskLevelType;
  type TThostFtdcFeeAcceptStyleType (line 2066) | typedef char TThostFtdcFeeAcceptStyleType;
  type TThostFtdcPasswordTypeType (line 2076) | typedef char TThostFtdcPasswordTypeType;
  type TThostFtdcAlgorithmType (line 2090) | typedef char TThostFtdcAlgorithmType;
  type TThostFtdcIncludeCloseProfitType (line 2100) | typedef char TThostFtdcIncludeCloseProfitType;
  type TThostFtdcAllWithoutTradeType (line 2112) | typedef char TThostFtdcAllWithoutTradeType;
  type TThostFtdcTradeSerialNoType (line 2147) | typedef int TThostFtdcTradeSerialNoType;
  type TThostFtdcFuturePwdFlagType (line 2197) | typedef char TThostFtdcFuturePwdFlagType;
  type TThostFtdcTransferTypeType (line 2207) | typedef char TThostFtdcTransferTypeType;
  type TThostFtdcTransferValidFlagType (line 2254) | typedef char TThostFtdcTransferValidFlagType;
  type TThostFtdcReasonType (line 2271) | typedef char TThostFtdcReasonType;
  type TThostFtdcSexType (line 2288) | typedef char TThostFtdcSexType;
  type TThostFtdcUserTypeType (line 2345) | typedef char TThostFtdcUserTypeType;
  type TThostFtdcRateTypeType (line 2358) | typedef char TThostFtdcRateTypeType;
  type TThostFtdcNoteTypeType (line 2376) | typedef char TThostFtdcNoteTypeType;
  type TThostFtdcSettlementStyleType (line 2386) | typedef char TThostFtdcSettlementStyleType;
  type TThostFtdcSettlementBillTypeType (line 2406) | typedef char TThostFtdcSettlementBillTypeType;
  type TThostFtdcUserRightTypeType (line 2422) | typedef char TThostFtdcUserRightTypeType;
  type TThostFtdcMarginPriceTypeType (line 2436) | typedef char TThostFtdcMarginPriceTypeType;
  type TThostFtdcBillGenStatusType (line 2448) | typedef char TThostFtdcBillGenStatusType;
  type TThostFtdcAlgoTypeType (line 2458) | typedef char TThostFtdcAlgoTypeType;
  type TThostFtdcHandlePositionAlgoIDType (line 2470) | typedef char TThostFtdcHandlePositionAlgoIDType;
  type TThostFtdcFindMarginRateAlgoIDType (line 2482) | typedef char TThostFtdcFindMarginRateAlgoIDType;
  type TThostFtdcHandleTradingAccountAlgoIDType (line 2494) | typedef char TThostFtdcHandleTradingAccountAlgoIDType;
  type TThostFtdcPersonTypeType (line 2528) | typedef char TThostFtdcPersonTypeType;
  type TThostFtdcQueryInvestorRangeType (line 2540) | typedef char TThostFtdcQueryInvestorRangeType;
  type TThostFtdcInvestorRiskStatusType (line 2556) | typedef char TThostFtdcInvestorRiskStatusType;
  type TThostFtdcLegIDType (line 2561) | typedef int TThostFtdcLegIDType;
  type TThostFtdcLegMultipleType (line 2566) | typedef int TThostFtdcLegMultipleType;
  type TThostFtdcImplyLevelType (line 2571) | typedef int TThostFtdcImplyLevelType;
  type TThostFtdcUserEventTypeType (line 2612) | typedef char TThostFtdcUserEventTypeType;
  type TThostFtdcCloseStyleType (line 2627) | typedef char TThostFtdcCloseStyleType;
  type TThostFtdcStatModeType (line 2641) | typedef char TThostFtdcStatModeType;
  type TThostFtdcParkedOrderStatusType (line 2653) | typedef char TThostFtdcParkedOrderStatusType;
  type TThostFtdcVirDealStatusType (line 2673) | typedef char TThostFtdcVirDealStatusType;
  type TThostFtdcOrgSystemIDType (line 2685) | typedef char TThostFtdcOrgSystemIDType;
  type TThostFtdcVirTradeStatusType (line 2705) | typedef char TThostFtdcVirTradeStatusType;
  type TThostFtdcVirBankAccTypeType (line 2717) | typedef char TThostFtdcVirBankAccTypeType;
  type TThostFtdcVirementStatusType (line 2727) | typedef char TThostFtdcVirementStatusType;
  type TThostFtdcVirementAvailAbilityType (line 2739) | typedef char TThostFtdcVirementAvailAbilityType;
  type TThostFtdcVirementTradeCodeType (line 2753) | typedef char TThostFtdcVirementTradeCodeType;
  type TThostFtdcTopicIDType (line 2773) | typedef int TThostFtdcTopicIDType;
  type TThostFtdcAMLOpParamValueType (line 2813) | typedef double TThostFtdcAMLOpParamValueType;
  type TThostFtdcAMLGenStatusType (line 2898) | typedef char TThostFtdcAMLGenStatusType;
  type TThostFtdcAMLMoneyType (line 2913) | typedef double TThostFtdcAMLMoneyType;
  type TThostFtdcAMLFileAmountType (line 2918) | typedef int TThostFtdcAMLFileAmountType;
  type TThostFtdcCFMMCKeyKindType (line 2940) | typedef char TThostFtdcCFMMCKeyKindType;
  type TThostFtdcSerialType (line 3150) | typedef int TThostFtdcSerialType;
  type TThostFtdcPlateSerialType (line 3155) | typedef int TThostFtdcPlateSerialType;
  type TThostFtdcCorrectSerialType (line 3165) | typedef int TThostFtdcCorrectSerialType;
  type TThostFtdcFutureSerialType (line 3170) | typedef int TThostFtdcFutureSerialType;
  type TThostFtdcApplicationIDType (line 3175) | typedef int TThostFtdcApplicationIDType;
  type TThostFtdcBankProxyIDType (line 3180) | typedef int TThostFtdcBankProxyIDType;
  type TThostFtdcFBTCoreIDType (line 3185) | typedef int TThostFtdcFBTCoreIDType;
  type TThostFtdcServerPortType (line 3190) | typedef int TThostFtdcServerPortType;
  type TThostFtdcRepealedTimesType (line 3195) | typedef int TThostFtdcRepealedTimesType;
  type TThostFtdcRepealTimeIntervalType (line 3200) | typedef int TThostFtdcRepealTimeIntervalType;
  type TThostFtdcTotalTimesType (line 3205) | typedef int TThostFtdcTotalTimesType;
  type TThostFtdcFBTRequestIDType (line 3210) | typedef int TThostFtdcFBTRequestIDType;
  type TThostFtdcTIDType (line 3215) | typedef int TThostFtdcTIDType;
  type TThostFtdcTradeAmountType (line 3220) | typedef double TThostFtdcTradeAmountType;
  type TThostFtdcCustFeeType (line 3225) | typedef double TThostFtdcCustFeeType;
  type TThostFtdcFutureFeeType (line 3230) | typedef double TThostFtdcFutureFeeType;
  type TThostFtdcSingleMaxAmtType (line 3235) | typedef double TThostFtdcSingleMaxAmtType;
  type TThostFtdcSingleMinAmtType (line 3240) | typedef double TThostFtdcSingleMinAmtType;
  type TThostFtdcTotalAmtType (line 3245) | typedef double TThostFtdcTotalAmtType;
  type TThostFtdcCertificationTypeType (line 3275) | typedef char TThostFtdcCertificationTypeType;
  type TThostFtdcFileBusinessCodeType (line 3313) | typedef char TThostFtdcFileBusinessCodeType;
  type TThostFtdcCashExchangeCodeType (line 3323) | typedef char TThostFtdcCashExchangeCodeType;
  type TThostFtdcYesNoIndicatorType (line 3333) | typedef char TThostFtdcYesNoIndicatorType;
  type TThostFtdcBanlanceTypeType (line 3347) | typedef char TThostFtdcBanlanceTypeType;
  type TThostFtdcGenderType (line 3359) | typedef char TThostFtdcGenderType;
  type TThostFtdcFeePayFlagType (line 3371) | typedef char TThostFtdcFeePayFlagType;
  type TThostFtdcPassWordKeyTypeType (line 3385) | typedef char TThostFtdcPassWordKeyTypeType;
  type TThostFtdcFBTPassWordTypeType (line 3399) | typedef char TThostFtdcFBTPassWordTypeType;
  type TThostFtdcFBTEncryModeType (line 3411) | typedef char TThostFtdcFBTEncryModeType;
  type TThostFtdcBankRepealFlagType (line 3423) | typedef char TThostFtdcBankRepealFlagType;
  type TThostFtdcBrokerRepealFlagType (line 3435) | typedef char TThostFtdcBrokerRepealFlagType;
  type TThostFtdcInstitutionTypeType (line 3447) | typedef char TThostFtdcInstitutionTypeType;
  type TThostFtdcLastFragmentType (line 3457) | typedef char TThostFtdcLastFragmentType;
  type TThostFtdcBankAccStatusType (line 3469) | typedef char TThostFtdcBankAccStatusType;
  type TThostFtdcMoneyAccountStatusType (line 3479) | typedef char TThostFtdcMoneyAccountStatusType;
  type TThostFtdcManageStatusType (line 3491) | typedef char TThostFtdcManageStatusType;
  type TThostFtdcSystemTypeType (line 3503) | typedef char TThostFtdcSystemTypeType;
  type TThostFtdcTxnEndFlagType (line 3523) | typedef char TThostFtdcTxnEndFlagType;
  type TThostFtdcProcessStatusType (line 3535) | typedef char TThostFtdcProcessStatusType;
  type TThostFtdcCustTypeType (line 3545) | typedef char TThostFtdcCustTypeType;
  type TThostFtdcFBTTransferDirectionType (line 3555) | typedef char TThostFtdcFBTTransferDirectionType;
  type TThostFtdcOpenOrDestroyType (line 3565) | typedef char TThostFtdcOpenOrDestroyType;
  type TThostFtdcAvailabilityFlagType (line 3577) | typedef char TThostFtdcAvailabilityFlagType;
  type TThostFtdcOrganTypeType (line 3589) | typedef char TThostFtdcOrganTypeType;
  type TThostFtdcOrganLevelType (line 3599) | typedef char TThostFtdcOrganLevelType;
  type TThostFtdcProtocalIDType (line 3619) | typedef char TThostFtdcProtocalIDType;
  type TThostFtdcConnectModeType (line 3629) | typedef char TThostFtdcConnectModeType;
  type TThostFtdcSyncModeType (line 3639) | typedef char TThostFtdcSyncModeType;
  type TThostFtdcBankAccTypeType (line 3651) | typedef char TThostFtdcBankAccTypeType;
  type TThostFtdcFutureAccTypeType (line 3663) | typedef char TThostFtdcFutureAccTypeType;
  type TThostFtdcOrganStatusType (line 3683) | typedef char TThostFtdcOrganStatusType;
  type TThostFtdcCCBFeeModeType (line 3693) | typedef char TThostFtdcCCBFeeModeType;
  type TThostFtdcCommApiTypeType (line 3705) | typedef char TThostFtdcCommApiTypeType;
  type TThostFtdcServiceIDType (line 3710) | typedef int TThostFtdcServiceIDType;
  type TThostFtdcServiceLineNoType (line 3715) | typedef int TThostFtdcServiceLineNoType;
  type TThostFtdcLinkStatusType (line 3730) | typedef char TThostFtdcLinkStatusType;
  type TThostFtdcCommApiPointerType (line 3735) | typedef int TThostFtdcCommApiPointerType;
  type TThostFtdcPwdFlagType (line 3747) | typedef char TThostFtdcPwdFlagType;
  type TThostFtdcSecuAccTypeType (line 3761) | typedef char TThostFtdcSecuAccTypeType;
  type TThostFtdcTransferStatusType (line 3771) | typedef char TThostFtdcTransferStatusType;
  type TThostFtdcSponsorTypeType (line 3781) | typedef char TThostFtdcSponsorTypeType;
  type TThostFtdcReqRspTypeType (line 3791) | typedef char TThostFtdcReqRspTypeType;
  type TThostFtdcFBTUserEventTypeType (line 3829) | typedef char TThostFtdcFBTUserEventTypeType;
  type TThostFtdcDBOPSeqNoType (line 3849) | typedef int TThostFtdcDBOPSeqNoType;
  type TThostFtdcDBOperationType (line 3876) | typedef char TThostFtdcDBOperationType;
  type TThostFtdcSyncFlagType (line 3886) | typedef char TThostFtdcSyncFlagType;
  type TThostFtdcSyncTypeType (line 3903) | typedef char TThostFtdcSyncTypeType;
  type TThostFtdcExDirectionType (line 3928) | typedef char TThostFtdcExDirectionType;
  type TThostFtdcFBEAmtType (line 3943) | typedef double TThostFtdcFBEAmtType;
  type TThostFtdcExRateType (line 3963) | typedef double TThostFtdcExRateType;
  type TThostFtdcFBEResultFlagType (line 3977) | typedef char TThostFtdcFBEResultFlagType;
  type TThostFtdcFBETotalExCntType (line 4002) | typedef int TThostFtdcFBETotalExCntType;
  type TThostFtdcFBEExchStatusType (line 4012) | typedef char TThostFtdcFBEExchStatusType;
  type TThostFtdcFBEFileFlagType (line 4022) | typedef char TThostFtdcFBEFileFlagType;
  type TThostFtdcFBEAlreadyTradeType (line 4032) | typedef char TThostFtdcFBEAlreadyTradeType;
  type TThostFtdcFBEUserEventTypeType (line 4063) | typedef char TThostFtdcFBEUserEventTypeType;
  type TThostFtdcFBEReqFlagType (line 4089) | typedef char TThostFtdcFBEReqFlagType;
  type TThostFtdcNotifyClassType (line 4107) | typedef char TThostFtdcNotifyClassType;
  type TThostFtdcForceCloseTypeType (line 4129) | typedef char TThostFtdcForceCloseTypeType;
  type TThostFtdcRiskNotifyMethodType (line 4148) | typedef char TThostFtdcRiskNotifyMethodType;
  type TThostFtdcRiskNotifyStatusType (line 4166) | typedef char TThostFtdcRiskNotifyStatusType;
  type TThostFtdcRiskUserEventType (line 4174) | typedef char TThostFtdcRiskUserEventType;
  type TThostFtdcParamIDType (line 4179) | typedef int TThostFtdcParamIDType;
  type TThostFtdcConditionalOrderSortTypeType (line 4207) | typedef char TThostFtdcConditionalOrderSortTypeType;
  type TThostFtdcSendTypeType (line 4227) | typedef char TThostFtdcSendTypeType;
  type TThostFtdcClientIDStatusType (line 4245) | typedef char TThostFtdcClientIDStatusType;
  type TThostFtdcQuestionTypeType (line 4282) | typedef char TThostFtdcQuestionTypeType;
  type TThostFtdcSeqNoType (line 4292) | typedef int TThostFtdcSeqNoType;
  type TThostFtdcBusinessTypeType (line 4314) | typedef char TThostFtdcBusinessTypeType;
  type TThostFtdcCfmmcReturnCodeType (line 4330) | typedef char TThostFtdcCfmmcReturnCodeType;
  type TThostFtdcExReturnCodeType (line 4335) | typedef int TThostFtdcExReturnCodeType;
  type TThostFtdcClientTypeType (line 4353) | typedef char TThostFtdcClientTypeType;
  type TThostFtdcExchangeIDTypeType (line 4369) | typedef char TThostFtdcExchangeIDTypeType;
  type TThostFtdcExClientIDTypeType (line 4381) | typedef char TThostFtdcExClientIDTypeType;
  type TThostFtdcUpdateFlagType (line 4439) | typedef char TThostFtdcUpdateFlagType;
  type TThostFtdcApplyOperateIDType (line 4461) | typedef char TThostFtdcApplyOperateIDType;
  type TThostFtdcApplyStatusIDType (line 4477) | typedef char TThostFtdcApplyStatusIDType;
  type TThostFtdcSendMethodType (line 4487) | typedef char TThostFtdcSendMethodType;
  type TThostFtdcEventModeType (line 4512) | typedef char TThostFtdcEventModeType;
  type TThostFtdcUOAAutoSendType (line 4526) | typedef char TThostFtdcUOAAutoSendType;
  type TThostFtdcQueryDepthType (line 4531) | typedef int TThostFtdcQueryDepthType;
  type TThostFtdcDataCenterIDType (line 4536) | typedef int TThostFtdcDataCenterIDType;
  type TThostFtdcFlowIDType (line 4548) | typedef char TThostFtdcFlowIDType;
  type TThostFtdcCheckLevelType (line 4560) | typedef char TThostFtdcCheckLevelType;
  type TThostFtdcCheckNoType (line 4565) | typedef int TThostFtdcCheckNoType;
  type TThostFtdcCheckStatusType (line 4581) | typedef char TThostFtdcCheckStatusType;
  type TThostFtdcUsedStatusType (line 4593) | typedef char TThostFtdcUsedStatusType;
  type TThostFtdcBankAcountOriginType (line 4613) | typedef char TThostFtdcBankAcountOriginType;
  type TThostFtdcMonthBillTradeSumType (line 4625) | typedef char TThostFtdcMonthBillTradeSumType;
  type TThostFtdcFBTTradeCodeEnumType (line 4639) | typedef char TThostFtdcFBTTradeCodeEnumType;
  type TThostFtdcTimestampType (line 4654) | typedef int TThostFtdcTimestampType;
  type TThostFtdcLastDriftType (line 4669) | typedef int TThostFtdcLastDriftType;
  type TThostFtdcLastSuccessType (line 4674) | typedef int TThostFtdcLastSuccessType;
  type TThostFtdcOTPTypeType (line 4694) | typedef char TThostFtdcOTPTypeType;
  type TThostFtdcOTPStatusType (line 4716) | typedef char TThostFtdcOTPStatusType;
  type TThostFtdcBrokerUserTypeType (line 4726) | typedef char TThostFtdcBrokerUserTypeType;
  type TThostFtdcFutureTypeType (line 4736) | typedef char TThostFtdcFutureTypeType;
  type TThostFtdcFundEventTypeType (line 4760) | typedef char TThostFtdcFundEventTypeType;
  type TThostFtdcAccountSourceTypeType (line 4770) | typedef char TThostFtdcAccountSourceTypeType;
  type TThostFtdcCodeSourceTypeType (line 4780) | typedef char TThostFtdcCodeSourceTypeType;
  type TThostFtdcUserRangeType (line 4790) | typedef char TThostFtdcUserRangeType;
  type TThostFtdcByGroupType (line 4810) | typedef char TThostFtdcByGroupType;
  type TThostFtdcTradeSumStatModeType (line 4822) | typedef char TThostFtdcTradeSumStatModeType;
  type TThostFtdcComTypeType (line 4827) | typedef int TThostFtdcComTypeType;
  type TThostFtdcCSRCMoneyType (line 4932) | typedef double TThostFtdcCSRCMoneyType;
  type TThostFtdcCSRCPriceType (line 4937) | typedef double TThostFtdcCSRCPriceType;
  type TThostFtdcCSRCStrikePriceType (line 4947) | typedef double TThostFtdcCSRCStrikePriceType;
  type TThostFtdcExprSetModeType (line 4977) | typedef char TThostFtdcExprSetModeType;
  type TThostFtdcRateInvestorRangeType (line 4989) | typedef char TThostFtdcRateInvestorRangeType;
  type TThostFtdcDRIdentityIDType (line 4999) | typedef int TThostFtdcDRIdentityIDType;
  type TThostFtdcSyncDataStatusType (line 5021) | typedef char TThostFtdcSyncDataStatusType;
  type TThostFtdcTradeSourceType (line 5031) | typedef char TThostFtdcTradeSourceType;
  type TThostFtdcFlexStatModeType (line 5043) | typedef char TThostFtdcFlexStatModeType;
  type TThostFtdcByInvestorRangeType (line 5053) | typedef char TThostFtdcByInvestorRangeType;
  type TThostFtdcSequenceNo12Type (line 5063) | typedef int TThostFtdcSequenceNo12Type;
  type TThostFtdcPropertyInvestorRangeType (line 5075) | typedef char TThostFtdcPropertyInvestorRangeType;
  type TThostFtdcFileStatusType (line 5087) | typedef char TThostFtdcFileStatusType;
  type TThostFtdcFileGenStyleType (line 5097) | typedef char TThostFtdcFileGenStyleType;
  type TThostFtdcSysOperModeType (line 5117) | typedef char TThostFtdcSysOperModeType;
  type TThostFtdcSysOperTypeType (line 5155) | typedef char TThostFtdcSysOperTypeType;
  type TThostFtdcCSRCDataQueyTypeType (line 5165) | typedef char TThostFtdcCSRCDataQueyTypeType;
  type TThostFtdcFreezeStatusType (line 5175) | typedef char TThostFtdcFreezeStatusType;
  type TThostFtdcStandardStatusType (line 5185) | typedef char TThostFtdcStandardStatusType;
  type TThostFtdcRightParamTypeType (line 5204) | typedef char TThostFtdcRightParamTypeType;
  type TThostFtdcDataStatusType (line 5224) | typedef char TThostFtdcDataStatusType;
  type TThostFtdcAMLCheckStatusType (line 5238) | typedef char TThostFtdcAMLCheckStatusType;
  type TThostFtdcAmlDateTypeType (line 5248) | typedef char TThostFtdcAmlDateTypeType;
  type TThostFtdcAmlCheckLevelType (line 5262) | typedef char TThostFtdcAmlCheckLevelType;
  type TThostFtdcExportFileTypeType (line 5284) | typedef char TThostFtdcExportFileTypeType;
  type TThostFtdcSettleManagerTypeType (line 5298) | typedef char TThostFtdcSettleManagerTypeType;
  type TThostFtdcSettleManagerLevelType (line 5322) | typedef char TThostFtdcSettleManagerLevelType;
  type TThostFtdcSettleManagerGroupType (line 5334) | typedef char TThostFtdcSettleManagerGroupType;
  type TThostFtdcLimitUseTypeType (line 5364) | typedef char TThostFtdcLimitUseTypeType;
  type TThostFtdcDataResourceType (line 5376) | typedef char TThostFtdcDataResourceType;
  type TThostFtdcMarginTypeType (line 5388) | typedef char TThostFtdcMarginTypeType;
  type TThostFtdcActiveTypeType (line 5398) | typedef char TThostFtdcActiveTypeType;
  type TThostFtdcMarginRateTypeType (line 5410) | typedef char TThostFtdcMarginRateTypeType;
  type TThostFtdcBackUpStatusType (line 5424) | typedef char TThostFtdcBackUpStatusType;
  type TThostFtdcInitSettlementType (line 5436) | typedef char TThostFtdcInitSettlementType;
  type TThostFtdcReportStatusType (line 5450) | typedef char TThostFtdcReportStatusType;
  type TThostFtdcSaveStatusType (line 5460) | typedef char TThostFtdcSaveStatusType;
  type TThostFtdcSettArchiveStatusType (line 5474) | typedef char TThostFtdcSettArchiveStatusType;
  type TThostFtdcCTPTypeType (line 5486) | typedef char TThostFtdcCTPTypeType;
  type TThostFtdcCloseDealTypeType (line 5506) | typedef char TThostFtdcCloseDealTypeType;
  type TThostFtdcMortgageFundUseRangeType (line 5520) | typedef char TThostFtdcMortgageFundUseRangeType;
  type TThostFtdcCurrencyUnitType (line 5525) | typedef double TThostFtdcCurrencyUnitType;
  type TThostFtdcExchangeRateType (line 5530) | typedef double TThostFtdcExchangeRateType;
  type TThostFtdcSpecProductTypeType (line 5542) | typedef char TThostFtdcSpecProductTypeType;
  type TThostFtdcFundMortgageTypeType (line 5552) | typedef char TThostFtdcFundMortgageTypeType;
  type TThostFtdcAccountSettlementParamIDType (line 5562) | typedef char TThostFtdcAccountSettlementParamIDType;
  type TThostFtdcFundMortDirectionType (line 5582) | typedef char TThostFtdcFundMortDirectionType;
  type TThostFtdcBusinessClassType (line 5594) | typedef char TThostFtdcBusinessClassType;
  type TThostFtdcSwapSourceTypeType (line 5604) | typedef char TThostFtdcSwapSourceTypeType;
  type TThostFtdcCurrExDirectionType (line 5614) | typedef char TThostFtdcCurrExDirectionType;
  type TThostFtdcCurrencySwapStatusType (line 5634) | typedef char TThostFtdcCurrencySwapStatusType;
  type TThostFtdcReqFlagType (line 5658) | typedef char TThostFtdcReqFlagType;
  type TThostFtdcResFlagType (line 5670) | typedef char TThostFtdcResFlagType;
  type TThostFtdcRecordCountType (line 5680) | typedef int TThostFtdcRecordCountType;
  type TThostFtdcExStatusType (line 5695) | typedef char TThostFtdcExStatusType;
  type TThostFtdcClientRegionType (line 5707) | typedef char TThostFtdcClientRegionType;
  type TThostFtdcHasBoardType (line 5772) | typedef char TThostFtdcHasBoardType;
  type TThostFtdcStartModeType (line 5784) | typedef char TThostFtdcStartModeType;
  type TThostFtdcTemplateTypeType (line 5796) | typedef char TThostFtdcTemplateTypeType;
  type TThostFtdcLoginModeType (line 5806) | typedef char TThostFtdcLoginModeType;
  type TThostFtdcPromptTypeType (line 5816) | typedef char TThostFtdcPromptTypeType;
  type TThostFtdcHasTrusteeType (line 5856) | typedef char TThostFtdcHasTrusteeType;
  type TThostFtdcAmTypeType (line 5894) | typedef char TThostFtdcAmTypeType;
  type TThostFtdcCSRCFundIOTypeType (line 5909) | typedef char TThostFtdcCSRCFundIOTypeType;
  type TThostFtdcCusAccountTypeType (line 5923) | typedef char TThostFtdcCusAccountTypeType;
  type TThostFtdcLanguageTypeType (line 5943) | typedef char TThostFtdcLanguageTypeType;
  type TThostFtdcAssetmgrClientTypeType (line 5960) | typedef char TThostFtdcAssetmgrClientTypeType;
  type TThostFtdcAssetmgrTypeType (line 5970) | typedef char TThostFtdcAssetmgrTypeType;
  type TThostFtdcCheckInstrTypeType (line 6007) | typedef char TThostFtdcCheckInstrTypeType;
  type TThostFtdcDeliveryTypeType (line 6017) | typedef char TThostFtdcDeliveryTypeType;
  type TThostFtdcBigMoneyType (line 6022) | typedef double TThostFtdcBigMoneyType;
  type TThostFtdcMaxMarginSideAlgorithmType (line 6032) | typedef char TThostFtdcMaxMarginSideAlgorithmType;
  type TThostFtdcDAClientTypeType (line 6044) | typedef char TThostFtdcDAClientTypeType;
  type TThostFtdcDCEPriorityType (line 6059) | typedef int TThostFtdcDCEPriorityType;
  type TThostFtdcTradeGroupIDType (line 6064) | typedef int TThostFtdcTradeGroupIDType;
  type TThostFtdcIsCheckPrepaType (line 6069) | typedef int TThostFtdcIsCheckPrepaType;
  type TThostFtdcUOAAssetmgrTypeType (line 6079) | typedef char TThostFtdcUOAAssetmgrTypeType;
  type TThostFtdcDirectionEnType (line 6089) | typedef char TThostFtdcDirectionEnType;
  type TThostFtdcOffsetFlagEnType (line 6109) | typedef char TThostFtdcOffsetFlagEnType;
  type TThostFtdcHedgeFlagEnType (line 6121) | typedef char TThostFtdcHedgeFlagEnType;
  type TThostFtdcFundIOTypeEnType (line 6133) | typedef char TThostFtdcFundIOTypeEnType;
  type TThostFtdcFundTypeEnType (line 6147) | typedef char TThostFtdcFundTypeEnType;
  type TThostFtdcFundDirectionEnType (line 6157) | typedef char TThostFtdcFundDirectionEnType;
  type TThostFtdcFundMortDirectionEnType (line 6167) | typedef char TThostFtdcFundMortDirectionEnType;
  type TThostFtdcOptionsTypeType (line 6182) | typedef char TThostFtdcOptionsTypeType;
  type TThostFtdcStrikeModeType (line 6194) | typedef char TThostFtdcStrikeModeType;
  type TThostFtdcStrikeTypeType (line 6204) | typedef char TThostFtdcStrikeTypeType;
  type TThostFtdcApplyTypeType (line 6212) | typedef char TThostFtdcApplyTypeType;
  type TThostFtdcGiveUpDataSourceType (line 6222) | typedef char TThostFtdcGiveUpDataSourceType;
  type TThostFtdcExecResultType (line 6257) | typedef char TThostFtdcExecResultType;
  type TThostFtdcStrikeSequenceType (line 6262) | typedef int TThostFtdcStrikeSequenceType;
  type TThostFtdcCombinationTypeType (line 6295) | typedef char TThostFtdcCombinationTypeType;
  type TThostFtdcDceCombinationTypeType (line 6323) | typedef char TThostFtdcDceCombinationTypeType;
  type TThostFtdcOptionRoyaltyPriceTypeType (line 6335) | typedef char TThostFtdcOptionRoyaltyPriceTypeType;
  type TThostFtdcBalanceAlgorithmType (line 6345) | typedef char TThostFtdcBalanceAlgorithmType;
  type TThostFtdcActionTypeType (line 6355) | typedef char TThostFtdcActionTypeType;
  type TThostFtdcForQuoteStatusType (line 6367) | typedef char TThostFtdcForQuoteStatusType;
  type TThostFtdcValueMethodType (line 6377) | typedef char TThostFtdcValueMethodType;
  type TThostFtdcExecOrderPositionFlagType (line 6387) | typedef char TThostFtdcExecOrderPositionFlagType;
  type TThostFtdcExecOrderCloseFlagType (line 6397) | typedef char TThostFtdcExecOrderCloseFlagType;
  type TThostFtdcProductTypeType (line 6407) | typedef char TThostFtdcProductTypeType;
  type TThostFtdcCZCEUploadFileNameType (line 6429) | typedef char TThostFtdcCZCEUploadFileNameType;
  type TThostFtdcDCEUploadFileNameType (line 6451) | typedef char TThostFtdcDCEUploadFileNameType;
  type TThostFtdcSHFEUploadFileNameType (line 6465) | typedef char TThostFtdcSHFEUploadFileNameType;
  type TThostFtdcCFFEXUploadFileNameType (line 6479) | typedef char TThostFtdcCFFEXUploadFileNameType;
  type TThostFtdcCombDirectionType (line 6491) | typedef char TThostFtdcCombDirectionType;
  type TThostFtdcStrikeOffsetTypeType (line 6505) | typedef char TThostFtdcStrikeOffsetTypeType;
  type TThostFtdcReserveOpenAccStasType (line 6519) | typedef char TThostFtdcReserveOpenAccStasType;
  type TThostFtdcBulletinIDType (line 6534) | typedef int TThostFtdcBulletinIDType;
  type TThostFtdcNewsUrgencyType (line 6544) | typedef char TThostFtdcNewsUrgencyType;
  type TThostFtdcWeakPasswordSourceType (line 6584) | typedef char TThostFtdcWeakPasswordSourceType;
  type TThostFtdcOptSelfCloseFlagType (line 6608) | typedef char TThostFtdcOptSelfCloseFlagType;
  type TThostFtdcBizTypeType (line 6618) | typedef char TThostFtdcBizTypeType;
  type TThostFtdcAppTypeType (line 6632) | typedef char TThostFtdcAppTypeType;
  type TThostFtdcSystemInfoLenType (line 6642) | typedef int TThostFtdcSystemInfoLenType;
  type TThostFtdcAdditionalInfoLenType (line 6647) | typedef int TThostFtdcAdditionalInfoLenType;
  type TThostFtdcCurrentAuthMethodType (line 6672) | typedef int TThostFtdcCurrentAuthMethodType;
  type TThostFtdcCaptchaInfoLenType (line 6677) | typedef int TThostFtdcCaptchaInfoLenType;
  type TThostFtdcUserTextSeqType (line 6687) | typedef int TThostFtdcUserTextSeqType;
  type TThostFtdcHandshakeDataLenType (line 6697) | typedef int TThostFtdcHandshakeDataLenType;
  type TThostFtdcRsaKeyVersionType (line 6707) | typedef int TThostFtdcRsaKeyVersionType;
  type TThostFtdcQueryFreqType (line 6722) | typedef int TThostFtdcQueryFreqType;
  type TThostFtdcResponseValueType (line 6732) | typedef char TThostFtdcResponseValueType;
  type TThostFtdcOTCTradeTypeType (line 6742) | typedef char TThostFtdcOTCTradeTypeType;
  type TThostFtdcMatchTypeType (line 6752) | typedef char TThostFtdcMatchTypeType;
  type TThostFtdcRiskValueType (line 6762) | typedef double TThostFtdcRiskValueType;
  type TThostFtdcDiscountRatioType (line 6772) | typedef double TThostFtdcDiscountRatioType;
  type TThostFtdcAuthTypeType (line 6782) | typedef char TThostFtdcAuthTypeType;
  type TThostFtdcClassTypeType (line 6796) | typedef char TThostFtdcClassTypeType;
  type TThostFtdcTradingTypeType (line 6808) | typedef char TThostFtdcTradingTypeType;
  type TThostFtdcProductStatusType (line 6818) | typedef char TThostFtdcProductStatusType;
  type TThostFtdcSyncDeltaStatusType (line 6832) | typedef char TThostFtdcSyncDeltaStatusType;
  type TThostFtdcActionDirectionType (line 6844) | typedef char TThostFtdcActionDirectionType;
  type TThostFtdcOrderCancelAlgType (line 6854) | typedef char TThostFtdcOrderCancelAlgType;
  type TThostFtdcCommonIntType (line 6864) | typedef int TThostFtdcCommonIntType;
  type TThostFtdcOpenLimitControlLevelType (line 6881) | typedef char TThostFtdcOpenLimitControlLevelType;
  type TThostFtdcOrderFreqControlLevelType (line 6893) | typedef char TThostFtdcOrderFreqControlLevelType;
  type TThostFtdcEnumBoolType (line 6903) | typedef char TThostFtdcEnumBoolType;
  type TThostFtdcTimeRangeType (line 6917) | typedef char TThostFtdcTimeRangeType;
  type TThostFtdcDeltaType (line 6922) | typedef double TThostFtdcDeltaType;
  type TThostFtdcSpreadIdType (line 6927) | typedef int TThostFtdcSpreadIdType;
  type TThostFtdcPortfolioType (line 6943) | typedef char TThostFtdcPortfolioType;
  type TThostFtdcPortfolioDefIDType (line 6948) | typedef int TThostFtdcPortfolioDefIDType;
  type TThostFtdcWithDrawParamIDType (line 6956) | typedef char TThostFtdcWithDrawParamIDType;
  type TThostFtdcInvstTradingRightType (line 6971) | typedef char TThostFtdcInvstTradingRightType;
  type TThostFtdcThostFunctionCodeType (line 6976) | typedef int TThostFtdcThostFunctionCodeType;
  type TThostFtdcSPMMDiscountRatioType (line 6981) | typedef double TThostFtdcSPMMDiscountRatioType;
  type TThostFtdcInstMarginCalIDType (line 7008) | typedef char TThostFtdcInstMarginCalIDType;
  type TThostFtdcHedgeRateType (line 7018) | typedef double TThostFtdcHedgeRateType;
  type TThostFtdcRCAMSPriorityType (line 7023) | typedef int TThostFtdcRCAMSPriorityType;
  type TThostFtdcAdjustValueType (line 7028) | typedef double TThostFtdcAdjustValueType;
  type TThostFtdcRCAMSCombinationTypeType (line 7044) | typedef char TThostFtdcRCAMSCombinationTypeType;
  type TThostFtdcPortfTypeType (line 7059) | typedef char TThostFtdcPortfTypeType;
  type TThostFtdcInstrumentClassType (line 7071) | typedef char TThostFtdcInstrumentClassType;
  type TThostFtdcCommodityGroupIDType (line 7076) | typedef int TThostFtdcCommodityGroupIDType;
  type TThostFtdcStdPositionType (line 7081) | typedef double TThostFtdcStdPositionType;
  type TThostFtdcProdChangeFlagType (line 7093) | typedef char TThostFtdcProdChangeFlagType;
  type TThostFtdcPwdRcdSrcType (line 7109) | typedef char TThostFtdcPwdRcdSrcType;
  type TThostFtdcAddrSrvModeType (line 7121) | typedef char TThostFtdcAddrSrvModeType;
  type TThostFtdcAddrVerType (line 7131) | typedef char TThostFtdcAddrVerType;
  type TThostFtdcTGSessionQryStatusType (line 7156) | typedef char TThostFtdcTGSessionQryStatusType;
  type TThostFtdcOffsetTypeType (line 7170) | typedef char TThostFtdcOffsetTypeType;
  type TThostFtdcApplySrcType (line 7190) | typedef char TThostFtdcApplySrcType;

FILE: native/ctp_bridge/api/win/ThostFtdcUserApiStruct.h
  type CThostFtdcDisseminationField (line 21) | struct CThostFtdcDisseminationField
  type CThostFtdcReqUserLoginField (line 30) | struct CThostFtdcReqUserLoginField
  type CThostFtdcRspUserLoginField (line 61) | struct CThostFtdcRspUserLoginField
  type CThostFtdcUserLogoutField (line 104) | struct CThostFtdcUserLogoutField
  type CThostFtdcForceUserLogoutField (line 113) | struct CThostFtdcForceUserLogoutField
  type CThostFtdcReqAuthenticateField (line 122) | struct CThostFtdcReqAuthenticateField
  type CThostFtdcRspAuthenticateField (line 137) | struct CThostFtdcRspAuthenticateField
  type CThostFtdcAuthenticationInfoField (line 152) | struct CThostFtdcAuthenticationInfoField
  type CThostFtdcRspUserLogin2Field (line 175) | struct CThostFtdcRspUserLogin2Field
  type CThostFtdcTransferHeaderField (line 208) | struct CThostFtdcTransferHeaderField
  type CThostFtdcTransferBankToFutureReqField (line 239) | struct CThostFtdcTransferBankToFutureReqField
  type CThostFtdcTransferBankToFutureRspField (line 256) | struct CThostFtdcTransferBankToFutureRspField
  type CThostFtdcTransferFutureToBankReqField (line 273) | struct CThostFtdcTransferFutureToBankReqField
  type CThostFtdcTransferFutureToBankRspField (line 290) | struct CThostFtdcTransferFutureToBankRspField
  type CThostFtdcTransferQryBankReqField (line 307) | struct CThostFtdcTransferQryBankReqField
  type CThostFtdcTransferQryBankRspField (line 320) | struct CThostFtdcTransferQryBankRspField
  type CThostFtdcTransferQryDetailReqField (line 339) | struct CThostFtdcTransferQryDetailReqField
  type CThostFtdcTransferQryDetailRspField (line 346) | struct CThostFtdcTransferQryDetailRspField
  type CThostFtdcRspInfoField (line 379) | struct CThostFtdcRspInfoField
  type CThostFtdcExchangeField (line 388) | struct CThostFtdcExchangeField
  type CThostFtdcProductField (line 399) | struct CThostFtdcProductField
  type CThostFtdcInstrumentField (line 446) | struct CThostFtdcInstrumentField
  type CThostFtdcBrokerField (line 521) | struct CThostFtdcBrokerField
  type CThostFtdcTraderField (line 534) | struct CThostFtdcTraderField
  type CThostFtdcInvestorField (line 557) | struct CThostFtdcInvestorField
  type CThostFtdcTradingCodeField (line 592) | struct CThostFtdcTradingCodeField
  type CThostFtdcPartBrokerField (line 615) | struct CThostFtdcPartBrokerField
  type CThostFtdcSuperUserField (line 628) | struct CThostFtdcSuperUserField
  type CThostFtdcSuperUserFunctionField (line 641) | struct CThostFtdcSuperUserFunctionField
  type CThostFtdcInvestorGroupField (line 650) | struct CThostFtdcInvestorGroupField
  type CThostFtdcTradingAccountField (line 661) | struct CThostFtdcTradingAccountField
  type CThostFtdcInvestorPositionField (line 766) | struct CThostFtdcInvestorPositionField
  type CThostFtdcInstrumentMarginRateField (line 873) | struct CThostFtdcInstrumentMarginRateField
  type CThostFtdcInstrumentCommissionRateField (line 904) | struct CThostFtdcInstrumentCommissionRateField
  type CThostFtdcDepthMarketDataField (line 937) | struct CThostFtdcDepthMarketDataField
  type CThostFtdcInstrumentTradingRightField (line 1038) | struct CThostFtdcInstrumentTradingRightField
  type CThostFtdcBrokerUserField (line 1055) | struct CThostFtdcBrokerUserField
  type CThostFtdcBrokerUserPasswordField (line 1074) | struct CThostFtdcBrokerUserPasswordField
  type CThostFtdcBrokerUserFunctionField (line 1093) | struct CThostFtdcBrokerUserFunctionField
  type CThostFtdcTraderOfferField (line 1104) | struct CThostFtdcTraderOfferField
  type CThostFtdcSettlementInfoField (line 1149) | struct CThostFtdcSettlementInfoField
  type CThostFtdcInstrumentMarginRateAdjustField (line 1170) | struct CThostFtdcInstrumentMarginRateAdjustField
  type CThostFtdcExchangeMarginRateField (line 1197) | struct CThostFtdcExchangeMarginRateField
  type CThostFtdcExchangeMarginRateAdjustField (line 1220) | struct CThostFtdcExchangeMarginRateAdjustField
  type CThostFtdcExchangeRateField (line 1257) | struct CThostFtdcExchangeRateField
  type CThostFtdcSettlementRefField (line 1272) | struct CThostFtdcSettlementRefField
  type CThostFtdcCurrentTimeField (line 1281) | struct CThostFtdcCurrentTimeField
  type CThostFtdcCommPhaseField (line 1294) | struct CThostFtdcCommPhaseField
  type CThostFtdcLoginInfoField (line 1305) | struct CThostFtdcLoginInfoField
  type CThostFtdcLogoutAllField (line 1358) | struct CThostFtdcLogoutAllField
  type CThostFtdcFrontStatusField (line 1369) | struct CThostFtdcFrontStatusField
  type CThostFtdcUserPasswordUpdateField (line 1382) | struct CThostFtdcUserPasswordUpdateField
  type CThostFtdcInputOrderField (line 1395) | struct CThostFtdcInputOrderField
  type CThostFtdcOrderField (line 1468) | struct CThostFtdcOrderField
  type CThostFtdcExchangeOrderField (line 1609) | struct CThostFtdcExchangeOrderField
  type CThostFtdcExchangeOrderInsertErrorField (line 1708) | struct CThostFtdcExchangeOrderInsertErrorField
  type CThostFtdcInputOrderActionField (line 1727) | struct CThostFtdcInputOrderActionField
  type CThostFtdcOrderActionField (line 1774) | struct CThostFtdcOrderActionField
  type CThostFtdcExchangeOrderActionField (line 1845) | struct CThostFtdcExchangeOrderActionField
  type CThostFtdcExchangeOrderActionErrorField (line 1890) | struct CThostFtdcExchangeOrderActionErrorField
  type CThostFtdcExchangeTradeField (line 1911) | struct CThostFtdcExchangeTradeField
  type CThostFtdcTradeField (line 1962) | struct CThostFtdcTradeField
  type CThostFtdcUserSessionField (line 2033) | struct CThostFtdcUserSessionField
  type CThostFtdcQryMaxOrderVolumeField (line 2064) | struct CThostFtdcQryMaxOrderVolumeField
  type CThostFtdcSettlementInfoConfirmField (line 2089) | struct CThostFtdcSettlementInfoConfirmField
  type CThostFtdcSyncDepositField (line 2108) | struct CThostFtdcSyncDepositField
  type CThostFtdcSyncFundMortgageField (line 2131) | struct CThostFtdcSyncFundMortgageField
  type CThostFtdcBrokerSyncField (line 2148) | struct CThostFtdcBrokerSyncField
  type CThostFtdcSyncingInvestorField (line 2155) | struct CThostFtdcSyncingInvestorField
  type CThostFtdcSyncingTradingCodeField (line 2190) | struct CThostFtdcSyncingTradingCodeField
  type CThostFtdcSyncingInvestorGroupField (line 2207) | struct CThostFtdcSyncingInvestorGroupField
  type CThostFtdcSyncingTradingAccountField (line 2218) | struct CThostFtdcSyncingTradingAccountField
  type CThostFtdcSyncingInvestorPositionField (line 2321) | struct CThostFtdcSyncingInvestorPositionField
  type CThostFtdcSyncingInstrumentMarginRateField (line 2426) | struct CThostFtdcSyncingInstrumentMarginRateField
  type CThostFtdcSyncingInstrumentCommissionRateField (line 2453) | struct CThostFtdcSyncingInstrumentCommissionRateField
  type CThostFtdcSyncingInstrumentTradingRightField (line 2480) | struct CThostFtdcSyncingInstrumentTradingRightField
  type CThostFtdcQryOrderField (line 2497) | struct CThostFtdcQryOrderField
  type CThostFtdcQryTradeField (line 2520) | struct CThostFtdcQryTradeField
  type CThostFtdcQryInvestorPositionField (line 2543) | struct CThostFtdcQryInvestorPositionField
  type CThostFtdcQryTradingAccountField (line 2560) | struct CThostFtdcQryTradingAccountField
  type CThostFtdcQryInvestorField (line 2575) | struct CThostFtdcQryInvestorField
  type CThostFtdcQryTradingCodeField (line 2584) | struct CThostFtdcQryTradingCodeField
  type CThostFtdcQryInvestorGroupField (line 2601) | struct CThostFtdcQryInvestorGroupField
  type CThostFtdcQryInstrumentMarginRateField (line 2608) | struct CThostFtdcQryInstrumentMarginRateField
  type CThostFtdcQryInstrumentCommissionRateField (line 2627) | struct CThostFtdcQryInstrumentCommissionRateField
  type CThostFtdcQryInstrumentTradingRightField (line 2644) | struct CThostFtdcQryInstrumentTradingRightField
  type CThostFtdcQryBrokerField (line 2657) | struct CThostFtdcQryBrokerField
  type CThostFtdcQryTraderField (line 2664) | struct CThostFtdcQryTraderField
  type CThostFtdcQrySuperUserFunctionField (line 2675) | struct CThostFtdcQrySuperUserFunctionField
  type CThostFtdcQryUserSessionField (line 2682) | struct CThostFtdcQryUserSessionField
  type CThostFtdcQryPartBrokerField (line 2695) | struct CThostFtdcQryPartBrokerField
  type CThostFtdcQryFrontStatusField (line 2706) | struct CThostFtdcQryFrontStatusField
  type CThostFtdcQryExchangeOrderField (line 2713) | struct CThostFtdcQryExchangeOrderField
  type CThostFtdcQryOrderActionField (line 2730) | struct CThostFtdcQryOrderActionField
  type CThostFtdcQryExchangeOrderActionField (line 2741) | struct CThostFtdcQryExchangeOrderActionField
  type CThostFtdcQrySuperUserField (line 2754) | struct CThostFtdcQrySuperUserField
  type CThostFtdcQryExchangeField (line 2761) | struct CThostFtdcQryExchangeField
  type CThostFtdcQryProductField (line 2768) | struct CThostFtdcQryProductField
  type CThostFtdcQryInstrumentField (line 2781) | struct CThostFtdcQryInstrumentField
  type CThostFtdcQryDepthMarketDataField (line 2800) | struct CThostFtdcQryDepthMarketDataField
  type CThostFtdcQryBrokerUserField (line 2813) | struct CThostFtdcQryBrokerUserField
  type CThostFtdcQryBrokerUserFunctionField (line 2822) | struct CThostFtdcQryBrokerUserFunctionField
  type CThostFtdcQryTraderOfferField (line 2831) | struct CThostFtdcQryTraderOfferField
  type CThostFtdcQrySyncDepositField (line 2842) | struct CThostFtdcQrySyncDepositField
  type CThostFtdcQrySettlementInfoField (line 2851) | struct CThostFtdcQrySettlementInfoField
  type CThostFtdcQryExchangeMarginRateField (line 2866) | struct CThostFtdcQryExchangeMarginRateField
  type CThostFtdcQryExchangeMarginRateAdjustField (line 2881) | struct CThostFtdcQryExchangeMarginRateAdjustField
  type CThostFtdcQryExchangeRateField (line 2894) | struct CThostFtdcQryExchangeRateField
  type CThostFtdcQrySyncFundMortgageField (line 2905) | struct CThostFtdcQrySyncFundMortgageField
  type CThostFtdcQryHisOrderField (line 2914) | struct CThostFtdcQryHisOrderField
  type CThostFtdcOptionInstrMiniMarginField (line 2939) | struct CThostFtdcOptionInstrMiniMarginField
  type CThostFtdcOptionInstrMarginAdjustField (line 2960) | struct CThostFtdcOptionInstrMarginAdjustField
  type CThostFtdcOptionInstrCommRateField (line 2993) | struct CThostFtdcOptionInstrCommRateField
  type CThostFtdcOptionInstrTradeCostField (line 3028) | struct CThostFtdcOptionInstrTradeCostField
  type CThostFtdcQryOptionInstrTradeCostField (line 3057) | struct CThostFtdcQryOptionInstrTradeCostField
  type CThostFtdcQryOptionInstrCommRateField (line 3080) | struct CThostFtdcQryOptionInstrCommRateField
  type CThostFtdcIndexPriceField (line 3097) | struct CThostFtdcIndexPriceField
  type CThostFtdcInputExecOrderField (line 3110) | struct CThostFtdcInputExecOrderField
  type CThostFtdcInputExecOrderActionField (line 3161) | struct CThostFtdcInputExecOrderActionField
  type CThostFtdcExecOrderField (line 3200) | struct CThostFtdcExecOrderField
  type CThostFtdcExecOrderActionField (line 3299) | struct CThostFtdcExecOrderActionField
  type CThostFtdcQryExecOrderField (line 3364) | struct CThostFtdcQryExecOrderField
  type CThostFtdcExchangeExecOrderField (line 3385) | struct CThostFtdcExchangeExecOrderField
  type CThostFtdcQryExchangeExecOrderField (line 3454) | struct CThostFtdcQryExchangeExecOrderField
  type CThostFtdcQryExecOrderActionField (line 3471) | struct CThostFtdcQryExecOrderActionField
  type CThostFtdcExchangeExecOrderActionField (line 3482) | struct CThostFtdcExchangeExecOrderActionField
  type CThostFtdcQryExchangeExecOrderActionField (line 3531) | struct CThostFtdcQryExchangeExecOrderActionField
  type CThostFtdcErrExecOrderField (line 3544) | struct CThostFtdcErrExecOrderField
  type CThostFtdcQryErrExecOrderField (line 3599) | struct CThostFtdcQryErrExecOrderField
  type CThostFtdcErrExecOrderActionField (line 3608) | struct CThostFtdcErrExecOrderActionField
  type CThostFtdcQryErrExecOrderActionField (line 3651) | struct CThostFtdcQryErrExecOrderActionField
  type CThostFtdcOptionInstrTradingRightField (line 3660) | struct CThostFtdcOptionInstrTradingRightField
  type CThostFtdcQryOptionInstrTradingRightField (line 3679) | struct CThostFtdcQryOptionInstrTradingRightField
  type CThostFtdcInputForQuoteField (line 3694) | struct CThostFtdcInputForQuoteField
  type CThostFtdcForQuoteField (line 3721) | struct CThostFtdcForQuoteField
  type CThostFtdcQryForQuoteField (line 3778) | struct CThostFtdcQryForQuoteField
  type CThostFtdcExchangeForQuoteField (line 3799) | struct CThostFtdcExchangeForQuoteField
  type CThostFtdcQryExchangeForQuoteField (line 3832) | struct CThostFtdcQryExchangeForQuoteField
  type CThostFtdcInputQuoteField (line 3849) | struct CThostFtdcInputQuoteField
  type CThostFtdcInputQuoteActionField (line 3912) | struct CThostFtdcInputQuoteActionField
  type CThostFtdcQuoteField (line 3957) | struct CThostFtdcQuoteField
  type CThostFtdcQuoteActionField (line 4076) | struct CThostFtdcQuoteActionField
  type CThostFtdcQryQuoteField (line 4143) | struct CThostFtdcQryQuoteField
  type CThostFtdcExchangeQuoteField (line 4166) | struct CThostFtdcExchangeQuoteField
  type CThostFtdcQryExchangeQuoteField (line 4245) | struct CThostFtdcQryExchangeQuoteField
  type CThostFtdcQryQuoteActionField (line 4262) | struct CThostFtdcQryQuoteActionField
  type CThostFtdcExchangeQuoteActionField (line 4273) | struct CThostFtdcExchangeQuoteActionField
  type CThostFtdcQryExchangeQuoteActionField (line 4312) | struct CThostFtdcQryExchangeQuoteActionField
  type CThostFtdcOptionInstrDeltaField (line 4325) | struct CThostFtdcOptionInstrDeltaField
  type CThostFtdcForQuoteRspField (line 4342) | struct CThostFtdcForQuoteRspField
  type CThostFtdcStrikeOffsetField (line 4361) | struct CThostFtdcStrikeOffsetField
  type CThostFtdcQryStrikeOffsetField (line 4380) | struct CThostFtdcQryStrikeOffsetField
  type CThostFtdcInputBatchOrderActionField (line 4393) | struct CThostFtdcInputBatchOrderActionField
  type CThostFtdcBatchOrderActionField (line 4422) | struct CThostFtdcBatchOrderActionField
  type CThostFtdcExchangeBatchOrderActionField (line 4471) | struct CThostFtdcExchangeBatchOrderActionField
  type CThostFtdcQryBatchOrderActionField (line 4504) | struct CThostFtdcQryBatchOrderActionField
  type CThostFtdcCombInstrumentGuardField (line 4515) | struct CThostFtdcCombInstrumentGuardField
  type CThostFtdcQryCombInstrumentGuardField (line 4530) | struct CThostFtdcQryCombInstrumentGuardField
  type CThostFtdcInputCombActionField (line 4543) | struct CThostFtdcInputCombActionField
  type CThostFtdcCombActionField (line 4582) | struct CThostFtdcCombActionField
  type CThostFtdcQryCombActionField (line 4653) | struct CThostFtdcQryCombActionField
  type CThostFtdcExchangeCombActionField (line 4670) | struct CThostFtdcExchangeCombActionField
  type CThostFtdcQryExchangeCombActionField (line 4719) | struct CThostFtdcQryExchangeCombActionField
  type CThostFtdcProductExchRateField (line 4736) | struct CThostFtdcProductExchRateField
  type CThostFtdcQryProductExchRateField (line 4751) | struct CThostFtdcQryProductExchRateField
  type CThostFtdcQryForQuoteParamField (line 4762) | struct CThostFtdcQryForQuoteParamField
  type CThostFtdcForQuoteParamField (line 4775) | struct CThostFtdcForQuoteParamField
  type CThostFtdcMMOptionInstrCommRateField (line 4792) | struct CThostFtdcMMOptionInstrCommRateField
  type CThostFtdcQryMMOptionInstrCommRateField (line 4823) | struct CThostFtdcQryMMOptionInstrCommRateField
  type CThostFtdcMMInstrumentCommissionRateField (line 4836) | struct CThostFtdcMMInstrumentCommissionRateField
  type CThostFtdcQryMMInstrumentCommissionRateField (line 4863) | struct CThostFtdcQryMMInstrumentCommissionRateField
  type CThostFtdcInstrumentOrderCommRateField (line 4876) | struct CThostFtdcInstrumentOrderCommRateField
  type CThostFtdcQryInstrumentOrderCommRateField (line 4905) | struct CThostFtdcQryInstrumentOrderCommRateField
  type CThostFtdcTradeParamField (line 4918) | struct CThostFtdcTradeParamField
  type CThostFtdcInstrumentMarginRateULField (line 4931) | struct CThostFtdcInstrumentMarginRateULField
  type CThostFtdcFutureLimitPosiParamField (line 4956) | struct CThostFtdcFutureLimitPosiParamField
  type CThostFtdcLoginForbiddenIPField (line 4977) | struct CThostFtdcLoginForbiddenIPField
  type CThostFtdcIPListField (line 4986) | struct CThostFtdcIPListField
  type CThostFtdcInputOptionSelfCloseField (line 4997) | struct CThostFtdcInputOptionSelfCloseField
  type CThostFtdcInputOptionSelfCloseActionField (line 5040) | struct CThostFtdcInputOptionSelfCloseActionField
  type CThostFtdcOptionSelfCloseField (line 5079) | struct CThostFtdcOptionSelfCloseField
  type CThostFtdcOptionSelfCloseActionField (line 5170) | struct CThostFtdcOptionSelfCloseActionField
  type CThostFtdcQryOptionSelfCloseField (line 5233) | struct CThostFtdcQryOptionSelfCloseField
  type CThostFtdcExchangeOptionSelfCloseField (line 5254) | struct CThostFtdcExchangeOptionSelfCloseField
  type CThostFtdcQryOptionSelfCloseActionField (line 5315) | struct CThostFtdcQryOptionSelfCloseActionField
  type CThostFtdcExchangeOptionSelfCloseActionField (line 5326) | struct CThostFtdcExchangeOptionSelfCloseActionField
  type CThostFtdcSyncDelaySwapField (line 5373) | struct CThostFtdcSyncDelaySwapField
  type CThostFtdcQrySyncDelaySwapField (line 5400) | struct CThostFtdcQrySyncDelaySwapField
  type CThostFtdcInvestUnitField (line 5409) | struct CThostFtdcInvestUnitField
  type CThostFtdcQryInvestUnitField (line 5432) | struct CThostFtdcQryInvestUnitField
  type CThostFtdcSecAgentCheckModeField (line 5443) | struct CThostFtdcSecAgentCheckModeField
  type CThostFtdcSecAgentTradeInfoField (line 5458) | struct CThostFtdcSecAgentTradeInfoField
  type CThostFtdcMarketDataField (line 5471) | struct CThostFtdcMarketDataField
  type CThostFtdcMarketDataBaseField (line 5526) | struct CThostFtdcMarketDataBaseField
  type CThostFtdcMarketDataStaticField (line 5541) | struct CThostFtdcMarketDataStaticField
  type CThostFtdcMarketDataLastMatchField (line 5562) | struct CThostFtdcMarketDataLastMatchField
  type CThostFtdcMarketDataBestPriceField (line 5575) | struct CThostFtdcMarketDataBestPriceField
  type CThostFtdcMarketDataBid23Field (line 5588) | struct CThostFtdcMarketDataBid23Field
  type CThostFtdcMarketDataAsk23Field (line 5601) | struct CThostFtdcMarketDataAsk23Field
  type CThostFtdcMarketDataBid45Field (line 5614) | struct CThostFtdcMarketDataBid45Field
  type CThostFtdcMarketDataAsk45Field (line 5627) | struct CThostFtdcMarketDataAsk45Field
  type CThostFtdcMarketDataUpdateTimeField (line 5640) | struct CThostFtdcMarketDataUpdateTimeField
  type CThostFtdcMarketDataBandingPriceField (line 5655) | struct CThostFtdcMarketDataBandingPriceField
  type CThostFtdcMarketDataExchangeField (line 5664) | struct CThostFtdcMarketDataExchangeField
  type CThostFtdcSpecificInstrumentField (line 5671) | struct CThostFtdcSpecificInstrumentField
  type CThostFtdcInstrumentStatusField (line 5680) | struct CThostFtdcInstrumentStatusField
  type CThostFtdcQryInstrumentStatusField (line 5705) | struct CThostFtdcQryInstrumentStatusField
  type CThostFtdcInvestorAccountField (line 5716) | struct CThostFtdcInvestorAccountField
  type CThostFtdcPositionProfitAlgorithmField (line 5729) | struct CThostFtdcPositionProfitAlgorithmField
  type CThostFtdcDiscountField (line 5744) | struct CThostFtdcDiscountField
  type CThostFtdcQryTransferBankField (line 5757) | struct CThostFtdcQryTransferBankField
  type CThostFtdcTransferBankField (line 5766) | struct CThostFtdcTransferBankField
  type CThostFtdcQryInvestorPositionDetailField (line 5779) | struct CThostFtdcQryInvestorPositionDetailField
  type CThostFtdcInvestorPositionDetailField (line 5796) | struct CThostFtdcInvestorPositionDetailField
  type CThostFtdcTradingAccountPasswordField (line 5863) | struct CThostFtdcTradingAccountPasswordField
  type CThostFtdcMDTraderOfferField (line 5876) | struct CThostFtdcMDTraderOfferField
  type CThostFtdcQryMDTraderOfferField (line 5921) | struct CThostFtdcQryMDTraderOfferField
  type CThostFtdcQryNoticeField (line 5932) | struct CThostFtdcQryNoticeField
  type CThostFtdcNoticeField (line 5939) | struct CThostFtdcNoticeField
  type CThostFtdcUserRightField (line 5950) | struct CThostFtdcUserRightField
  type CThostFtdcQrySettlementInfoConfirmField (line 5963) | struct CThostFtdcQrySettlementInfoConfirmField
  type CThostFtdcLoadSettlementInfoField (line 5976) | struct CThostFtdcLoadSettlementInfoField
  type CThostFtdcBrokerWithdrawAlgorithmField (line 5983) | struct CThostFtdcBrokerWithdrawAlgorithmField
  type CThostFtdcTradingAccountPasswordUpdateV1Field (line 6008) | struct CThostFtdcTradingAccountPasswordUpdateV1Field
  type CThostFtdcTradingAccountPasswordUpdateField (line 6021) | struct CThostFtdcTradingAccountPasswordUpdateField
  type CThostFtdcQryCombinationLegField (line 6036) | struct CThostFtdcQryCombinationLegField
  type CThostFtdcQrySyncStatusField (line 6051) | struct CThostFtdcQrySyncStatusField
  type CThostFtdcCombinationLegField (line 6058) | struct CThostFtdcCombinationLegField
  type CThostFtdcSyncStatusField (line 6079) | struct CThostFtdcSyncStatusField
  type CThostFtdcQryLinkManField (line 6088) | struct CThostFtdcQryLinkManField
  type CThostFtdcLinkManField (line 6097) | struct CThostFtdcLinkManField
  type CThostFtdcQryBrokerUserEventField (line 6126) | struct CThostFtdcQryBrokerUserEventField
  type CThostFtdcBrokerUserEventField (line 6137) | struct CThostFtdcBrokerUserEventField
  type CThostFtdcQryContractBankField (line 6166) | struct CThostFtdcQryContractBankField
  type CThostFtdcContractBankField (line 6177) | struct CThostFtdcContractBankField
  type CThostFtdcInvestorPositionCombineDetailField (line 6190) | struct CThostFtdcInvestorPositionCombineDetailField
  type CThostFtdcParkedOrderField (line 6241) | struct CThostFtdcParkedOrderField
  type CThostFtdcParkedOrderActionField (line 6320) | struct CThostFtdcParkedOrderActionField
  type CThostFtdcQryParkedOrderField (line 6373) | struct CThostFtdcQryParkedOrderField
  type CThostFtdcQryParkedOrderActionField (line 6390) | struct CThostFtdcQryParkedOrderActionField
  type CThostFtdcRemoveParkedOrderField (line 6407) | struct CThostFtdcRemoveParkedOrderField
  type CThostFtdcRemoveParkedOrderActionField (line 6420) | struct CThostFtdcRemoveParkedOrderActionField
  type CThostFtdcInvestorWithdrawAlgorithmField (line 6433) | struct CThostFtdcInvestorWithdrawAlgorithmField
  type CThostFtdcQryInvestorPositionCombineDetailField (line 6450) | struct CThostFtdcQryInvestorPositionCombineDetailField
  type CThostFtdcMarketDataAveragePriceField (line 6467) | struct CThostFtdcMarketDataAveragePriceField
  type CThostFtdcVerifyInvestorPasswordField (line 6474) | struct CThostFtdcVerifyInvestorPasswordField
  type CThostFtdcUserIPField (line 6485) | struct CThostFtdcUserIPField
  type CThostFtdcTradingNoticeInfoField (line 6504) | struct CThostFtdcTradingNoticeInfoField
  type CThostFtdcTradingNoticeField (line 6523) | struct CThostFtdcTradingNoticeField
  type CThostFtdcQryTradingNoticeField (line 6546) | struct CThostFtdcQryTradingNoticeField
  type CThostFtdcQryErrOrderField (line 6557) | struct CThostFtdcQryErrOrderField
  type CThostFtdcErrOrderField (line 6566) | struct CThostFtdcErrOrderField
  type CThostFtdcErrorConditionalOrderField (line 6643) | struct CThostFtdcErrorConditionalOrderField
  type CThostFtdcQryErrOrderActionField (line 6784) | struct CThostFtdcQryErrOrderActionField
  type CThostFtdcErrOrderActionField (line 6793) | struct CThostFtdcErrOrderActionField
  type CThostFtdcQryExchangeSequenceField (line 6868) | struct CThostFtdcQryExchangeSequenceField
  type CThostFtdcExchangeSequenceField (line 6875) | struct CThostFtdcExchangeSequenceField
  type CThostFtdcQryMaxOrderVolumeWithPriceField (line 6886) | struct CThostFtdcQryMaxOrderVolumeWithPriceField
  type CThostFtdcQryBrokerTradingParamsField (line 6913) | struct CThostFtdcQryBrokerTradingParamsField
  type CThostFtdcBrokerTradingParamsField (line 6926) | struct CThostFtdcBrokerTradingParamsField
  type CThostFtdcQryBrokerTradingAlgosField (line 6947) | struct CThostFtdcQryBrokerTradingAlgosField
  type CThostFtdcBrokerTradingAlgosField (line 6960) | struct CThostFtdcBrokerTradingAlgosField
  type CThostFtdcQueryBrokerDepositField (line 6979) | struct CThostFtdcQueryBrokerDepositField
  type CThostFtdcBrokerDepositField (line 6988) | struct CThostFtdcBrokerDepositField
  type CThostFtdcQryCFMMCBrokerKeyField (line 7019) | struct CThostFtdcQryCFMMCBrokerKeyField
  type CThostFtdcCFMMCBrokerKeyField (line 7026) | struct CThostFtdcCFMMCBrokerKeyField
  type CThostFtdcCFMMCTradingAccountKeyField (line 7045) | struct CThostFtdcCFMMCTradingAccountKeyField
  type CThostFtdcQryCFMMCTradingAccountKeyField (line 7060) | struct CThostFtdcQryCFMMCTradingAccountKeyField
  type CThostFtdcBrokerUserOTPParamField (line 7069) | struct CThostFtdcBrokerUserOTPParamField
  type CThostFtdcManualSyncBrokerUserOTPField (line 7090) | struct CThostFtdcManualSyncBrokerUserOTPField
  type CThostFtdcCommRateModelField (line 7105) | struct CThostFtdcCommRateModelField
  type CThostFtdcQryCommRateModelField (line 7116) | struct CThostFtdcQryCommRateModelField
  type CThostFtdcMarginModelField (line 7125) | struct CThostFtdcMarginModelField
  type CThostFtdcQryMarginModelField (line 7136) | struct CThostFtdcQryMarginModelField
  type CThostFtdcEWarrantOffsetField (line 7145) | struct CThostFtdcEWarrantOffsetField
  type CThostFtdcQryEWarrantOffsetField (line 7170) | struct CThostFtdcQryEWarrantOffsetField
  type CThostFtdcQryInvestorProductGroupMarginField (line 7187) | struct CThostFtdcQryInvestorProductGroupMarginField
  type CThostFtdcInvestorProductGroupMarginField (line 7206) | struct CThostFtdcInvestorProductGroupMarginField
  type CThostFtdcQueryCFMMCTradingAccountTokenField (line 7271) | struct CThostFtdcQueryCFMMCTradingAccountTokenField
  type CThostFtdcCFMMCTradingAccountTokenField (line 7282) | struct CThostFtdcCFMMCTradingAccountTokenField
  type CThostFtdcQryProductGroupField (line 7297) | struct CThostFtdcQryProductGroupField
  type CThostFtdcProductGroupField (line 7308) | struct CThostFtdcProductGroupField
  type CThostFtdcBulletinField (line 7323) | struct CThostFtdcBulletinField
  type CThostFtdcQryBulletinField (line 7352) | struct CThostFtdcQryBulletinField
  type CThostFtdcMulticastInstrumentField (line 7367) | struct CThostFtdcMulticastInstrumentField
  type CThostFtdcQryMulticastInstrumentField (line 7386) | struct CThostFtdcQryMulticastInstrumentField
  type CThostFtdcAppIDAuthAssignField (line 7397) | struct CThostFtdcAppIDAuthAssignField
  type CThostFtdcReqOpenAccountField (line 7408) | struct CThostFtdcReqOpenAccountField
  type CThostFtdcReqCancelAccountField (line 7503) | struct CThostFtdcReqCancelAccountField
  type CThostFtdcReqChangeAccountField (line 7598) | struct CThostFtdcReqChangeAccountField
  type CThostFtdcReqTransferField (line 7685) | struct CThostFtdcReqTransferField
  type CThostFtdcRspTransferField (line 7778) | struct CThostFtdcRspTransferField
  type CThostFtdcReqRepealField (line 7875) | struct CThostFtdcReqRepealField
  type CThostFtdcRspRepealField (line 7982) | struct CThostFtdcRspRepealField
  type CThostFtdcReqQueryAccountField (line 8093) | struct CThostFtdcReqQueryAccountField
  type CThostFtdcRspQueryAccountField (line 8172) | struct CThostFtdcRspQueryAccountField
  type CThostFtdcFutureSignIOField (line 8255) | struct CThostFtdcFutureSignIOField
  type CThostFtdcRspFutureSignInField (line 8302) | struct CThostFtdcRspFutureSignInField
  type CThostFtdcReqFutureSignOutField (line 8357) | struct CThostFtdcReqFutureSignOutField
  type CThostFtdcRspFutureSignOutField (line 8404) | struct CThostFtdcRspFutureSignOutField
  type CThostFtdcReqQueryTradeResultBySerialField (line 8455) | struct CThostFtdcReqQueryTradeResultBySerialField
  type CThostFtdcRspQueryTradeResultBySerialField (line 8514) | struct CThostFtdcRspQueryTradeResultBySerialField
  type CThostFtdcReqDayEndFileReadyField (line 8571) | struct CThostFtdcReqDayEndFileReadyField
  type CThostFtdcReturnResultField (line 8604) | struct CThostFtdcReturnResultField
  type CThostFtdcVerifyFuturePasswordField (line 8613) | struct CThostFtdcVerifyFuturePasswordField
  type CThostFtdcVerifyCustInfoField (line 8656) | struct CThostFtdcVerifyCustInfoField
  type CThostFtdcVerifyFuturePasswordAndCustInfoField (line 8671) | struct CThostFtdcVerifyFuturePasswordAndCustInfoField
  type CThostFtdcDepositResultInformField (line 8692) | struct CThostFtdcDepositResultInformField
  type CThostFtdcReqSyncKeyField (line 8711) | struct CThostFtdcReqSyncKeyField
  type CThostFtdcRspSyncKeyField (line 8756) | struct CThostFtdcRspSyncKeyField
  type CThostFtdcNotifyQueryAccountField (line 8805) | struct CThostFtdcNotifyQueryAccountField
  type CThostFtdcTransferSerialField (line 8892) | struct CThostFtdcTransferSerialField
  type CThostFtdcQryTransferSerialField (line 8953) | struct CThostFtdcQryTransferSerialField
  type CThostFtdcNotifyFutureSignInField (line 8966) | struct CThostFtdcNotifyFutureSignInField
  type CThostFtdcNotifyFutureSignOutField (line 9021) | struct CThostFtdcNotifyFutureSignOutField
  type CThostFtdcNotifySyncKeyField (line 9072) | struct CThostFtdcNotifySyncKeyField
  type CThostFtdcQryAccountregisterField (line 9121) | struct CThostFtdcQryAccountregisterField
  type CThostFtdcAccountregisterField (line 9136) | struct CThostFtdcAccountregisterField
  type CThostFtdcOpenAccountField (line 9177) | struct CThostFtdcOpenAccountField
  type CThostFtdcCancelAccountField (line 9276) | struct CThostFtdcCancelAccountField
  type CThostFtdcChangeAccountField (line 9375) | struct CThostFtdcChangeAccountField
  type CThostFtdcSecAgentACIDMapField (line 9466) | struct CThostFtdcSecAgentACIDMapField
  type CThostFtdcQrySecAgentACIDMapField (line 9481) | struct CThostFtdcQrySecAgentACIDMapField
  type CThostFtdcUserRightsAssignField (line 9494) | struct CThostFtdcUserRightsAssignField
  type CThostFtdcBrokerUserRightAssignField (line 9505) | struct CThostFtdcBrokerUserRightAssignField
  type CThostFtdcDRTransferField (line 9516) | struct CThostFtdcDRTransferField
  type CThostFtdcFensUserInfoField (line 9529) | struct CThostFtdcFensUserInfoField
  type CThostFtdcCurrTransferIdentityField (line 9540) | struct CThostFtdcCurrTransferIdentityField
  type CThostFtdcLoginForbiddenUserField (line 9547) | struct CThostFtdcLoginForbiddenUserField
  type CThostFtdcQryLoginForbiddenUserField (line 9560) | struct CThostFtdcQryLoginForbiddenUserField
  type CThostFtdcTradingAccountReserveField (line 9569) | struct CThostFtdcTradingAccountReserveField
  type CThostFtdcQryLoginForbiddenIPField (line 9582) | struct CThostFtdcQryLoginForbiddenIPField
  type CThostFtdcQryIPListField (line 9591) | struct CThostFtdcQryIPListField
  type CThostFtdcQryUserRightsAssignField (line 9600) | struct CThostFtdcQryUserRightsAssignField
  type CThostFtdcReserveOpenAccountConfirmField (line 9609) | struct CThostFtdcReserveOpenAccountConfirmField
  type CThostFtdcReserveOpenAccountField (line 9696) | struct CThostFtdcReserveOpenAccountField
  type CThostFtdcAccountPropertyField (line 9775) | struct CThostFtdcAccountPropertyField
  type CThostFtdcQryCurrDRIdentityField (line 9808) | struct CThostFtdcQryCurrDRIdentityField
  type CThostFtdcCurrDRIdentityField (line 9815) | struct CThostFtdcCurrDRIdentityField
  type CThostFtdcQrySecAgentCheckModeField (line 9822) | struct CThostFtdcQrySecAgentCheckModeField
  type CThostFtdcQrySecAgentTradeInfoField (line 9831) | struct CThostFtdcQrySecAgentTradeInfoField
  type CThostFtdcReqUserAuthMethodField (line 9840) | struct CThostFtdcReqUserAuthMethodField
  type CThostFtdcRspUserAuthMethodField (line 9851) | struct CThostFtdcRspUserAuthMethodField
  type CThostFtdcReqGenUserCaptchaField (line 9858) | struct CThostFtdcReqGenUserCaptchaField
  type CThostFtdcRspGenUserCaptchaField (line 9869) | struct CThostFtdcRspGenUserCaptchaField
  type CThostFtdcReqGenUserTextField (line 9882) | struct CThostFtdcReqGenUserTextField
  type CThostFtdcRspGenUserTextField (line 9893) | struct CThostFtdcRspGenUserTextField
  type CThostFtdcReqUserLoginWithCaptchaField (line 9900) | struct CThostFtdcReqUserLoginWithCaptchaField
  type CThostFtdcReqUserLoginWithTextField (line 9931) | struct CThostFtdcReqUserLoginWithTextField
  type CThostFtdcReqUserLoginWithOTPField (line 9962) | struct CThostFtdcReqUserLoginWithOTPField
  type CThostFtdcReqApiHandshakeField (line 9993) | struct CThostFtdcReqApiHandshakeField
  type CThostFtdcRspApiHandshakeField (line 10000) | struct CThostFtdcRspApiHandshakeField
  type CThostFtdcReqVerifyApiKeyField (line 10011) | struct CThostFtdcReqVerifyApiKeyField
  type CThostFtdcDepartmentUserField (line 10020) | struct CThostFtdcDepartmentUserField
  type CThostFtdcQueryFreqField (line 10033) | struct CThostFtdcQueryFreqField
  type CThostFtdcAuthForbiddenIPField (line 10042) | struct CThostFtdcAuthForbiddenIPField
  type CThostFtdcQryAuthForbiddenIPField (line 10049) | struct CThostFtdcQryAuthForbiddenIPField
  type CThostFtdcSyncDelaySwapFrozenField (line 10056) | struct CThostFtdcSyncDelaySwapFrozenField
  type CThostFtdcUserSystemInfoField (line 10073) | struct CThostFtdcUserSystemInfoField
  type CThostFtdcAuthUserIDField (line 10098) | struct CThostFtdcAuthUserIDField
  type CThostFtdcAuthIPField (line 10111) | struct CThostFtdcAuthIPField
  type CThostFtdcQryClassifiedInstrumentField (line 10122) | struct CThostFtdcQryClassifiedInstrumentField
  type CThostFtdcQryCombPromotionParamField (line 10139) | struct CThostFtdcQryCombPromotionParamField
  type CThostFtdcCombPromotionParamField (line 10148) | struct CThostFtdcCombPromotionParamField
  type CThostFtdcReqUserLoginSMField (line 10161) | struct CThostFtdcReqUserLoginSMField
  type CThostFtdcQryRiskSettleInvstPositionField (line 10200) | struct CThostFtdcQryRiskSettleInvstPositionField
  type CThostFtdcQryRiskSettleProductStatusField (line 10211) | struct CThostFtdcQryRiskSettleProductStatusField
  type CThostFtdcRiskSettleInvstPositionField (line 10218) | struct CThostFtdcRiskSettleInvstPositionField
  type CThostFtdcRiskSettleProductStatusField (line 10321) | struct CThostFtdcRiskSettleProductStatusField
  type CThostFtdcSyncDeltaInfoField (line 10332) | struct CThostFtdcSyncDeltaInfoField
  type CThostFtdcSyncDeltaProductStatusField (line 10345) | struct CThostFtdcSyncDeltaProductStatusField
  type CThostFtdcSyncDeltaInvstPosDtlField (line 10358) | struct CThostFtdcSyncDeltaInvstPosDtlField
  type CThostFtdcSyncDeltaInvstPosCombDtlField (line 10423) | struct CThostFtdcSyncDeltaInvstPosCombDtlField
  type CThostFtdcSyncDeltaTradingAccountField (line 10470) | struct CThostFtdcSyncDeltaTradingAccountField
  type CThostFtdcSyncDeltaInitInvstMarginField (line 10575) | struct CThostFtdcSyncDeltaInitInvstMarginField
  type CThostFtdcSyncDeltaDceCombInstrumentField (line 10610) | struct CThostFtdcSyncDeltaDceCombInstrumentField
  type CThostFtdcSyncDeltaInvstMarginRateField (line 10637) | struct CThostFtdcSyncDeltaInvstMarginRateField
  type CThostFtdcSyncDeltaExchMarginRateField (line 10666) | struct CThostFtdcSyncDeltaExchMarginRateField
  type CThostFtdcSyncDeltaOptExchMarginField (line 10689) | struct CThostFtdcSyncDeltaOptExchMarginField
  type CThostFtdcSyncDeltaOptInvstMarginField (line 10718) | struct CThostFtdcSyncDeltaOptInvstMarginField
  type CThostFtdcSyncDeltaInvstMarginRateULField (line 10753) | struct CThostFtdcSyncDeltaInvstMarginRateULField
  type CThostFtdcSyncDeltaOptInvstCommRateField (line 10780) | struct CThostFtdcSyncDeltaOptInvstCommRateField
  type CThostFtdcSyncDeltaInvstCommRateField (line 10813) | struct CThostFtdcSyncDeltaInvstCommRateField
  type CThostFtdcSyncDeltaProductExchRateField (line 10842) | struct CThostFtdcSyncDeltaProductExchRateField
  type CThostFtdcSyncDeltaDepthMarketDataField (line 10857) | struct CThostFtdcSyncDeltaDepthMarketDataField
  type CThostFtdcSyncDeltaIndexPriceField (line 10958) | struct CThostFtdcSyncDeltaIndexPriceField
  type CThostFtdcSyncDeltaEWarrantOffsetField (line 10973) | struct CThostFtdcSyncDeltaEWarrantOffsetField
  type CThostFtdcSPBMFutureParameterField (line 10998) | struct CThostFtdcSPBMFutureParameterField
  type CThostFtdcSPBMOptionParameterField (line 11025) | struct CThostFtdcSPBMOptionParameterField
  type CThostFtdcSPBMIntraParameterField (line 11048) | struct CThostFtdcSPBMIntraParameterField
  type CThostFtdcSPBMInterParameterField (line 11063) | struct CThostFtdcSPBMInterParameterField
  type CThostFtdcSyncSPBMParameterEndField (line 11080) | struct CThostFtdcSyncSPBMParameterEndField
  type CThostFtdcQrySPBMFutureParameterField (line 11087) | struct CThostFtdcQrySPBMFutureParameterField
  type CThostFtdcQrySPBMOptionParameterField (line 11098) | struct CThostFtdcQrySPBMOptionParameterField
  type CThostFtdcQrySPBMIntraParameterField (line 11109) | struct CThostFtdcQrySPBMIntraParameterField
  type CThostFtdcQrySPBMInterParameterField (line 11118) | struct CThostFtdcQrySPBMInterParameterField
  type CThostFtdcSPBMPortfDefinitionField (line 11129) | struct CThostFtdcSPBMPortfDefinitionField
  type CThostFtdcSPBMInvestorPortfDefField (line 11142) | struct CThostFtdcSPBMInvestorPortfDefField
  type CThostFtdcInvestorPortfMarginRatioField (line 11155) | struct CThostFtdcInvestorPortfMarginRatioField
  type CThostFtdcQrySPBMPortfDefinitionField (line 11172) | struct CThostFtdcQrySPBMPortfDefinitionField
  type CThostFtdcQrySPBMInvestorPortfDefField (line 11183) | struct CThostFtdcQrySPBMInvestorPortfDefField
  type CThostFtdcQryInvestorPortfMarginRatioField (line 11194) | struct CThostFtdcQryInvestorPortfMarginRatioField
  type CThostFtdcInvestorProdSPBMDetailField (line 11207) | struct CThostFtdcInvestorProdSPBMDetailField
  type CThostFtdcQryInvestorProdSPBMDetailField (line 11254) | struct CThostFtdcQryInvestorProdSPBMDetailField
  type CThostFtdcPortfTradeParamSettingField (line 11267) | struct CThostFtdcPortfTradeParamSettingField
  type CThostFtdcInvestorTradingRightField (line 11284) | struct CThostFtdcInvestorTradingRightField
  type CThostFtdcMortgageParamField (line 11295) | struct CThostFtdcMortgageParamField
  type CThostFtdcWithDrawParamField (line 11308) | struct CThostFtdcWithDrawParamField
  type CThostFtdcThostUserFunctionField (line 11321) | struct CThostFtdcThostUserFunctionField
  type CThostFtdcQryThostUserFunctionField (line 11332) | struct CThostFtdcQryThostUserFunctionField
  type CThostFtdcSPBMAddOnInterParameterField (line 11341) | struct CThostFtdcSPBMAddOnInterParameterField
  type CThostFtdcQrySPBMAddOnInterParameterField (line 11358) | struct CThostFtdcQrySPBMAddOnInterParameterField
  type CThostFtdcQryInvestorCommoditySPMMMarginField (line 11369) | struct CThostFtdcQryInvestorCommoditySPMMMarginField
  type CThostFtdcQryInvestorCommodityGroupSPMMMarginField (line 11380) | struct CThostFtdcQryInvestorCommodityGroupSPMMMarginField
  type CThostFtdcQrySPMMInstParamField (line 11391) | struct CThostFtdcQrySPMMInstParamField
  type CThostFtdcQrySPMMProductParamField (line 11398) | struct CThostFtdcQrySPMMProductParamField
  type CThostFtdcInvestorCommoditySPMMMarginField (line 11405) | struct CThostFtdcInvestorCommoditySPMMMarginField
  type CThostFtdcInvestorCommodityGroupSPMMMarginField (line 11456) | struct CThostFtdcInvestorCommodityGroupSPMMMarginField
  type CThostFtdcSPMMInstParamField (line 11503) | struct CThostFtdcSPMMInstParamField
  type CThostFtdcSPMMProductParamField (line 11518) | struct CThostFtdcSPMMProductParamField
  type CThostFtdcQryTraderAssignField (line 11531) | struct CThostFtdcQryTraderAssignField
  type CThostFtdcTraderAssignField (line 11538) | struct CThostFtdcTraderAssignField
  type CThostFtdcInvestorInfoCntSettingField (line 11553) | struct CThostFtdcInvestorInfoCntSettingField
  type CThostFtdcRCAMSCombProductInfoField (line 11572) | struct CThostFtdcRCAMSCombProductInfoField
  type CThostFtdcRCAMSInstrParameterField (line 11587) | struct CThostFtdcRCAMSInstrParameterField
  type CThostFtdcRCAMSIntraParameterField (line 11600) | struct CThostFtdcRCAMSIntraParameterField
  type CThostFtdcRCAMSInterParameterField (line 11613) | struct CThostFtdcRCAMSInterParameterField
  type CThostFtdcRCAMSShortOptAdjustParamField (line 11632) | struct CThostFtdcRCAMSShortOptAdjustParamField
  type CThostFtdcRCAMSInvestorCombPositionField (line 11647) | struct CThostFtdcRCAMSInvestorCombPositionField
  type CThostFtdcInvestorProdRCAMSMarginField (line 11676) | struct CThostFtdcInvestorProdRCAMSMarginField
  type CThostFtdcQryRCAMSCombProductInfoField (line 11735) | struct CThostFtdcQryRCAMSCombProductInfoField
  type CThostFtdcQryRCAMSInstrParameterField (line 11746) | struct CThostFtdcQryRCAMSInstrParameterField
  type CThostFtdcQryRCAMSIntraParameterField (line 11753) | struct CThostFtdcQryRCAMSIntraParameterField
  type CThostFtdcQryRCAMSInterParameterField (line 11760) | struct CThostFtdcQryRCAMSInterParameterField
  type CThostFtdcQryRCAMSShortOptAdjustParamField (line 11771) | struct CThostFtdcQryRCAMSShortOptAdjustParamField
  type CThostFtdcQryRCAMSInvestorCombPositionField (line 11778) | struct CThostFtdcQryRCAMSInvestorCombPositionField
  type CThostFtdcQryInvestorProdRCAMSMarginField (line 11791) | struct CThostFtdcQryInvestorProdRCAMSMarginField
  type CThostFtdcRULEInstrParameterField (line 11804) | struct CThostFtdcRULEInstrParameterField
  type CThostFtdcRULEIntraParameterField (line 11833) | struct CThostFtdcRULEIntraParameterField
  type CThostFtdcRULEInterParameterField (line 11852) | struct CThostFtdcRULEInterParameterField
  type CThostFtdcQryRULEInstrParameterField (line 11877) | struct CThostFtdcQryRULEInstrParameterField
  type CThostFtdcQryRULEIntraParameterField (line 11886) | struct CThostFtdcQryRULEIntraParameterField
  type CThostFtdcQryRULEInterParameterField (line 11895) | struct CThostFtdcQryRULEInterParameterField
  type CThostFtdcInvestorProdRULEMarginField (line 11908) | struct CThostFtdcInvestorProdRULEMarginField
  type CThostFtdcQryInvestorProdRULEMarginField (line 11967) | struct CThostFtdcQryInvestorProdRULEMarginField
  type CThostFtdcSyncDeltaSPBMPortfDefinitionField (line 11982) | struct CThostFtdcSyncDeltaSPBMPortfDefinitionField
  type CThostFtdcSyncDeltaSPBMInvstPortfDefField (line 11999) | struct CThostFtdcSyncDeltaSPBMInvstPortfDefField
  type CThostFtdcSyncDeltaSPBMFutureParameterField (line 12016) | struct CThostFtdcSyncDeltaSPBMFutureParameterField
  type CThostFtdcSyncDeltaSPBMOptionParameterField (line 12047) | struct CThostFtdcSyncDeltaSPBMOptionParameterField
  type CThostFtdcSyncDeltaSPBMIntraParameterField (line 12074) | struct CThostFtdcSyncDeltaSPBMIntraParameterField
  type CThostFtdcSyncDeltaSPBMInterParameterField (line 12093) | struct CThostFtdcSyncDeltaSPBMInterParameterField
  type CThostFtdcSyncDeltaSPBMAddOnInterParamField (line 12114) | struct CThostFtdcSyncDeltaSPBMAddOnInterParamField
  type CThostFtdcSyncDeltaSPMMInstParamField (line 12135) | struct CThostFtdcSyncDeltaSPMMInstParamField
  type CThostFtdcSyncDeltaSPMMProductParamField (line 12154) | struct CThostFtdcSyncDeltaSPMMProductParamField
  type CThostFtdcSyncDeltaInvestorSPMMModelField (line 12171) | struct CThostFtdcSyncDeltaInvestorSPMMModelField
  type CThostFtdcSyncDeltaSPMMModelParamField (line 12188) | struct CThostFtdcSyncDeltaSPMMModelParamField
  type CThostFtdcSyncDeltaRCAMSCombProdInfoField (line 12211) | struct CThostFtdcSyncDeltaRCAMSCombProdInfoField
  type CThostFtdcSyncDeltaRCAMSInstrParameterField (line 12230) | struct CThostFtdcSyncDeltaRCAMSInstrParameterField
  type CThostFtdcSyncDeltaRCAMSIntraParameterField (line 12247) | struct CThostFtdcSyncDeltaRCAMSIntraParameterField
  type CThostFtdcSyncDeltaRCAMSInterParameterField (line 12264) | struct CThostFtdcSyncDeltaRCAMSInterParameterField
  type CThostFtdcSyncDeltaRCAMSSOptAdjParamField (line 12287) | struct CThostFtdcSyncDeltaRCAMSSOptAdjParamField
  type CThostFtdcSyncDeltaRCAMSCombRuleDtlField (line 12306) | struct CThostFtdcSyncDeltaRCAMSCombRuleDtlField
  type CThostFtdcSyncDeltaRCAMSInvstCombPosField (line 12339) | struct CThostFtdcSyncDeltaRCAMSInvstCombPosField
  type CThostFtdcSyncDeltaRULEInstrParameterField (line 12372) | struct CThostFtdcSyncDeltaRULEInstrParameterField
  type CThostFtdcSyncDeltaRULEIntraParameterField (line 12405) | struct CThostFtdcSyncDeltaRULEIntraParameterField
  type CThostFtdcSyncDeltaRULEInterParameterField (line 12428) | struct CThostFtdcSyncDeltaRULEInterParameterField
  type CThostFtdcIpAddrParamField (line 12457) | struct CThostFtdcIpAddrParamField
  type CThostFtdcQryIpAddrParamField (line 12488) | struct CThostFtdcQryIpAddrParamField
  type CThostFtdcTGIpAddrParamField (line 12495) | struct CThostFtdcTGIpAddrParamField
  type CThostFtdcQryTGIpAddrParamField (line 12528) | struct CThostFtdcQryTGIpAddrParamField
  type CThostFtdcTGSessionQryStatusField (line 12539) | struct CThostFtdcTGSessionQryStatusField
  type CThostFtdcLocalAddrConfigField (line 12548) | struct CThostFtdcLocalAddrConfigField
  type CThostFtdcQryLocalAddrConfigField (line 12563) | struct CThostFtdcQryLocalAddrConfigField
  type CThostFtdcReqQueryBankAccountBySecField (line 12570) | struct CThostFtdcReqQueryBankAccountBySecField
  type CThostFtdcRspQueryBankAccountBySecField (line 12653) | struct CThostFtdcRspQueryBankAccountBySecField
  type CThostFtdcReqTransferBySecField (line 12740) | struct CThostFtdcReqTransferBySecField
  type CThostFtdcRspTransferBySecField (line 12837) | struct CThostFtdcRspTransferBySecField
  type CThostFtdcNotifyQueryFutureAccountBySecField (line 12938) | struct CThostFtdcNotifyQueryFutureAccountBySecField
  type CThostFtdcExitEmergencyField (line 13029) | struct CThostFtdcExitEmergencyField
  type CThostFtdcInvestorPortfMarginModelField (line 13036) | struct CThostFtdcInvestorPortfMarginModelField
  type CThostFtdcInvestorPortfSettingField (line 13047) | struct CThostFtdcInvestorPortfSettingField
  type CThostFtdcQryInvestorPortfSettingField (line 13062) | struct CThostFtdcQryInvestorPortfSettingField
  type CThostFtdcUserPasswordUpdateFromSecField (line 13073) | struct CThostFtdcUserPasswordUpdateFromSecField
  type CThostFtdcSettlementInfoConfirmFromSecField (line 13088) | struct CThostFtdcSettlementInfoConfirmFromSecField
  type CThostFtdcTradingAccountPasswordUpdateFromSecField (line 13103) | struct CThostFtdcTradingAccountPasswordUpdateFromSecField
  type CThostFtdcRiskForbiddenRightField (line 13120) | struct CThostFtdcRiskForbiddenRightField
  type CThostFtdcInvestorInfoCommRecField (line 13133) | struct CThostFtdcInvestorInfoCommRecField
  type CThostFtdcQryInvestorInfoCommRecField (line 13160) | struct CThostFtdcQryInvestorInfoCommRecField
  type CThostFtdcCombLegField (line 13171) | struct CThostFtdcCombLegField
  type CThostFtdcQryCombLegField (line 13188) | struct CThostFtdcQryCombLegField
  type CThostFtdcInputOffsetSettingField (line 13195) | struct CThostFtdcInputOffsetSettingField
  type CThostFtdcOffsetSettingField (line 13226) | struct CThostFtdcOffsetSettingField
  type CThostFtdcCancelOffsetSettingField (line 13299) | struct CThostFtdcCancelOffsetSettingField
  type CThostFtdcQryOffsetSettingField (line 13354) | struct CThostFtdcQryOffsetSettingField
  type CThostFtdcAddrAppIDRelationField (line 13367) | struct CThostFtdcAddrAppIDRelationField
  type CThostFtdcQryAddrAppIDRelationField (line 13380) | struct CThostFtdcQryAddrAppIDRelationField
  type CThostFtdcWechatUserSystemInfoField (line 13387) | struct CThostFtdcWechatUserSystemInfoField
  type CThostFtdcInvestorReserveInfoField (line 13410) | struct CThostFtdcInvestorReserveInfoField
  type CThostFtdcQryInvestorDepartmentFlatField (line 13421) | struct CThostFtdcQryInvestorDepartmentFlatField
  type CThostFtdcInvestorDepartmentFlatField (line 13428) | struct CThostFtdcInvestorDepartmentFlatField
  type CThostFtdcQryDepartmentUserField (line 13439) | struct CThostFtdcQryDepartmentUserField
  type CThostFtdcFrontInfoField (line 13447) | struct CThostFtdcFrontInfoField

FILE: native/ctp_bridge/src/py_module.cpp
  function copy_cstr (line 18) | void copy_cstr(char* dst, size_t dst_size, const std::string& value) {
  function get_str (line 27) | std::string get_str(const py::dict& d, const char* key, const std::strin...
  function get_int (line 33) | int get_int(const py::dict& d, const char* key, int fallback = 0) {
  function get_double (line 39) | double get_double(const py::dict& d, const char* key, double fallback = ...
  function decode_text (line 45) | py::str decode_text(const char* value) {
  class CtpClient (line 85) | class CtpClient
    method CtpClient (line 126) | CtpClient() = default;
    method configure (line 128) | void configure(const py::dict& cfg) {
    method start (line 143) | void start() {
    method stop (line 174) | void stop() {
    method set_event_callback (line 199) | void set_event_callback(py::object cb) {
    method request (line 203) | py::list request(const std::string& req_name, const py::object& payloa...
    method on_trade_front_connected (line 289) | void on_trade_front_connected() {
    method on_trade_front_disconnected (line 302) | void on_trade_front_disconnected(int nReason) {
    method on_trade_auth_rsp (line 313) | void on_trade_auth_rsp(CThostFtdcRspInfoField* pRspInfo, int nRequestI...
    method on_trade_login_rsp (line 333) | void on_trade_login_rsp(CThostFtdcRspUserLoginField* pRspUserLogin, CT...
    method on_market_front_connected (line 374) | void on_market_front_connected() {
    method on_market_front_disconnected (line 385) | void on_market_front_disconnected(int nReason) {
    method on_market_login_rsp (line 396) | void on_market_login_rsp(CThostFtdcRspInfoField* pRspInfo) {
    method on_rsp_settlement_info_confirm (line 419) | void on_rsp_settlement_info_confirm(CThostFtdcSettlementInfoConfirmFie...
    method on_rsp_error (line 457) | void on_rsp_error(int request_id, int error_id, const std::string& err...
    method on_rsp_trading_account (line 492) | void on_rsp_trading_account(CThostFtdcTradingAccountField* pStruct, CT...
    method on_rsp_investor_position_detail (line 526) | void on_rsp_investor_position_detail(CThostFtdcInvestorPositionDetailF...
    method on_rsp_instrument (line 558) | void on_rsp_instrument(CThostFtdcInstrumentField* pStruct, CThostFtdcR...
    method on_rsp_instrument_commission_rate (line 593) | void on_rsp_instrument_commission_rate(CThostFtdcInstrumentCommissionR...
    method on_rsp_instrument_margin_rate (line 627) | void on_rsp_instrument_margin_rate(CThostFtdcInstrumentMarginRateField...
    method on_rsp_qry_order (line 661) | void on_rsp_qry_order(CThostFtdcOrderField* pStruct, CThostFtdcRspInfo...
    method on_rsp_qry_trade (line 703) | void on_rsp_qry_trade(CThostFtdcTradeField* pStruct, CThostFtdcRspInfo...
    method on_rsp_order_insert (line 743) | void on_rsp_order_insert(CThostFtdcInputOrderField* pStruct, CThostFtd...
    method on_rsp_order_action (line 767) | void on_rsp_order_action(CThostFtdcInputOrderActionField* pStruct, CTh...
    method on_rtn_order (line 797) | void on_rtn_order(CThostFtdcOrderField* pStruct) {
    method on_rtn_trade (line 823) | void on_rtn_trade(CThostFtdcTradeField* pStruct) {
    method on_rsp_sub_market_data (line 848) | void on_rsp_sub_market_data(CThostFtdcSpecificInstrumentField* pSpecif...
    method on_rtn_depth_market_data (line 873) | void on_rtn_depth_market_data(CThostFtdcDepthMarketDataField* pData) {
    type Pending (line 900) | struct Pending {
    method enforce_query_throttle (line 904) | void enforce_query_throttle() {
    method wait_login (line 916) | void wait_login(bool trade, bool market) {
    method send_trade_login (line 928) | void send_trade_login(int req_id) {
    method send_settlement_info_confirm (line 935) | int send_settlement_info_confirm(int req_id) {
    method dispatch_request (line 941) | int dispatch_request(const std::string& req_name, int request_id, cons...
    method emit_event (line 1077) | void emit_event(const std::string& topic, const py::dict& row) {
  class TraderSpi (line 86) | class TraderSpi final : public CThostFtdcTraderSpi {
    method TraderSpi (line 88) | explicit TraderSpi(CtpClient* owner) : owner_(owner) {}
  class MdSpi (line 110) | class MdSpi final : public CThostFtdcMdSpi {
    method MdSpi (line 112) | explicit MdSpi(CtpClient* owner) : owner_(owner) {}
  class CtpClient (line 124) | class CtpClient {
    method CtpClient (line 126) | CtpClient() = default;
    method configure (line 128) | void configure(const py::dict& cfg) {
    method start (line 143) | void start() {
    method stop (line 174) | void stop() {
    method set_event_callback (line 199) | void set_event_callback(py::object cb) {
    method request (line 203) | py::list request(const std::string& req_name, const py::object& payloa...
    method on_trade_front_connected (line 289) | void on_trade_front_connected() {
    method on_trade_front_disconnected (line 302) | void on_trade_front_disconnected(int nReason) {
    method on_trade_auth_rsp (line 313) | void on_trade_auth_rsp(CThostFtdcRspInfoField* pRspInfo, int nRequestI...
    method on_trade_login_rsp (line 333) | void on_trade_login_rsp(CThostFtdcRspUserLoginField* pRspUserLogin, CT...
    method on_market_front_connected (line 374) | void on_market_front_connected() {
    method on_market_front_disconnected (line 385) | void on_market_front_disconnected(int nReason) {
    method on_market_login_rsp (line 396) | void on_market_login_rsp(CThostFtdcRspInfoField* pRspInfo) {
    method on_rsp_settlement_info_confirm (line 419) | void on_rsp_settlement_info_confirm(CThostFtdcSettlementInfoConfirmFie...
    method on_rsp_error (line 457) | void on_rsp_error(int request_id, int error_id, const std::string& err...
    method on_rsp_trading_account (line 492) | void on_rsp_trading_account(CThostFtdcTradingAccountField* pStruct, CT...
    method on_rsp_investor_position_detail (line 526) | void on_rsp_investor_position_detail(CThostFtdcInvestorPositionDetailF...
    method on_rsp_instrument (line 558) | void on_rsp_instrument(CThostFtdcInstrumentField* pStruct, CThostFtdcR...
    method on_rsp_instrument_commission_rate (line 593) | void on_rsp_instrument_commission_rate(CThostFtdcInstrumentCommissionR...
    method on_rsp_instrument_margin_rate (line 627) | void on_rsp_instrument_margin_rate(CThostFtdcInstrumentMarginRateField...
    method on_rsp_qry_order (line 661) | void on_rsp_qry_order(CThostFtdcOrderField* pStruct, CThostFtdcRspInfo...
    method on_rsp_qry_trade (line 703) | void on_rsp_qry_trade(CThostFtdcTradeField* pStruct, CThostFtdcRspInfo...
    method on_rsp_order_insert (line 743) | void on_rsp_order_insert(CThostFtdcInputOrderField* pStruct, CThostFtd...
    method on_rsp_order_action (line 767) | void on_rsp_order_action(CThostFtdcInputOrderActionField* pStruct, CTh...
    method on_rtn_order (line 797) | void on_rtn_order(CThostFtdcOrderField* pStruct) {
    method on_rtn_trade (line 823) | void on_rtn_trade(CThostFtdcTradeField* pStruct) {
    method on_rsp_sub_market_data (line 848) | void on_rsp_sub_market_data(CThostFtdcSpecificInstrumentField* pSpecif...
    method on_rtn_depth_market_data (line 873) | void on_rtn_depth_market_data(CThostFtdcDepthMarketDataField* pData) {
    type Pending (line 900) | struct Pending {
    method enforce_query_throttle (line 904) | void enforce_query_throttle() {
    method wait_login (line 916) | void wait_login(bool trade, bool market) {
    method send_trade_login (line 928) | void send_trade_login(int req_id) {
    method send_settlement_info_confirm (line 935) | int send_settlement_info_confirm(int req_id) {
    method dispatch_request (line 941) | int dispatch_request(const std::string& req_name, int request_id, cons...
    method emit_event (line 1077) | void emit_event(const std::string& topic, const py::dict& row) {
  function PYBIND11_MODULE (line 1150) | PYBIND11_MODULE(ctp_bridge_native, m) {

FILE: panel/admin.py
  class AddressAdmin (line 26) | class AddressAdmin(admin.ModelAdmin):
  class BrokerAdmin (line 31) | class BrokerAdmin(admin.ModelAdmin):
  class StrategyAdmin (line 38) | class StrategyAdmin(admin.ModelAdmin):
  class OrderAdmin (line 43) | class OrderAdmin(admin.ModelAdmin):
  class InstrumentAdmin (line 48) | class InstrumentAdmin(admin.ModelAdmin):
  class MainBarAdmin (line 56) | class MainBarAdmin(admin.ModelAdmin):
  class DailyBarAdmin (line 63) | class DailyBarAdmin(admin.ModelAdmin):
  class TradeAdmin (line 68) | class TradeAdmin(admin.ModelAdmin):
  class ParamAdmin (line 75) | class ParamAdmin(admin.ModelAdmin):
  class SignalAdmin (line 82) | class SignalAdmin(admin.ModelAdmin):
  class PerformanceAdmin (line 90) | class PerformanceAdmin(admin.ModelAdmin):

FILE: panel/apps.py
  class PanelConfig (line 19) | class PanelConfig(AppConfig):

FILE: panel/const.py
  class ContractType (line 19) | class ContractType(models.TextChoices):
  class ExchangeType (line 25) | class ExchangeType(models.TextChoices):
  class SectionType (line 34) | class SectionType(models.TextChoices):
  class SortType (line 45) | class SortType(models.TextChoices):
  class AddressType (line 68) | class AddressType(models.TextChoices):
  class OperatorType (line 73) | class OperatorType(models.TextChoices):
  class DirectionType (line 78) | class DirectionType(models.TextChoices):
  class CombOffsetFlag (line 83) | class CombOffsetFlag(models.TextChoices):  # 订单开平标志
  class OffsetFlag (line 93) | class OffsetFlag(models.TextChoices):  # 开平标志
  class OrderStatus (line 103) | class OrderStatus(models.TextChoices):  # 报单状态
  class OrderSubmitStatus (line 115) | class OrderSubmitStatus(models.TextChoices):  # 报单提交状态
  class SignalType (line 178) | class SignalType(models.TextChoices):
  class PriorityType (line 187) | class PriorityType(models.IntegerChoices):

FILE: panel/forms.py
  class BrokerForm (line 5) | class BrokerForm(forms.ModelForm):
    class Meta (line 8) | class Meta:

FILE: panel/models.py
  function to_df (line 25) | def to_df(queryset, index_col=None, parse_dates=None):
  class Autonumber (line 42) | class Autonumber(models.Model):
  class Address (line 47) | class Address(models.Model):
    class Meta (line 53) | class Meta:
    method __str__ (line 57) | def __str__(self):
  class Broker (line 61) | class Broker(models.Model):
    class Meta (line 76) | class Meta:
    method __str__ (line 80) | def __str__(self):
  class Performance (line 84) | class Performance(models.Model):
    class Meta (line 95) | class Meta:
    method __str__ (line 99) | def __str__(self):
  class Strategy (line 103) | class Strategy(models.Model):
    class Meta (line 109) | class Meta:
    method __str__ (line 113) | def __str__(self):
    method get_instruments (line 116) | def get_instruments(self):
    method get_force_opens (line 121) | def get_force_opens(self):
  class Param (line 127) | class Param(models.Model):
    class Meta (line 135) | class Meta:
    method __str__ (line 139) | def __str__(self):
  class Instrument (line 145) | class Instrument(models.Model):
    class Meta (line 164) | class Meta:
    method __str__ (line 168) | def __str__(self):
  class Signal (line 172) | class Signal(models.Model):
    class Meta (line 184) | class Meta:
    method __str__ (line 188) | def __str__(self):
  class MainBar (line 193) | class MainBar(models.Model):
    class Meta (line 207) | class Meta:
    method __str__ (line 211) | def __str__(self):
  class DailyBar (line 215) | class DailyBar(models.Model):
    class Meta (line 228) | class Meta:
    method __str__ (line 232) | def __str__(self):
  class Order (line 236) | class Order(models.Model):
    class Meta (line 253) | class Meta:
    method __str__ (line 257) | def __str__(self):
  class Trade (line 261) | class Trade(models.Model):
    class Meta (line 282) | class Meta:
    method __str__ (line 286) | def __str__(self):

FILE: panel/templatetags/custom_tag.py
  function number (line 9) | def number(obj):
  function change_strategy (line 14) | def change_strategy(request, new):
  function in_group (line 20) | def in_group(user, group_name):
  function format_query_string (line 25) | def format_query_string(request):
  function all_query_param (line 33) | def all_query_param(request):
  function left_bar (line 38) | def left_bar(request):
  function can_edit (line 46) | def can_edit(db_obj, user):
  function split_ip (line 51) | def split_ip(ip):

FILE: panel/views.py
  class CustomBaseView (line 33) | class CustomBaseView(LoginRequiredMixin, TemplateView):
    method get_context_data (line 34) | def get_context_data(self, **kwargs):
  class StatusView (line 41) | class StatusView(CustomBaseView):
    method get_context_data (line 42) | def get_context_data(self, **kwargs):
  class PerformanceView (line 61) | class PerformanceView(CustomBaseView):
  class CorrelationView (line 65) | class CorrelationView(CustomBaseView):
    method get_context_data (line 66) | def get_context_data(self, **kwargs):
  class InstrumentView (line 78) | class InstrumentView(CustomBaseView):
    method get_context_data (line 79) | def get_context_data(self, **kwargs):
  function nav_data (line 90) | def nav_data(request):
  function bar_data (line 100) | def bar_data(request):
  function calc_corr (line 143) | def calc_corr(year: int, inst_list: list):
  function corr_data (line 159) | def corr_data(request):
  function status_data (line 175) | def status_data(request):

FILE: runtime_config.py
  function _deep_merge_dict (line 66) | def _deep_merge_dict(base: dict, override: dict) -> dict:
  function _normalize_yaml_data (line 76) | def _normalize_yaml_data(data: dict | None) -> dict:
  function _load_ini_data (line 90) | def _load_ini_data(path: str) -> dict:
  function _write_yaml (line 136) | def _write_yaml(path: str, data: dict):
  function _ensure_yaml_config (line 141) | def _ensure_yaml_config() -> str:
  function _to_config_parser (line 155) | def _to_config_parser(yaml_data: dict) -> configparser.ConfigParser:
  function load_runtime_config (line 166) | def load_runtime_config() -> configparser.ConfigParser:

FILE: strategy/__init__.py
  class BaseModule (line 34) | class BaseModule(CallbackFunctionContainer, metaclass=ABCMeta):
    method __init__ (line 35) | def __init__(self):
    method _register_callback (line 51) | def _register_callback(self):
    method _get_next (line 64) | def _get_next(self, key):
    method _call_next (line 67) | def _call_next(self, key):
    method install (line 73) | async def install(self):
    method uninstall (line 90) | async def uninstall(self):
    method _msg_reader (line 107) | async def _msg_reader(self):
    method start (line 120) | async def start(self):
    method stop (line 123) | async def stop(self):
    method run (line 126) | def run(self):

FILE: strategy/base_strategy.py
  class BaseTradeStrategy (line 39) | class BaseTradeStrategy(BaseModule):
    method __init__ (line 45) | def __init__(self, name: str):
    method get_param (line 84) | def get_param(self, code: str, default=None):
    method _normalize_ctp_text (line 96) | def _normalize_ctp_text(text: Any) -> str:
    method _is_suspect_text (line 117) | def _is_suspect_text(text: str) -> bool:
    method start (line 130) | async def start(self):
    method _check_initial_connection (line 141) | async def _check_initial_connection(self):
    method _session_init (line 145) | async def _session_init(self):
    method refresh_account (line 166) | async def refresh_account(self):
    method refresh_position (line 194) | async def refresh_position(self):
    method refresh_instrument (line 236) | async def refresh_instrument(self):
    method getShares (line 325) | def getShares(self, instrument: str):
    method getPositions (line 334) | def getPositions(self, inst_id: int):
    method async_query (line 342) | def async_query(self, query_type: str, **kwargs):
    method query_reader (line 348) | async def query_reader(pb):
    method query (line 357) | async def query(self, query_type: str, **kwargs):
    method SubscribeMarketData (line 380) | async def SubscribeMarketData(self, inst_ids: list):
    method UnSubscribeMarketData (line 401) | async def UnSubscribeMarketData(self, inst_ids: list):
    method ReqOrderInsert (line 426) | def ReqOrderInsert(self, sig: Signal):
    method cancel_order (line 469) | async def cancel_order(self, order: dict):
    method OnRtnDepthMarketData (line 504) | async def OnRtnDepthMarketData(self, channel, tick: dict):
    method get_trade_string (line 513) | def get_trade_string(trade: dict) -> str:
    method OnRtnTrade (line 526) | async def OnRtnTrade(self, channel, trade: dict):
    method save_order (line 604) | def save_order(order: dict):
    method get_order_string (line 630) | def get_order_string(order: dict) -> str:
    method OnRtnOrder (line 643) | async def OnRtnOrder(self, _: str, order: dict):
    method refresh_trading_day (line 705) | async def refresh_trading_day(self):
    method _has_night_session_tonight (line 718) | async def _has_night_session_tonight(self) -> bool:
    method heartbeat (line 733) | async def heartbeat(self):
    method on_ctp_connected (line 742) | async def on_ctp_connected(self, channel, data: dict):
    method on_ctp_disconnected (line 748) | async def on_ctp_disconnected(self, channel, data: dict):
    method on_ctp_login (line 755) | async def on_ctp_login(self, channel, data: dict):
    method session_init_day (line 781) | async def session_init_day(self):
    method session_init_afternoon (line 788) | async def session_init_afternoon(self):
    method session_init_night (line 795) | async def session_init_night(self):
    method processing_signal1 (line 803) | async def processing_signal1(self):
    method check_signal1_processed (line 818) | async def check_signal1_processed(self):
    method processing_signal2 (line 829) | async def processing_signal2(self):
    method check_signal2_processed (line 841) | async def check_signal2_processed(self):
    method processing_signal3 (line 852) | async def processing_signal3(self):
    method check_signal3_processed (line 863) | async def check_signal3_processed(self):
    method refresh_all (line 873) | async def refresh_all(self):
    method update_equity (line 885) | async def update_equity(self):
    method collect_quote (line 913) | async def collect_quote(self, tasks=None):
    method calc_up_limit (line 937) | def calc_up_limit(self, inst: Instrument, bar: DailyBar):
    method calc_down_limit (line 946) | def calc_down_limit(self, inst: Instrument, bar: DailyBar):
    method get_signal_instruments (line 959) | def get_signal_instruments(self) -> set[str]:
    method get_margin_threshold (line 966) | def get_margin_threshold(self) -> float:
    method calculate (line 970) | def calculate(self, day, create_main_bar=True):
    method calc_signal (line 991) | def calc_signal(self, inst: Instrument, day: datetime.datetime) -> tup...

FILE: strategy/brother2.py
  class TradeStrategy (line 30) | class TradeStrategy(BaseTradeStrategy):
    method __init__ (line 33) | def __init__(self, name: str):
    method calc_signal (line 36) | def calc_signal(self, inst: Instrument, day: datetime.datetime) -> tup...

FILE: utils/__init__.py
  function _create_http_connector (line 60) | def _create_http_connector() -> aiohttp.TCPConnector:
  function _create_http_session (line 71) | def _create_http_session(timeout_total: float = 20.0) -> aiohttp.ClientS...
  function str_to_number (line 80) | def str_to_number(s):
  function price_round (line 89) | def price_round(x: Decimal, base: Decimal):
  function get_next_id (line 109) | def get_next_id():
  function is_trading_day (line 116) | async def is_trading_day(day: datetime.datetime):
  function check_trading_day (line 134) | async def check_trading_day(day: datetime.datetime) -> tuple[datetime.da...
  function get_expire_date (line 144) | def get_expire_date(inst_code: str, day: datetime.datetime):
  function get_contract_code_regex (line 154) | def get_contract_code_regex(product_code: str) -> str:
  function update_from_shfe (line 163) | async def update_from_shfe(day: datetime.datetime) -> bool:
  function update_from_czce (line 215) | async def update_from_czce(day: datetime.datetime) -> bool:
  function update_from_dce (li
Condensed preview — 81 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,844K chars).
[
  {
    "path": ".gitignore",
    "chars": 1262,
    "preview": "# ===== Python =====\r\n__pycache__/\r\n*.py[cod]\r\n*$py.class\r\n*.pyd\r\n*.so\r\n*.egg-info/\r\n.Python\r\n.github/\r\n# Virtual enviro"
  },
  {
    "path": "LICENSE.md",
    "chars": 10930,
    "preview": "                                 Apache License\n                           Version 2.0, January 2004\n                   "
  },
  {
    "path": "README.md",
    "chars": 2786,
    "preview": "# trader\r\n\r\n`trader` 是一个以 **CTP 原生链路** 为核心的交易项目,包含:\r\n\r\n- 原生网关(`native/ctp_bridge` + `ctp_native`)\r\n- 策略执行(`strategy`)\r\n-"
  },
  {
    "path": "README.rst",
    "chars": 268,
    "preview": "trader\n======\n\n操盘大哥的交易组件\n\n\nINSTALL\n=======\n\n先装talib的C库,再用pip装依赖。\n\n修改 mysql 配置文件 /etc/my.cnf.d/server.cnf ,增加如下配置:\n\n    ["
  },
  {
    "path": "__init__.py",
    "chars": 995,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "ctp_native/__init__.py",
    "chars": 253,
    "preview": "# coding=utf-8\r\n\r\nfrom .bus import LocalRedisLikeClient\r\nfrom .gateway import NativeGateway, get_gateway\r\nfrom .state_st"
  },
  {
    "path": "ctp_native/bus.py",
    "chars": 8073,
    "preview": "# coding=utf-8\r\nfrom __future__ import annotations\r\n\r\nimport asyncio\r\nimport fnmatch\r\nimport inspect\r\nimport logging\r\nfr"
  },
  {
    "path": "ctp_native/gateway.py",
    "chars": 7275,
    "preview": "# coding=utf-8\r\nfrom __future__ import annotations\r\n\r\nimport logging\r\nimport importlib\r\nimport sys\r\nimport os\r\nimport as"
  },
  {
    "path": "ctp_native/state_store.py",
    "chars": 2526,
    "preview": "# coding=utf-8\r\nimport os\r\nimport threading\r\nimport time\r\nfrom typing import Any\r\n\r\nfrom appdirs import AppDirs\r\nimport "
  },
  {
    "path": "dashboard/__init__.py",
    "chars": 606,
    "preview": "# coding=utf-8\r\n#\r\n# Copyright 2016 timercrack\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you"
  },
  {
    "path": "dashboard/settings.py",
    "chars": 7052,
    "preview": "\"\"\"\r\nDjango settings for mysite project.\r\n\r\nGenerated by 'django-admin startproject' using Django 3.2.9.\r\n\r\nFor more inf"
  },
  {
    "path": "dashboard/static/css/global.css",
    "chars": 3265,
    "preview": "body {\r\n    font-family: -apple-system, \"Helvetica Neue\", \"Arial\", \"PingFang SC\", \"Hiragino Sans GB\", \"STHeiti\", \"Micros"
  },
  {
    "path": "dashboard/static/js/bar.js",
    "chars": 3314,
    "preview": "// 基于准备好的dom,初始化echarts实例\nvar myChart = echarts.init(document.getElementById(\"main\"));\n\noption = {\n  backgroundColor: \"#"
  },
  {
    "path": "dashboard/static/js/corr.js",
    "chars": 4235,
    "preview": "// 基于准备好的dom,初始化echarts实例\nvar myChart = echarts.init(document.getElementById(\"main\"));\n\noption = {\n  tooltip: {\n    posi"
  },
  {
    "path": "dashboard/static/js/global.js",
    "chars": 474,
    "preview": "var getUrlParameter = function getUrlParameter(sParam) {\r\n    var sPageURL = decodeURIComponent(window.location.search.s"
  },
  {
    "path": "dashboard/static/js/nav.js",
    "chars": 1121,
    "preview": "// 基于准备好的dom,初始化echarts实例\nvar myChart = echarts.init(document.getElementById(\"main\"));\n\n// 指定图表的配置项和数据\nvar option = {\n  "
  },
  {
    "path": "dashboard/static/js/status.js",
    "chars": 2305,
    "preview": "// 基于准备好的dom,初始化echarts实例\r\nvar secChart = echarts.init(document.getElementById(\"section\"));\r\nvar posChart = echarts.init"
  },
  {
    "path": "dashboard/templates/global/base_site.html",
    "chars": 1337,
    "preview": "{% load static %}\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"utf-8\">\r\n    <meta http-equiv=\"X-UA-Com"
  },
  {
    "path": "dashboard/templates/global/paginator-mobile.html",
    "chars": 596,
    "preview": "{% load custom_tag %}\r\n{% if paginator %}\r\n    <div class=\"content-block\">\r\n        <p class=\"buttons-row\">\r\n           "
  },
  {
    "path": "dashboard/templates/global/paginator.html",
    "chars": 2628,
    "preview": "{% load custom_tag %}\r\n{% if paginator %}\r\n    <div class=\"container-fluid\" id=\"split-page\">\r\n        <div class=\"page_s"
  },
  {
    "path": "dashboard/templates/global/top_navbar.html",
    "chars": 2842,
    "preview": "{% load custom_tag %}\n<nav class=\"navbar navbar-default\">\n    <div class=\"container-fluid\">\n        <!-- Brand and toggl"
  },
  {
    "path": "dashboard/templates/panel/correlation.html",
    "chars": 2012,
    "preview": "{% extends 'global/base_site.html' %}\n{% load static %}\n{% block extrajs %}\n    {{ block.super }}\n    <script src=\"{% st"
  },
  {
    "path": "dashboard/templates/panel/instrument.html",
    "chars": 1094,
    "preview": "{% extends 'global/base_site.html' %}\r\n{% load static %}\r\n{% block extrajs %}\r\n    {{ block.super }}\r\n    <script src=\"{"
  },
  {
    "path": "dashboard/templates/panel/performance.html",
    "chars": 270,
    "preview": "{% extends 'global/base_site.html' %}\r\n{% load static %}\r\n{% block extrajs %}\r\n    {{ block.super }}\r\n    <script src=\"{"
  },
  {
    "path": "dashboard/templates/panel/status.html",
    "chars": 4330,
    "preview": "{% extends 'global/base_site.html' %}\r\n{% load static %}\r\n{% load custom_tag %}\r\n{% block extrajs %}\r\n    {{ block.super"
  },
  {
    "path": "dashboard/urls.py",
    "chars": 1043,
    "preview": "\"\"\"dashboard URL Configuration\r\n\r\nThe `urlpatterns` list routes URLs to views. For more information please see:\r\n    htt"
  },
  {
    "path": "dashboard/wsgi.py",
    "chars": 412,
    "preview": "\"\"\"\r\nWSGI config for dashboard project.\r\n\r\nIt exposes the WSGI callable as a module-level variable named ``application``"
  },
  {
    "path": "main.py",
    "chars": 3343,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "manage.py",
    "chars": 250,
    "preview": "#!/usr/bin/env python\nimport os\nimport sys\n\nif __name__ == \"__main__\":\n    os.environ.setdefault(\"DJANGO_SETTINGS_MODULE"
  },
  {
    "path": "native/ctp_bridge/CMakeLists.txt",
    "chars": 2937,
    "preview": "cmake_minimum_required(VERSION 3.31)\r\n\r\nif(POLICY CMP0091)\r\n    cmake_policy(SET CMP0091 NEW)\r\nendif()\r\n\r\nproject(ctp_br"
  },
  {
    "path": "native/ctp_bridge/CMakePresets.json",
    "chars": 916,
    "preview": "{\r\n  \"version\": 3,\r\n  \"configurePresets\": [\r\n    {\r\n      \"name\": \"win\",\r\n      \"displayName\": \"Windows (Ninja)\",\r\n     "
  },
  {
    "path": "native/ctp_bridge/README.md",
    "chars": 2245,
    "preview": "# ctp_bridge_native(简化说明)\r\n\r\n`ctp_bridge_native` 是 `trader` 的本地 C++ 扩展,用于通过 pybind11 直连 CTP Thost API。\r\n\r\n## 目录结构\r\n\r\n- `"
  },
  {
    "path": "native/ctp_bridge/api/linux/DataCollect.h",
    "chars": 1570,
    "preview": "#ifndef DATA_COLLECT_H\r\n#define DATA_COLLECT_H\r\n\r\n#define DLL_EXPORT __declspec(dllexport)\r\n\r\n#if defined(IS_WINCOLLECT_"
  },
  {
    "path": "native/ctp_bridge/api/linux/ThostFtdcMdApi.h",
    "chars": 5177,
    "preview": "/////////////////////////////////////////////////////////////////////////\n///@system 新一代交易所系统\n///@company 上海期货信息技术有限公司\n/"
  },
  {
    "path": "native/ctp_bridge/api/linux/ThostFtdcTraderApi.h",
    "chars": 45664,
    "preview": "/////////////////////////////////////////////////////////////////////////\n///@system 新一代交易所系统\n///@company 上海期货信息技术有限公司\n/"
  },
  {
    "path": "native/ctp_bridge/api/linux/ThostFtdcUserApiDataType.h",
    "chars": 254568,
    "preview": "/////////////////////////////////////////////////////////////////////////\n///@system 新一代交易所系统\n///@company 上海期货信息技术有限公司\n/"
  },
  {
    "path": "native/ctp_bridge/api/linux/ThostFtdcUserApiStruct.h",
    "chars": 295915,
    "preview": "/////////////////////////////////////////////////////////////////////////\n///@system 新一代交易所系统\n///@company 上海期货信息技术有限公司\n/"
  },
  {
    "path": "native/ctp_bridge/api/linux/error.dtd",
    "chars": 184,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!ELEMENT errors (error*)>\r\n<!ELEMENT error EMPTY>\r\n<!ATTLIST error\r\n\tid\tCDATA #"
  },
  {
    "path": "native/ctp_bridge/api/linux/error.xml",
    "chars": 21874,
    "preview": "<?xml version=\"1.0\" encoding=\"utf8\"?>\r\n<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by wangzhaodong (O"
  },
  {
    "path": "native/ctp_bridge/api/win/DataCollect.h",
    "chars": 1570,
    "preview": "#ifndef DATA_COLLECT_H\r\n#define DATA_COLLECT_H\r\n\r\n#define DLL_EXPORT __declspec(dllexport)\r\n\r\n#if defined(IS_WINCOLLECT_"
  },
  {
    "path": "native/ctp_bridge/api/win/ThostFtdcMdApi.h",
    "chars": 5346,
    "preview": "/////////////////////////////////////////////////////////////////////////\r\n///@system 新一代交易所系统\r\n///@company 上海期货信息技术有限公司"
  },
  {
    "path": "native/ctp_bridge/api/win/ThostFtdcTraderApi.h",
    "chars": 46640,
    "preview": "/////////////////////////////////////////////////////////////////////////\r\n///@system 新一代交易所系统\r\n///@company 上海期货信息技术有限公司"
  },
  {
    "path": "native/ctp_bridge/api/win/ThostFtdcUserApiDataType.h",
    "chars": 261765,
    "preview": "/////////////////////////////////////////////////////////////////////////\r\n///@system 新一代交易所系统\r\n///@company 上海期货信息技术有限公司"
  },
  {
    "path": "native/ctp_bridge/api/win/ThostFtdcUserApiStruct.h",
    "chars": 309372,
    "preview": "/////////////////////////////////////////////////////////////////////////\r\n///@system 新一代交易所系统\r\n///@company 上海期货信息技术有限公司"
  },
  {
    "path": "native/ctp_bridge/api/win/error.dtd",
    "chars": 184,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!ELEMENT errors (error*)>\r\n<!ELEMENT error EMPTY>\r\n<!ATTLIST error\r\n\tid\tCDATA #"
  },
  {
    "path": "native/ctp_bridge/api/win/error.xml",
    "chars": 21874,
    "preview": "<?xml version=\"1.0\" encoding=\"utf8\"?>\r\n<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by wangzhaodong (O"
  },
  {
    "path": "native/ctp_bridge/build_win.bat",
    "chars": 533,
    "preview": "@echo off\r\nsetlocal\r\n\r\nchcp 936 >nul\r\n\r\nset \"VCVARS=D:\\Program Files\\Microsoft Visual Studio\\18\\BuildTools\\VC\\Auxiliary\\"
  },
  {
    "path": "native/ctp_bridge/scripts/build_native_bridge.ps1",
    "chars": 808,
    "preview": "param(\r\n    [string]$BuildDir = \"build\",\r\n    [string]$Config = \"Release\"\r\n)\r\n\r\nSet-StrictMode -Version Latest\r\n$ErrorAc"
  },
  {
    "path": "native/ctp_bridge/scripts/sync_thost_api.ps1",
    "chars": 1022,
    "preview": "Set-StrictMode -Version Latest\r\n$ErrorActionPreference = \"Stop\"\r\n\r\nfunction Write-Step([string]$Message) {\r\n    Write-Ho"
  },
  {
    "path": "native/ctp_bridge/src/py_module.cpp",
    "chars": 55304,
    "preview": "#include <pybind11/pybind11.h>\r\n#include <pybind11/stl.h>\r\n#include <chrono>\r\n#include <condition_variable>\r\n#include <c"
  },
  {
    "path": "panel/__init__.py",
    "chars": 606,
    "preview": "# coding=utf-8\r\n#\r\n# Copyright 2016 timercrack\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you"
  },
  {
    "path": "panel/admin.py",
    "chars": 3197,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "panel/apps.py",
    "chars": 723,
    "preview": "# coding=utf-8\r\n#\r\n# Copyright 2016 timercrack\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you"
  },
  {
    "path": "panel/const.py",
    "chars": 4254,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "panel/forms.py",
    "chars": 226,
    "preview": "from django import forms\r\nfrom .models import *\r\n\r\n\r\nclass BrokerForm(forms.ModelForm):\r\n    password = forms.CharField("
  },
  {
    "path": "panel/models.py",
    "chars": 14614,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "panel/templatetags/__init__.py",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "panel/templatetags/custom_tag.py",
    "chars": 1077,
    "preview": "# coding=utf-8\r\n\r\nfrom django import template\r\n\r\nregister = template.Library()\r\n\r\n\r\n@register.filter\r\ndef number(obj):\r\n"
  },
  {
    "path": "panel/tests.py",
    "chars": 63,
    "preview": "from django.test import TestCase\r\n\r\n# Create your tests here.\r\n"
  },
  {
    "path": "panel/urls.py",
    "chars": 1469,
    "preview": "# coding=utf-8\r\n#\r\n# Copyright 2016 timercrack\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you"
  },
  {
    "path": "panel/views.py",
    "chars": 8322,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "requirements.txt",
    "chars": 233,
    "preview": "aiohttp[speedups]\norjson\nappdirs\ndjango\nbeautifulsoup4\nlxml\nrequests\nnumpy\npandas\nTA-Lib\ncroniter\nchinese_calendar\nasync"
  },
  {
    "path": "runtime_config.py",
    "chars": 5895,
    "preview": "# coding=utf-8\r\nimport configparser\r\nimport copy\r\nimport os\r\nfrom configparser import MissingSectionHeaderError\r\n\r\nimpor"
  },
  {
    "path": "strategy/__init__.py",
    "chars": 5643,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "strategy/base_strategy.py",
    "chars": 55137,
    "preview": "# coding=utf-8\r\n# pyright: reportAttributeAccessIssue=false, reportOptionalMemberAccess=false, reportOptionalSubscript=f"
  },
  {
    "path": "strategy/brother2.py",
    "chars": 10512,
    "preview": "# coding=utf-8\n# pyright: reportAttributeAccessIssue=false, reportOptionalMemberAccess=false, reportOptionalSubscript=fa"
  },
  {
    "path": "strategy/kronos.py",
    "chars": 1495,
    "preview": "import sys\r\nimport os\r\nimport django\r\nROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\r\nif ROOT not in"
  },
  {
    "path": "utils/ApiStruct.py",
    "chars": 72391,
    "preview": "# coding=utf-8\nT = dict()\nT['TE_RESUME'] = 'int'  # 流重传方式\nTERT_RESTART = 0  # 从本交易日开始重传\nTERT_RESUME = 1  # 从上次收到的续传\nTERT"
  },
  {
    "path": "utils/__init__.py",
    "chars": 44960,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "utils/fetch_data.py",
    "chars": 2253,
    "preview": "import sys\nimport os\nimport datetime\nimport asyncio\nimport pytz\n\nfrom tqdm import tqdm\nimport django\nROOT = os.path.dirn"
  },
  {
    "path": "utils/func_container.py",
    "chars": 1578,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "utils/model/__init__.py",
    "chars": 412,
    "preview": "from .kronos import KronosTokenizer, Kronos, KronosPredictor\r\n\r\nmodel_dict = {\r\n    'kronos_tokenizer': KronosTokenizer,"
  },
  {
    "path": "utils/model/kronos.py",
    "chars": 29071,
    "preview": "import numpy as np\r\nimport pandas as pd\r\nimport torch\r\nfrom huggingface_hub import PyTorchModelHubMixin\r\n\r\nfrom tqdm imp"
  },
  {
    "path": "utils/model/module.py",
    "chars": 23511,
    "preview": "import math\r\n\r\nfrom einops import rearrange, reduce\r\nimport torch\r\nimport torch.nn as nn\r\nfrom torch.autograd import Fun"
  },
  {
    "path": "utils/my_logger.py",
    "chars": 1504,
    "preview": "# coding=utf-8\r\n#\r\n# Copyright 2016 timercrack\r\n#\r\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you"
  },
  {
    "path": "utils/read_config.py",
    "chars": 6895,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  },
  {
    "path": "utils/tick.py",
    "chars": 1044,
    "preview": "# coding=utf-8\nimport datetime\n\n\nclass TickBar(object):\n    def __init__(self, day, data, last_volume):\n        \"\"\"\n    "
  },
  {
    "path": "weixin_notifier.py",
    "chars": 5986,
    "preview": "# coding=utf-8\n#\n# Copyright 2016 timercrack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"
  }
]

// ... and 3 more files (download for full content)

About this extraction

This page contains the full source code of the timercrack/trader GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 81 files (1.6 MB), approximately 533.1k tokens, and a symbol index with 2284 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!