Skip to content

Commit

Permalink
[Release] fix #17 【修复致命错误】停牌结束后复权因子问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Dec 1, 2021
1 parent 0074edb commit 5709668
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ $ clickhouse-client --query "INSERT INTO rustdx.factor FORMAT CSVWithNames" < ea
SELECT
yesterday() AS date,
code,
last_value(close),
last_value(factor)
last_value(close) AS close,
last_value(factor) AS factor
FROM rustdx.factor
GROUP BY code
INTO OUTFILE 'factor.csv'
Expand Down
2 changes: 1 addition & 1 deletion rustdx-cmd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustdx-cmd"
version = "0.1.4"
version = "0.1.5"
edition = "2018"
license = "MIT"
build = "build.rs"
Expand Down
4 changes: 2 additions & 2 deletions rustdx-cmd/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ fn clickhouse_factor_csv(table: &str) -> Previous {
&format!("SELECT
yesterday() AS date,
code,
last_value(close),
last_value(factor)
last_value(close) AS close,
last_value(factor) AS factor
FROM {0}
GROUP BY code
INTO OUTFILE 'factor.csv'
Expand Down

0 comments on commit 5709668

Please sign in to comment.