Skip to content

Commit 403a3c0

Browse files
authored
274 add azure blob storage state serializer and deserializer for stateless run with statefull support (#303)
* Fix issue with data sources parameters passing * Fix flake8 issues * Add azure storage state handler support * Fix flake8 warnings * Add poetry lock * Pin poetry version to 1.7.1 * Fix failing tests * Fix flake 8 warnings * Fix flask test base * Add deployment to Azure Function * Fix flake8 warnings * Fix tests * Update gitignore * Fix file reference * Fix file reference
1 parent cf6e6a6 commit 403a3c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2684
-3475
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ bumpversion.egg-info/
148148
*.sqlite3
149149

150150
**/backtest_data/*
151-
*/backtest_reports/
151+
**/backtest_reports/
152152
**/backtest_reports/*
153+
**/databases/
153154
.vscode/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,4 @@ You can pick up a task by assigning yourself to it.
338338
**Note** before starting any major new feature work, *please open an issue describing what you are planning to do*.
339339
This will ensure that interested parties can give valuable feedback on the feature, and let others know that you are working on it.
340340

341-
**Important:** Always create your feature or hotfix against the `develop` branch, not `main`.
341+
**Important:** Always create your feature or hotfix against the `develop` branch, not `main`.

examples/deployments/azure_function/app_entry.py renamed to examples/app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
load_dotenv()
88

9-
# Define market data sources OHLCV data for candles
9+
# Define market data sources
10+
# OHLCV data for candles
1011
bitvavo_btc_eur_ohlcv_2h = CCXTOHLCVMarketDataSource(
1112
identifier="BTC-ohlcv",
1213
market="BITVAVO",

examples/bitvavo_trading_bot.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
# Define your market credential for bitvavo, keys are read from .env file
2424
bitvavo_market_credential = MarketCredential(
2525
market="bitvavo",
26+
api_key="your_api_key",
27+
secret_key="your_secret_key"
2628
)
2729
# Define your market data sources for coinbase
2830
bitvavo_btc_eur_ohlcv_2h = CCXTOHLCVMarketDataSource(

examples/deployments/azure_function/.funcignore

-1
This file was deleted.

examples/deployments/azure_function/.gitignore

-48
This file was deleted.

examples/deployments/azure_function/README.md

-76
This file was deleted.

examples/deployments/azure_function/function_app.py

-87
This file was deleted.

examples/deployments/azure_function/host.json

-15
This file was deleted.

examples/deployments/azure_function/requirements.txt

-2
This file was deleted.

investing_algorithm_framework/__init__.py

-20
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
CCXTTickerMarketDataSource, CSVOHLCVMarketDataSource, \
1818
CSVTickerMarketDataSource, AzureBlobStorageStateHandler
1919
from .create_app import create_app
20-
from investing_algorithm_framework.indicators import get_rsi, get_peaks, \
21-
is_uptrend, is_downtrend, is_crossover, is_crossunder, is_above, \
22-
is_below, has_crossed_upward, get_sma, get_up_and_downtrends, \
23-
get_ema, get_adx, has_crossed_downward, get_willr, is_divergence
2420

2521
__all__ = [
2622
"Algorithm",
@@ -70,22 +66,6 @@
7066
"BacktestDateRange",
7167
"convert_polars_to_pandas",
7268
"DateRange",
73-
"get_peaks",
74-
"is_uptrend",
75-
"is_downtrend",
76-
"is_crossover",
77-
"is_crossunder",
78-
"is_above",
79-
"is_below",
80-
"has_crossed_upward",
81-
"get_sma",
82-
"get_up_and_downtrends",
83-
"get_rsi",
84-
"get_ema",
85-
"get_adx",
86-
"has_crossed_downward",
87-
"get_willr",
88-
"is_divergence",
8969
"get_backtest_report",
9070
"AzureBlobStorageStateHandler",
9171
"DEFAULT_LOGGING_CONFIG",

0 commit comments

Comments
 (0)