pmxtjs 2.50.2 → 2.50.4
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/pmxt/models.d.ts +12 -12
- package/dist/pmxt/models.d.ts +12 -12
- package/generated/package.json +1 -1
- package/package.json +2 -2
- package/pmxt/models.ts +12 -12
|
@@ -165,11 +165,11 @@ export interface UserTrade {
|
|
|
165
165
|
/** Market ID */
|
|
166
166
|
marketId?: string;
|
|
167
167
|
/** On-chain transaction hash (populated in hosted mode when the trade was settled on-chain). */
|
|
168
|
-
txHash?: string;
|
|
168
|
+
txHash?: string | null;
|
|
169
169
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
170
|
-
chain?: string;
|
|
170
|
+
chain?: string | null;
|
|
171
171
|
/** On-chain block number where this trade was included. Populated in hosted mode. */
|
|
172
|
-
blockNumber?: number;
|
|
172
|
+
blockNumber?: number | null;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
175
|
* Result of a paginated market fetch.
|
|
@@ -241,11 +241,11 @@ export interface Order {
|
|
|
241
241
|
/** Fee rate in basis points applied to this order (e.g. 100 = 1%). */
|
|
242
242
|
feeRateBps?: number;
|
|
243
243
|
/** On-chain transaction hash (populated in hosted mode when the order was settled on-chain). */
|
|
244
|
-
txHash?: string;
|
|
244
|
+
txHash?: string | null;
|
|
245
245
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
246
|
-
chain?: string;
|
|
246
|
+
chain?: string | null;
|
|
247
247
|
/** On-chain block number where this order was included. Populated in hosted mode. */
|
|
248
|
-
blockNumber?: number;
|
|
248
|
+
blockNumber?: number | null;
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* A current position in a market.
|
|
@@ -268,11 +268,11 @@ export interface Position {
|
|
|
268
268
|
/** Realized profit/loss */
|
|
269
269
|
realizedPnL?: number;
|
|
270
270
|
/** On-chain transaction hash for the latest position update. Populated in hosted mode. */
|
|
271
|
-
txHash?: string;
|
|
271
|
+
txHash?: string | null;
|
|
272
272
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
273
|
-
chain?: string;
|
|
273
|
+
chain?: string | null;
|
|
274
274
|
/** On-chain block number for the latest position update. Populated in hosted mode. */
|
|
275
|
-
blockNumber?: number;
|
|
275
|
+
blockNumber?: number | null;
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
278
|
* Account balance.
|
|
@@ -287,11 +287,11 @@ export interface Balance {
|
|
|
287
287
|
/** Locked in open orders */
|
|
288
288
|
locked: number;
|
|
289
289
|
/** On-chain transaction hash for the latest balance update. Populated in hosted mode. */
|
|
290
|
-
txHash?: string;
|
|
290
|
+
txHash?: string | null;
|
|
291
291
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
292
|
-
chain?: string;
|
|
292
|
+
chain?: string | null;
|
|
293
293
|
/** On-chain block number for the latest balance update. Populated in hosted mode. */
|
|
294
|
-
blockNumber?: number;
|
|
294
|
+
blockNumber?: number | null;
|
|
295
295
|
}
|
|
296
296
|
/**
|
|
297
297
|
* Candle interval for OHLCV data.
|
package/dist/pmxt/models.d.ts
CHANGED
|
@@ -165,11 +165,11 @@ export interface UserTrade {
|
|
|
165
165
|
/** Market ID */
|
|
166
166
|
marketId?: string;
|
|
167
167
|
/** On-chain transaction hash (populated in hosted mode when the trade was settled on-chain). */
|
|
168
|
-
txHash?: string;
|
|
168
|
+
txHash?: string | null;
|
|
169
169
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
170
|
-
chain?: string;
|
|
170
|
+
chain?: string | null;
|
|
171
171
|
/** On-chain block number where this trade was included. Populated in hosted mode. */
|
|
172
|
-
blockNumber?: number;
|
|
172
|
+
blockNumber?: number | null;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
175
|
* Result of a paginated market fetch.
|
|
@@ -241,11 +241,11 @@ export interface Order {
|
|
|
241
241
|
/** Fee rate in basis points applied to this order (e.g. 100 = 1%). */
|
|
242
242
|
feeRateBps?: number;
|
|
243
243
|
/** On-chain transaction hash (populated in hosted mode when the order was settled on-chain). */
|
|
244
|
-
txHash?: string;
|
|
244
|
+
txHash?: string | null;
|
|
245
245
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
246
|
-
chain?: string;
|
|
246
|
+
chain?: string | null;
|
|
247
247
|
/** On-chain block number where this order was included. Populated in hosted mode. */
|
|
248
|
-
blockNumber?: number;
|
|
248
|
+
blockNumber?: number | null;
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* A current position in a market.
|
|
@@ -268,11 +268,11 @@ export interface Position {
|
|
|
268
268
|
/** Realized profit/loss */
|
|
269
269
|
realizedPnL?: number;
|
|
270
270
|
/** On-chain transaction hash for the latest position update. Populated in hosted mode. */
|
|
271
|
-
txHash?: string;
|
|
271
|
+
txHash?: string | null;
|
|
272
272
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
273
|
-
chain?: string;
|
|
273
|
+
chain?: string | null;
|
|
274
274
|
/** On-chain block number for the latest position update. Populated in hosted mode. */
|
|
275
|
-
blockNumber?: number;
|
|
275
|
+
blockNumber?: number | null;
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
278
|
* Account balance.
|
|
@@ -287,11 +287,11 @@ export interface Balance {
|
|
|
287
287
|
/** Locked in open orders */
|
|
288
288
|
locked: number;
|
|
289
289
|
/** On-chain transaction hash for the latest balance update. Populated in hosted mode. */
|
|
290
|
-
txHash?: string;
|
|
290
|
+
txHash?: string | null;
|
|
291
291
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
292
|
-
chain?: string;
|
|
292
|
+
chain?: string | null;
|
|
293
293
|
/** On-chain block number for the latest balance update. Populated in hosted mode. */
|
|
294
|
-
blockNumber?: number;
|
|
294
|
+
blockNumber?: number | null;
|
|
295
295
|
}
|
|
296
296
|
/**
|
|
297
297
|
* Candle interval for OHLCV data.
|
package/generated/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.50.
|
|
3
|
+
"version": "2.50.4",
|
|
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.50.
|
|
46
|
+
"pmxt-core": "2.50.4",
|
|
47
47
|
"ws": "^8.18.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/pmxt/models.ts
CHANGED
|
@@ -225,13 +225,13 @@ export interface UserTrade {
|
|
|
225
225
|
marketId?: string;
|
|
226
226
|
|
|
227
227
|
/** On-chain transaction hash (populated in hosted mode when the trade was settled on-chain). */
|
|
228
|
-
txHash?: string;
|
|
228
|
+
txHash?: string | null;
|
|
229
229
|
|
|
230
230
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
231
|
-
chain?: string;
|
|
231
|
+
chain?: string | null;
|
|
232
232
|
|
|
233
233
|
/** On-chain block number where this trade was included. Populated in hosted mode. */
|
|
234
|
-
blockNumber?: number;
|
|
234
|
+
blockNumber?: number | null;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
/**
|
|
@@ -329,13 +329,13 @@ export interface Order {
|
|
|
329
329
|
feeRateBps?: number;
|
|
330
330
|
|
|
331
331
|
/** On-chain transaction hash (populated in hosted mode when the order was settled on-chain). */
|
|
332
|
-
txHash?: string;
|
|
332
|
+
txHash?: string | null;
|
|
333
333
|
|
|
334
334
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
335
|
-
chain?: string;
|
|
335
|
+
chain?: string | null;
|
|
336
336
|
|
|
337
337
|
/** On-chain block number where this order was included. Populated in hosted mode. */
|
|
338
|
-
blockNumber?: number;
|
|
338
|
+
blockNumber?: number | null;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
/**
|
|
@@ -367,13 +367,13 @@ export interface Position {
|
|
|
367
367
|
realizedPnL?: number;
|
|
368
368
|
|
|
369
369
|
/** On-chain transaction hash for the latest position update. Populated in hosted mode. */
|
|
370
|
-
txHash?: string;
|
|
370
|
+
txHash?: string | null;
|
|
371
371
|
|
|
372
372
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
373
|
-
chain?: string;
|
|
373
|
+
chain?: string | null;
|
|
374
374
|
|
|
375
375
|
/** On-chain block number for the latest position update. Populated in hosted mode. */
|
|
376
|
-
blockNumber?: number;
|
|
376
|
+
blockNumber?: number | null;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
/**
|
|
@@ -393,13 +393,13 @@ export interface Balance {
|
|
|
393
393
|
locked: number;
|
|
394
394
|
|
|
395
395
|
/** On-chain transaction hash for the latest balance update. Populated in hosted mode. */
|
|
396
|
-
txHash?: string;
|
|
396
|
+
txHash?: string | null;
|
|
397
397
|
|
|
398
398
|
/** Chain identifier (e.g. 'polygon'). Populated in hosted mode. */
|
|
399
|
-
chain?: string;
|
|
399
|
+
chain?: string | null;
|
|
400
400
|
|
|
401
401
|
/** On-chain block number for the latest balance update. Populated in hosted mode. */
|
|
402
|
-
blockNumber?: number;
|
|
402
|
+
blockNumber?: number | null;
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
// Parameter types
|