https://github.com/xxjwxc/shares
A-share quantitative system. A股量化系统
https://github.com/xxjwxc/shares
ashare golang machine-learning matplotlib numpy pandas quant quantitative-finance shares uniapp wechat
Last synced: 6 days ago
JSON representation
A-share quantitative system. A股量化系统
- Host: GitHub
- URL: https://github.com/xxjwxc/shares
- Owner: xxjwxc
- License: apache-2.0
- Created: 2022-05-20T12:28:03.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-09T09:44:15.000Z (3 months ago)
- Last Synced: 2025-04-07T18:06:48.656Z (13 days ago)
- Topics: ashare, golang, machine-learning, matplotlib, numpy, pandas, quant, quantitative-finance, shares, uniapp, wechat
- Language: PLpgSQL
- Homepage:
- Size: 52 MB
- Stars: 558
- Watchers: 9
- Forks: 141
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [shares](https://github.com/xxjwxc/shares)
### 功能
- A股量化交易系统
- 后台开发语言 Go/Python [gmsec](https://github.com/gmsec/gmsec)
- gormt 嵌入,自动数据库代码生成 [gorm 自动构建(gormt)](https://github.com/xxjwxc/gormt)
- 分时任务,盯盘助手,研报股评,每日监控,微信提醒,玩转组织,AI智能
- uniapp 小程序端### 欢迎微信扫码体验

### Vscode插件地址 [复利备忘录](https://marketplace.visualstudio.com/items?itemName=a-shares.a-shares)
(插件市场搜索:复利备忘录)## 安装
- 进入到 shares 目录
- 安装 cmake 工具
- 安装服务器
```
git clone [email protected]:xxjwxc/shares.gitcd shares
git submodule update --init --recursivemake run
```
- 客户端运行(hbuilder 直接导入 uniapp 即可)
## 部署运行- 可直接运行程序
- 安装服务方式
```
sudo ./shares install
sudo ./shares start
```
or
```
sudo ./shares stop
sudo ./shares run
```## proto配置新加接口
- 修改目录`apidoc/proto/shares/`目录下相关proto文件
- 进入到`server`目录 使用`make gen`生成相关接口## 配置说明
- mysql
### 目录位置 [mysql](mysql)[shares_tmp_db.sql(表结构&&数据)](mysql%2Fshares_tmp_db.sql)
[shares_tmp_db_views.sql(views视图)](mysql%2Fshares_tmp_db_views.sql)
[shares_tmp_db.sql.zip(两个sql的综合压缩文件)](mysql%2Fshares_tmp_db.sql.zip)- 服务配置
```text
# 修改配置文件
vim shares/conf/config.yml
```
```yaml
base:
is_dev : true
serial_number : 1.0.0
service_name : shares
service_displayname : sharesserver
sercice_desc : shares微服务
tools_type: 4 # 0:正式环境,1:日分析,2:抓取消息,3:放量,4:放量监听
db_info:
port : 3306 # 端口号
username : root # 用户名
host : localhost # 地址
password : 123456 # 密码
# host : localhost
# password : qwer
database : caoguo_dev # 数据库名
redis_info:
addrs: ["127.0.0.1:6379"]
password: 123456
group_name: oauth2
db: 0
etcd_info:
addrs: ["127.0.0.1:2379"]
timeout: 3
wx_info:
app_id : wxxxxxxxxxxxx31a
app_secret : xxxxxxxxxxxxxxxxxxxxxxxx
api_key : xxxxxxxxxxxxxxxxxxx
mch_id : xxxxxxxxx
notify_url : http://www.localhost.com
shear_url :
port: 82
file_host: https://www.localhost.com/shares/api/v1
max_capacity : 5
def_group: 默认指标
ext : [sh,sz,hk]
```
- uniapp 配置
修改`shares\uniapp\commcn\utils\server\def.js` 中 `server.Host`进行服务器配置- 数据库说明
详细请看`mysql`目录## [传送门](https://github.com/xxjwxc/shares)
### 实际效果图
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()