wiz-trader 0.12.0__tar.gz → 0.13.0__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.
- {wiz_trader-0.12.0/src/wiz_trader.egg-info → wiz_trader-0.13.0}/PKG-INFO +1 -1
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/pyproject.toml +1 -1
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/setup.py +1 -1
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader/__init__.py +1 -1
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader/apis/client.py +8 -4
- {wiz_trader-0.12.0 → wiz_trader-0.13.0/src/wiz_trader.egg-info}/PKG-INFO +1 -1
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/MANIFEST.in +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/README.md +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/setup.cfg +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader/apis/__init__.py +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader/quotes/__init__.py +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader/quotes/client.py +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader.egg-info/SOURCES.txt +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader.egg-info/dependency_links.txt +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader.egg-info/requires.txt +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/src/wiz_trader.egg-info/top_level.txt +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/tests/test_apis.py +0 -0
- {wiz_trader-0.12.0 → wiz_trader-0.13.0}/tests/test_quotes.py +0 -0
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='wiz_trader',
|
5
|
-
version='0.
|
5
|
+
version='0.13.0',
|
6
6
|
description='A Python SDK for connecting to the Wizzer.',
|
7
7
|
long_description=open('README.md').read() if open('README.md') else "",
|
8
8
|
long_description_content_type='text/markdown',
|
@@ -37,8 +37,8 @@ class WizzerClient:
|
|
37
37
|
# Order types
|
38
38
|
ORDER_TYPE_MARKET = "MARKET"
|
39
39
|
ORDER_TYPE_LIMIT = "LIMIT"
|
40
|
-
ORDER_TYPE_SL = "
|
41
|
-
ORDER_TYPE_SLM = "
|
40
|
+
ORDER_TYPE_SL = "STOPLIMIT" # Stop Loss
|
41
|
+
ORDER_TYPE_SLM = "STOPMARKET" # Stop Loss Market
|
42
42
|
|
43
43
|
# Validity types
|
44
44
|
VALIDITY_DAY = "DAY"
|
@@ -715,8 +715,10 @@ class WizzerClient:
|
|
715
715
|
"""
|
716
716
|
endpoint = self._routes["portfolio.positions.exit.all"]
|
717
717
|
|
718
|
+
data = {}
|
719
|
+
|
718
720
|
logger.debug("Exiting all positions")
|
719
|
-
return self._make_request("POST", endpoint)
|
721
|
+
return self._make_request("POST", endpoint, json=data)
|
720
722
|
|
721
723
|
def exit_strategy_positions(self, strategy_id: Optional[str] = None) -> Dict[str, Any]:
|
722
724
|
"""
|
@@ -740,8 +742,10 @@ class WizzerClient:
|
|
740
742
|
|
741
743
|
endpoint = self._routes["portfolio.positions.exit.strategy"].format(strategy_id=strategy_id)
|
742
744
|
|
745
|
+
data = {}
|
746
|
+
|
743
747
|
logger.debug("Exiting all positions for strategy: %s", strategy_id)
|
744
|
-
return self._make_request("POST", endpoint)
|
748
|
+
return self._make_request("POST", endpoint, json=data)
|
745
749
|
|
746
750
|
def _make_request(
|
747
751
|
self,
|
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
|