GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aSoloist/open-trade-gateway: Diff协议中继网关, 支持 CTP / FEMAS / UFX 等交易系统

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
contrib
contrib
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.rst
README.rst
 
 
open_trade_gateway.rc
open_trade_gateway.rc
 
 
open_trade_gateway.sln
open_trade_gateway.sln
 
 
open_trade_gateway.vcxproj
open_trade_gateway.vcxproj
 
 
open_trade_gateway.vcxproj.filters
open_trade_gateway.vcxproj.filters
 
 
open_trade_gateway.vcxproj.user
open_trade_gateway.vcxproj.user
 
 
resource.h
resource.h
 
 

Repository files navigation

Introduction

Open Trade Gateway 是一套主要用于期货交易的中继服务器系统. 它可以接受客户端以 DIFF协议 (Differential Information Flow for Finance) 接入, 完成用户终端与期货柜台系统的数据交互.

本项目目前支持的期货交易柜台系统包括:

  • CTP
  • Femas 主席系统 (测试中)
  • 恒生 UFX 系统 (测试中)

DIFF Collection 中列出了一些支持本系统的终端产品

Install

安装前准备:

Microsoft Windows Server 2008/2012 或 Windows 7/8/10

下载本项目运行包,解压:

https://github.com/shinnytech/open-trade-gateway/releases

Config

本系统运行需要两个配置文件:

config.json 用于服务进程的一些配置项:

{
  "host": "127.0.0.1",                          //提供服务的IP地址
  "port": 7777,                                 //提供服务的端口号
  "user_file_path": "c:\\tmp"                   //存放用户文件的目录,必须事先创建好
}

brokers.json 中可以设置一组或多组期货公司前置机:

{
  "simnow": {
    "type": "ctp",                              //交易系统类型
    "broker_id": "9999",                        //broker_id, 必须与交易系统中的设置一致
    "product_info": "abcd",
    "trading_fronts": [                         //交易前置机地址
      "tcp://218.202.237.33:10002"
    ]
  }
}

Run

在命令行下运行服务器主程序:

open_trade_gateway.exe

Test

主程序启动后,用任意websocket client 连接到服务端口,应该收到这样的信息:

{
  "aid": "rtn_brokers",
  "brokers": ["simnow"]
}

表示服务器主程序启动正常

Compile

编译前准备:

Microsoft Visual Studio 2015 或 2017

从github下载 本项目代码:

git clone https://github.com/shinnytech/open-trade-gateway.git

编译:

用 Microsoft Visual Studio 打开 open_trade_gateway.sln, 编译 release 版本

About

Diff协议中继网关, 支持 CTP / FEMAS / UFX 等交易系统

shinnytech.github.io/

Resources

Readme
GPL-3.0 license
Activity

Stars

2 stars

Watchers

0 watching

Forks

133 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.