Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
package com.acanx.meta.model.trans;

import java.math.BigDecimal;

/**
* TransSecuMin
*
* @author ACANX
* @since 20250926
*/
public class TransSecuMin {


/**
* 时间戳
*/
private Long ts;
/**
* 市场
*/
private String m;

/**
* 证券代码
*/
private String s;

/**
* 开
*/
private BigDecimal o;
/**
* 关
*/
private BigDecimal c;

/**
* 高
*/
private BigDecimal h;

/**
* 低
*/
private BigDecimal l;

/**
* 当日累计均价
*/
private BigDecimal ad;

/**
* 成交量
*/
private BigDecimal v;
/**
* 成交额
*/
private BigDecimal t;
/**
* 扩展字段
*/
private String e;

public TransSecuMin() {
}

public TransSecuMin(String s, String m, Long ts) {
this.s = s;
this.m = m;
this.ts = ts;
}

@Override
public String toString() {
return "TransSecuMin{" +
"ts=" + ts +
", m='" + m + '\'' +
", s='" + s + '\'' +
", o=" + o +
", c=" + c +
", h=" + h +
", l=" + l +
", ad=" + ad +
", v=" + v +
", t=" + t +
", e='" + e + '\'' +
'}';
}
}
32 changes: 32 additions & 0 deletions meta-model/model-rss/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/target/
/log/
/.log/
/.mvn/
/out/
/lib/
/tomcat/
!.mvn/wrapper/maven-wrapper.jar

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
nbproject/private/
build/
nbbuild/
dist/
nbdist/
.nb-gradle/


46 changes: 46 additions & 0 deletions meta-model/model-rss/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.acanx.meta</groupId>
<artifactId>meta-model</artifactId>
<version>${revision}</version>
</parent>

<groupId>com.acanx.meta.model</groupId>
<artifactId>model-rss</artifactId>
<version>${revision}</version>
<packaging>jar</packaging>
<name>RSS Model Module</name>
<url>https://github.com/ACANX/MetaOpen</url>

<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release>
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
</properties>

<dependencies>
</dependencies>



<dependencyManagement>
</dependencyManagement>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<target>${java.version}</target>
<source>${java.version}</source>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
package com.acanx.meta.model.rss;



import java.math.BigDecimal;
import java.util.Objects;

/**
* 分钟级别行情数据模型
*
*/
public class SecurityMinute {

private Long ts;

private Integer tradeDate;

private Integer tradeTime;

private String marketCode;

private String securityCode;

private BigDecimal priceOpen;

private BigDecimal priceClose;

private BigDecimal priceHigh;

private BigDecimal priceLow;

private BigDecimal priceAvgCurrDay;

private BigDecimal volume;

private BigDecimal turnover;

private String extField;


public SecurityMinute() {
}


public Long getTs() {
return ts;
}

public void setTs(Long ts) {
this.ts = ts;
}

public Integer getTradeDate() {
return tradeDate;
}

public void setTradeDate(Integer tradeDate) {
this.tradeDate = tradeDate;
}

public Integer getTradeTime() {
return tradeTime;
}

public void setTradeTime(Integer tradeTime) {
this.tradeTime = tradeTime;
}

public String getMarketCode() {
return marketCode;
}

public void setMarketCode(String marketCode) {
this.marketCode = marketCode;
}

public String getSecurityCode() {
return securityCode;
}

public void setSecurityCode(String securityCode) {
this.securityCode = securityCode;
}

public BigDecimal getPriceOpen() {
return priceOpen;
}

public void setPriceOpen(BigDecimal priceOpen) {
this.priceOpen = priceOpen;
}

public BigDecimal getPriceClose() {
return priceClose;
}

public void setPriceClose(BigDecimal priceClose) {
this.priceClose = priceClose;
}

public BigDecimal getPriceHigh() {
return priceHigh;
}

public void setPriceHigh(BigDecimal priceHigh) {
this.priceHigh = priceHigh;
}

public BigDecimal getPriceLow() {
return priceLow;
}

public void setPriceLow(BigDecimal priceLow) {
this.priceLow = priceLow;
}

public BigDecimal getPriceAvgCurrDay() {
return priceAvgCurrDay;
}

public void setPriceAvgCurrDay(BigDecimal priceAvgCurrDay) {
this.priceAvgCurrDay = priceAvgCurrDay;
}

public BigDecimal getVolume() {
return volume;
}

public void setVolume(BigDecimal volume) {
this.volume = volume;
}

public BigDecimal getTurnover() {
return turnover;
}

public void setTurnover(BigDecimal turnover) {
this.turnover = turnover;
}

public String getExtField() {
return extField;
}

public void setExtField(String extField) {
this.extField = extField;
}

@Override
public boolean equals(Object object) {
if (this == object) return true;
if (object == null || getClass() != object.getClass()) return false;

SecurityMinute that = (SecurityMinute) object;
return Objects.equals(getTs(), that.getTs()) && Objects.equals(getTradeDate(), that.getTradeDate()) && Objects.equals(getTradeTime(), that.getTradeTime()) && Objects.equals(getMarketCode(), that.getMarketCode()) && Objects.equals(getSecurityCode(), that.getSecurityCode()) && Objects.equals(getPriceOpen(), that.getPriceOpen()) && Objects.equals(getPriceClose(), that.getPriceClose()) && Objects.equals(getPriceHigh(), that.getPriceHigh()) && Objects.equals(getPriceLow(), that.getPriceLow()) && Objects.equals(getPriceAvgCurrDay(), that.getPriceAvgCurrDay()) && Objects.equals(getVolume(), that.getVolume()) && Objects.equals(getTurnover(), that.getTurnover()) && Objects.equals(getExtField(), that.getExtField());
}

@Override
public int hashCode() {
int result = Objects.hashCode(getTs());
result = 31 * result + Objects.hashCode(getTradeDate());
result = 31 * result + Objects.hashCode(getTradeTime());
result = 31 * result + Objects.hashCode(getMarketCode());
result = 31 * result + Objects.hashCode(getSecurityCode());
result = 31 * result + Objects.hashCode(getPriceOpen());
result = 31 * result + Objects.hashCode(getPriceClose());
result = 31 * result + Objects.hashCode(getPriceHigh());
result = 31 * result + Objects.hashCode(getPriceLow());
result = 31 * result + Objects.hashCode(getPriceAvgCurrDay());
result = 31 * result + Objects.hashCode(getVolume());
result = 31 * result + Objects.hashCode(getTurnover());
result = 31 * result + Objects.hashCode(getExtField());
return result;
}

@Override
public String toString() {
return "SecurityMinute{" +
"ts=" + ts +
", tradeDate=" + tradeDate +
", tradeTime=" + tradeTime +
", marketCode='" + marketCode + '\'' +
", securityCode='" + securityCode + '\'' +
", priceOpen=" + priceOpen +
", priceClose=" + priceClose +
", priceHigh=" + priceHigh +
", priceLow=" + priceLow +
", priceAvgCurrDay=" + priceAvgCurrDay +
", volume=" + volume +
", turnover=" + turnover +
", extField='" + extField + '\'' +
'}';
}
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//package com.acanx.meta.model;
//
//
//import org.junit.jupiter.api.Assertions;
//import org.junit.jupiter.api.Test;
//
///**
// * Unit test for simple App.
// */
//public class AppTest {
//
// /**
// * Rigorous Test :-)
// */
// @Test
// public void shouldAnswerWithTrue() {
// Assertions.assertTrue(true);
// }
//
//}
Empty file.
1 change: 1 addition & 0 deletions meta-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<module>model-deepseek</module>
<module>model-test</module>
<module>model-maven</module>
<module>model-rss</module>
</modules>
<build>
<plugins>
Expand Down
Loading
Loading