码迷,mamicode.com
首页 > 其他好文 > 详细

从BATS交易所获取空头头寸

时间:2016-08-07 17:01:24      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:

Getting short volume from BATS

 
In my last post I have gone through the steps needed to get the short volume data from the BATS exchange. The code provided was however of the quick-n-dirty variety. I have now packaged everything to bats.py module that can be found on google code. (you will need the rest of the TradingWithPython library to run bats.py)

Usage:
1
2
3
4
5
6
import tradingWithPython as twp # main library
import tradingWithPython.lib.bats as bats # bats module
 
dl = bats.BATS_Data(‘C:\\batsData‘) # init with directory to save data
dl.updateDb() # update data
s = dl.loadData() # process zip files

从BATS交易所获取空头头寸

标签:

原文地址:http://www.cnblogs.com/duan-qs/p/5746360.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!