Skip to content

Commit

Permalink
Add config and online docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Charmve committed Dec 2, 2022
1 parent fc51bf8 commit b3eae13
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "\U0001F41B Bug Report"
about: Submit a bug report to help us improve AR-DAO
about: Submit a bug report to help us improve quant.ai
labels: bug
---
## 🐛 Bug Description
Expand All @@ -24,7 +24,7 @@ Steps to reproduce the behavior:
**Note**: User could run `cd scripts && python collect_info.py all` under project directory to get system information
and paste them here directly.

- AR-DAO version:
- quant.ai version:
- Python version:
- OS (`Windows`, `Linux`, `MacOS`):
- Commit number (optional, please provide it if you are using the dev version):
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "\U0001F31FFeature Request"
about: Request for a new AR-DAO feature
about: Request for a new quant.ai feature
labels: enhancement
---
## 🌟 Feature Description
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ labels: question

## ❓ Questions and Help

We sincerely suggest you to carefully read the [wiki](https://github.com/Charmve/AR-DAO/wiki) of our library. After that, if you still feel puzzled, please describe the question clearly under this issue.
We sincerely suggest you to carefully read the [wiki](https://github.com/Charmve/quant.ai/wiki) of our library. After that, if you still feel puzzled, please describe the question clearly under this issue.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## How Has This Been Tested?
<!--- Put an `x` in all the boxes that apply: --->
- [ ] Pass the test by running: `pytest ar-dao/tests/test_all_pipeline.py` under upper directory of `/`.
- [ ] Pass the test by running: `pytest quant.ai/tests/test_all_pipeline.py` under upper directory of `/`.
- [ ] If you are adding a new feature, test on your own test scripts.

<!--- **ATTENTION**: If you are adding a new feature, please make sure your codes are **correctly tested**. If our test scripts do not cover your cases, please provide your own test scripts under the `tests` folder and test them. More information about test scripts can be found [here](https://docs.python.org/3/library/unittest.html#basic-example), or you could refer to those we provide under the `tests` folder. -->
Expand Down
28 changes: 28 additions & 0 deletions docs/Install_guide.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
# Install

## Setup

1. 下载安装
```bash
wget https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh
bash Anaconda3-5.3.1-Linux-x86_64.sh
```
2. 编辑 ``~/.basrc`` 文件,在最后面加上

``export PATH=/home/aeasringnar/anaconda3/bin:$PATH``

保存退出后:``source ~/.bashrc``

3. 再次输入``conda list``测试

4. 创建conda环境:

```bash
conda create -n quant.ai python=3.9
conda activate quant.ai
```

## RUN

```
auto run with ci
```
4 changes: 2 additions & 2 deletions docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<img src="https://raw.githubusercontent.com/Charmve/computer-vision-in-action/main/res/ui/maiwei.png" width="100px" alt="L0CV" title="有疑问,跑起来就会变成一朵花 ❀">
</div>

# quant.ai 人工智能自动化量化交易 🌱
# Qbot 人工智能自动化量化交易 🌱
<!---## AI + 金融 <small>V1.2 </small>-->

> 底层原理、高阶实战
> 人工智能、量化交易
<br>

Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>自动驾驶感知算法专题🌱</title>
<title> Qbot 自动化人工智能量化交易工具 🌱</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
Expand Down
6 changes: 3 additions & 3 deletions scripts/gofmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ function check_gofmt_cmd() {
fi
else
# NOTE: This depends on two facts:
# 1) Our workspace is named com_ar-dao and its workspace dir /ar-dao is writable
# 2) The symlink created (pointing to the execution_root dir) is ar-dao
# 1) Our workspace is named com_quant.ai and its workspace dir /quant.ai is writable
# 2) The symlink created (pointing to the execution_root dir) is quant.ai
# bazel info execution_root
# Ref to https://docs.bazel.build/versions/main/user-manual.html on execution_root
GOFMT_PATH="${TOP_DIR}/ar-dao/external/go_sdk/bin/gofmt"
GOFMT_PATH="${TOP_DIR}/quant.ai/external/go_sdk/bin/gofmt"
[[ -f "${GOFMT_PATH}" ]] || bazel build -c opt @go_sdk//:bin/gofmt
fi
fi # Done Inside Docker
Expand Down
28 changes: 28 additions & 0 deletions tests/test_trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,31 @@
# Copyright 2022 Charmve. All Rights Reserved.
# Licensed under the MIT License.
# ****************************************************************************

import easyquant
from easyquant import DefaultLogHandler

print('测试 DEMO')

# 东财
broker = 'eastmoney'

# 自己准备
# {
# "user": "",
# "password": ""# }
need_data = 'account.json'

log_type = 'file'

log_handler = DefaultLogHandler(name='测试', log_type=log_type, filepath='logs.log')

m = easyquant.MainEngine(broker,
need_data,
quotation='online',
# 1分钟K线
bar_type="1m",
log_handler=log_handler)
m.is_watch_strategy = True # 策略文件出现改动时,自动重载,不建议在生产环境下使用
m.load_strategy()
m.start()
4 changes: 4 additions & 0 deletions utils/account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"user": "$USER_ID",
"password": "$PASSWORD"
}
4 changes: 4 additions & 0 deletions utils/jqdata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"user": "$USER_ID",
"password": "$PASSWORD"
}

0 comments on commit b3eae13

Please sign in to comment.