# vn.py文档 * 快速入门 * [项目简介](https://www.vnpy.com/docs/cn/introduction.html#introduction) * [安装指南](https://www.vnpy.com/docs/cn/install.html#an-zhuang-zhi-nan) * [Windows安装](https://www.vnpy.com/docs/cn/install.html#windows) * [使用VNConda](https://www.vnpy.com/docs/cn/install.html#shi-yong-vnconda) * [下载VNConda](https://www.vnpy.com/docs/cn/install.html#xia-zai-vnconda-python-3-7-64-wei) * [安装VNConda](https://www.vnpy.com/docs/cn/install.html#an-zhuang-vnconda) * [登陆VNStation](https://www.vnpy.com/docs/cn/install.html#deng-lu-vnstation) * [使用VNStation](https://www.vnpy.com/docs/cn/install.html#shi-yong-vnstation) * [更新VNStation](https://www.vnpy.com/docs/cn/install.html#geng-xin-vnstation) * [手动安装](https://www.vnpy.com/docs/cn/install.html#shou-dong-an-zhuang) * [下载并安装最新版Anaconda3.7 64位](https://www.vnpy.com/docs/cn/install.html#xia-zai-bing-an-zhuang-zui-xin-ban-anaconda3-7-64-wei) * [下载并解压vnpy](https://www.vnpy.com/docs/cn/install.html#xia-zai-bing-jie-ya-vnpy) * [安装vnpy](https://www.vnpy.com/docs/cn/install.html#an-zhuang-vnpy) * [启动VN Trader](https://www.vnpy.com/docs/cn/install.html#qi-dong-vn-trader) * [Ubuntu安装](https://www.vnpy.com/docs/cn/install.html#ubuntu) * [下载并安装最新版本的Anaconda或者Miniconda](https://www.vnpy.com/docs/cn/install.html#xia-zai-bing-an-zhuang-zui-xin-ban-ben-de-anaconda-huo-zhe-miniconda-python-3-7-64-wei) * [下载并解压vnpy](https://www.vnpy.com/docs/cn/install.html#xia-zai-bing-jie-ya-vnpy1) * [安装vnpy](https://www.vnpy.com/docs/cn/install.html#an-zhuang-vnpy1) * [启动VN Trader](https://www.vnpy.com/docs/cn/install.html#qi-dong-vn-trader1) * [基本使用](https://www.vnpy.com/docs/cn/quickstart.html#ji-ben-shi-yong) * [启动VN Trader](https://www.vnpy.com/docs/cn/quickstart.html#qi-dong-vntrader) * [VN Station模式](https://www.vnpy.com/docs/cn/quickstart.html#vn-station-mo-shi) * [脚本模式](https://www.vnpy.com/docs/cn/quickstart.html#jiao-ben-mo-shi) * [连接接口](https://www.vnpy.com/docs/cn/quickstart.html#lian-jie-jie-kou) * [订阅行情](https://www.vnpy.com/docs/cn/quickstart.html#ding-yue-xing-qing) * [委托交易](https://www.vnpy.com/docs/cn/quickstart.html#wei-tuo-jiao-yi) * [数据监控](https://www.vnpy.com/docs/cn/quickstart.html#shu-ju-jian-kong) * [行情组件](https://www.vnpy.com/docs/cn/quickstart.html#xing-qing-zu-jian) * [活动组件](https://www.vnpy.com/docs/cn/quickstart.html#id8) * [成交组件](https://www.vnpy.com/docs/cn/quickstart.html#cheng-jiao-zu-jian) * [委托组件](https://www.vnpy.com/docs/cn/quickstart.html#wei-tuo-zu-jian) * [持仓组件](https://www.vnpy.com/docs/cn/quickstart.html#chi-cang-zu-jian) * [资金组件](https://www.vnpy.com/docs/cn/quickstart.html#zi-jin-zu-jian) * [日志组件](https://www.vnpy.com/docs/cn/quickstart.html#ri-zhi-zu-jian) * [应用模块](https://www.vnpy.com/docs/cn/quickstart.html#ying-yong-mo-kuai) * [CTA策略](https://www.vnpy.com/docs/cn/quickstart.html#cta-ce-lue) * [CSV载入](https://www.vnpy.com/docs/cn/quickstart.html#csv-zai-ru) * [CTA回测]() * [行情记录]() * [算法交易]() * 应用模块 * [CSV载入](https://www.vnpy.com/docs/cn/csv_loader.html#csv-zai-ru-mo-kuai) * [初始化配置](https://www.vnpy.com/docs/cn/csv_loader.html#chu-shi-hua-pei-zhi) * [数据载入](https://www.vnpy.com/docs/cn/csv_loader.html#shu-ju-zai-ru) * [CTA策略](https://www.vnpy.com/docs/cn/cta_strategy.html#cta-ce-lue-mo-kuai) * [模块构成](https://www.vnpy.com/docs/cn/cta_strategy.html#mo-kuai-gou-cheng) * [历史数据](https://www.vnpy.com/docs/cn/cta_strategy.html#li-shi-shu-ju) * [回测历史数据](https://www.vnpy.com/docs/cn/cta_strategy.html#hui-ce-li-shi-shu-ju) * [实盘历史数据](https://www.vnpy.com/docs/cn/cta_strategy.html#shi-pan-li-shi-shu-ju) * [策略开发](https://www.vnpy.com/docs/cn/cta_strategy.html#ce-lue-kai-fa) * [参数设置](https://www.vnpy.com/docs/cn/cta_strategy.html#can-shu-she-zhi) * [类的初始化](https://www.vnpy.com/docs/cn/cta_strategy.html#lei-de-chu-shi-hua) * [策略的初始化、启动、停止](https://www.vnpy.com/docs/cn/cta_strategy.html#ce-lue-de-chu-shi-hua-qi-dong-ting-zhi) * [Tick数据回报](https://www.vnpy.com/docs/cn/cta_strategy.html#tick-shu-ju-hui-bao) * [K线数据回报](https://www.vnpy.com/docs/cn/cta_strategy.html#k-xian-shu-ju-hui-bao) * [15分钟K线数据回报](https://www.vnpy.com/docs/cn/cta_strategy.html#fen-zhong-k-xian-shu-ju-hui-bao) * [委托回报、成交回报、停止单回报](https://www.vnpy.com/docs/cn/cta_strategy.html#wei-tuo-hui-bao-cheng-jiao-hui-bao-ting-zhi-dan-hui-bao) * [回测研究](https://www.vnpy.com/docs/cn/cta_strategy.html#hui-ce-yan-jiu) * [加载策略](https://www.vnpy.com/docs/cn/cta_strategy.html#jia-zai-ce-lue) * [载入历史数据](https://www.vnpy.com/docs/cn/cta_strategy.html#zai-ru-li-shi-shu-ju) * [撮合成交](https://www.vnpy.com/docs/cn/cta_strategy.html#cuo-he-cheng-jiao) * [计算策略盈亏情况](https://www.vnpy.com/docs/cn/cta_strategy.html#ji-suan-ce-lue-ying-yu-qing-kuang) * [计算策略统计指标](https://www.vnpy.com/docs/cn/cta_strategy.html#ji-suan-ce-lue-tong-ji-zhi-biao) * [统计指标绘图](https://www.vnpy.com/docs/cn/cta_strategy.html#tong-ji-zhi-biao-hui-tu) * [回测引擎使用示例](https://www.vnpy.com/docs/cn/cta_strategy.html#hui-ce-yin-qing-shi-yong-shi-li) * [参数优化](https://www.vnpy.com/docs/cn/cta_strategy.html#can-shu-you-hua) * [参数设置](https://www.vnpy.com/docs/cn/cta_strategy.html#can-shu-she-zhi1) * [参数对组合回测](https://www.vnpy.com/docs/cn/cta_strategy.html#can-shu-dui-zu-he-hui-ce) * [多进程优化](https://www.vnpy.com/docs/cn/cta_strategy.html#duo-jin-cheng-you-hua) * [实盘运行](https://www.vnpy.com/docs/cn/cta_strategy.html#shi-pan-yun-xing) * [创建策略实例](https://www.vnpy.com/docs/cn/cta_strategy.html#chuang-jian-ce-lue-shi-li) * [初始化策略](https://www.vnpy.com/docs/cn/cta_strategy.html#chu-shi-hua-ce-lue) * [启动策略](https://www.vnpy.com/docs/cn/cta_strategy.html#qi-dong-ce-lue) * [停止策略](https://www.vnpy.com/docs/cn/cta_strategy.html#ting-zhi-ce-lue) * [编辑策略](https://www.vnpy.com/docs/cn/cta_strategy.html#bian-ji-ce-lue) * [移除策略](https://www.vnpy.com/docs/cn/cta_strategy.html#yi-chu-ce-lue) * [CTA回测](https://www.vnpy.com/docs/cn/cta_backtester.html#cta-hui-ce-mo-kuai) * [加载启动](https://www.vnpy.com/docs/cn/cta_backtester.html#jia-zai-qi-dong) * [下载数据](https://www.vnpy.com/docs/cn/cta_backtester.html#xia-zai-shu-ju) * [策略回测](https://www.vnpy.com/docs/cn/cta_backtester.html#ce-lue-hui-ce) * [统计数据](https://www.vnpy.com/docs/cn/cta_backtester.html#tong-ji-shu-ju) * [图表分析](https://www.vnpy.com/docs/cn/cta_backtester.html#tu-biao-fen-xi) * [参数优化](https://www.vnpy.com/docs/cn/cta_backtester.html#can-shu-you-hua) * [穷举算法](https://www.vnpy.com/docs/cn/cta_backtester.html#qiong-ju-suan-fa) * [遗传算法](https://www.vnpy.com/docs/cn/cta_backtester.html#yi-chuan-suan-fa) * [交易接口](gateway.md) * [如何连接](gateway.md#如何连接) * [加载需要用的接口](gateway.md#加载需要用的接口) * [配置和连接](gateway.md#配置和连接) * [修改json配置文件](gateway.md#修改json配置文件) * [查看可交易的合约](gateway.md#查看可交易的合约) * [接口分类](gateway.md#接口分类) * [接口详解](gateway.md#接口详解) * [CTP](gateway.md#CTP) * [宽睿柜台(OES)](gateway.md#宽睿柜台(OES)) * [盈透证券(IB)](gateway.md#盈透证券(IB)) * [富途证券(FUTU)](gateway.md#富途证券(FUTU)) * [老虎证券(TIGER)](gateway.md#老虎证券(TIGER)) * [BITMEX](gateway.md#BITMEX) * [OKEX](gateway.md#OKEX) * [配置数据库](database.md) * [SQLite](database.md#sqlite) * [SQL(MySQL,PostgreSQL)](database.md#SQL(MySQL,PostgreSQL)) * [MongoDB](database.md#mongodb) * [RPC应用](rpc.md) * [贡献代码](contribution.md)