diff --git a/cira/__init__.py b/cira/__init__.py index a239a00..cddd667 100644 --- a/cira/__init__.py +++ b/cira/__init__.py @@ -16,6 +16,6 @@ import alpaca -__version__ = "3.0.1" +__version__ = "3.0.2" __author__ = "Axel Gard" __credits__ = "alpaca.markets" diff --git a/cira/config.py b/cira/config.py index b38d83b..83c114a 100644 --- a/cira/config.py +++ b/cira/config.py @@ -19,5 +19,3 @@ # data that will not very often change is cached USE_CASHING = True -# Backtesting -FEE_RATE = 0.004 diff --git a/cira/strategy/__init__.py b/cira/strategy/__init__.py index 50e46cc..12a5950 100644 --- a/cira/strategy/__init__.py +++ b/cira/strategy/__init__.py @@ -1 +1,4 @@ -from .strategy import Strategy, Randomness, ByAndHold +from .strategy import * +from . import backtest +from . import scheduler + diff --git a/cira/strategy/backtest.py b/cira/strategy/backtest.py index d6eb823..bf340e2 100644 --- a/cira/strategy/backtest.py +++ b/cira/strategy/backtest.py @@ -1,8 +1,10 @@ import pandas as pd import numpy as np from typing import List -from .strategy import Strategy, ByAndHold -from ..config import FEE_RATE +from . import Strategy, ByAndHold + + +FEE_RATE = 0.004 # this is what alpaca takes fees = lambda prices, allocation: FEE_RATE * np.matmul(prices.T, allocation) diff --git a/setup.py b/setup.py index 85eb90d..5b31847 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="cira", - version="3.0.1", + version="3.0.2", description="A simpler library for the alapaca trade api", url="https://github.com/AxelGard/cira", author="Axel Gard",