Comments (2)
Mac 支持可能有问题,我目前用 docker 启动,这里是我的例子:
# Use an official lightweight Python runtime as a parent image
FROM python:3.8-slim
# Set the working directory to /app
WORKDIR /app
# Copy only the requirements file, to cache the dependencies
COPY requirements.txt /app/
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple wtpy
# Copy the rest of the application code
COPY . /app
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable (example)
ENV NAME World
ENV PYTHONPATH /app
# Set the working directory to /app/cta_fut_bt , so `sys.path.append('../Strategies')` works
WORKDIR /demos/ctp_loader
# Run app.py when the container launches
CMD ["python", "./run.py"]
把它放在 wtpy 仓库里,命令行运行
docker build -t wtpy-app . -f ./DockerFile
docker run -p 4000:80 wtpy-app
from wtpy.
群里说可以尝试 mac 分支,是贡献者写的,目前还未合并。不过我是用 docker 了。
from wtpy.
Related Issues (20)
- hft中 stra_get_comminfo 不适用期权合约 HOT 2
- sel mode autoexit HOT 1
- HFT 实盘时, on_tick 里获取其它期货品牌的历史数据时会出错 HOT 2
- 跑部分demos报错:segmentation violation HOT 1
- wtpy0.9.9 版本 CAT 策略运行不越来,log 中一直没有提示有接收到数据 HOT 1
- 实盘中, wtpy0.9.9 的HFT策略 on_bar 无效 HOT 1
- 实盘时,HFT 策略的on_bar () 无效 HOT 1
- 关于功能和demo的建议
- dtServo.get_bars报错 HOT 1
- Not receiving data from custom parser HOT 4
- 0.9.8 datakit盘后工作处理日线数据时间戳错误问题
- baostock数据字段错误
- demo里面cta_allday运行错误 Segmentation fault (core dumped) HOT 2
- 无法通过共享内存获取tick,order,trade数据
- Hft模式输出的trades.csv缺少tag字段 HOT 1
- [bug] 参数优化器中,未成功提交配置文件。 HOT 1
- hft使用过程中发现两个问题 HOT 6
- demo中的datakit_fut正常运行无报错,但是接收不到数据 HOT 1
- [bug] every_series_loss为空的时候会报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wtpy.