Coder Social home page Coder Social logo

okexquant's Introduction

OkexQuant 期货合约价差套利系统

项目介绍

本项目是在Okex平台提供的API v3基础上开发的一套数字货币期货合约套利系统,基本原理是当一个不同期的数字货币合约之间的价差产生异常比率,将进行同时开仓买入和开仓卖出交易,等待合约之间的价差回归正常比率,再进行同时的平仓卖出和平仓买入,从而产生利润。

项目功能
  1. 支持所有的okex合约币种
  2. 支持多策略同时运行
  3. 实时的合约行情
  4. 不同用户的权限控制

项目github

  1. 系统总共包括2个项目
  2. OkexQuant 后端服务 api
  3. OkexQuant_vue 前端界面项目

软件架构

安装教程

  1. 安装activeMQ 5的版本,到activeMQ bin目录,执行 activemq start
  2. 下载项目 git clone https://github.com/liudexiang3218/OkexQuant.git
  3. 导入eclipse
  4. 修改配置文件system.properties
  5. jetty:run项目
  6. http://127.0.0.1:8088/index.jsp

使用说明

  1. 在线demo 香港阿里云服务器
  2. 根据条件设置策略
  3. 开启策略开始按钮

指数说明

  1. 当周与次周指数 (当周委托买一价 - 次周委托卖一价 ) / 次周委托卖一价 *100

system.properties配置说明

  1. broker_url :activemq连接url
  2. ok_websocket_url : okex ws连接url
  3. ok_rest_url : okex api服务器连接
  4. ok_api_key : 您的okex开发平台上申请的api key
  5. ok_secret_key : 您的okex开发平台上申请的secret key
  6. ok_passphrase : 您的okex开发平台上申请的passphrase
  7. ok_coins : 配置项目支持的数字货币(例如:btc,ltc,eth,etc,btg,xrp,eos)
  8. jwt_secret : JWT权限加密密钥

user.properties系统用户配置

  1. user=password 账号=密码

开发环境

  1. eclipse-2018-12
  2. maven 3.5.4
  3. git
  4. jetty
  5. activeMQ 5.15.9

技术栈

  1. springmvc 4.3.19
  2. activemq 5.15.4
  3. ehcache 2.10.6
  4. java-jwt 3.4.1
  5. shiro 1.4.0

Donation

If you find Element useful, you can buy us a cup of coffee

donation

作者微信

okexquant's People

Contributors

liudexiang3218 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

okexquant's Issues

websocket connect hostname can't be null?

setLogin false
java.lang.IllegalArgumentException: hostname can't be null
at java.base/java.net.InetSocketAddress.checkHost(InetSocketAddress.java:149)
at java.base/java.net.InetSocketAddress.(InetSocketAddress.java:216)
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:97)
at com.xiang.service.impl.WebSoketClient.connect(WebSoketClient.java:311)
at com.xiang.service.impl.WebSoketClient.reConnect(WebSoketClient.java:366)
at com.okex.websocket.MoniterTask.run(MoniterTask.java:29)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
is Not Alive

when i try to start the project,i got the up error?who can tell me why ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.