finterion-investing-algorithm-framework 0.14.1__tar.gz → 0.14.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of finterion-investing-algorithm-framework might be problematic. Click here for more details.
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/PKG-INFO +5 -5
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/create_app.py +8 -2
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/market_service.py +11 -6
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/pyproject.toml +5 -5
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/LICENSE +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/README.md +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/__init__.py +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/configuration/__init__.py +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/configuration/constants.py +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/exceptions.py +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/models/__init__.py +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/models/portfolio_configuration.py +0 -0
- {finterion_investing_algorithm_framework-0.14.1 → finterion_investing_algorithm_framework-0.14.3}/finterion_investing_algorithm_framework/validation.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: finterion-investing-algorithm-framework
|
|
3
|
-
Version: 0.14.
|
|
4
|
-
Summary: This is the official plugin for the investing algorithm framework open source project.
|
|
5
|
-
Author:
|
|
3
|
+
Version: 0.14.3
|
|
4
|
+
Summary: This is the official finterion plugin for the investing algorithm framework open source project.
|
|
5
|
+
Author: Marc van Duyn
|
|
6
6
|
Author-email: marc@finterion.com
|
|
7
7
|
Requires-Python: >=3.8.1,<4.0.0
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -10,8 +10,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Requires-Dist: finterion (
|
|
14
|
-
Requires-Dist: investing-algorithm-framework (>=
|
|
13
|
+
Requires-Dist: finterion (>=0.8.8,<0.9.0)
|
|
14
|
+
Requires-Dist: investing-algorithm-framework (>=3.3.1,<4.0.0)
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
|
|
17
17
|
# Finterion Investing Algorithm Framework Plugin
|
|
@@ -2,7 +2,7 @@ import logging
|
|
|
2
2
|
|
|
3
3
|
from finterion import Finterion
|
|
4
4
|
from investing_algorithm_framework import create_app as framework_create_app, \
|
|
5
|
-
Task, TimeUnit, App, MarketCredential
|
|
5
|
+
Task, TimeUnit, App, MarketCredential, AppHook, Algorithm
|
|
6
6
|
|
|
7
7
|
from finterion_investing_algorithm_framework.market_service import \
|
|
8
8
|
FinterionMarketService
|
|
@@ -58,5 +58,11 @@ def create_app(
|
|
|
58
58
|
logger.debug("Pinging Finterion platform")
|
|
59
59
|
client.ping()
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
class PingAppHook(AppHook):
|
|
62
|
+
|
|
63
|
+
def on_run(self, app, algorithm: Algorithm):
|
|
64
|
+
algorithm.add_task(PingTask)
|
|
65
|
+
|
|
66
|
+
# Register the ping task to the algorithm
|
|
67
|
+
app.after_initialize(PingAppHook())
|
|
62
68
|
return app
|
|
@@ -9,7 +9,9 @@ from finterion_investing_algorithm_framework.exceptions import \
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class FinterionMarketService(CCXTMarketService):
|
|
12
|
-
|
|
12
|
+
"""
|
|
13
|
+
Finterion market service implementation.
|
|
14
|
+
"""
|
|
13
15
|
def cancel_order(self, order, market):
|
|
14
16
|
pass
|
|
15
17
|
|
|
@@ -87,14 +89,14 @@ class FinterionMarketService(CCXTMarketService):
|
|
|
87
89
|
return [self._convert_order(order) for order in orders]
|
|
88
90
|
|
|
89
91
|
def get_balance(self, market):
|
|
92
|
+
"""
|
|
93
|
+
Finterion implementation of get_balance.
|
|
94
|
+
"""
|
|
90
95
|
positions = self._finterion.get_positions()
|
|
91
|
-
entries = {
|
|
96
|
+
entries = {}
|
|
92
97
|
|
|
93
98
|
for position in positions:
|
|
94
|
-
entries[position["symbol"]] =
|
|
95
|
-
"free": position["amount"],
|
|
96
|
-
}
|
|
97
|
-
entries["free"][position["symbol"]] = float(position["amount"])
|
|
99
|
+
entries[position["symbol"]] = float(position["amount"])
|
|
98
100
|
|
|
99
101
|
return entries
|
|
100
102
|
|
|
@@ -176,3 +178,6 @@ class FinterionMarketService(CCXTMarketService):
|
|
|
176
178
|
order.updated_at = parser.parse(finterion_order.get("updated_at"))
|
|
177
179
|
|
|
178
180
|
return order
|
|
181
|
+
|
|
182
|
+
def get_symbols(self, market):
|
|
183
|
+
return self._finterion.get_supported_symbols()
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "finterion-investing-algorithm-framework"
|
|
3
|
-
version = "v0.14.
|
|
4
|
-
description = "This is the official plugin for the investing algorithm framework open source project."
|
|
5
|
-
authors = ["
|
|
3
|
+
version = "v0.14.3"
|
|
4
|
+
description = "This is the official finterion plugin for the investing algorithm framework open source project."
|
|
5
|
+
authors = ["Marc van Duyn <marc@finterion.com>"]
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
|
|
8
8
|
[tool.poetry.dependencies]
|
|
9
9
|
python = "^3.8.1"
|
|
10
|
-
investing-algorithm-framework = "^
|
|
11
|
-
finterion = "0.8.
|
|
10
|
+
investing-algorithm-framework = "^3.3.1"
|
|
11
|
+
finterion = "^0.8.8"
|
|
12
12
|
|
|
13
13
|
[tool.poetry.group.test.dependencies]
|
|
14
14
|
coverage= "7.4.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|