fmzquant / fmz_extend_api_demo

零成本快速打造你自己专属的多用户量化交易平台

Home Page:https://www.fmz.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

官方的一个笔误

GoddessLuBoYan opened this issue · comments

app.py 第65-67行 函数plugin_run内

if pair is None:
piar = get_default_stock(e.eid)

不应该是piar,应该是pair

哦,应该这么改
if pair is None:
_pair = get_default_stock(e.eid)
else:
_pair = pair
settings["exchanges"].append({"eid": e.eid, "pair": _pair, "meta" :{"AccessKey": e.accessKey, "SecretKey": e.secretKey}})
#上一行中的pair改成了_pair

commented

多谢指出, 已更正~~