From 85522c064c6110a995862b7deb6792990594a659 Mon Sep 17 00:00:00 2001
From: Guofu Li
Date: Sat, 20 Aug 2022 20:34:33 +0800
Subject: [PATCH] reorganize the directory structure
---
.gitignore | 2 +
dolphindb/.workspace | 16 +
dolphindb/project/scripts/backup_table.dos | 5 +
dolphindb/{ => project/scripts}/demo.dos | 0
dolphindb/{ => project/scripts}/demo2.dos | 0
dolphindb/project/scripts/min_kurtosis.dos | 7 +
dolphindb/project/scripts/pit.dos | 8 +
dolphindb/project/scripts/pit2.dos | 36 +
dolphindb/project/scripts/pit3.dos | 17 +
dolphindb/project/scripts/pit4.dos | 3 +
dolphindb/project/scripts/pit6.dos | 14 +
dolphindb/project/scripts/pit_at_date.dos | 17 +
dolphindb/project/scripts/pit_col_at_date.dos | 18 +
dolphindb/project/scripts/restore_table.dos | 1 +
dolphindb/project/scripts/show_databases.dos | 9 +
.../project/scripts/stockMarketReplay.dos | 0
dolphindb/project/scripts/tail_vol_ratio.dos | 7 +
dolphindb/{ => project/scripts}/test.dos | 0
dolphindb/project/scripts/test1.dos | 14 +
dolphindb/project/scripts/test2.dos | 3 +
dolphindb/test1.dos | 10 -
dolphindb/test2.dos | 5 -
ddb.ipynb => ipynb/ddb.ipynb | 371 +++++-
ipynb/ddb_pit.ipynb | 1009 +++++++++++++++++
dos.ipynb => ipynb/dos.ipynb | 0
mssql.ipynb => ipynb/mssql.ipynb | 0
DDBFactor.py => src/DDBFactor.py | 0
DDBLoader.py => src/DDBLoader.py | 0
ReadTickFromDB.py => src/ReadTickFromDB.py | 0
make_hft.py => src/make_hft.py | 0
script.py => src/script.py | 0
31 files changed, 1556 insertions(+), 16 deletions(-)
create mode 100755 dolphindb/.workspace
create mode 100755 dolphindb/project/scripts/backup_table.dos
rename dolphindb/{ => project/scripts}/demo.dos (100%)
rename dolphindb/{ => project/scripts}/demo2.dos (100%)
create mode 100755 dolphindb/project/scripts/min_kurtosis.dos
create mode 100755 dolphindb/project/scripts/pit.dos
create mode 100755 dolphindb/project/scripts/pit2.dos
create mode 100755 dolphindb/project/scripts/pit3.dos
create mode 100755 dolphindb/project/scripts/pit4.dos
create mode 100755 dolphindb/project/scripts/pit6.dos
create mode 100755 dolphindb/project/scripts/pit_at_date.dos
create mode 100755 dolphindb/project/scripts/pit_col_at_date.dos
create mode 100755 dolphindb/project/scripts/restore_table.dos
create mode 100755 dolphindb/project/scripts/show_databases.dos
rename stockMarketReplay.dos => dolphindb/project/scripts/stockMarketReplay.dos (100%)
create mode 100755 dolphindb/project/scripts/tail_vol_ratio.dos
rename dolphindb/{ => project/scripts}/test.dos (100%)
create mode 100755 dolphindb/project/scripts/test1.dos
create mode 100755 dolphindb/project/scripts/test2.dos
delete mode 100644 dolphindb/test1.dos
delete mode 100644 dolphindb/test2.dos
rename ddb.ipynb => ipynb/ddb.ipynb (61%)
create mode 100644 ipynb/ddb_pit.ipynb
rename dos.ipynb => ipynb/dos.ipynb (100%)
rename mssql.ipynb => ipynb/mssql.ipynb (100%)
rename DDBFactor.py => src/DDBFactor.py (100%)
rename DDBLoader.py => src/DDBLoader.py (100%)
rename ReadTickFromDB.py => src/ReadTickFromDB.py (100%)
rename make_hft.py => src/make_hft.py (100%)
rename script.py => src/script.py (100%)
diff --git a/.gitignore b/.gitignore
index 9e8fd5a..f29e05e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,8 @@
*.csv
*.swp
*.swo
+.DS_Store
+*.DS_Store
# Byte-compiled / optimized / DLL files
__pycache__/
diff --git a/dolphindb/.workspace b/dolphindb/.workspace
new file mode 100755
index 0000000..f205732
--- /dev/null
+++ b/dolphindb/.workspace
@@ -0,0 +1,16 @@
+Project,test2,/Users/guofu/Workspaces/dolphindb/test2
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/test1.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit2.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/tail_vol_ratio.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/test2.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit3.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit4.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit_report_period_at_date.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit6.dos
+Open,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit_series_report_period_at_date.dos
+Server,.167,192.168.1.167,8848,,admin,123456
+Server,.7,192.168.1.7,8848,,admin,123456
+Server,local8848,localhost,8848,,,
+ActiveFile,/Users/guofu/Workspaces/dolphindb/test2/scripts/pit6.dos
+ActiveServer,.167
diff --git a/dolphindb/project/scripts/backup_table.dos b/dolphindb/project/scripts/backup_table.dos
new file mode 100755
index 0000000..d8f6abd
--- /dev/null
+++ b/dolphindb/project/scripts/backup_table.dos
@@ -0,0 +1,5 @@
+login('admin', '123456')
+// init backup
+backup('/data/dolphindb/backup/', ,