Skip to content

Commit

Permalink
added all packges needed for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelGard committed Jun 13, 2024
1 parent 5fb952b commit 72e94d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ stock = cira.Stock("TSLA") # a class for one stock
Crypto market data can be accessed [without any alpaca keys](https://alpaca.markets/sdks/python/market_data.html#api-keys).
So there for you can try cira out with out needing to get alpaca keys.

Needs `cira>=3.2.1`.
Needs `cira>=3.2.2`.

```python
import cira
from datetime import datetime
import matplotlib.pyplot as plt

assert not cira.auth.check_keys() # No keys are needed

Expand All @@ -88,6 +89,7 @@ print(data.head())
# All of strategies and backtesting works with out keys as well.
strat = cira.strategy.Randomness()
cira.strategy.back_test_against_buy_and_hold(strat, data, data["open"].to_frame(), 100_000).plot()
plt.savefig('./result.png')
```


Expand Down
2 changes: 1 addition & 1 deletion cira/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

import alpaca

__version__ = "3.2.1"
__version__ = "3.2.2"
__author__ = "Axel Gard"
__credits__ = "alpaca.markets"
5 changes: 4 additions & 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.2.1",
version="3.2.2",
description="A simpler library for the alapaca trade api",
url="https://github.com/AxelGard/cira",
author="Axel Gard",
Expand All @@ -17,6 +17,9 @@
install_requires=[
"alpaca-py==0.21.0",
"schedule==1.2.0",
"matplotlib",
"pandas",
"numpy",
],
extras_requires={"dev": ["pytest"]},
classifiers=[
Expand Down

0 comments on commit 72e94d7

Please sign in to comment.