quantos-org / quantosuserguide Goto Github PK
View Code? Open in Web Editor NEWquantOS user guide
License: Apache License 2.0
quantOS user guide
License: Apache License 2.0
def _to_valide_goals(self, goals_raw):
#goals_raw =基于投资范围以及策略选出来的标的
#univ =quantos分配的策略标的
univ, msg = self.ctx.trade_api.query_universe()
univ.loc[:, 'size'] = 0.0
univ.loc[:, 'ref_price'] = 0.0
univ = univ.set_index('security').sort_index(axis=0)
univ = univ[['size', 'ref_price']]
for d in goals_raw:
symbol = d['symbol']
size = d['size']
# TODO: better method needed
if symbol in univ.index and symbol in self.univ_price_dic:
univ.loc[symbol, 'ref_price'] = self.univ_price_dic[symbol]['last']
if size > 0:
univ.loc[symbol, 'size'] = size
univ = univ[univ['size']>0] #add by geekgu
goals_valid = list(univ.reset_index().to_dict(orient='index').values())
return goals_valid
使用vn.py进行实盘交易,vn.py已经实现了与国内各大主流交易系统的对接,可满足个人用户的单帐户交易要求。JAQS和vn.py之间通过TradeApi进行标准化对接,可做到仿真与实盘交易无缝对接。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.