ztsec / xtp_api_java Goto Github PK
View Code? Open in Web Editor NEW中泰证券xtp java api for win\linux\mac
Home Page: https://xtp.zts.com.cn
License: MIT License
中泰证券xtp java api for win\linux\mac
Home Page: https://xtp.zts.com.cn
License: MIT License
=====================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"'.
请问应该如何解决重复登陆的问题,使用demo是没问题的,但是我想整合进springboot里面,同时Java版本无法调用GetApiLastError方法
拉代码测试时,测试失败,报 mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')
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测试方法
预期:onOrderBook回调打印出订单簿数据
实际效果:onSubOrderBook方法有回调,从返回数据看订阅是成功的,但onOrderBook没有被回调过。换了几只股票都是这样。
PS:
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)'
测试例子运行是成功的,但是整合进框架里面后无法运行,参数无误,请问如何解决?或者如何排查问题?
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文件都是重新编译的
怎么解决?
折腾很久,发现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.
有人回吗?
ubuntu 系统 自行编译的时候,在make && make install 时候提示 jni.h: No such file or directory。 请问这个改怎么解决呢?
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
Looking for an official support for Java API, seems it's not supported any more?
cpp\buildcpp\win64\quoteplugin.dll: Can't find dependent libraries
请问应该如何排查,是否少做了哪个步骤
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.