Giter Club home page Giter Club logo

xtp_api_java's People

Contributors

qing1990fei avatar william-zheng avatar ztsec 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xtp_api_java's Issues

6613 XtpTradeApi.cpp:2066】==》 140161635522304 envCache not find

=====================cpp/lib/linux:/usr/local/lib:/home/hgp/workspace/idea/xtp_api_java:c:/windows/system32
load native lib:/home/hgp/workspace/idea/xtp_api_java/cpp/lib/linux/libglog.so
load native lib:/home/hgp/workspace/idea/xtp_api_java/cpp/lib/linux/libxtptraderapi_xalgo.so
load native lib:/home/hgp/workspace/idea/xtp_api_java/cpp/lib/linux/libxtpquoteapi.so
load native lib:/usr/local/lib/libquoteplugin.so
load native lib:/usr/local/lib/libtradeplugin.so
=====================cpp/lib/linux:/usr/local/lib:/home/hgp/workspace/idea/xtp_api_java:c:/windows/system32
load native lib:/home/hgp/workspace/idea/xtp_api_java/cpp/lib/linux/libglog.so
load native lib:/home/hgp/workspace/idea/xtp_api_java/cpp/lib/linux/libxtptraderapi_xalgo.so
load native lib:/home/hgp/workspace/idea/xtp_api_java/cpp/lib/linux/libxtpquoteapi.so
load native lib:/usr/local/lib/libquoteplugin.so
load native lib:/usr/local/lib/libtradeplugin.so
testInsertOrder
testInsertOrder orderXtpId: 37438439712360403
onOrderEvent orderInfo: 37438439712359401
onOrderEvent orderInfo: 37438439712360403
【ERROR 1026 00:47:49.358837  6613 XtpTradeApi.cpp:2066】==》 140161635522304 envCache not find
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 27s
3 actionable tasks: 1 executed, 2 up-to-date
上午12:48:11: Task execution finished ':test --tests "com.zts.xtp.trade.TradeApiTest.testInsertOrder"'.

Advisory: recompile & reinstall glog

For those taking the compile approach, glog might be an issue, cause it might be existing on user's machine or incompatible, better advise a recompile and reinstall glog from dependsLibSrc.

运行QuoteApiTest的subscribeOrderBook测试方法,没有输出订单簿

步骤:运行QuoteApiTest的subscribeOrderBook测试方法
预期:onOrderBook回调打印出订单簿数据
实际效果:onSubOrderBook方法有回调,从返回数据看订阅是成功的,但onOrderBook没有被回调过。换了几只股票都是这样。

PS:

  1. 已经更新过代码库,subscribeTickByTick和subscribeMarketData的测试都正常,能打印出行情数据
  2. 测试环境:61.152.102.110:8602

Windows环境报错java.lang.UnsatisfiedLinkError

There was an unexpected error (type=Internal Server Error, status=500).
'void com.zts.xtp.quote.api.QuoteApi.initGlog(java.lang.String, java.lang.String, java.lang.String)'
java.lang.UnsatisfiedLinkError: 'void com.zts.xtp.quote.api.QuoteApi.initGlog(java.lang.String, java.lang.String, java.lang.String)'

测试例子运行是成功的,但是整合进框架里面后无法运行,参数无误,请问如何解决?或者如何排查问题?

flag 'flagfile' was defined more than once

测试的时候出现ERROR: flag 'flagfile' was defined more than once (in files '/Users/yanfa/Downloads/gflags-master/src/gflags.cc' and '/tmp/gflags-20201114-5647-1bwcem0/gflags-2.2.2/src/gflags.cc').

image

linux下提示找不到文件

java.lang.UnsatisfiedLinkError: /usr/local/lib/libtradeplugin.so: libxtptraderapi_xalgo.so: cannot open shared object file: No such file or directory
系统是centos 7 相关文件确定要放到/usr/local/lib下,so文件都是重新编译的
怎么解决?

subscribeMarketData出错

折腾很久,发现so必须先载入日志so,才能加载api相关的so,调用subscribeMarketData时,出错:
java: /root/xtp/cpp/src/XtpQuoteApi.cpp:1871: void XtpQuote::generateErrorMsgObj(JNIEnv*, _jobject*&, XTPRI*, int): Assertion `jm_setRequestId != __null' failed.
有人回吗?

jni.h: No such file or directory

ubuntu 系统 自行编译的时候,在make && make install 时候提示 jni.h: No such file or directory。 请问这个改怎么解决呢?

mac os throw UnsatisfiedLinkError

macos version:10.15
Exception info:

java.lang.UnsatisfiedLinkError: /usr/local/lib/libtradeplugin.dylib: dlopen(/usr/local/lib/libtradeplugin.dylib, 1): Library not loaded: /usr/local/lib/libglog.0.dylib
Referenced from: /usr/local/lib/libtradeplugin.dylib
Reason: image not found

no updates any more?

Looking for an official support for Java API, seems it's not supported any more?

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.