GitHub 博客园 Nanakon
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 110 下一页

2016年4月1日

摘要: g.security = '600570.SS' def initialize(context): pass def handle_data(context, data): security = g.security sid = symbol(g.security) # 取得过去五天的平均价格 average_price = data[sid... 阅读全文
posted @ 2016-04-01 17:48 jzm17173 阅读(197) 评论(0) 推荐(0)
摘要: g.security = ['600570.SS', '600130.SS'] def initialize(context): pass def handle_data(context, data): security = g.security for stock in security: sid = symbol(stock) ... 阅读全文
posted @ 2016-04-01 17:48 jzm17173 阅读(176) 评论(0) 推荐(0)

2016年3月31日

摘要: 沪深300 yahoo finance API f参数对照表 上证 000001 深证 399001 沪深300 399300 阅读全文
posted @ 2016-03-31 13:33 jzm17173 阅读(121) 评论(0) 推荐(0)

2016年3月30日

摘要: history 多只股票时会返回某几只股票停牌没数据 聚宽 多只股票如果某几只没有发行 600485: nan 多只股票如果某几只停牌 600485: 上个交易日close order下单全报停牌警告 600485:始终有 不会 data[600485]报错 阅读全文
posted @ 2016-03-30 16:57 jzm17173 阅读(261) 评论(0) 推荐(0)
摘要: zipline/utils/ tradingcalendar.py tradingcalendar_bmf.py 巴西商品期货交易所 tradingcalendar_lse.py 伦敦证券交易所 tradingcalendar_tse.py 东京证券交易所 25号美股非交易日 阅读全文
posted @ 2016-03-30 15:44 jzm17173 阅读(316) 评论(0) 推荐(0)

2016年3月28日

摘要: ASCII 只使用了7 位(128 种取值):26 个大写字母、26 个小写字母、10 个阿拉伯数字、一些标点符号、空白符以及一些不可打印的控制符。 Unicode 编码是一种正在发展中的国际化规范,它可以包含世界上所有语言以及来自数学领域和其他领域的各种符号 Python 3 中的字符串是Unic 阅读全文
posted @ 2016-03-28 09:54 jzm17173 阅读(144) 评论(0) 推荐(0)

2016年3月25日

摘要: w 如果文件存在,就原来的内容没有了,最终是这次写入的内容 x 如果文件存在就报异常,不存在才执行 a 如果文件存在,追加内容 1GB大小文件占用1GB内存 readlines 阅读全文
posted @ 2016-03-25 17:30 jzm17173 阅读(141) 评论(0) 推荐(0)

2016年3月24日

摘要: 阅读全文
posted @ 2016-03-24 20:17 jzm17173 阅读(108) 评论(0) 推荐(0)

2016年3月18日

摘要: 阅读全文
posted @ 2016-03-18 16:53 jzm17173 阅读(99) 评论(0) 推荐(0)

2016年3月17日

摘要: /etc/selinux/configSELINUX=disabled改成了SELINUX=enforcing机器无法启动 linux无法启动怎么解决:[1]selinux配置错误 SELinux 入门 阅读全文
posted @ 2016-03-17 19:43 jzm17173 阅读(639) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 110 下一页

导航

轻音