Giter VIP home page Giter VIP logo

visualportfolio's Introduction

VisualPortfolio

将策略或者资产包的表现可视化。大量参考以及模仿自 pyfolio ,包括图的配置以及代码。

This tool is used to visualize the perfomance of a portfolio. Much of the codes and samples come from the original referenced project: pyfolio

依赖

lxml
matplotlib
numpy
pandas
seaborn
tushare

安装

首先将代码 clone 至本地:

git clone https://github.com/ChinaQuants/VisualPortfolio.git (如果你是从github获取)

安装

cd VisualPortfolio
python setpy.py install

例子

In [1]: %matplotlib inline
In [2]: from VisualPortfolio import createPerformanceTearSheet
In [3]: from pandas_datareader import data
In [4]: prices = data.get_data_yahoo('600000.ss')['Close']
In [5]: benchmark = data.get_data_yahoo('000300.ss')['Close']
......: benchmark.name = "000300.ss"
In [6]: perf_matric, perf_df, rollingRisk = createPerformanceTearSheet(prices=prices, benchmark=benchmark)

img/1.png

img/2.png

img/3.png

img/4.png

visualportfolio's People

Contributors

wegamekinglc avatar

Watchers

James Cloos avatar  avatar

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.