quick fix python demo 跑起来

1、安装quickfix环境

https://www.cnblogs.com/cation/p/15824874.html

2、demo代码

https://github.com/SheldonNico/quickfix_cracker_py

3、运行

github页面其实已经非常详细说明了

# on linux
conda install -c conda-forge quickfix # or python -m pip install quickfix
conda install click attrs # used in example

安装quickfix环境,他是安装到conda,我在Windows环境直接用pip安装,参考前面的步骤“1、安装quickfix环境‘

然后两个包click attrs要安装下

# python3.8
cd .

mkdir -p logs sessions

# generate message objects
python build.py  #非常非常重要的一步,“from spec import fix43”这里的spec就是build后生成的,而不是pip安装个spec

# startup server
python server.py -c server.cfg

# startup client
python client.py -c client.cfg

posted @ 2022-01-21 02:59  布兰姥爷  阅读(431)  评论(0编辑  收藏  举报