Coder Social home page Coder Social logo

xunibidev / coinexchange Goto Github PK

View Code? Open in Web Editor NEW
228.0 8.0 233.0 42.98 MB

币严BIZZAN全新升级,修复重大bug,优化冗余代码

License: Apache License 2.0

Java 40.61% FreeMarker 0.11% JavaScript 23.12% HTML 0.22% Vue 28.49% Less 0.34% CSS 6.50% EJS 0.10% SCSS 0.50%
java redis spring spring-boot

coinexchange's Issues

Getting error while running "npm run dev"

web_front

` ERROR Failed to compile with 6 errors 02:12:59

These relative modules were not found:

  • ../pages/cms/help in ./src/config/routes.js
  • ../pages/exchange/exchange in ./src/config/routes.js
  • ../pages/index/index in ./src/config/routes.js
  • ../pages/uc/findpwd in ./src/config/routes.js
  • ../pages/uc/login in ./src/config/routes.js
  • ../pages/uc/register in ./src/config/routes.js

`

syncKLine

00_framework/market/src/main/java/com/bizzan/bitrade/job)/KLineGeneratorJob.java
你们是怎么写出syncKLine这么,额 这么奇思妙想的代码的,要不试试抽取公共代码?
虽然这部分代码没用上,也不至于摆这么烂的一坨代码在上面吧

long periodSeconds = getPeriodSeconds(period);//不要问我这个函数具体怎么写
long reqKLineAmount =  getReqKLineAmount(period);//同上
if(timeGap >= periodSeconds ) { // 超出1个period
   if(fromTime == 0) {
        logger.info("分钟执行获取K线["+period+"] ===> from == 0");
        // 初始化K线,获取最近的N根K线
        WebSocketConnectionManage.getWebSocket().reqKLineList(symbol, period, currentTime - periodSeconds * reqKLineAmount, currentTime);
   }else{
	// 非初始化,获取最近产生的K线
	long toTime = fromTime + (timeGap / periodSeconds) * periodSeconds - 5;//timeGap - (timeGap % periodSeconds); // +10秒是为了获取本区间内的K线
	WebSocketConnectionManage.getWebSocket().reqKLineList(symbol, period, fromTime, toTime);
   }
}

这样不干净一些吗,为啥要写一大坨

无法启动运行

com.bizzan.bitrade.entity.下缺少Q开头的类,比如说在core包下CoinService中的query方法所引用的QCoin类就没有

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.