{"id":20317365,"url":"https://github.com/openctp/vitrader","last_synced_at":"2025-05-09T03:18:18.624Z","repository":{"id":39572466,"uuid":"362440463","full_name":"openctp/ViTrader","owner":"openctp","description":"ViTrader（原TextTrader），命令行交易终端（股票、期货、期权），绝大部分命令与VI编辑器中相同，支持CTP、openctp、华鑫证券、中泰证券等柜台，支持Windows、Linux、MacOS等操作系统。","archived":false,"fork":false,"pushed_at":"2024-04-30T08:19:53.000Z","size":31899,"stargazers_count":131,"open_issues_count":2,"forks_count":62,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-27T07:08:14.200Z","etag":null,"topics":["ctp","futures","options","quant","stocks","trader"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openctp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-28T11:18:42.000Z","updated_at":"2024-12-19T12:05:50.000Z","dependencies_parsed_at":"2024-04-30T09:40:13.327Z","dependency_job_id":"3e822634-616b-40bb-968c-69ab9bae82fa","html_url":"https://github.com/openctp/ViTrader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openctp%2FViTrader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openctp%2FViTrader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openctp%2FViTrader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openctp%2FViTrader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openctp","download_url":"https://codeload.github.com/openctp/ViTrader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232327025,"owners_count":18505990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctp","futures","options","quant","stocks","trader"],"created_at":"2024-11-14T18:31:26.572Z","updated_at":"2025-01-03T11:08:22.706Z","avatar_url":"https://github.com/openctp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViTrader（原TextTrader）操作手册\n\n![1616771807(1)](https://user-images.githubusercontent.com/83346523/120349092-611bf200-c330-11eb-8bd1-326adc7f7900.png)\n\n### 简介\nViTrader是一款命令行交易客户端，操作命令基本同Vi编辑器，集交易与行情于一体，支持支持Windows、Linux、MacOS、FreeBSD等操作系统。\n\nViTrader支持CTP期货交易柜台，也支持采用CTP兼容接口的其它柜台（[openctp](https://github.com/openctp/openctp)）。\n\n采用自动开平模式，不需要手动指定开平。\n\n采用同图形界面的“One Click Order”点价下单模式，支持改单。\n\n### 编译\nWindows：\n\nbuild/win32目录下，进入命令行执行nmake，或打开VS2019工程编译。\n\nLinux：\n\nbuild/linux目录下，执行make\n\nMacOSX:\n\nbuild/MacOSX目录下，执行make，或打开xcode工程编译。\n\n### 安装包\n已编译好Win32、Linux、Mac版本，绿色无需安装，如需要接入openctp、华鑫、中泰等柜台需要更换dll，各柜台CTPAPI的dll下载链接:[CTPAPI下载](http://www.openctp.cn/download.html)。\n\n下载链接:[ViTrader下载](http://www.openctp.cn/download.html)\n\n### 移动命令（所有窗口通用）： \n\n- ​\t上下左右：j、k、h、l及四个方向键\n- 翻页：f、b、u、d，支持上下翻页键，同时也支持^f、^b、^u、^d，即按住Control键\n- 上下行滚动：y、e，同时也支持^y、^e，即按住Control键\n- 屏幕顶部、中间、底部：H、M、L\n- 列表的开头、结尾：gg、G\n\n### 选择合约：/\n\n- 主窗口及下单窗口下，按/键将在右下方显示合约选择窗口\n- 输入合约号，会自动匹配，按Enter键确认\n- 可按ESC键取消，其它见小窗口命令\n\n### 调整列显示：v\n\n- 主窗口下按’v’键进入列调整窗口，可通过’j’、’k’键上下定位列，按空格键显示或取消显示列，按’+’、’-‘键调整列位置\n- 按ESC键返回主窗口\n\n### 显示合约交易参数：空格\n\n- 主窗口下按空格键进入选定合约交易参数显示窗口\n- 按ESC键返回主窗口\n\n### 小窗口命令：\n\n- 上下移动：^p、^n、方向键\n- 删除：^h 或者 BackSpace 都可以删除输入字符\n\n### 窗口切换（支持F1~F9功能键，F2、F3暂保留）：\n\n- 主窗口：1gt及F1\n- 下单窗口：Enter回车键、4gt、F4进入光标所在行的合约下单窗口\n- 持仓窗口：5gt、F5\n- 资金窗口：6gt、F6\n- 订单窗口：7gt、F7\n- 成交窗口：8gt、F8\n- 日志窗口：9gt、F9\n\n### 下单操作：下单界面\n\n- 买卖方向选择：h、l及左右方向键，即左右移动到买/卖列\n- 价格选择：j、k及上下方向键及翻页键等，即上下移动相应价格格子\n- 下单：i（限价单），I（大写i为市价单）\n- 撤单：u（撤消所在格子的订单，同方向相同报价的所有订单都将被撤消）\n- 全部撤消：U（撤消当前商品的全部挂单）\n- 改单：x==\u003ep（先将光标移动到订单位置，按x键，然后移动到新价格，再按p键即可，中间可按ESC键取消操作）\n- 反手（多空方向转换）：r（以对手价反手）、R（以涨跌停价反手）\n\n### 多次执行：\n\n- 一次向下移动多行：数值+j，如先按3，再按j，表示向下移动3行。\n- 一次下单N手：数值+i，如先按5，再按i，表示报入5手。\n- 大多数命令都可以这么用：数值+操作\n\n### QQ交流群：127235179\n\n### 更多信息请关注公众号：\n\n\u003cimg src=\"https://user-images.githubusercontent.com/83346523/232570983-e28ce360-eb78-4aad-8a72-abebe288538a.png\" alt=\"openctp公众号\" width=\"300\" height=\"350\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenctp%2Fvitrader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenctp%2Fvitrader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenctp%2Fvitrader/lists"}