An open API service indexing awesome lists of open source software.

https://github.com/tim-hub/sharpstock

A simple python util to calculate sharpe ratio for algorithm backtesting
https://github.com/tim-hub/sharpstock

algorithm-trading quantitative-analysis quantitative-trading

Last synced: 10 months ago
JSON representation

A simple python util to calculate sharpe ratio for algorithm backtesting

Awesome Lists containing this project

README

          

# Sharp Stock

A simple Python library to calculate the Sharpe Ratio of a stock.

## How to use

```
pip install sharpstock
```

```python
from sharpstock.sharpe_ratio import calculate_sharpe_ratio
df = pd.read_csv('data.csv')
calculate_sharpe_ratio(df)
```

## Features

- [x] Sharpe Ratio Calculation
- [ ] Calculate Sharpe Ratio for multiple stocks