pmxtjs 2.26.1 → 2.27.1
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 +266 -106
- package/dist/esm/generated/src/apis/DefaultApi.js +346 -61
- package/dist/esm/generated/src/models/index.d.ts +0 -19
- package/dist/esm/generated/src/models/index.js +0 -19
- package/dist/esm/pmxt/client.d.ts +59 -4
- package/dist/esm/pmxt/client.js +181 -195
- package/dist/esm/pmxt/constants.d.ts +53 -0
- package/dist/esm/pmxt/constants.js +60 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +266 -106
- package/dist/generated/src/apis/DefaultApi.js +346 -61
- package/dist/generated/src/models/index.d.ts +0 -19
- package/dist/generated/src/models/index.js +0 -19
- package/dist/pmxt/client.d.ts +59 -4
- package/dist/pmxt/client.js +181 -195
- package/dist/pmxt/constants.d.ts +53 -0
- package/dist/pmxt/constants.js +64 -0
- package/generated/.openapi-generator/FILES +0 -38
- package/generated/docs/DefaultApi.md +276 -120
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +590 -210
- package/generated/src/models/index.ts +0 -19
- package/package.json +2 -2
- package/pmxt/client.ts +223 -208
- package/pmxt/constants.ts +67 -0
- package/dist/esm/generated/src/models/FetchAllOrdersRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchAllOrdersRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchBalanceRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/FetchBalanceRequest.js +0 -44
- package/dist/esm/generated/src/models/FetchClosedOrdersRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchClosedOrdersRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchEventRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchEventRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchEventsRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchEventsRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchMarketRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchMarketRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchMarketsPaginatedRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchMarketsPaginatedRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchMarketsPaginatedRequestArgsInner.d.ts +0 -38
- package/dist/esm/generated/src/models/FetchMarketsPaginatedRequestArgsInner.js +0 -43
- package/dist/esm/generated/src/models/FetchMarketsRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchMarketsRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchMyTradesRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchMyTradesRequest.js +0 -45
- package/dist/esm/generated/src/models/FetchOHLCVRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchOHLCVRequest.js +0 -47
- package/dist/esm/generated/src/models/FetchOHLCVRequestArgsInner.d.ts +0 -22
- package/dist/esm/generated/src/models/FetchOHLCVRequestArgsInner.js +0 -50
- package/dist/esm/generated/src/models/FetchOpenOrdersRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/FetchOpenOrdersRequest.js +0 -44
- package/dist/esm/generated/src/models/FetchOrderBookRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/FetchOrderBookRequest.js +0 -46
- package/dist/esm/generated/src/models/FetchOrderRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/FetchOrderRequest.js +0 -46
- package/dist/esm/generated/src/models/FetchPositionsRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/FetchPositionsRequest.js +0 -44
- package/dist/esm/generated/src/models/FetchTradesRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/FetchTradesRequest.js +0 -47
- package/dist/esm/generated/src/models/FetchTradesRequestArgsInner.d.ts +0 -22
- package/dist/esm/generated/src/models/FetchTradesRequestArgsInner.js +0 -50
- package/dist/esm/generated/src/models/FetchTradesRequestArgsInnerOneOf.d.ts +0 -24
- package/dist/esm/generated/src/models/FetchTradesRequestArgsInnerOneOf.js +0 -54
- package/dist/generated/src/models/FetchAllOrdersRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchAllOrdersRequest.js +0 -52
- package/dist/generated/src/models/FetchBalanceRequest.d.ts +0 -39
- package/dist/generated/src/models/FetchBalanceRequest.js +0 -51
- package/dist/generated/src/models/FetchClosedOrdersRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchClosedOrdersRequest.js +0 -52
- package/dist/generated/src/models/FetchEventRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchEventRequest.js +0 -52
- package/dist/generated/src/models/FetchEventsRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchEventsRequest.js +0 -52
- package/dist/generated/src/models/FetchMarketRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchMarketRequest.js +0 -52
- package/dist/generated/src/models/FetchMarketsPaginatedRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchMarketsPaginatedRequest.js +0 -52
- package/dist/generated/src/models/FetchMarketsPaginatedRequestArgsInner.d.ts +0 -38
- package/dist/generated/src/models/FetchMarketsPaginatedRequestArgsInner.js +0 -50
- package/dist/generated/src/models/FetchMarketsRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchMarketsRequest.js +0 -52
- package/dist/generated/src/models/FetchMyTradesRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchMyTradesRequest.js +0 -52
- package/dist/generated/src/models/FetchOHLCVRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchOHLCVRequest.js +0 -54
- package/dist/generated/src/models/FetchOHLCVRequestArgsInner.d.ts +0 -22
- package/dist/generated/src/models/FetchOHLCVRequestArgsInner.js +0 -56
- package/dist/generated/src/models/FetchOpenOrdersRequest.d.ts +0 -39
- package/dist/generated/src/models/FetchOpenOrdersRequest.js +0 -51
- package/dist/generated/src/models/FetchOrderBookRequest.d.ts +0 -39
- package/dist/generated/src/models/FetchOrderBookRequest.js +0 -53
- package/dist/generated/src/models/FetchOrderRequest.d.ts +0 -39
- package/dist/generated/src/models/FetchOrderRequest.js +0 -53
- package/dist/generated/src/models/FetchPositionsRequest.d.ts +0 -39
- package/dist/generated/src/models/FetchPositionsRequest.js +0 -51
- package/dist/generated/src/models/FetchTradesRequest.d.ts +0 -40
- package/dist/generated/src/models/FetchTradesRequest.js +0 -54
- package/dist/generated/src/models/FetchTradesRequestArgsInner.d.ts +0 -22
- package/dist/generated/src/models/FetchTradesRequestArgsInner.js +0 -56
- package/dist/generated/src/models/FetchTradesRequestArgsInnerOneOf.d.ts +0 -24
- package/dist/generated/src/models/FetchTradesRequestArgsInnerOneOf.js +0 -61
- package/generated/docs/FetchAllOrdersRequest.md +0 -36
- package/generated/docs/FetchBalanceRequest.md +0 -36
- package/generated/docs/FetchClosedOrdersRequest.md +0 -36
- package/generated/docs/FetchEventRequest.md +0 -36
- package/generated/docs/FetchEventsRequest.md +0 -36
- package/generated/docs/FetchMarketRequest.md +0 -36
- package/generated/docs/FetchMarketsPaginatedRequest.md +0 -36
- package/generated/docs/FetchMarketsPaginatedRequestArgsInner.md +0 -36
- package/generated/docs/FetchMarketsRequest.md +0 -36
- package/generated/docs/FetchMyTradesRequest.md +0 -36
- package/generated/docs/FetchOHLCVRequest.md +0 -36
- package/generated/docs/FetchOHLCVRequestArgsInner.md +0 -40
- package/generated/docs/FetchOpenOrdersRequest.md +0 -36
- package/generated/docs/FetchOrderBookRequest.md +0 -36
- package/generated/docs/FetchOrderRequest.md +0 -36
- package/generated/docs/FetchPositionsRequest.md +0 -36
- package/generated/docs/FetchTradesRequest.md +0 -36
- package/generated/docs/FetchTradesRequestArgsInner.md +0 -40
- package/generated/docs/FetchTradesRequestArgsInnerOneOf.md +0 -40
- package/generated/src/models/FetchAllOrdersRequest.ts +0 -88
- package/generated/src/models/FetchBalanceRequest.ts +0 -81
- package/generated/src/models/FetchClosedOrdersRequest.ts +0 -88
- package/generated/src/models/FetchEventRequest.ts +0 -88
- package/generated/src/models/FetchEventsRequest.ts +0 -88
- package/generated/src/models/FetchMarketRequest.ts +0 -88
- package/generated/src/models/FetchMarketsPaginatedRequest.ts +0 -88
- package/generated/src/models/FetchMarketsPaginatedRequestArgsInner.ts +0 -73
- package/generated/src/models/FetchMarketsRequest.ts +0 -88
- package/generated/src/models/FetchMyTradesRequest.ts +0 -88
- package/generated/src/models/FetchOHLCVRequest.ts +0 -89
- package/generated/src/models/FetchOHLCVRequestArgsInner.ts +0 -69
- package/generated/src/models/FetchOpenOrdersRequest.ts +0 -81
- package/generated/src/models/FetchOrderBookRequest.ts +0 -82
- package/generated/src/models/FetchOrderRequest.ts +0 -82
- package/generated/src/models/FetchPositionsRequest.ts +0 -81
- package/generated/src/models/FetchTradesRequest.ts +0 -89
- package/generated/src/models/FetchTradesRequestArgsInner.ts +0 -69
- package/generated/src/models/FetchTradesRequestArgsInnerOneOf.ts +0 -80
|
@@ -8,21 +8,21 @@ All URIs are relative to *http://localhost:3847*
|
|
|
8
8
|
| [**cancelOrder**](DefaultApi.md#cancelorderoperation) | **POST** /api/{exchange}/cancelOrder | Cancel Order |
|
|
9
9
|
| [**close**](DefaultApi.md#closeoperation) | **POST** /api/{exchange}/close | Close |
|
|
10
10
|
| [**createOrder**](DefaultApi.md#createorderoperation) | **POST** /api/{exchange}/createOrder | Create Order |
|
|
11
|
-
| [**fetchAllOrders**](DefaultApi.md#
|
|
12
|
-
| [**fetchBalance**](DefaultApi.md#
|
|
13
|
-
| [**fetchClosedOrders**](DefaultApi.md#
|
|
14
|
-
| [**fetchEvent**](DefaultApi.md#
|
|
15
|
-
| [**fetchEvents**](DefaultApi.md#
|
|
16
|
-
| [**fetchMarket**](DefaultApi.md#
|
|
17
|
-
| [**fetchMarkets**](DefaultApi.md#
|
|
18
|
-
| [**fetchMarketsPaginated**](DefaultApi.md#
|
|
19
|
-
| [**fetchMyTrades**](DefaultApi.md#
|
|
20
|
-
| [**fetchOHLCV**](DefaultApi.md#
|
|
21
|
-
| [**fetchOpenOrders**](DefaultApi.md#
|
|
22
|
-
| [**fetchOrder**](DefaultApi.md#
|
|
23
|
-
| [**fetchOrderBook**](DefaultApi.md#
|
|
24
|
-
| [**fetchPositions**](DefaultApi.md#
|
|
25
|
-
| [**fetchTrades**](DefaultApi.md#
|
|
11
|
+
| [**fetchAllOrders**](DefaultApi.md#fetchallorders) | **GET** /api/{exchange}/fetchAllOrders | Fetch All Orders |
|
|
12
|
+
| [**fetchBalance**](DefaultApi.md#fetchbalance) | **GET** /api/{exchange}/fetchBalance | Fetch Balance |
|
|
13
|
+
| [**fetchClosedOrders**](DefaultApi.md#fetchclosedorders) | **GET** /api/{exchange}/fetchClosedOrders | Fetch Closed Orders |
|
|
14
|
+
| [**fetchEvent**](DefaultApi.md#fetchevent) | **GET** /api/{exchange}/fetchEvent | Fetch Event |
|
|
15
|
+
| [**fetchEvents**](DefaultApi.md#fetchevents) | **GET** /api/{exchange}/fetchEvents | Fetch Events |
|
|
16
|
+
| [**fetchMarket**](DefaultApi.md#fetchmarket) | **GET** /api/{exchange}/fetchMarket | Fetch Market |
|
|
17
|
+
| [**fetchMarkets**](DefaultApi.md#fetchmarkets) | **GET** /api/{exchange}/fetchMarkets | Fetch Markets |
|
|
18
|
+
| [**fetchMarketsPaginated**](DefaultApi.md#fetchmarketspaginated) | **GET** /api/{exchange}/fetchMarketsPaginated | Fetch Markets Paginated |
|
|
19
|
+
| [**fetchMyTrades**](DefaultApi.md#fetchmytrades) | **GET** /api/{exchange}/fetchMyTrades | Fetch My Trades |
|
|
20
|
+
| [**fetchOHLCV**](DefaultApi.md#fetchohlcv) | **GET** /api/{exchange}/fetchOHLCV | Fetch O H L C V |
|
|
21
|
+
| [**fetchOpenOrders**](DefaultApi.md#fetchopenorders) | **GET** /api/{exchange}/fetchOpenOrders | Fetch Open Orders |
|
|
22
|
+
| [**fetchOrder**](DefaultApi.md#fetchorder) | **GET** /api/{exchange}/fetchOrder | Fetch Order |
|
|
23
|
+
| [**fetchOrderBook**](DefaultApi.md#fetchorderbook) | **GET** /api/{exchange}/fetchOrderBook | Fetch Order Book |
|
|
24
|
+
| [**fetchPositions**](DefaultApi.md#fetchpositions) | **GET** /api/{exchange}/fetchPositions | Fetch Positions |
|
|
25
|
+
| [**fetchTrades**](DefaultApi.md#fetchtrades) | **GET** /api/{exchange}/fetchTrades | Fetch Trades |
|
|
26
26
|
| [**filterEvents**](DefaultApi.md#filtereventsoperation) | **POST** /api/{exchange}/filterEvents | Filter Events |
|
|
27
27
|
| [**filterMarkets**](DefaultApi.md#filtermarketsoperation) | **POST** /api/{exchange}/filterMarkets | Filter Markets |
|
|
28
28
|
| [**getExecutionPrice**](DefaultApi.md#getexecutionpriceoperation) | **POST** /api/{exchange}/getExecutionPrice | Get Execution Price |
|
|
@@ -319,7 +319,7 @@ No authorization required
|
|
|
319
319
|
|
|
320
320
|
## fetchAllOrders
|
|
321
321
|
|
|
322
|
-
> FetchOpenOrders200Response fetchAllOrders(exchange,
|
|
322
|
+
> FetchOpenOrders200Response fetchAllOrders(exchange, marketId, since, until, limit, cursor)
|
|
323
323
|
|
|
324
324
|
Fetch All Orders
|
|
325
325
|
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
Configuration,
|
|
331
331
|
DefaultApi,
|
|
332
332
|
} from 'pmxtjs';
|
|
333
|
-
import type {
|
|
333
|
+
import type { FetchAllOrdersRequest } from 'pmxtjs';
|
|
334
334
|
|
|
335
335
|
async function example() {
|
|
336
336
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -339,9 +339,17 @@ async function example() {
|
|
|
339
339
|
const body = {
|
|
340
340
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
341
341
|
exchange: exchange_example,
|
|
342
|
-
//
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
// string | Required for Limitless (slug) (optional)
|
|
343
|
+
marketId: marketId_example,
|
|
344
|
+
// Date (optional)
|
|
345
|
+
since: 2013-10-20T19:20:30+01:00,
|
|
346
|
+
// Date (optional)
|
|
347
|
+
until: 2013-10-20T19:20:30+01:00,
|
|
348
|
+
// number (optional)
|
|
349
|
+
limit: 56,
|
|
350
|
+
// string (optional)
|
|
351
|
+
cursor: cursor_example,
|
|
352
|
+
} satisfies FetchAllOrdersRequest;
|
|
345
353
|
|
|
346
354
|
try {
|
|
347
355
|
const data = await api.fetchAllOrders(body);
|
|
@@ -361,7 +369,11 @@ example().catch(console.error);
|
|
|
361
369
|
| Name | Type | Description | Notes |
|
|
362
370
|
|------------- | ------------- | ------------- | -------------|
|
|
363
371
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
364
|
-
| **
|
|
372
|
+
| **marketId** | `string` | Required for Limitless (slug) | [Optional] [Defaults to `undefined`] |
|
|
373
|
+
| **since** | `Date` | | [Optional] [Defaults to `undefined`] |
|
|
374
|
+
| **until** | `Date` | | [Optional] [Defaults to `undefined`] |
|
|
375
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
376
|
+
| **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
365
377
|
|
|
366
378
|
### Return type
|
|
367
379
|
|
|
@@ -373,7 +385,7 @@ No authorization required
|
|
|
373
385
|
|
|
374
386
|
### HTTP request headers
|
|
375
387
|
|
|
376
|
-
- **Content-Type**:
|
|
388
|
+
- **Content-Type**: Not defined
|
|
377
389
|
- **Accept**: `application/json`
|
|
378
390
|
|
|
379
391
|
|
|
@@ -387,7 +399,7 @@ No authorization required
|
|
|
387
399
|
|
|
388
400
|
## fetchBalance
|
|
389
401
|
|
|
390
|
-
> FetchBalance200Response fetchBalance(exchange,
|
|
402
|
+
> FetchBalance200Response fetchBalance(exchange, address)
|
|
391
403
|
|
|
392
404
|
Fetch Balance
|
|
393
405
|
|
|
@@ -400,7 +412,7 @@ import {
|
|
|
400
412
|
Configuration,
|
|
401
413
|
DefaultApi,
|
|
402
414
|
} from 'pmxtjs';
|
|
403
|
-
import type {
|
|
415
|
+
import type { FetchBalanceRequest } from 'pmxtjs';
|
|
404
416
|
|
|
405
417
|
async function example() {
|
|
406
418
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -409,9 +421,9 @@ async function example() {
|
|
|
409
421
|
const body = {
|
|
410
422
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
411
423
|
exchange: exchange_example,
|
|
412
|
-
//
|
|
413
|
-
|
|
414
|
-
} satisfies
|
|
424
|
+
// string (optional)
|
|
425
|
+
address: address_example,
|
|
426
|
+
} satisfies FetchBalanceRequest;
|
|
415
427
|
|
|
416
428
|
try {
|
|
417
429
|
const data = await api.fetchBalance(body);
|
|
@@ -431,7 +443,7 @@ example().catch(console.error);
|
|
|
431
443
|
| Name | Type | Description | Notes |
|
|
432
444
|
|------------- | ------------- | ------------- | -------------|
|
|
433
445
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
434
|
-
| **
|
|
446
|
+
| **address** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
435
447
|
|
|
436
448
|
### Return type
|
|
437
449
|
|
|
@@ -443,7 +455,7 @@ No authorization required
|
|
|
443
455
|
|
|
444
456
|
### HTTP request headers
|
|
445
457
|
|
|
446
|
-
- **Content-Type**:
|
|
458
|
+
- **Content-Type**: Not defined
|
|
447
459
|
- **Accept**: `application/json`
|
|
448
460
|
|
|
449
461
|
|
|
@@ -457,7 +469,7 @@ No authorization required
|
|
|
457
469
|
|
|
458
470
|
## fetchClosedOrders
|
|
459
471
|
|
|
460
|
-
> FetchOpenOrders200Response fetchClosedOrders(exchange,
|
|
472
|
+
> FetchOpenOrders200Response fetchClosedOrders(exchange, marketId, since, until, limit, cursor)
|
|
461
473
|
|
|
462
474
|
Fetch Closed Orders
|
|
463
475
|
|
|
@@ -468,7 +480,7 @@ import {
|
|
|
468
480
|
Configuration,
|
|
469
481
|
DefaultApi,
|
|
470
482
|
} from 'pmxtjs';
|
|
471
|
-
import type {
|
|
483
|
+
import type { FetchClosedOrdersRequest } from 'pmxtjs';
|
|
472
484
|
|
|
473
485
|
async function example() {
|
|
474
486
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -477,9 +489,17 @@ async function example() {
|
|
|
477
489
|
const body = {
|
|
478
490
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
479
491
|
exchange: exchange_example,
|
|
480
|
-
//
|
|
481
|
-
|
|
482
|
-
|
|
492
|
+
// string | Required for Limitless (slug) (optional)
|
|
493
|
+
marketId: marketId_example,
|
|
494
|
+
// Date (optional)
|
|
495
|
+
since: 2013-10-20T19:20:30+01:00,
|
|
496
|
+
// Date (optional)
|
|
497
|
+
until: 2013-10-20T19:20:30+01:00,
|
|
498
|
+
// number (optional)
|
|
499
|
+
limit: 56,
|
|
500
|
+
// string (optional)
|
|
501
|
+
cursor: cursor_example,
|
|
502
|
+
} satisfies FetchClosedOrdersRequest;
|
|
483
503
|
|
|
484
504
|
try {
|
|
485
505
|
const data = await api.fetchClosedOrders(body);
|
|
@@ -499,7 +519,11 @@ example().catch(console.error);
|
|
|
499
519
|
| Name | Type | Description | Notes |
|
|
500
520
|
|------------- | ------------- | ------------- | -------------|
|
|
501
521
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
502
|
-
| **
|
|
522
|
+
| **marketId** | `string` | Required for Limitless (slug) | [Optional] [Defaults to `undefined`] |
|
|
523
|
+
| **since** | `Date` | | [Optional] [Defaults to `undefined`] |
|
|
524
|
+
| **until** | `Date` | | [Optional] [Defaults to `undefined`] |
|
|
525
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
526
|
+
| **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
503
527
|
|
|
504
528
|
### Return type
|
|
505
529
|
|
|
@@ -511,7 +535,7 @@ No authorization required
|
|
|
511
535
|
|
|
512
536
|
### HTTP request headers
|
|
513
537
|
|
|
514
|
-
- **Content-Type**:
|
|
538
|
+
- **Content-Type**: Not defined
|
|
515
539
|
- **Accept**: `application/json`
|
|
516
540
|
|
|
517
541
|
|
|
@@ -525,7 +549,7 @@ No authorization required
|
|
|
525
549
|
|
|
526
550
|
## fetchEvent
|
|
527
551
|
|
|
528
|
-
> FetchEvent200Response fetchEvent(exchange,
|
|
552
|
+
> FetchEvent200Response fetchEvent(exchange, query, sort, limit, offset, status, searchIn, eventId, slug)
|
|
529
553
|
|
|
530
554
|
Fetch Event
|
|
531
555
|
|
|
@@ -538,7 +562,7 @@ import {
|
|
|
538
562
|
Configuration,
|
|
539
563
|
DefaultApi,
|
|
540
564
|
} from 'pmxtjs';
|
|
541
|
-
import type {
|
|
565
|
+
import type { FetchEventRequest } from 'pmxtjs';
|
|
542
566
|
|
|
543
567
|
async function example() {
|
|
544
568
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -547,9 +571,23 @@ async function example() {
|
|
|
547
571
|
const body = {
|
|
548
572
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
549
573
|
exchange: exchange_example,
|
|
550
|
-
//
|
|
551
|
-
|
|
552
|
-
|
|
574
|
+
// string (optional)
|
|
575
|
+
query: query_example,
|
|
576
|
+
// 'volume' | 'liquidity' | 'newest' (optional)
|
|
577
|
+
sort: sort_example,
|
|
578
|
+
// number (optional)
|
|
579
|
+
limit: 56,
|
|
580
|
+
// number (optional)
|
|
581
|
+
offset: 56,
|
|
582
|
+
// 'active' | 'closed' | 'all' | Filter by event status (default: active) (optional)
|
|
583
|
+
status: status_example,
|
|
584
|
+
// 'title' | 'description' | 'both' (optional)
|
|
585
|
+
searchIn: searchIn_example,
|
|
586
|
+
// string | Direct lookup by event ID (optional)
|
|
587
|
+
eventId: eventId_example,
|
|
588
|
+
// string | Lookup by event slug (optional)
|
|
589
|
+
slug: slug_example,
|
|
590
|
+
} satisfies FetchEventRequest;
|
|
553
591
|
|
|
554
592
|
try {
|
|
555
593
|
const data = await api.fetchEvent(body);
|
|
@@ -569,7 +607,14 @@ example().catch(console.error);
|
|
|
569
607
|
| Name | Type | Description | Notes |
|
|
570
608
|
|------------- | ------------- | ------------- | -------------|
|
|
571
609
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
572
|
-
| **
|
|
610
|
+
| **query** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
611
|
+
| **sort** | `volume`, `liquidity`, `newest` | | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
612
|
+
| **limit** | `number` | | [Optional] [Defaults to `10000`] |
|
|
613
|
+
| **offset** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
614
|
+
| **status** | `active`, `closed`, `all` | Filter by event status (default: active) | [Optional] [Defaults to `undefined`] [Enum: active, closed, all] |
|
|
615
|
+
| **searchIn** | `title`, `description`, `both` | | [Optional] [Defaults to `undefined`] [Enum: title, description, both] |
|
|
616
|
+
| **eventId** | `string` | Direct lookup by event ID | [Optional] [Defaults to `undefined`] |
|
|
617
|
+
| **slug** | `string` | Lookup by event slug | [Optional] [Defaults to `undefined`] |
|
|
573
618
|
|
|
574
619
|
### Return type
|
|
575
620
|
|
|
@@ -581,7 +626,7 @@ No authorization required
|
|
|
581
626
|
|
|
582
627
|
### HTTP request headers
|
|
583
628
|
|
|
584
|
-
- **Content-Type**:
|
|
629
|
+
- **Content-Type**: Not defined
|
|
585
630
|
- **Accept**: `application/json`
|
|
586
631
|
|
|
587
632
|
|
|
@@ -595,7 +640,7 @@ No authorization required
|
|
|
595
640
|
|
|
596
641
|
## fetchEvents
|
|
597
642
|
|
|
598
|
-
> FetchEvents200Response fetchEvents(exchange,
|
|
643
|
+
> FetchEvents200Response fetchEvents(exchange, query, sort, limit, offset, status, searchIn, eventId, slug)
|
|
599
644
|
|
|
600
645
|
Fetch Events
|
|
601
646
|
|
|
@@ -608,7 +653,7 @@ import {
|
|
|
608
653
|
Configuration,
|
|
609
654
|
DefaultApi,
|
|
610
655
|
} from 'pmxtjs';
|
|
611
|
-
import type {
|
|
656
|
+
import type { FetchEventsRequest } from 'pmxtjs';
|
|
612
657
|
|
|
613
658
|
async function example() {
|
|
614
659
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -617,9 +662,23 @@ async function example() {
|
|
|
617
662
|
const body = {
|
|
618
663
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
619
664
|
exchange: exchange_example,
|
|
620
|
-
//
|
|
621
|
-
|
|
622
|
-
|
|
665
|
+
// string (optional)
|
|
666
|
+
query: query_example,
|
|
667
|
+
// 'volume' | 'liquidity' | 'newest' (optional)
|
|
668
|
+
sort: sort_example,
|
|
669
|
+
// number (optional)
|
|
670
|
+
limit: 56,
|
|
671
|
+
// number (optional)
|
|
672
|
+
offset: 56,
|
|
673
|
+
// 'active' | 'closed' | 'all' | Filter by event status (default: active) (optional)
|
|
674
|
+
status: status_example,
|
|
675
|
+
// 'title' | 'description' | 'both' (optional)
|
|
676
|
+
searchIn: searchIn_example,
|
|
677
|
+
// string | Direct lookup by event ID (optional)
|
|
678
|
+
eventId: eventId_example,
|
|
679
|
+
// string | Lookup by event slug (optional)
|
|
680
|
+
slug: slug_example,
|
|
681
|
+
} satisfies FetchEventsRequest;
|
|
623
682
|
|
|
624
683
|
try {
|
|
625
684
|
const data = await api.fetchEvents(body);
|
|
@@ -639,7 +698,14 @@ example().catch(console.error);
|
|
|
639
698
|
| Name | Type | Description | Notes |
|
|
640
699
|
|------------- | ------------- | ------------- | -------------|
|
|
641
700
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
642
|
-
| **
|
|
701
|
+
| **query** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
702
|
+
| **sort** | `volume`, `liquidity`, `newest` | | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
703
|
+
| **limit** | `number` | | [Optional] [Defaults to `10000`] |
|
|
704
|
+
| **offset** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
705
|
+
| **status** | `active`, `closed`, `all` | Filter by event status (default: active) | [Optional] [Defaults to `undefined`] [Enum: active, closed, all] |
|
|
706
|
+
| **searchIn** | `title`, `description`, `both` | | [Optional] [Defaults to `undefined`] [Enum: title, description, both] |
|
|
707
|
+
| **eventId** | `string` | Direct lookup by event ID | [Optional] [Defaults to `undefined`] |
|
|
708
|
+
| **slug** | `string` | Lookup by event slug | [Optional] [Defaults to `undefined`] |
|
|
643
709
|
|
|
644
710
|
### Return type
|
|
645
711
|
|
|
@@ -651,7 +717,7 @@ No authorization required
|
|
|
651
717
|
|
|
652
718
|
### HTTP request headers
|
|
653
719
|
|
|
654
|
-
- **Content-Type**:
|
|
720
|
+
- **Content-Type**: Not defined
|
|
655
721
|
- **Accept**: `application/json`
|
|
656
722
|
|
|
657
723
|
|
|
@@ -665,7 +731,7 @@ No authorization required
|
|
|
665
731
|
|
|
666
732
|
## fetchMarket
|
|
667
733
|
|
|
668
|
-
> FetchMarket200Response fetchMarket(exchange,
|
|
734
|
+
> FetchMarket200Response fetchMarket(exchange, limit, offset, sort, status, searchIn, query, slug, marketId, outcomeId, eventId, page, similarityThreshold)
|
|
669
735
|
|
|
670
736
|
Fetch Market
|
|
671
737
|
|
|
@@ -678,7 +744,7 @@ import {
|
|
|
678
744
|
Configuration,
|
|
679
745
|
DefaultApi,
|
|
680
746
|
} from 'pmxtjs';
|
|
681
|
-
import type {
|
|
747
|
+
import type { FetchMarketRequest } from 'pmxtjs';
|
|
682
748
|
|
|
683
749
|
async function example() {
|
|
684
750
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -687,9 +753,31 @@ async function example() {
|
|
|
687
753
|
const body = {
|
|
688
754
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
689
755
|
exchange: exchange_example,
|
|
690
|
-
//
|
|
691
|
-
|
|
692
|
-
|
|
756
|
+
// number (optional)
|
|
757
|
+
limit: 56,
|
|
758
|
+
// number (optional)
|
|
759
|
+
offset: 56,
|
|
760
|
+
// 'volume' | 'liquidity' | 'newest' (optional)
|
|
761
|
+
sort: sort_example,
|
|
762
|
+
// 'active' | 'closed' | 'all' | Filter by market status (default: active) (optional)
|
|
763
|
+
status: status_example,
|
|
764
|
+
// 'title' | 'description' | 'both' (optional)
|
|
765
|
+
searchIn: searchIn_example,
|
|
766
|
+
// string (optional)
|
|
767
|
+
query: query_example,
|
|
768
|
+
// string (optional)
|
|
769
|
+
slug: slug_example,
|
|
770
|
+
// string | Direct lookup by market ID (optional)
|
|
771
|
+
marketId: marketId_example,
|
|
772
|
+
// string | Reverse lookup -- find market containing this outcome (optional)
|
|
773
|
+
outcomeId: outcomeId_example,
|
|
774
|
+
// string | Find markets belonging to an event (optional)
|
|
775
|
+
eventId: eventId_example,
|
|
776
|
+
// number (optional)
|
|
777
|
+
page: 56,
|
|
778
|
+
// number (optional)
|
|
779
|
+
similarityThreshold: 8.14,
|
|
780
|
+
} satisfies FetchMarketRequest;
|
|
693
781
|
|
|
694
782
|
try {
|
|
695
783
|
const data = await api.fetchMarket(body);
|
|
@@ -709,7 +797,18 @@ example().catch(console.error);
|
|
|
709
797
|
| Name | Type | Description | Notes |
|
|
710
798
|
|------------- | ------------- | ------------- | -------------|
|
|
711
799
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
712
|
-
| **
|
|
800
|
+
| **limit** | `number` | | [Optional] [Defaults to `10000`] |
|
|
801
|
+
| **offset** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
802
|
+
| **sort** | `volume`, `liquidity`, `newest` | | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
803
|
+
| **status** | `active`, `closed`, `all` | Filter by market status (default: active) | [Optional] [Defaults to `undefined`] [Enum: active, closed, all] |
|
|
804
|
+
| **searchIn** | `title`, `description`, `both` | | [Optional] [Defaults to `undefined`] [Enum: title, description, both] |
|
|
805
|
+
| **query** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
806
|
+
| **slug** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
807
|
+
| **marketId** | `string` | Direct lookup by market ID | [Optional] [Defaults to `undefined`] |
|
|
808
|
+
| **outcomeId** | `string` | Reverse lookup -- find market containing this outcome | [Optional] [Defaults to `undefined`] |
|
|
809
|
+
| **eventId** | `string` | Find markets belonging to an event | [Optional] [Defaults to `undefined`] |
|
|
810
|
+
| **page** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
811
|
+
| **similarityThreshold** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
713
812
|
|
|
714
813
|
### Return type
|
|
715
814
|
|
|
@@ -721,7 +820,7 @@ No authorization required
|
|
|
721
820
|
|
|
722
821
|
### HTTP request headers
|
|
723
822
|
|
|
724
|
-
- **Content-Type**:
|
|
823
|
+
- **Content-Type**: Not defined
|
|
725
824
|
- **Accept**: `application/json`
|
|
726
825
|
|
|
727
826
|
|
|
@@ -735,7 +834,7 @@ No authorization required
|
|
|
735
834
|
|
|
736
835
|
## fetchMarkets
|
|
737
836
|
|
|
738
|
-
> FetchMarkets200Response fetchMarkets(exchange,
|
|
837
|
+
> FetchMarkets200Response fetchMarkets(exchange, limit, offset, sort, status, searchIn, query, slug, marketId, outcomeId, eventId, page, similarityThreshold)
|
|
739
838
|
|
|
740
839
|
Fetch Markets
|
|
741
840
|
|
|
@@ -748,7 +847,7 @@ import {
|
|
|
748
847
|
Configuration,
|
|
749
848
|
DefaultApi,
|
|
750
849
|
} from 'pmxtjs';
|
|
751
|
-
import type {
|
|
850
|
+
import type { FetchMarketsRequest } from 'pmxtjs';
|
|
752
851
|
|
|
753
852
|
async function example() {
|
|
754
853
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -757,9 +856,31 @@ async function example() {
|
|
|
757
856
|
const body = {
|
|
758
857
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
759
858
|
exchange: exchange_example,
|
|
760
|
-
//
|
|
761
|
-
|
|
762
|
-
|
|
859
|
+
// number (optional)
|
|
860
|
+
limit: 56,
|
|
861
|
+
// number (optional)
|
|
862
|
+
offset: 56,
|
|
863
|
+
// 'volume' | 'liquidity' | 'newest' (optional)
|
|
864
|
+
sort: sort_example,
|
|
865
|
+
// 'active' | 'closed' | 'all' | Filter by market status (default: active) (optional)
|
|
866
|
+
status: status_example,
|
|
867
|
+
// 'title' | 'description' | 'both' (optional)
|
|
868
|
+
searchIn: searchIn_example,
|
|
869
|
+
// string (optional)
|
|
870
|
+
query: query_example,
|
|
871
|
+
// string (optional)
|
|
872
|
+
slug: slug_example,
|
|
873
|
+
// string | Direct lookup by market ID (optional)
|
|
874
|
+
marketId: marketId_example,
|
|
875
|
+
// string | Reverse lookup -- find market containing this outcome (optional)
|
|
876
|
+
outcomeId: outcomeId_example,
|
|
877
|
+
// string | Find markets belonging to an event (optional)
|
|
878
|
+
eventId: eventId_example,
|
|
879
|
+
// number (optional)
|
|
880
|
+
page: 56,
|
|
881
|
+
// number (optional)
|
|
882
|
+
similarityThreshold: 8.14,
|
|
883
|
+
} satisfies FetchMarketsRequest;
|
|
763
884
|
|
|
764
885
|
try {
|
|
765
886
|
const data = await api.fetchMarkets(body);
|
|
@@ -779,7 +900,18 @@ example().catch(console.error);
|
|
|
779
900
|
| Name | Type | Description | Notes |
|
|
780
901
|
|------------- | ------------- | ------------- | -------------|
|
|
781
902
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
782
|
-
| **
|
|
903
|
+
| **limit** | `number` | | [Optional] [Defaults to `10000`] |
|
|
904
|
+
| **offset** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
905
|
+
| **sort** | `volume`, `liquidity`, `newest` | | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
906
|
+
| **status** | `active`, `closed`, `all` | Filter by market status (default: active) | [Optional] [Defaults to `undefined`] [Enum: active, closed, all] |
|
|
907
|
+
| **searchIn** | `title`, `description`, `both` | | [Optional] [Defaults to `undefined`] [Enum: title, description, both] |
|
|
908
|
+
| **query** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
909
|
+
| **slug** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
910
|
+
| **marketId** | `string` | Direct lookup by market ID | [Optional] [Defaults to `undefined`] |
|
|
911
|
+
| **outcomeId** | `string` | Reverse lookup -- find market containing this outcome | [Optional] [Defaults to `undefined`] |
|
|
912
|
+
| **eventId** | `string` | Find markets belonging to an event | [Optional] [Defaults to `undefined`] |
|
|
913
|
+
| **page** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
914
|
+
| **similarityThreshold** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
783
915
|
|
|
784
916
|
### Return type
|
|
785
917
|
|
|
@@ -791,7 +923,7 @@ No authorization required
|
|
|
791
923
|
|
|
792
924
|
### HTTP request headers
|
|
793
925
|
|
|
794
|
-
- **Content-Type**:
|
|
926
|
+
- **Content-Type**: Not defined
|
|
795
927
|
- **Accept**: `application/json`
|
|
796
928
|
|
|
797
929
|
|
|
@@ -805,7 +937,7 @@ No authorization required
|
|
|
805
937
|
|
|
806
938
|
## fetchMarketsPaginated
|
|
807
939
|
|
|
808
|
-
> FetchMarketsPaginated200Response fetchMarketsPaginated(exchange,
|
|
940
|
+
> FetchMarketsPaginated200Response fetchMarketsPaginated(exchange, limit, cursor)
|
|
809
941
|
|
|
810
942
|
Fetch Markets Paginated
|
|
811
943
|
|
|
@@ -818,7 +950,7 @@ import {
|
|
|
818
950
|
Configuration,
|
|
819
951
|
DefaultApi,
|
|
820
952
|
} from 'pmxtjs';
|
|
821
|
-
import type {
|
|
953
|
+
import type { FetchMarketsPaginatedRequest } from 'pmxtjs';
|
|
822
954
|
|
|
823
955
|
async function example() {
|
|
824
956
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -827,9 +959,11 @@ async function example() {
|
|
|
827
959
|
const body = {
|
|
828
960
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
829
961
|
exchange: exchange_example,
|
|
830
|
-
//
|
|
831
|
-
|
|
832
|
-
|
|
962
|
+
// number (optional)
|
|
963
|
+
limit: 8.14,
|
|
964
|
+
// string (optional)
|
|
965
|
+
cursor: cursor_example,
|
|
966
|
+
} satisfies FetchMarketsPaginatedRequest;
|
|
833
967
|
|
|
834
968
|
try {
|
|
835
969
|
const data = await api.fetchMarketsPaginated(body);
|
|
@@ -849,7 +983,8 @@ example().catch(console.error);
|
|
|
849
983
|
| Name | Type | Description | Notes |
|
|
850
984
|
|------------- | ------------- | ------------- | -------------|
|
|
851
985
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
852
|
-
| **
|
|
986
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
987
|
+
| **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
853
988
|
|
|
854
989
|
### Return type
|
|
855
990
|
|
|
@@ -861,7 +996,7 @@ No authorization required
|
|
|
861
996
|
|
|
862
997
|
### HTTP request headers
|
|
863
998
|
|
|
864
|
-
- **Content-Type**:
|
|
999
|
+
- **Content-Type**: Not defined
|
|
865
1000
|
- **Accept**: `application/json`
|
|
866
1001
|
|
|
867
1002
|
|
|
@@ -875,7 +1010,7 @@ No authorization required
|
|
|
875
1010
|
|
|
876
1011
|
## fetchMyTrades
|
|
877
1012
|
|
|
878
|
-
> FetchMyTrades200Response fetchMyTrades(exchange,
|
|
1013
|
+
> FetchMyTrades200Response fetchMyTrades(exchange, outcomeId, marketId, since, until, limit, cursor)
|
|
879
1014
|
|
|
880
1015
|
Fetch My Trades
|
|
881
1016
|
|
|
@@ -886,7 +1021,7 @@ import {
|
|
|
886
1021
|
Configuration,
|
|
887
1022
|
DefaultApi,
|
|
888
1023
|
} from 'pmxtjs';
|
|
889
|
-
import type {
|
|
1024
|
+
import type { FetchMyTradesRequest } from 'pmxtjs';
|
|
890
1025
|
|
|
891
1026
|
async function example() {
|
|
892
1027
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -895,9 +1030,19 @@ async function example() {
|
|
|
895
1030
|
const body = {
|
|
896
1031
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
897
1032
|
exchange: exchange_example,
|
|
898
|
-
//
|
|
899
|
-
|
|
900
|
-
|
|
1033
|
+
// string | Filter to specific outcome/ticker (optional)
|
|
1034
|
+
outcomeId: outcomeId_example,
|
|
1035
|
+
// string | Filter to specific market (optional)
|
|
1036
|
+
marketId: marketId_example,
|
|
1037
|
+
// Date (optional)
|
|
1038
|
+
since: 2013-10-20T19:20:30+01:00,
|
|
1039
|
+
// Date (optional)
|
|
1040
|
+
until: 2013-10-20T19:20:30+01:00,
|
|
1041
|
+
// number (optional)
|
|
1042
|
+
limit: 56,
|
|
1043
|
+
// string | For Kalshi cursor pagination (optional)
|
|
1044
|
+
cursor: cursor_example,
|
|
1045
|
+
} satisfies FetchMyTradesRequest;
|
|
901
1046
|
|
|
902
1047
|
try {
|
|
903
1048
|
const data = await api.fetchMyTrades(body);
|
|
@@ -917,7 +1062,12 @@ example().catch(console.error);
|
|
|
917
1062
|
| Name | Type | Description | Notes |
|
|
918
1063
|
|------------- | ------------- | ------------- | -------------|
|
|
919
1064
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
920
|
-
| **
|
|
1065
|
+
| **outcomeId** | `string` | Filter to specific outcome/ticker | [Optional] [Defaults to `undefined`] |
|
|
1066
|
+
| **marketId** | `string` | Filter to specific market | [Optional] [Defaults to `undefined`] |
|
|
1067
|
+
| **since** | `Date` | | [Optional] [Defaults to `undefined`] |
|
|
1068
|
+
| **until** | `Date` | | [Optional] [Defaults to `undefined`] |
|
|
1069
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1070
|
+
| **cursor** | `string` | For Kalshi cursor pagination | [Optional] [Defaults to `undefined`] |
|
|
921
1071
|
|
|
922
1072
|
### Return type
|
|
923
1073
|
|
|
@@ -929,7 +1079,7 @@ No authorization required
|
|
|
929
1079
|
|
|
930
1080
|
### HTTP request headers
|
|
931
1081
|
|
|
932
|
-
- **Content-Type**:
|
|
1082
|
+
- **Content-Type**: Not defined
|
|
933
1083
|
- **Accept**: `application/json`
|
|
934
1084
|
|
|
935
1085
|
|
|
@@ -943,7 +1093,7 @@ No authorization required
|
|
|
943
1093
|
|
|
944
1094
|
## fetchOHLCV
|
|
945
1095
|
|
|
946
|
-
> FetchOHLCV200Response fetchOHLCV(exchange,
|
|
1096
|
+
> FetchOHLCV200Response fetchOHLCV(exchange, id, params)
|
|
947
1097
|
|
|
948
1098
|
Fetch O H L C V
|
|
949
1099
|
|
|
@@ -956,7 +1106,7 @@ import {
|
|
|
956
1106
|
Configuration,
|
|
957
1107
|
DefaultApi,
|
|
958
1108
|
} from 'pmxtjs';
|
|
959
|
-
import type {
|
|
1109
|
+
import type { FetchOHLCVRequest } from 'pmxtjs';
|
|
960
1110
|
|
|
961
1111
|
async function example() {
|
|
962
1112
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -965,9 +1115,11 @@ async function example() {
|
|
|
965
1115
|
const body = {
|
|
966
1116
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
967
1117
|
exchange: exchange_example,
|
|
968
|
-
//
|
|
969
|
-
|
|
970
|
-
|
|
1118
|
+
// string
|
|
1119
|
+
id: id_example,
|
|
1120
|
+
// string
|
|
1121
|
+
params: params_example,
|
|
1122
|
+
} satisfies FetchOHLCVRequest;
|
|
971
1123
|
|
|
972
1124
|
try {
|
|
973
1125
|
const data = await api.fetchOHLCV(body);
|
|
@@ -987,7 +1139,8 @@ example().catch(console.error);
|
|
|
987
1139
|
| Name | Type | Description | Notes |
|
|
988
1140
|
|------------- | ------------- | ------------- | -------------|
|
|
989
1141
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
990
|
-
| **
|
|
1142
|
+
| **id** | `string` | | [Defaults to `undefined`] |
|
|
1143
|
+
| **params** | `string` | | [Defaults to `undefined`] |
|
|
991
1144
|
|
|
992
1145
|
### Return type
|
|
993
1146
|
|
|
@@ -999,7 +1152,7 @@ No authorization required
|
|
|
999
1152
|
|
|
1000
1153
|
### HTTP request headers
|
|
1001
1154
|
|
|
1002
|
-
- **Content-Type**:
|
|
1155
|
+
- **Content-Type**: Not defined
|
|
1003
1156
|
- **Accept**: `application/json`
|
|
1004
1157
|
|
|
1005
1158
|
|
|
@@ -1013,7 +1166,7 @@ No authorization required
|
|
|
1013
1166
|
|
|
1014
1167
|
## fetchOpenOrders
|
|
1015
1168
|
|
|
1016
|
-
> FetchOpenOrders200Response fetchOpenOrders(exchange,
|
|
1169
|
+
> FetchOpenOrders200Response fetchOpenOrders(exchange, marketId)
|
|
1017
1170
|
|
|
1018
1171
|
Fetch Open Orders
|
|
1019
1172
|
|
|
@@ -1026,7 +1179,7 @@ import {
|
|
|
1026
1179
|
Configuration,
|
|
1027
1180
|
DefaultApi,
|
|
1028
1181
|
} from 'pmxtjs';
|
|
1029
|
-
import type {
|
|
1182
|
+
import type { FetchOpenOrdersRequest } from 'pmxtjs';
|
|
1030
1183
|
|
|
1031
1184
|
async function example() {
|
|
1032
1185
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -1035,9 +1188,9 @@ async function example() {
|
|
|
1035
1188
|
const body = {
|
|
1036
1189
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1037
1190
|
exchange: exchange_example,
|
|
1038
|
-
//
|
|
1039
|
-
|
|
1040
|
-
} satisfies
|
|
1191
|
+
// string (optional)
|
|
1192
|
+
marketId: marketId_example,
|
|
1193
|
+
} satisfies FetchOpenOrdersRequest;
|
|
1041
1194
|
|
|
1042
1195
|
try {
|
|
1043
1196
|
const data = await api.fetchOpenOrders(body);
|
|
@@ -1057,7 +1210,7 @@ example().catch(console.error);
|
|
|
1057
1210
|
| Name | Type | Description | Notes |
|
|
1058
1211
|
|------------- | ------------- | ------------- | -------------|
|
|
1059
1212
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
1060
|
-
| **
|
|
1213
|
+
| **marketId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1061
1214
|
|
|
1062
1215
|
### Return type
|
|
1063
1216
|
|
|
@@ -1069,7 +1222,7 @@ No authorization required
|
|
|
1069
1222
|
|
|
1070
1223
|
### HTTP request headers
|
|
1071
1224
|
|
|
1072
|
-
- **Content-Type**:
|
|
1225
|
+
- **Content-Type**: Not defined
|
|
1073
1226
|
- **Accept**: `application/json`
|
|
1074
1227
|
|
|
1075
1228
|
|
|
@@ -1083,7 +1236,7 @@ No authorization required
|
|
|
1083
1236
|
|
|
1084
1237
|
## fetchOrder
|
|
1085
1238
|
|
|
1086
|
-
> CreateOrder200Response fetchOrder(exchange,
|
|
1239
|
+
> CreateOrder200Response fetchOrder(exchange, orderId)
|
|
1087
1240
|
|
|
1088
1241
|
Fetch Order
|
|
1089
1242
|
|
|
@@ -1096,7 +1249,7 @@ import {
|
|
|
1096
1249
|
Configuration,
|
|
1097
1250
|
DefaultApi,
|
|
1098
1251
|
} from 'pmxtjs';
|
|
1099
|
-
import type {
|
|
1252
|
+
import type { FetchOrderRequest } from 'pmxtjs';
|
|
1100
1253
|
|
|
1101
1254
|
async function example() {
|
|
1102
1255
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -1105,9 +1258,9 @@ async function example() {
|
|
|
1105
1258
|
const body = {
|
|
1106
1259
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1107
1260
|
exchange: exchange_example,
|
|
1108
|
-
//
|
|
1109
|
-
|
|
1110
|
-
} satisfies
|
|
1261
|
+
// string
|
|
1262
|
+
orderId: orderId_example,
|
|
1263
|
+
} satisfies FetchOrderRequest;
|
|
1111
1264
|
|
|
1112
1265
|
try {
|
|
1113
1266
|
const data = await api.fetchOrder(body);
|
|
@@ -1127,7 +1280,7 @@ example().catch(console.error);
|
|
|
1127
1280
|
| Name | Type | Description | Notes |
|
|
1128
1281
|
|------------- | ------------- | ------------- | -------------|
|
|
1129
1282
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
1130
|
-
| **
|
|
1283
|
+
| **orderId** | `string` | | [Defaults to `undefined`] |
|
|
1131
1284
|
|
|
1132
1285
|
### Return type
|
|
1133
1286
|
|
|
@@ -1139,7 +1292,7 @@ No authorization required
|
|
|
1139
1292
|
|
|
1140
1293
|
### HTTP request headers
|
|
1141
1294
|
|
|
1142
|
-
- **Content-Type**:
|
|
1295
|
+
- **Content-Type**: Not defined
|
|
1143
1296
|
- **Accept**: `application/json`
|
|
1144
1297
|
|
|
1145
1298
|
|
|
@@ -1153,7 +1306,7 @@ No authorization required
|
|
|
1153
1306
|
|
|
1154
1307
|
## fetchOrderBook
|
|
1155
1308
|
|
|
1156
|
-
> FetchOrderBook200Response fetchOrderBook(exchange,
|
|
1309
|
+
> FetchOrderBook200Response fetchOrderBook(exchange, id)
|
|
1157
1310
|
|
|
1158
1311
|
Fetch Order Book
|
|
1159
1312
|
|
|
@@ -1166,7 +1319,7 @@ import {
|
|
|
1166
1319
|
Configuration,
|
|
1167
1320
|
DefaultApi,
|
|
1168
1321
|
} from 'pmxtjs';
|
|
1169
|
-
import type {
|
|
1322
|
+
import type { FetchOrderBookRequest } from 'pmxtjs';
|
|
1170
1323
|
|
|
1171
1324
|
async function example() {
|
|
1172
1325
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -1175,9 +1328,9 @@ async function example() {
|
|
|
1175
1328
|
const body = {
|
|
1176
1329
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1177
1330
|
exchange: exchange_example,
|
|
1178
|
-
//
|
|
1179
|
-
|
|
1180
|
-
} satisfies
|
|
1331
|
+
// string
|
|
1332
|
+
id: id_example,
|
|
1333
|
+
} satisfies FetchOrderBookRequest;
|
|
1181
1334
|
|
|
1182
1335
|
try {
|
|
1183
1336
|
const data = await api.fetchOrderBook(body);
|
|
@@ -1197,7 +1350,7 @@ example().catch(console.error);
|
|
|
1197
1350
|
| Name | Type | Description | Notes |
|
|
1198
1351
|
|------------- | ------------- | ------------- | -------------|
|
|
1199
1352
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
1200
|
-
| **
|
|
1353
|
+
| **id** | `string` | | [Defaults to `undefined`] |
|
|
1201
1354
|
|
|
1202
1355
|
### Return type
|
|
1203
1356
|
|
|
@@ -1209,7 +1362,7 @@ No authorization required
|
|
|
1209
1362
|
|
|
1210
1363
|
### HTTP request headers
|
|
1211
1364
|
|
|
1212
|
-
- **Content-Type**:
|
|
1365
|
+
- **Content-Type**: Not defined
|
|
1213
1366
|
- **Accept**: `application/json`
|
|
1214
1367
|
|
|
1215
1368
|
|
|
@@ -1223,7 +1376,7 @@ No authorization required
|
|
|
1223
1376
|
|
|
1224
1377
|
## fetchPositions
|
|
1225
1378
|
|
|
1226
|
-
> FetchPositions200Response fetchPositions(exchange,
|
|
1379
|
+
> FetchPositions200Response fetchPositions(exchange, address)
|
|
1227
1380
|
|
|
1228
1381
|
Fetch Positions
|
|
1229
1382
|
|
|
@@ -1236,7 +1389,7 @@ import {
|
|
|
1236
1389
|
Configuration,
|
|
1237
1390
|
DefaultApi,
|
|
1238
1391
|
} from 'pmxtjs';
|
|
1239
|
-
import type {
|
|
1392
|
+
import type { FetchPositionsRequest } from 'pmxtjs';
|
|
1240
1393
|
|
|
1241
1394
|
async function example() {
|
|
1242
1395
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -1245,9 +1398,9 @@ async function example() {
|
|
|
1245
1398
|
const body = {
|
|
1246
1399
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1247
1400
|
exchange: exchange_example,
|
|
1248
|
-
//
|
|
1249
|
-
|
|
1250
|
-
} satisfies
|
|
1401
|
+
// string (optional)
|
|
1402
|
+
address: address_example,
|
|
1403
|
+
} satisfies FetchPositionsRequest;
|
|
1251
1404
|
|
|
1252
1405
|
try {
|
|
1253
1406
|
const data = await api.fetchPositions(body);
|
|
@@ -1267,7 +1420,7 @@ example().catch(console.error);
|
|
|
1267
1420
|
| Name | Type | Description | Notes |
|
|
1268
1421
|
|------------- | ------------- | ------------- | -------------|
|
|
1269
1422
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
1270
|
-
| **
|
|
1423
|
+
| **address** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1271
1424
|
|
|
1272
1425
|
### Return type
|
|
1273
1426
|
|
|
@@ -1279,7 +1432,7 @@ No authorization required
|
|
|
1279
1432
|
|
|
1280
1433
|
### HTTP request headers
|
|
1281
1434
|
|
|
1282
|
-
- **Content-Type**:
|
|
1435
|
+
- **Content-Type**: Not defined
|
|
1283
1436
|
- **Accept**: `application/json`
|
|
1284
1437
|
|
|
1285
1438
|
|
|
@@ -1293,7 +1446,7 @@ No authorization required
|
|
|
1293
1446
|
|
|
1294
1447
|
## fetchTrades
|
|
1295
1448
|
|
|
1296
|
-
> FetchTrades200Response fetchTrades(exchange,
|
|
1449
|
+
> FetchTrades200Response fetchTrades(exchange, id, params)
|
|
1297
1450
|
|
|
1298
1451
|
Fetch Trades
|
|
1299
1452
|
|
|
@@ -1306,7 +1459,7 @@ import {
|
|
|
1306
1459
|
Configuration,
|
|
1307
1460
|
DefaultApi,
|
|
1308
1461
|
} from 'pmxtjs';
|
|
1309
|
-
import type {
|
|
1462
|
+
import type { FetchTradesRequest } from 'pmxtjs';
|
|
1310
1463
|
|
|
1311
1464
|
async function example() {
|
|
1312
1465
|
console.log("🚀 Testing pmxtjs SDK...");
|
|
@@ -1315,9 +1468,11 @@ async function example() {
|
|
|
1315
1468
|
const body = {
|
|
1316
1469
|
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1317
1470
|
exchange: exchange_example,
|
|
1318
|
-
//
|
|
1319
|
-
|
|
1320
|
-
|
|
1471
|
+
// string
|
|
1472
|
+
id: id_example,
|
|
1473
|
+
// string
|
|
1474
|
+
params: params_example,
|
|
1475
|
+
} satisfies FetchTradesRequest;
|
|
1321
1476
|
|
|
1322
1477
|
try {
|
|
1323
1478
|
const data = await api.fetchTrades(body);
|
|
@@ -1337,7 +1492,8 @@ example().catch(console.error);
|
|
|
1337
1492
|
| Name | Type | Description | Notes |
|
|
1338
1493
|
|------------- | ------------- | ------------- | -------------|
|
|
1339
1494
|
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us] |
|
|
1340
|
-
| **
|
|
1495
|
+
| **id** | `string` | | [Defaults to `undefined`] |
|
|
1496
|
+
| **params** | `string` | | [Defaults to `undefined`] |
|
|
1341
1497
|
|
|
1342
1498
|
### Return type
|
|
1343
1499
|
|
|
@@ -1349,7 +1505,7 @@ No authorization required
|
|
|
1349
1505
|
|
|
1350
1506
|
### HTTP request headers
|
|
1351
1507
|
|
|
1352
|
-
- **Content-Type**:
|
|
1508
|
+
- **Content-Type**: Not defined
|
|
1353
1509
|
- **Accept**: `application/json`
|
|
1354
1510
|
|
|
1355
1511
|
|