Skip to content

Commit

Permalink
[fix] Fix cmd in platform bias and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Charmve committed Sep 16, 2023
1 parent 8bff46f commit 9ea335f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ export BLOSC_DIR=/opt/homebrew/opt/c-blosc

➕ 请注意:本项目建议使用python 3.8、3.9版本,推荐使用conda搭建环境,参考 [Install Guide](./docs/01-新手指引/Install_guide.md)

<sub>* 如果是 Win 系统使用``set``命令.</sub>

```shell
export USER_ID="admin" # replace your info
export PASSWORD="admin1234." # replace your info
Expand Down
17 changes: 10 additions & 7 deletions auto_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
import urllib.request # noqa F401

import pandas as pd
import pync
import platform
if platform.system() == 'Darwin':
import pync
import tushare as ts

from utils.larkbot import LarkBot
Expand Down Expand Up @@ -123,12 +125,13 @@ def check(code, low, high):
bot.send(content="[Signal💡] 中国平安 低于 ¥49")

priceNow = 48
pync.notify(
f'{"中国平安"}当前价格为{priceNow}',
title=f'Qbot - {"中国平安"}股票已低于设定值{49}',
open="https://ufund-me.github.io/",
appIcon="./gui/imgs/logo.ico",
)
if platform.system() == 'Darwin':
pync.notify(
f'{"中国平安"}当前价格为{priceNow}',
title=f'Qbot - {"中国平安"}股票已低于设定值{49}',
open="https://ufund-me.github.io/",
appIcon="./gui/imgs/logo.ico",
)
# pync.notify(
# "Reminder - Drink Water, Sir",
# title="Qbot",
Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ export BLOSC_DIR=/opt/homebrew/opt/c-blosc

➕ 请注意:本项目建议使用python 3.8、3.9版本,推荐使用conda搭建环境,参考 [Install Guide](https://github.com/UFund-Me/Qbot/blob/main/docs/01-新手指引/Install_guide)

<sub>* 如果是 Win 系统使用``set``命令.</sub>

```shell
export USER_ID="admin" # replace your info
export PASSWORD="admin1234." # replace your info
Expand Down
16 changes: 12 additions & 4 deletions env_setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash

set -euo pipefail
# shellcheck disable=all

Expand All @@ -21,13 +22,20 @@ conda info --env
pip install -r requirements.txt
pip install -U wxpy

export USER_ID="admin" # replace your info
export PASSWORD="admin1234." # replace your info
export MAIL_LICENSE="wafasqtakgywoobach" # replace your own 163.com / qq.com license
# make sure if local device
if [[ $"(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]]; then
set USER_ID="admin" # replace your info
set PASSWORD="admin1234." # replace your info
set MAIL_LICENSE="wafasqtakgywoobach" # replace your own 163.com / qq.com license
else #Darwin or Linux
export USER_ID="admin" # replace your info
export PASSWORD="admin1234." # replace your info
export MAIL_LICENSE="wafasqtakgywoobach" # replace your own 163.com / qq.com license
fi

info "Successful - Environment is set up!"

info "Enjoy, Quanter!"
info "Enjoy, Qboter!"

echo -e "\e]8;;http://github.com/Charmve\aThis is Charmve's blog\e]8;;\a"
echo -e "\e[40;38;5;82m Alpha \e[30;48;5;82m Qbot \e[0m"
Expand Down
12 changes: 4 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# main_window
wxPython
pandas
matplotlib==3.2.2
backtrader
#pyfolio 直接安装会有bug
#pip install git+https://github.com/quantopian/pyfolio
backtrader_plotting
statsmodels
quantstats
requests #这是yahoofinance需要
loguru #简化logger的使用
requests
loguru
binance-connector
#为了用户体验,非必要不引入三方库
#Ta-Lib 需要https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib 从这里下载对应的版本安装
numba # pandas 多序列rolling需要
numba
pykalman
tables
scikit-learn
Expand All @@ -35,7 +31,7 @@ arrow
tushare
numpy
cython
# pyqlib #有需要时手动单独安装
# pyqlib # maybe manual
jqdatasdk
redis
pydantic
Expand Down

0 comments on commit 9ea335f

Please sign in to comment.