1 Star 0 Fork 0

jx0913/stock

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
letv.py 471 Bytes
Copy Edit Raw Blame History
Rocky Chen authored 2019-04-09 09:09 . 修改字符
#-*-coding=utf-8-*-
import tushare as ts
import os
cwd=os.getcwd()
os.chdir(os.path.join(cwd,'data'))
def main():
df = ts.get_today_ticks('300104')
total_vol=df['volume'].sum()*100
print('总成交股数')
big_deal=df[df['volume']>=100]['volume'].sum()*100
print('大于100手的总和',big_deal)
percent=float(big_deal)/total_vol*100
print('大单占比',percent)
print(df['volume'].value_count())
if __name__ == '__main__':
main()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jx0913/stock.git
git@gitee.com:jx0913/stock.git
jx0913
stock
stock
master

Search

0d507c66 1850385 C8b1a773 1850385