polysimulator 0.2.0__tar.gz → 0.2.2__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.
- {polysimulator-0.2.0 → polysimulator-0.2.2}/PKG-INFO +8 -3
- {polysimulator-0.2.0 → polysimulator-0.2.2}/README.md +4 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/__init__.py +1 -1
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/_http.py +2 -2
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/aio.py +2 -2
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/client.py +2 -2
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/sse.py +2 -2
- {polysimulator-0.2.0 → polysimulator-0.2.2}/pyproject.toml +4 -3
- {polysimulator-0.2.0 → polysimulator-0.2.2}/.gitignore +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/LICENSE +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/NOTICE +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/__init__.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/client.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/clob_types.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/constants.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/exceptions.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/order_builder/__init__.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_clob_client/order_builder/constants.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/constants.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/exceptions.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/pagination.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/updown.py +0 -0
- {polysimulator-0.2.0 → polysimulator-0.2.2}/polysim_sdk/ws.py +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: polysimulator
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python SDK for the PolySimulator paper-trading API, with py-clob-client drop-in parity
|
|
5
5
|
Project-URL: Homepage, https://polysimulator.com
|
|
6
|
-
Project-URL: Documentation, https://
|
|
7
|
-
Project-URL:
|
|
6
|
+
Project-URL: Documentation, https://docs.polysimulator.com
|
|
7
|
+
Project-URL: API Reference, https://api.polysimulator.com/docs
|
|
8
|
+
Project-URL: Repository, https://github.com/Bavariance/polysimulator-sdk
|
|
8
9
|
Author: Bavariance
|
|
9
10
|
License-Expression: Apache-2.0
|
|
10
11
|
License-File: LICENSE
|
|
@@ -56,6 +57,10 @@ Targets Python 3.10+.
|
|
|
56
57
|
pip install polysimulator
|
|
57
58
|
```
|
|
58
59
|
|
|
60
|
+
> The install name is **`polysimulator`**; the import name stays **`polysim_sdk`**
|
|
61
|
+
> (like `pip install pillow` → `import PIL`). The older `polysim-sdk` name is now a
|
|
62
|
+
> thin alias that installs `polysimulator` for you, so existing installs keep working.
|
|
63
|
+
|
|
59
64
|
From a checkout of this directory (for development):
|
|
60
65
|
|
|
61
66
|
```bash
|
|
@@ -24,6 +24,10 @@ Targets Python 3.10+.
|
|
|
24
24
|
pip install polysimulator
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
> The install name is **`polysimulator`**; the import name stays **`polysim_sdk`**
|
|
28
|
+
> (like `pip install pillow` → `import PIL`). The older `polysim-sdk` name is now a
|
|
29
|
+
> thin alias that installs `polysimulator` for you, so existing installs keep working.
|
|
30
|
+
|
|
27
31
|
From a checkout of this directory (for development):
|
|
28
32
|
|
|
29
33
|
```bash
|
|
@@ -196,7 +196,7 @@ class SyncTransport:
|
|
|
196
196
|
timeout: float = DEFAULT_TIMEOUT_SECONDS,
|
|
197
197
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
198
198
|
floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
|
|
199
|
-
user_agent: str = "polysim-sdk/0.2.
|
|
199
|
+
user_agent: str = "polysim-sdk/0.2.2",
|
|
200
200
|
) -> None:
|
|
201
201
|
self.base_url = base_url.rstrip("/")
|
|
202
202
|
self._max_retries = max_retries
|
|
@@ -307,7 +307,7 @@ class AsyncTransport:
|
|
|
307
307
|
timeout: float = DEFAULT_TIMEOUT_SECONDS,
|
|
308
308
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
309
309
|
floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
|
|
310
|
-
user_agent: str = "polysim-sdk/0.2.
|
|
310
|
+
user_agent: str = "polysim-sdk/0.2.2",
|
|
311
311
|
) -> None:
|
|
312
312
|
self.base_url = base_url.rstrip("/")
|
|
313
313
|
self._max_retries = max_retries
|
|
@@ -49,7 +49,7 @@ class AsyncPolySimClient:
|
|
|
49
49
|
timeout: float = DEFAULT_TIMEOUT_SECONDS,
|
|
50
50
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
51
51
|
floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
|
|
52
|
-
user_agent: str = "polysim-sdk/0.2.
|
|
52
|
+
user_agent: str = "polysim-sdk/0.2.2",
|
|
53
53
|
) -> None:
|
|
54
54
|
resolved_key = api_key or os.environ.get("POLYSIM_API_KEY")
|
|
55
55
|
if not resolved_key:
|
|
@@ -607,7 +607,7 @@ class AsyncPolySimClient:
|
|
|
607
607
|
timeout: float = DEFAULT_TIMEOUT_SECONDS,
|
|
608
608
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
609
609
|
floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
|
|
610
|
-
user_agent: str = "polysim-sdk/0.2.
|
|
610
|
+
user_agent: str = "polysim-sdk/0.2.2",
|
|
611
611
|
) -> dict[str, Any]:
|
|
612
612
|
"""``POST /v1/keys/bootstrap`` — JWT-authed first-key mint, no key needed.
|
|
613
613
|
|
|
@@ -43,7 +43,7 @@ class PolySimClient:
|
|
|
43
43
|
timeout: float = DEFAULT_TIMEOUT_SECONDS,
|
|
44
44
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
45
45
|
floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
|
|
46
|
-
user_agent: str = "polysim-sdk/0.2.
|
|
46
|
+
user_agent: str = "polysim-sdk/0.2.2",
|
|
47
47
|
) -> None:
|
|
48
48
|
resolved_key = api_key or os.environ.get("POLYSIM_API_KEY")
|
|
49
49
|
if not resolved_key:
|
|
@@ -713,7 +713,7 @@ class PolySimClient:
|
|
|
713
713
|
timeout: float = DEFAULT_TIMEOUT_SECONDS,
|
|
714
714
|
max_retries: int = DEFAULT_MAX_RETRIES,
|
|
715
715
|
floor_interval: float = DEFAULT_FLOOR_INTERVAL_SECONDS,
|
|
716
|
-
user_agent: str = "polysim-sdk/0.2.
|
|
716
|
+
user_agent: str = "polysim-sdk/0.2.2",
|
|
717
717
|
) -> dict[str, Any]:
|
|
718
718
|
"""``POST /v1/keys/bootstrap`` — mint the FIRST key from a Supabase JWT.
|
|
719
719
|
|
|
@@ -170,7 +170,7 @@ def spot_stream(
|
|
|
170
170
|
backoff = reconnect_min_interval
|
|
171
171
|
attempts = 0
|
|
172
172
|
url = resolve_url(client.base_url, "/prices/stream")
|
|
173
|
-
headers = _sse_headers(client._api_key, "polysim-sdk/0.2.
|
|
173
|
+
headers = _sse_headers(client._api_key, "polysim-sdk/0.2.2")
|
|
174
174
|
with httpx.Client(timeout=_stream_timeout()) as http:
|
|
175
175
|
while True:
|
|
176
176
|
try:
|
|
@@ -228,7 +228,7 @@ async def aspot_stream(
|
|
|
228
228
|
backoff = reconnect_min_interval
|
|
229
229
|
attempts = 0
|
|
230
230
|
url = resolve_url(client.base_url, "/prices/stream")
|
|
231
|
-
headers = _sse_headers(client._api_key, "polysim-sdk/0.2.
|
|
231
|
+
headers = _sse_headers(client._api_key, "polysim-sdk/0.2.2")
|
|
232
232
|
async with httpx.AsyncClient(timeout=_stream_timeout()) as http:
|
|
233
233
|
while True:
|
|
234
234
|
try:
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "polysimulator"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Python SDK for the PolySimulator paper-trading API, with py-clob-client drop-in parity"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -39,8 +39,9 @@ dev = [
|
|
|
39
39
|
|
|
40
40
|
[project.urls]
|
|
41
41
|
Homepage = "https://polysimulator.com"
|
|
42
|
-
Documentation = "https://
|
|
43
|
-
|
|
42
|
+
Documentation = "https://docs.polysimulator.com"
|
|
43
|
+
"API Reference" = "https://api.polysimulator.com/docs"
|
|
44
|
+
Repository = "https://github.com/Bavariance/polysimulator-sdk"
|
|
44
45
|
|
|
45
46
|
[tool.hatch.build.targets.wheel]
|
|
46
47
|
packages = ["polysim_sdk", "polysim_clob_client"]
|
|
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
|