pmxt 1.5.0__tar.gz → 1.5.1__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.
- {pmxt-1.5.0 → pmxt-1.5.1}/PKG-INFO +1 -1
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/__init__.py +1 -1
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/api_client.py +1 -1
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/configuration.py +1 -1
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/__init__.py +3 -2
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/_server/server/bundled.js +9 -4
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/client.py +36 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt.egg-info/PKG-INFO +1 -1
- {pmxt-1.5.0 → pmxt-1.5.1}/pyproject.toml +1 -1
- {pmxt-1.5.0 → pmxt-1.5.1}/README.md +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/api/__init__.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/api/default_api.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/api_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/exceptions.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/__init__.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/balance.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/base_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/base_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/cancel_order_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/create_order200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/create_order_params.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/create_order_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/error_detail.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/error_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/exchange_credentials.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/execution_price_result.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_balance200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_markets200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_markets_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_ohlcv200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_ohlcv_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_ohlcv_request_args_inner.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_open_orders200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_open_orders_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_order_book200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_order_book_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_positions200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_positions_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_trades200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/fetch_trades_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_execution_price200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_execution_price_detailed200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_execution_price_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_execution_price_request_args_inner.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_markets_by_slug_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/health_check200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/history_filter_params.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/market_filter_params.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/market_outcome.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/order.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/order_book.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/order_level.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/position.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/price_candle.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/search_events200_response.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/search_events_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/search_markets_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/search_markets_request_args_inner.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/trade.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/unified_event.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/unified_market.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/watch_order_book_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/watch_order_book_request_args_inner.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/watch_trades_request.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/py.typed +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/rest.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/_server/__init__.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/_server/bin/pmxt-ensure-server +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/_server/bin/pmxt-ensure-server.js +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/models.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt/server_manager.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt.egg-info/SOURCES.txt +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt.egg-info/dependency_links.txt +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt.egg-info/requires.txt +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/pmxt.egg-info/top_level.txt +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/setup.cfg +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/tests/test_integration.py +0 -0
- {pmxt-1.5.0 → pmxt-1.5.1}/tests/test_server_manager.py +0 -0
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/1.5.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/1.5.1/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
|
@@ -506,7 +506,7 @@ class Configuration:
|
|
|
506
506
|
"OS: {env}\n"\
|
|
507
507
|
"Python Version: {pyversion}\n"\
|
|
508
508
|
"Version of the API: 0.4.4\n"\
|
|
509
|
-
"SDK Package Version: 1.5.
|
|
509
|
+
"SDK Package Version: 1.5.1".\
|
|
510
510
|
format(env=sys.platform, pyversion=sys.version)
|
|
511
511
|
|
|
512
512
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -16,7 +16,7 @@ Example:
|
|
|
16
16
|
>>> print(markets[0].title)
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
-
from .client import Polymarket, Kalshi, Exchange
|
|
19
|
+
from .client import Polymarket, Kalshi, Limitless, Exchange
|
|
20
20
|
from .server_manager import ServerManager
|
|
21
21
|
from .models import (
|
|
22
22
|
UnifiedMarket,
|
|
@@ -33,11 +33,12 @@ from .models import (
|
|
|
33
33
|
CreateOrderParams,
|
|
34
34
|
)
|
|
35
35
|
|
|
36
|
-
__version__ = "1.5.
|
|
36
|
+
__version__ = "1.5.1"
|
|
37
37
|
__all__ = [
|
|
38
38
|
# Exchanges
|
|
39
39
|
"Polymarket",
|
|
40
40
|
"Kalshi",
|
|
41
|
+
"Limitless",
|
|
41
42
|
"Exchange",
|
|
42
43
|
# Server Management
|
|
43
44
|
"ServerManager",
|
|
@@ -106002,16 +106002,21 @@ var require_fetchMarkets3 = __commonJS({
|
|
|
106002
106002
|
events = cachedEvents;
|
|
106003
106003
|
seriesMap = cachedSeriesMap;
|
|
106004
106004
|
} else {
|
|
106005
|
-
const
|
|
106005
|
+
const isSorted = params?.sort && (params.sort === "volume" || params.sort === "liquidity");
|
|
106006
|
+
const fetchLimit = isSorted ? 1e3 : limit;
|
|
106006
106007
|
const [allEvents, fetchedSeriesMap] = await Promise.all([
|
|
106007
106008
|
fetchActiveEvents(fetchLimit),
|
|
106008
106009
|
fetchSeriesMap()
|
|
106009
106010
|
]);
|
|
106010
106011
|
events = allEvents;
|
|
106011
106012
|
seriesMap = fetchedSeriesMap;
|
|
106012
|
-
|
|
106013
|
-
|
|
106014
|
-
|
|
106013
|
+
events = allEvents;
|
|
106014
|
+
seriesMap = fetchedSeriesMap;
|
|
106015
|
+
if (fetchLimit >= 1e3) {
|
|
106016
|
+
cachedEvents = allEvents;
|
|
106017
|
+
cachedSeriesMap = fetchedSeriesMap;
|
|
106018
|
+
lastCacheTime = now;
|
|
106019
|
+
}
|
|
106015
106020
|
}
|
|
106016
106021
|
const allMarkets = [];
|
|
106017
106022
|
for (const event of events) {
|
|
@@ -990,3 +990,39 @@ class Kalshi(Exchange):
|
|
|
990
990
|
base_url=base_url,
|
|
991
991
|
auto_start_server=auto_start_server,
|
|
992
992
|
)
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
class Limitless(Exchange):
|
|
996
|
+
"""
|
|
997
|
+
Limitless exchange client.
|
|
998
|
+
|
|
999
|
+
Example:
|
|
1000
|
+
>>> # Public data (no auth)
|
|
1001
|
+
>>> limitless = Limitless()
|
|
1002
|
+
>>> markets = limitless.search_markets("Trump")
|
|
1003
|
+
>>>
|
|
1004
|
+
>>> # Trading (requires auth)
|
|
1005
|
+
>>> limitless = Limitless(private_key=os.getenv("LIMITLESS_PRIVATE_KEY"))
|
|
1006
|
+
>>> balance = limitless.fetch_balance()
|
|
1007
|
+
"""
|
|
1008
|
+
|
|
1009
|
+
def __init__(
|
|
1010
|
+
self,
|
|
1011
|
+
private_key: Optional[str] = None,
|
|
1012
|
+
base_url: str = "http://localhost:3847",
|
|
1013
|
+
auto_start_server: bool = True,
|
|
1014
|
+
):
|
|
1015
|
+
"""
|
|
1016
|
+
Initialize Limitless client.
|
|
1017
|
+
|
|
1018
|
+
Args:
|
|
1019
|
+
private_key: Ethereum private key (required for trading)
|
|
1020
|
+
base_url: Base URL of the PMXT sidecar server
|
|
1021
|
+
auto_start_server: Automatically start server if not running (default: True)
|
|
1022
|
+
"""
|
|
1023
|
+
super().__init__(
|
|
1024
|
+
exchange_name="limitless",
|
|
1025
|
+
private_key=private_key,
|
|
1026
|
+
base_url=base_url,
|
|
1027
|
+
auto_start_server=auto_start_server,
|
|
1028
|
+
)
|
|
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
|
|
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
|
{pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_execution_price_detailed200_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/get_execution_price_request_args_inner.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
|
{pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/search_markets_request_args_inner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pmxt-1.5.0 → pmxt-1.5.1}/generated/pmxt_internal/models/watch_order_book_request_args_inner.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
|