Skip to content

Commit

Permalink
升级 XTP 至 2.2.25.5
Browse files Browse the repository at this point in the history
迁移至 Maven Central
升级 gradle 至 6.8.2
添加 gradle-wrapper.jar
  • Loading branch information
RationalityFrontline committed Feb 12, 2021
1 parent 3df5b3f commit a770894
Show file tree
Hide file tree
Showing 19 changed files with 1,185 additions and 163 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
cpp/src/jxtp.*
lib/jxtp.dll
lib/libjxtp.so
*.jar
*.java
!module-info.java
31 changes: 10 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# JXTP [![JCenter Version](https://img.shields.io/bintray/v/rationalityfrontline/jxtp/jxtp?label=JCenter)](https://bintray.com/rationalityfrontline/jxtp/jxtp) ![platform](https://img.shields.io/badge/platform-windows%7Clinux-green) [![Apache License 2.0](https://img.shields.io/github/license/rationalityfrontline/jxtp)](https://github.com/RationalityFrontline/jxtp/blob/master/LICENSE)
# JXTP
[![Maven Central](https://img.shields.io/maven-central/v/org.rationalityfrontline/jxtp.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.rationalityfrontline%22%20AND%20a:%22jxtp%22) ![platform](https://img.shields.io/badge/platform-windows%7Clinux-green) [![Apache License 2.0](https://img.shields.io/github/license/rationalityfrontline/jxtp)](https://github.com/RationalityFrontline/jxtp/blob/master/LICENSE)

基于 [SWIG](http://www.swig.org/) 实现的对[中泰证券](https://xtp.zts.com.cn/) XTP 的封装。当前封装版本为 1.1.19.2,支持 64 位的 Windows 及 Linux 操作系统,动态链接库已被包含至 jar 包内,并在类加载时自动 loadLibrary,只需添加 jar 包即可直接使用。
基于 [SWIG](http://www.swig.org/) 实现的对[中泰证券](https://xtp.zts.com.cn/) XTP 的封装。当前封装版本为 2.2.25.5,支持 64 位的 Windows 及 Linux 操作系统,动态链接库已被包含至 jar 包内,并在类加载时自动 loadLibrary,只需添加 jar 包即可直接使用。

## Usage

Expand All @@ -23,25 +24,15 @@ fun main() {

## Download

**Gradle:**
**Gradle Kotlin DSL:**

首先将 JCenter 添加至仓库中:

```groovy
```kotlin
repositories {
jcenter()
}
```
```groovy
// Groovy DSL
dependencies {
implementation 'org.rationalityfrontline:jxtp:1.1.19.2-1.0'
mavenCentral()
}
```
```kotlin
// Kotlin DSL

dependencies {
implementation("org.rationalityfrontline:jxtp:1.1.19.2-1.0")
implementation("org.rationalityfrontline:jxtp:2.2.25.5-1.0.0")
}
```

Expand All @@ -51,8 +42,7 @@ dependencies {
<dependency>
<groupId>org.rationalityfrontline</groupId>
<artifactId>jxtp</artifactId>
<version>1.1.19.2-1.0</version>
<type>pom</type>
<version>2.2.25.5-1.0.0</version>
</dependency>
```
**Jar:**
Expand All @@ -61,9 +51,8 @@ dependencies {

使用 Jar 包前请先添加 [native-lib-loader](https://github.com/scijava/native-lib-loader) 依赖:
```kotlin
// Kotlin DSL
dependencies {
implementation("org.scijava:native-lib-loader:2.3.4")
implementation("org.scijava:native-lib-loader:2.3.5")
}
```

Expand Down
3 changes: 2 additions & 1 deletion cpp/src/xoms_api_fund_struct.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
///@author 中泰证券股份有限公司
///@file xoms_api_fund_struct.h
///@brief 定义资金划拨相关结构体类型
Expand All @@ -12,6 +12,7 @@

#pragma pack(8)

/// 用户资金账户的密码字符串长度
#define XTP_ACCOUNT_PASSWORD_LEN 64

/////////////////////////////////////////////////////////////////////////
Expand Down
Loading

0 comments on commit a770894

Please sign in to comment.