Skip to content

Commit

Permalink
fixed import problem, i think
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelGard committed Mar 24, 2024
1 parent 570df44 commit 019b7b7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cira/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

import alpaca

__version__ = "3.0.1"
__version__ = "3.0.2"
__author__ = "Axel Gard"
__credits__ = "alpaca.markets"
2 changes: 0 additions & 2 deletions cira/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@
# data that will not very often change is cached
USE_CASHING = True

# Backtesting
FEE_RATE = 0.004
5 changes: 4 additions & 1 deletion cira/strategy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from .strategy import Strategy, Randomness, ByAndHold
from .strategy import *
from . import backtest
from . import scheduler

6 changes: 4 additions & 2 deletions cira/strategy/backtest.py
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 019b7b7

Please sign in to comment.