pmxtjs 2.43.5 → 2.43.9
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.
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +2 -2
- package/dist/esm/generated/src/apis/DefaultApi.js +2 -2
- package/dist/esm/pmxt/server-manager.js +4 -2
- package/dist/generated/src/apis/DefaultApi.d.ts +2 -2
- package/dist/generated/src/apis/DefaultApi.js +2 -2
- package/dist/pmxt/server-manager.js +4 -2
- package/generated/docs/DefaultApi.md +1 -1
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +2 -2
- package/package.json +2 -2
- package/pmxt/server-manager.ts +5 -3
|
@@ -512,12 +512,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
512
512
|
*/
|
|
513
513
|
fetchOrder(requestParameters: FetchOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrder200Response>;
|
|
514
514
|
/**
|
|
515
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
515
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
516
516
|
* Fetch Order Book
|
|
517
517
|
*/
|
|
518
518
|
fetchOrderBookRaw(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchOrderBook200Response>>;
|
|
519
519
|
/**
|
|
520
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
520
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
521
521
|
* Fetch Order Book
|
|
522
522
|
*/
|
|
523
523
|
fetchOrderBook(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchOrderBook200Response>;
|
|
@@ -1061,7 +1061,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1061
1061
|
return await response.value();
|
|
1062
1062
|
}
|
|
1063
1063
|
/**
|
|
1064
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
1064
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
1065
1065
|
* Fetch Order Book
|
|
1066
1066
|
*/
|
|
1067
1067
|
async fetchOrderBookRaw(requestParameters, initOverrides) {
|
|
@@ -1099,7 +1099,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1099
1099
|
return new runtime.JSONApiResponse(response, (jsonValue) => FetchOrderBook200ResponseFromJSON(jsonValue));
|
|
1100
1100
|
}
|
|
1101
1101
|
/**
|
|
1102
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
1102
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
1103
1103
|
* Fetch Order Book
|
|
1104
1104
|
*/
|
|
1105
1105
|
async fetchOrderBook(requestParameters, initOverrides) {
|
|
@@ -167,8 +167,10 @@ export class ServerManager {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
catch (error) {
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
if (process.env.PMXT_LOG_LEVEL === 'debug') {
|
|
171
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
172
|
+
process.stderr.write(`[pmxt] Binary path resolution failed, falling back to PATH: ${msg}\n`);
|
|
173
|
+
}
|
|
172
174
|
}
|
|
173
175
|
// Try to start the server using pmxt-ensure-server
|
|
174
176
|
const { spawn } = await import("child_process");
|
|
@@ -512,12 +512,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
512
512
|
*/
|
|
513
513
|
fetchOrder(requestParameters: FetchOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrder200Response>;
|
|
514
514
|
/**
|
|
515
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
515
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
516
516
|
* Fetch Order Book
|
|
517
517
|
*/
|
|
518
518
|
fetchOrderBookRaw(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchOrderBook200Response>>;
|
|
519
519
|
/**
|
|
520
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
520
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
521
521
|
* Fetch Order Book
|
|
522
522
|
*/
|
|
523
523
|
fetchOrderBook(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchOrderBook200Response>;
|
|
@@ -1098,7 +1098,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1098
1098
|
return await response.value();
|
|
1099
1099
|
}
|
|
1100
1100
|
/**
|
|
1101
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
1101
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
1102
1102
|
* Fetch Order Book
|
|
1103
1103
|
*/
|
|
1104
1104
|
async fetchOrderBookRaw(requestParameters, initOverrides) {
|
|
@@ -1136,7 +1136,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1136
1136
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FetchOrderBook200ResponseFromJSON)(jsonValue));
|
|
1137
1137
|
}
|
|
1138
1138
|
/**
|
|
1139
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
1139
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
1140
1140
|
* Fetch Order Book
|
|
1141
1141
|
*/
|
|
1142
1142
|
async fetchOrderBook(requestParameters, initOverrides) {
|
|
@@ -203,8 +203,10 @@ class ServerManager {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
catch (error) {
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
if (process.env.PMXT_LOG_LEVEL === 'debug') {
|
|
207
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
208
|
+
process.stderr.write(`[pmxt] Binary path resolution failed, falling back to PATH: ${msg}\n`);
|
|
209
|
+
}
|
|
208
210
|
}
|
|
209
211
|
// Try to start the server using pmxt-ensure-server
|
|
210
212
|
const { spawn } = await Promise.resolve().then(() => __importStar(require("child_process")));
|
|
@@ -2020,7 +2020,7 @@ No authorization required
|
|
|
2020
2020
|
|
|
2021
2021
|
Fetch Order Book
|
|
2022
2022
|
|
|
2023
|
-
Fetch the order book (bids/asks) for a specific outcome.
|
|
2023
|
+
Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
2024
2024
|
|
|
2025
2025
|
### Example
|
|
2026
2026
|
|
package/generated/package.json
CHANGED
|
@@ -1898,7 +1898,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
1900
|
/**
|
|
1901
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
1901
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
1902
1902
|
* Fetch Order Book
|
|
1903
1903
|
*/
|
|
1904
1904
|
async fetchOrderBookRaw(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchOrderBook200Response>> {
|
|
@@ -1955,7 +1955,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
1957
|
/**
|
|
1958
|
-
* Fetch the order book (bids/asks) for a specific outcome.
|
|
1958
|
+
* Fetch the order book (bids/asks) for a specific outcome. Supports live and historical queries. For historical data, pass `since` to get a single snapshot, or `since` + `until` to get an array of fully reconstructed L2 books from the archive. Range queries return up to `limit` snapshots (default 100, max 1000).
|
|
1959
1959
|
* Fetch Order Book
|
|
1960
1960
|
*/
|
|
1961
1961
|
async fetchOrderBook(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchOrderBook200Response> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.43.
|
|
3
|
+
"version": "2.43.9",
|
|
4
4
|
"description": "Unified prediction market data API - The ccxt for prediction markets",
|
|
5
5
|
"author": "PMXT Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"unified"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"pmxt-core": "2.43.
|
|
46
|
+
"pmxt-core": "2.43.9",
|
|
47
47
|
"ws": "^8.18.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
package/pmxt/server-manager.ts
CHANGED
|
@@ -193,9 +193,11 @@ export class ServerManager {
|
|
|
193
193
|
if (existsSync(binPath)) {
|
|
194
194
|
launcherPath = binPath;
|
|
195
195
|
}
|
|
196
|
-
} catch (error) {
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
} catch (error: unknown) {
|
|
197
|
+
if (process.env.PMXT_LOG_LEVEL === 'debug') {
|
|
198
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
199
|
+
process.stderr.write(`[pmxt] Binary path resolution failed, falling back to PATH: ${msg}\n`);
|
|
200
|
+
}
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
// Try to start the server using pmxt-ensure-server
|