siglab-py 0.1.4__tar.gz → 0.1.5__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 siglab-py might be problematic. Click here for more details.
- {siglab_py-0.1.4 → siglab_py-0.1.5}/PKG-INFO +1 -1
- {siglab_py-0.1.4 → siglab_py-0.1.5}/pyproject.toml +1 -1
- {siglab_py-0.1.4 → siglab_py-0.1.5}/setup.cfg +1 -1
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/ordergateway/client.py +3 -2
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py.egg-info/PKG-INFO +1 -1
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/constants.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/exchanges/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/exchanges/any_exchange.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/aggregated_orderbook_provider.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/candles_provider.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/candles_ta_provider.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/deribit_options_expiry_provider.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/orderbooks_provider.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/test_provider.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/ordergateway/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/ordergateway/encrypt_keys_util.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/ordergateway/gateway.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/ordergateway/test_ordergateway.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/tests/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/tests/integration/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/tests/integration/market_data_util_tests.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/tests/unit/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/util/__init__.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/util/analytic_util.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/util/aws_util.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/util/market_data_util.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/util/retry_util.py +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py.egg-info/SOURCES.txt +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py.egg-info/dependency_links.txt +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py.egg-info/requires.txt +0 -0
- {siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "siglab_py"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.5"
|
|
8
8
|
description = "Market data fetches, TA calculations and generic order gateway."
|
|
9
9
|
authors = [{name = "r0bbarh00d", email = "r0bbarh00d@gmail.com"}]
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -4,6 +4,7 @@ from typing import List, Dict, Any
|
|
|
4
4
|
from ccxt.base.types import Position
|
|
5
5
|
|
|
6
6
|
from ..exchanges.any_exchange import AnyExchange
|
|
7
|
+
from ..constants import JSON_SERIALIZABLE_TYPES
|
|
7
8
|
|
|
8
9
|
'''
|
|
9
10
|
Example,
|
|
@@ -37,7 +38,7 @@ class Order:
|
|
|
37
38
|
self.order_type = order_type.strip().lower()
|
|
38
39
|
self.leg_room_bps = leg_room_bps
|
|
39
40
|
|
|
40
|
-
def to_dict(self) -> Dict[
|
|
41
|
+
def to_dict(self) -> Dict[JSON_SERIALIZABLE_TYPES, JSON_SERIALIZABLE_TYPES]:
|
|
41
42
|
return {
|
|
42
43
|
"ticker" : self.ticker,
|
|
43
44
|
"side" : self.side,
|
|
@@ -126,7 +127,7 @@ class DivisiblePosition(Order):
|
|
|
126
127
|
self.average_cost = average_cost
|
|
127
128
|
return average_cost
|
|
128
129
|
|
|
129
|
-
def to_dict(self) -> Dict[
|
|
130
|
+
def to_dict(self) -> Dict[JSON_SERIALIZABLE_TYPES, JSON_SERIALIZABLE_TYPES]:
|
|
130
131
|
rv = super().to_dict()
|
|
131
132
|
rv['slices'] = self.slices
|
|
132
133
|
rv['wait_fill_threshold_ms'] = self.wait_fill_threshold_ms
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{siglab_py-0.1.4 → siglab_py-0.1.5}/siglab_py/market_data_providers/aggregated_orderbook_provider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|