A Python library for working with time series data. It comes with common financial functions built-in.
Go to file
Gourav Kumar 8e8146a07d changed init to super().__init__
getting started with setitem and sync
2022-04-05 23:43:03 +05:30
.ipynb_checkpoints changed return TimeSeries to return self.__class__ 2022-02-21 22:48:24 +05:30
.vscode changed return TimeSeries to return self.__class__ 2022-02-21 22:48:24 +05:30
fincal changed init to super().__init__ 2022-04-05 23:43:03 +05:30
test_files Series tests pass data type as string 2022-02-22 13:05:54 +05:30
tests Added more ffill and bfill tests 2022-04-05 10:43:31 +05:30
.gitignore Series tests pass data type as string 2022-02-22 13:05:54 +05:30
dict_iter.py test files 2022-02-20 11:36:56 +05:30
LICENSE Setup package and tested with tox 2022-02-17 16:20:48 +05:30
my_test.py Series tests pass data type as string 2022-02-22 13:05:54 +05:30
README.md Added skip weekend parameters to expand and bfill/ffill 2022-04-04 00:48:48 +05:30
requirements.txt updated requirements.txt 2022-02-25 22:22:49 +05:30
setup.py Setup package and tested with tox 2022-02-17 16:20:48 +05:30
test2.py Added volatility function 2022-03-06 15:36:23 +05:30
test_series.py Series tests pass data type as string 2022-02-22 13:05:54 +05:30
test.py Series tests pass data type as string 2022-02-22 13:05:54 +05:30
testing.ipynb separated utility functions and exceptions in standalone files 2022-02-26 12:46:42 +05:30
tox.ini Setup package and tested with tox 2022-02-17 16:20:48 +05:30
VERSION Setup package and tested with tox 2022-02-17 16:20:48 +05:30

Fincal

This module simplified handling of time-series data

The problem

Time series data often have missing data points. These missing points mess things up when you are trying to do a comparison between two sections of a time series.

To make things worse, most libraries don't allow comparison based on dates. Month to Month and year to year comparisons become difficult as they cannot be translated into number of days. However, these are commonly used metrics while looking at financial data.

The Solution

Fincal aims to simplify things by allowing you to:

  • Compare time-series data based on dates
  • Easy way to work around missing dates by taking the closest data points
  • Completing series with missing data points using forward fill and backward fill

Examples

To-do

Core features

  • Add setitem
  • Create emtpy TimeSeries object
  • Read from CSV
  • Write to CSV
  • Convert to dict
  • Convert to list of dicts

Fincal features

  • Sync two TimeSeries
  • Average rolling return
  • Sharpe ratio
  • Jensen's Alpha
  • Beta
  • Max drawdown

Pending implementation

  • Use limit parameter in ffill and bfill
  • Implementation of ffill and bfill may be incorrect inside expand, check and correct