Coder Social home page Coder Social logo

fund_rank_based_on_return_rate_and_sharpe_ratio's Introduction

Fund_Rank_based_on_Return_Rate_and_Sharpe_Ratio

基于历史收益率和夏普率(Sharpe Ratio)的基金排序

  1. 使用方法

    • 配置好参数,运行 fund_select_main.py,便可以得到收益率和夏普率的排序文件,默认存储在data/目录下
    • 在收益率排名靠前的基金中,挑选一些夏普率比较高的基金,然后可以根据基金的其他指标再做最终选择;
  2. fund_return_rate.py 按照最近1周、1月、3月、6月、1年、2年、3年的收益率排名,从天天基金网爬取基金代码,并进行统和计排序

  3. fund_sharpe_ratio.py 从天天基金网爬取基金的历史每日净值数据,计算基金的夏普率并排序

fund_rank_based_on_return_rate_and_sharpe_ratio's People

Contributors

lihao100106 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fund_rank_based_on_return_rate_and_sharpe_ratio's Issues

get address failed

ConnectionError: HTTPConnectionPool(host='fund.eastmoney.com', port=80): Max retries exceeded with url: /data/rankhandler.aspx?op=ph&dt=kf&ft=gp&rs=&gs=0&sc=1yzf&st=desc&pi=1&pn=10000&dx=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000018E7FAD9248>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.