pmxtjs 2.32.4 → 2.33.2
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 +243 -1
- package/dist/esm/generated/src/apis/DefaultApi.js +387 -31
- package/dist/esm/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
- package/dist/esm/generated/src/models/ArbitrageOpportunity.js +68 -0
- package/dist/esm/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/CompareMarketPrices200Response.js +47 -0
- package/dist/esm/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
- package/dist/esm/generated/src/models/CompareMarketPricesRequest.js +47 -0
- package/dist/esm/generated/src/models/EventMatchResult.d.ts +40 -0
- package/dist/esm/generated/src/models/EventMatchResult.js +49 -0
- package/dist/esm/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchArbitrage200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchArbitrageParams.d.ts +44 -0
- package/dist/esm/generated/src/models/FetchArbitrageParams.js +45 -0
- package/dist/esm/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchEventMatches200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
- package/dist/esm/generated/src/models/FetchEventMatchesParams.js +61 -0
- package/dist/esm/generated/src/models/FetchMatches200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchMatches200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchMatchesParams.d.ts +79 -0
- package/dist/esm/generated/src/models/FetchMatchesParams.js +63 -0
- package/dist/esm/generated/src/models/MatchResult.d.ts +74 -0
- package/dist/esm/generated/src/models/MatchResult.js +74 -0
- package/dist/esm/generated/src/models/PriceComparison.d.ts +80 -0
- package/dist/esm/generated/src/models/PriceComparison.js +78 -0
- package/dist/esm/generated/src/models/index.d.ts +12 -0
- package/dist/esm/generated/src/models/index.js +12 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +243 -1
- package/dist/generated/src/apis/DefaultApi.js +388 -31
- package/dist/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
- package/dist/generated/src/models/ArbitrageOpportunity.js +75 -0
- package/dist/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
- package/dist/generated/src/models/CompareMarketPrices200Response.js +54 -0
- package/dist/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
- package/dist/generated/src/models/CompareMarketPricesRequest.js +54 -0
- package/dist/generated/src/models/EventMatchResult.d.ts +40 -0
- package/dist/generated/src/models/EventMatchResult.js +56 -0
- package/dist/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchArbitrage200Response.js +54 -0
- package/dist/generated/src/models/FetchArbitrageParams.d.ts +44 -0
- package/dist/generated/src/models/FetchArbitrageParams.js +52 -0
- package/dist/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchEventMatches200Response.js +54 -0
- package/dist/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
- package/dist/generated/src/models/FetchEventMatchesParams.js +69 -0
- package/dist/generated/src/models/FetchMatches200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchMatches200Response.js +54 -0
- package/dist/generated/src/models/FetchMatchesParams.d.ts +79 -0
- package/dist/generated/src/models/FetchMatchesParams.js +71 -0
- package/dist/generated/src/models/MatchResult.d.ts +74 -0
- package/dist/generated/src/models/MatchResult.js +82 -0
- package/dist/generated/src/models/PriceComparison.d.ts +80 -0
- package/dist/generated/src/models/PriceComparison.js +86 -0
- package/dist/generated/src/models/index.d.ts +12 -0
- package/dist/generated/src/models/index.js +12 -0
- package/generated/.openapi-generator/FILES +24 -0
- package/generated/docs/ArbitrageOpportunity.md +46 -0
- package/generated/docs/CompareMarketPrices200Response.md +38 -0
- package/generated/docs/CompareMarketPricesRequest.md +36 -0
- package/generated/docs/DefaultApi.md +472 -60
- package/generated/docs/EventMatchResult.md +36 -0
- package/generated/docs/FetchArbitrage200Response.md +38 -0
- package/generated/docs/FetchArbitrageParams.md +38 -0
- package/generated/docs/FetchEventMatches200Response.md +38 -0
- package/generated/docs/FetchEventMatchesParams.md +44 -0
- package/generated/docs/FetchMatches200Response.md +38 -0
- package/generated/docs/FetchMatchesParams.md +46 -0
- package/generated/docs/MatchResult.md +44 -0
- package/generated/docs/PriceComparison.md +46 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +532 -30
- package/generated/src/models/ArbitrageOpportunity.ts +128 -0
- package/generated/src/models/CompareMarketPrices200Response.ts +96 -0
- package/generated/src/models/CompareMarketPricesRequest.ts +89 -0
- package/generated/src/models/EventMatchResult.ts +90 -0
- package/generated/src/models/FetchArbitrage200Response.ts +96 -0
- package/generated/src/models/FetchArbitrageParams.ts +81 -0
- package/generated/src/models/FetchEventMatches200Response.ts +96 -0
- package/generated/src/models/FetchEventMatchesParams.ts +119 -0
- package/generated/src/models/FetchMatches200Response.ts +96 -0
- package/generated/src/models/FetchMatchesParams.ts +127 -0
- package/generated/src/models/MatchResult.ts +133 -0
- package/generated/src/models/PriceComparison.ts +142 -0
- package/generated/src/models/index.ts +12 -0
- package/package.json +2 -2
|
@@ -7,15 +7,20 @@ All URIs are relative to *http://localhost:3847*
|
|
|
7
7
|
| [**buildOrder**](DefaultApi.md#buildorderoperation) | **POST** /api/{exchange}/buildOrder | Build Order |
|
|
8
8
|
| [**cancelOrder**](DefaultApi.md#cancelorderoperation) | **POST** /api/{exchange}/cancelOrder | Cancel Order |
|
|
9
9
|
| [**close**](DefaultApi.md#closeoperation) | **POST** /api/{exchange}/close | Close |
|
|
10
|
+
| [**compareMarketPrices**](DefaultApi.md#comparemarketpricesoperation) | **POST** /api/{exchange}/compareMarketPrices | Compare Market Prices |
|
|
10
11
|
| [**createOrder**](DefaultApi.md#createorderoperation) | **POST** /api/{exchange}/createOrder | Create Order |
|
|
11
12
|
| [**fetchAllOrders**](DefaultApi.md#fetchallorders) | **GET** /api/{exchange}/fetchAllOrders | Fetch All Orders |
|
|
13
|
+
| [**fetchArbitrage**](DefaultApi.md#fetcharbitrage) | **GET** /api/{exchange}/fetchArbitrage | Fetch Arbitrage |
|
|
12
14
|
| [**fetchBalance**](DefaultApi.md#fetchbalance) | **GET** /api/{exchange}/fetchBalance | Fetch Balance |
|
|
13
15
|
| [**fetchClosedOrders**](DefaultApi.md#fetchclosedorders) | **GET** /api/{exchange}/fetchClosedOrders | Fetch Closed Orders |
|
|
14
16
|
| [**fetchEvent**](DefaultApi.md#fetchevent) | **GET** /api/{exchange}/fetchEvent | Fetch Event |
|
|
17
|
+
| [**fetchEventMatches**](DefaultApi.md#fetcheventmatches) | **GET** /api/{exchange}/fetchEventMatches | Fetch Event Matches |
|
|
15
18
|
| [**fetchEvents**](DefaultApi.md#fetchevents) | **GET** /api/{exchange}/fetchEvents | Fetch Events |
|
|
19
|
+
| [**fetchHedges**](DefaultApi.md#fetchhedges) | **GET** /api/{exchange}/fetchHedges | Fetch Hedges |
|
|
16
20
|
| [**fetchMarket**](DefaultApi.md#fetchmarket) | **GET** /api/{exchange}/fetchMarket | Fetch Market |
|
|
17
21
|
| [**fetchMarkets**](DefaultApi.md#fetchmarkets) | **GET** /api/{exchange}/fetchMarkets | Fetch Markets |
|
|
18
22
|
| [**fetchMarketsPaginated**](DefaultApi.md#fetchmarketspaginated) | **GET** /api/{exchange}/fetchMarketsPaginated | Fetch Markets Paginated |
|
|
23
|
+
| [**fetchMatches**](DefaultApi.md#fetchmatches) | **GET** /api/{exchange}/fetchMatches | Fetch Matches |
|
|
19
24
|
| [**fetchMyTrades**](DefaultApi.md#fetchmytrades) | **GET** /api/{exchange}/fetchMyTrades | Fetch My Trades |
|
|
20
25
|
| [**fetchOHLCV**](DefaultApi.md#fetchohlcv) | **GET** /api/{exchange}/fetchOHLCV | Fetch O H L C V |
|
|
21
26
|
| [**fetchOpenOrders**](DefaultApi.md#fetchopenorders) | **GET** /api/{exchange}/fetchOpenOrders | Fetch Open Orders |
|
|
@@ -60,7 +65,7 @@ async function example() {
|
|
|
60
65
|
const api = new DefaultApi();
|
|
61
66
|
|
|
62
67
|
const body = {
|
|
63
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
68
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
64
69
|
exchange: exchange_example,
|
|
65
70
|
// BuildOrderRequest (optional)
|
|
66
71
|
buildOrderRequest: ...,
|
|
@@ -83,7 +88,7 @@ example().catch(console.error);
|
|
|
83
88
|
|
|
84
89
|
| Name | Type | Description | Notes |
|
|
85
90
|
|------------- | ------------- | ------------- | -------------|
|
|
86
|
-
| **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] |
|
|
91
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
87
92
|
| **buildOrderRequest** | [BuildOrderRequest](BuildOrderRequest.md) | | [Optional] |
|
|
88
93
|
|
|
89
94
|
### Return type
|
|
@@ -130,7 +135,7 @@ async function example() {
|
|
|
130
135
|
const api = new DefaultApi();
|
|
131
136
|
|
|
132
137
|
const body = {
|
|
133
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
138
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
134
139
|
exchange: exchange_example,
|
|
135
140
|
// CancelOrderRequest (optional)
|
|
136
141
|
cancelOrderRequest: ...,
|
|
@@ -153,7 +158,7 @@ example().catch(console.error);
|
|
|
153
158
|
|
|
154
159
|
| Name | Type | Description | Notes |
|
|
155
160
|
|------------- | ------------- | ------------- | -------------|
|
|
156
|
-
| **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] |
|
|
161
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
157
162
|
| **cancelOrderRequest** | [CancelOrderRequest](CancelOrderRequest.md) | | [Optional] |
|
|
158
163
|
|
|
159
164
|
### Return type
|
|
@@ -200,7 +205,7 @@ async function example() {
|
|
|
200
205
|
const api = new DefaultApi();
|
|
201
206
|
|
|
202
207
|
const body = {
|
|
203
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
208
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
204
209
|
exchange: exchange_example,
|
|
205
210
|
// CloseRequest (optional)
|
|
206
211
|
closeRequest: ...,
|
|
@@ -223,7 +228,7 @@ example().catch(console.error);
|
|
|
223
228
|
|
|
224
229
|
| Name | Type | Description | Notes |
|
|
225
230
|
|------------- | ------------- | ------------- | -------------|
|
|
226
|
-
| **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] |
|
|
231
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
227
232
|
| **closeRequest** | [CloseRequest](CloseRequest.md) | | [Optional] |
|
|
228
233
|
|
|
229
234
|
### Return type
|
|
@@ -248,6 +253,76 @@ No authorization required
|
|
|
248
253
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
249
254
|
|
|
250
255
|
|
|
256
|
+
## compareMarketPrices
|
|
257
|
+
|
|
258
|
+
> CompareMarketPrices200Response compareMarketPrices(exchange, compareMarketPricesRequest)
|
|
259
|
+
|
|
260
|
+
Compare Market Prices
|
|
261
|
+
|
|
262
|
+
Compare prices across venues for identity matches of a market.
|
|
263
|
+
|
|
264
|
+
### Example
|
|
265
|
+
|
|
266
|
+
```ts
|
|
267
|
+
import {
|
|
268
|
+
Configuration,
|
|
269
|
+
DefaultApi,
|
|
270
|
+
} from 'pmxtjs';
|
|
271
|
+
import type { CompareMarketPricesOperationRequest } from 'pmxtjs';
|
|
272
|
+
|
|
273
|
+
async function example() {
|
|
274
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
275
|
+
const api = new DefaultApi();
|
|
276
|
+
|
|
277
|
+
const body = {
|
|
278
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
279
|
+
exchange: exchange_example,
|
|
280
|
+
// CompareMarketPricesRequest (optional)
|
|
281
|
+
compareMarketPricesRequest: ...,
|
|
282
|
+
} satisfies CompareMarketPricesOperationRequest;
|
|
283
|
+
|
|
284
|
+
try {
|
|
285
|
+
const data = await api.compareMarketPrices(body);
|
|
286
|
+
console.log(data);
|
|
287
|
+
} catch (error) {
|
|
288
|
+
console.error(error);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// Run the test
|
|
293
|
+
example().catch(console.error);
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Parameters
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
| Name | Type | Description | Notes |
|
|
300
|
+
|------------- | ------------- | ------------- | -------------|
|
|
301
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
302
|
+
| **compareMarketPricesRequest** | [CompareMarketPricesRequest](CompareMarketPricesRequest.md) | | [Optional] |
|
|
303
|
+
|
|
304
|
+
### Return type
|
|
305
|
+
|
|
306
|
+
[**CompareMarketPrices200Response**](CompareMarketPrices200Response.md)
|
|
307
|
+
|
|
308
|
+
### Authorization
|
|
309
|
+
|
|
310
|
+
No authorization required
|
|
311
|
+
|
|
312
|
+
### HTTP request headers
|
|
313
|
+
|
|
314
|
+
- **Content-Type**: `application/json`
|
|
315
|
+
- **Accept**: `application/json`
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### HTTP response details
|
|
319
|
+
| Status code | Description | Response headers |
|
|
320
|
+
|-------------|-------------|------------------|
|
|
321
|
+
| **200** | Compare Market Prices response | - |
|
|
322
|
+
|
|
323
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
324
|
+
|
|
325
|
+
|
|
251
326
|
## createOrder
|
|
252
327
|
|
|
253
328
|
> CreateOrder200Response createOrder(exchange, createOrderRequest)
|
|
@@ -270,7 +345,7 @@ async function example() {
|
|
|
270
345
|
const api = new DefaultApi();
|
|
271
346
|
|
|
272
347
|
const body = {
|
|
273
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
348
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
274
349
|
exchange: exchange_example,
|
|
275
350
|
// CreateOrderRequest (optional)
|
|
276
351
|
createOrderRequest: ...,
|
|
@@ -293,7 +368,7 @@ example().catch(console.error);
|
|
|
293
368
|
|
|
294
369
|
| Name | Type | Description | Notes |
|
|
295
370
|
|------------- | ------------- | ------------- | -------------|
|
|
296
|
-
| **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] |
|
|
371
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
297
372
|
| **createOrderRequest** | [CreateOrderRequest](CreateOrderRequest.md) | | [Optional] |
|
|
298
373
|
|
|
299
374
|
### Return type
|
|
@@ -338,7 +413,7 @@ async function example() {
|
|
|
338
413
|
const api = new DefaultApi();
|
|
339
414
|
|
|
340
415
|
const body = {
|
|
341
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
416
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
342
417
|
exchange: exchange_example,
|
|
343
418
|
// string | required for Limitless (slug) (optional)
|
|
344
419
|
marketId: marketId_example,
|
|
@@ -369,7 +444,7 @@ example().catch(console.error);
|
|
|
369
444
|
|
|
370
445
|
| Name | Type | Description | Notes |
|
|
371
446
|
|------------- | ------------- | ------------- | -------------|
|
|
372
|
-
| **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] |
|
|
447
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
373
448
|
| **marketId** | `string` | required for Limitless (slug) | [Optional] [Defaults to `undefined`] |
|
|
374
449
|
| **since** | `Date` | Only return records after this date | [Optional] [Defaults to `undefined`] |
|
|
375
450
|
| **until** | `Date` | Only return records before this date | [Optional] [Defaults to `undefined`] |
|
|
@@ -398,6 +473,82 @@ No authorization required
|
|
|
398
473
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
399
474
|
|
|
400
475
|
|
|
476
|
+
## fetchArbitrage
|
|
477
|
+
|
|
478
|
+
> FetchArbitrage200Response fetchArbitrage(exchange, minSpread, category, limit)
|
|
479
|
+
|
|
480
|
+
Fetch Arbitrage
|
|
481
|
+
|
|
482
|
+
Scan for arbitrage opportunities across identity matches.
|
|
483
|
+
|
|
484
|
+
### Example
|
|
485
|
+
|
|
486
|
+
```ts
|
|
487
|
+
import {
|
|
488
|
+
Configuration,
|
|
489
|
+
DefaultApi,
|
|
490
|
+
} from 'pmxtjs';
|
|
491
|
+
import type { FetchArbitrageRequest } from 'pmxtjs';
|
|
492
|
+
|
|
493
|
+
async function example() {
|
|
494
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
495
|
+
const api = new DefaultApi();
|
|
496
|
+
|
|
497
|
+
const body = {
|
|
498
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
499
|
+
exchange: exchange_example,
|
|
500
|
+
// number (optional)
|
|
501
|
+
minSpread: 8.14,
|
|
502
|
+
// string (optional)
|
|
503
|
+
category: category_example,
|
|
504
|
+
// number (optional)
|
|
505
|
+
limit: 8.14,
|
|
506
|
+
} satisfies FetchArbitrageRequest;
|
|
507
|
+
|
|
508
|
+
try {
|
|
509
|
+
const data = await api.fetchArbitrage(body);
|
|
510
|
+
console.log(data);
|
|
511
|
+
} catch (error) {
|
|
512
|
+
console.error(error);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Run the test
|
|
517
|
+
example().catch(console.error);
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### Parameters
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
| Name | Type | Description | Notes |
|
|
524
|
+
|------------- | ------------- | ------------- | -------------|
|
|
525
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
526
|
+
| **minSpread** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
527
|
+
| **category** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
528
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
529
|
+
|
|
530
|
+
### Return type
|
|
531
|
+
|
|
532
|
+
[**FetchArbitrage200Response**](FetchArbitrage200Response.md)
|
|
533
|
+
|
|
534
|
+
### Authorization
|
|
535
|
+
|
|
536
|
+
No authorization required
|
|
537
|
+
|
|
538
|
+
### HTTP request headers
|
|
539
|
+
|
|
540
|
+
- **Content-Type**: Not defined
|
|
541
|
+
- **Accept**: `application/json`
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
### HTTP response details
|
|
545
|
+
| Status code | Description | Response headers |
|
|
546
|
+
|-------------|-------------|------------------|
|
|
547
|
+
| **200** | Fetch Arbitrage response | - |
|
|
548
|
+
|
|
549
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
550
|
+
|
|
551
|
+
|
|
401
552
|
## fetchBalance
|
|
402
553
|
|
|
403
554
|
> FetchBalance200Response fetchBalance(exchange, address)
|
|
@@ -420,7 +571,7 @@ async function example() {
|
|
|
420
571
|
const api = new DefaultApi();
|
|
421
572
|
|
|
422
573
|
const body = {
|
|
423
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
574
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
424
575
|
exchange: exchange_example,
|
|
425
576
|
// string (optional)
|
|
426
577
|
address: address_example,
|
|
@@ -443,7 +594,7 @@ example().catch(console.error);
|
|
|
443
594
|
|
|
444
595
|
| Name | Type | Description | Notes |
|
|
445
596
|
|------------- | ------------- | ------------- | -------------|
|
|
446
|
-
| **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] |
|
|
597
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
447
598
|
| **address** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
448
599
|
|
|
449
600
|
### Return type
|
|
@@ -488,7 +639,7 @@ async function example() {
|
|
|
488
639
|
const api = new DefaultApi();
|
|
489
640
|
|
|
490
641
|
const body = {
|
|
491
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
642
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
492
643
|
exchange: exchange_example,
|
|
493
644
|
// string | required for Limitless (slug) (optional)
|
|
494
645
|
marketId: marketId_example,
|
|
@@ -519,7 +670,7 @@ example().catch(console.error);
|
|
|
519
670
|
|
|
520
671
|
| Name | Type | Description | Notes |
|
|
521
672
|
|------------- | ------------- | ------------- | -------------|
|
|
522
|
-
| **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] |
|
|
673
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
523
674
|
| **marketId** | `string` | required for Limitless (slug) | [Optional] [Defaults to `undefined`] |
|
|
524
675
|
| **since** | `Date` | Only return records after this date | [Optional] [Defaults to `undefined`] |
|
|
525
676
|
| **until** | `Date` | Only return records before this date | [Optional] [Defaults to `undefined`] |
|
|
@@ -570,7 +721,7 @@ async function example() {
|
|
|
570
721
|
const api = new DefaultApi();
|
|
571
722
|
|
|
572
723
|
const body = {
|
|
573
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
724
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
574
725
|
exchange: exchange_example,
|
|
575
726
|
// string | For keyword search (optional)
|
|
576
727
|
query: query_example,
|
|
@@ -613,7 +764,7 @@ example().catch(console.error);
|
|
|
613
764
|
|
|
614
765
|
| Name | Type | Description | Notes |
|
|
615
766
|
|------------- | ------------- | ------------- | -------------|
|
|
616
|
-
| **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] |
|
|
767
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
617
768
|
| **query** | `string` | For keyword search | [Optional] [Defaults to `undefined`] |
|
|
618
769
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
619
770
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
@@ -648,6 +799,91 @@ No authorization required
|
|
|
648
799
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
649
800
|
|
|
650
801
|
|
|
802
|
+
## fetchEventMatches
|
|
803
|
+
|
|
804
|
+
> FetchEventMatches200Response fetchEventMatches(exchange, eventId, slug, relation, minConfidence, limit, includePrices)
|
|
805
|
+
|
|
806
|
+
Fetch Event Matches
|
|
807
|
+
|
|
808
|
+
Fetch cross-venue matches for a given event.
|
|
809
|
+
|
|
810
|
+
### Example
|
|
811
|
+
|
|
812
|
+
```ts
|
|
813
|
+
import {
|
|
814
|
+
Configuration,
|
|
815
|
+
DefaultApi,
|
|
816
|
+
} from 'pmxtjs';
|
|
817
|
+
import type { FetchEventMatchesRequest } from 'pmxtjs';
|
|
818
|
+
|
|
819
|
+
async function example() {
|
|
820
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
821
|
+
const api = new DefaultApi();
|
|
822
|
+
|
|
823
|
+
const body = {
|
|
824
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
825
|
+
exchange: exchange_example,
|
|
826
|
+
// string (optional)
|
|
827
|
+
eventId: eventId_example,
|
|
828
|
+
// string (optional)
|
|
829
|
+
slug: slug_example,
|
|
830
|
+
// 'identity' | 'subset' | 'superset' | 'overlap' | 'disjoint' (optional)
|
|
831
|
+
relation: relation_example,
|
|
832
|
+
// number (optional)
|
|
833
|
+
minConfidence: 8.14,
|
|
834
|
+
// number (optional)
|
|
835
|
+
limit: 8.14,
|
|
836
|
+
// boolean (optional)
|
|
837
|
+
includePrices: true,
|
|
838
|
+
} satisfies FetchEventMatchesRequest;
|
|
839
|
+
|
|
840
|
+
try {
|
|
841
|
+
const data = await api.fetchEventMatches(body);
|
|
842
|
+
console.log(data);
|
|
843
|
+
} catch (error) {
|
|
844
|
+
console.error(error);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// Run the test
|
|
849
|
+
example().catch(console.error);
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
### Parameters
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
| Name | Type | Description | Notes |
|
|
856
|
+
|------------- | ------------- | ------------- | -------------|
|
|
857
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
858
|
+
| **eventId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
859
|
+
| **slug** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
860
|
+
| **relation** | `identity`, `subset`, `superset`, `overlap`, `disjoint` | | [Optional] [Defaults to `undefined`] [Enum: identity, subset, superset, overlap, disjoint] |
|
|
861
|
+
| **minConfidence** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
862
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
863
|
+
| **includePrices** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
864
|
+
|
|
865
|
+
### Return type
|
|
866
|
+
|
|
867
|
+
[**FetchEventMatches200Response**](FetchEventMatches200Response.md)
|
|
868
|
+
|
|
869
|
+
### Authorization
|
|
870
|
+
|
|
871
|
+
No authorization required
|
|
872
|
+
|
|
873
|
+
### HTTP request headers
|
|
874
|
+
|
|
875
|
+
- **Content-Type**: Not defined
|
|
876
|
+
- **Accept**: `application/json`
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
### HTTP response details
|
|
880
|
+
| Status code | Description | Response headers |
|
|
881
|
+
|-------------|-------------|------------------|
|
|
882
|
+
| **200** | Fetch Event Matches response | - |
|
|
883
|
+
|
|
884
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
885
|
+
|
|
886
|
+
|
|
651
887
|
## fetchEvents
|
|
652
888
|
|
|
653
889
|
> FetchEvents200Response fetchEvents(exchange, query, limit, offset, sort, status, searchIn, eventId, slug, filter, category, tags)
|
|
@@ -670,7 +906,7 @@ async function example() {
|
|
|
670
906
|
const api = new DefaultApi();
|
|
671
907
|
|
|
672
908
|
const body = {
|
|
673
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
909
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
674
910
|
exchange: exchange_example,
|
|
675
911
|
// string | For keyword search (optional)
|
|
676
912
|
query: query_example,
|
|
@@ -713,7 +949,7 @@ example().catch(console.error);
|
|
|
713
949
|
|
|
714
950
|
| Name | Type | Description | Notes |
|
|
715
951
|
|------------- | ------------- | ------------- | -------------|
|
|
716
|
-
| **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] |
|
|
952
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
717
953
|
| **query** | `string` | For keyword search | [Optional] [Defaults to `undefined`] |
|
|
718
954
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
719
955
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
@@ -748,6 +984,94 @@ No authorization required
|
|
|
748
984
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
749
985
|
|
|
750
986
|
|
|
987
|
+
## fetchHedges
|
|
988
|
+
|
|
989
|
+
> CompareMarketPrices200Response fetchHedges(exchange, marketId, slug, url, relation, minConfidence, limit, includePrices)
|
|
990
|
+
|
|
991
|
+
Fetch Hedges
|
|
992
|
+
|
|
993
|
+
Find hedging opportunities via subset/superset matches across venues.
|
|
994
|
+
|
|
995
|
+
### Example
|
|
996
|
+
|
|
997
|
+
```ts
|
|
998
|
+
import {
|
|
999
|
+
Configuration,
|
|
1000
|
+
DefaultApi,
|
|
1001
|
+
} from 'pmxtjs';
|
|
1002
|
+
import type { FetchHedgesRequest } from 'pmxtjs';
|
|
1003
|
+
|
|
1004
|
+
async function example() {
|
|
1005
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
1006
|
+
const api = new DefaultApi();
|
|
1007
|
+
|
|
1008
|
+
const body = {
|
|
1009
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1010
|
+
exchange: exchange_example,
|
|
1011
|
+
// string (optional)
|
|
1012
|
+
marketId: marketId_example,
|
|
1013
|
+
// string (optional)
|
|
1014
|
+
slug: slug_example,
|
|
1015
|
+
// string (optional)
|
|
1016
|
+
url: url_example,
|
|
1017
|
+
// 'identity' | 'subset' | 'superset' | 'overlap' | 'disjoint' (optional)
|
|
1018
|
+
relation: relation_example,
|
|
1019
|
+
// number (optional)
|
|
1020
|
+
minConfidence: 8.14,
|
|
1021
|
+
// number (optional)
|
|
1022
|
+
limit: 8.14,
|
|
1023
|
+
// boolean (optional)
|
|
1024
|
+
includePrices: true,
|
|
1025
|
+
} satisfies FetchHedgesRequest;
|
|
1026
|
+
|
|
1027
|
+
try {
|
|
1028
|
+
const data = await api.fetchHedges(body);
|
|
1029
|
+
console.log(data);
|
|
1030
|
+
} catch (error) {
|
|
1031
|
+
console.error(error);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// Run the test
|
|
1036
|
+
example().catch(console.error);
|
|
1037
|
+
```
|
|
1038
|
+
|
|
1039
|
+
### Parameters
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
| Name | Type | Description | Notes |
|
|
1043
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1044
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1045
|
+
| **marketId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1046
|
+
| **slug** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1047
|
+
| **url** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1048
|
+
| **relation** | `identity`, `subset`, `superset`, `overlap`, `disjoint` | | [Optional] [Defaults to `undefined`] [Enum: identity, subset, superset, overlap, disjoint] |
|
|
1049
|
+
| **minConfidence** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1050
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1051
|
+
| **includePrices** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
1052
|
+
|
|
1053
|
+
### Return type
|
|
1054
|
+
|
|
1055
|
+
[**CompareMarketPrices200Response**](CompareMarketPrices200Response.md)
|
|
1056
|
+
|
|
1057
|
+
### Authorization
|
|
1058
|
+
|
|
1059
|
+
No authorization required
|
|
1060
|
+
|
|
1061
|
+
### HTTP request headers
|
|
1062
|
+
|
|
1063
|
+
- **Content-Type**: Not defined
|
|
1064
|
+
- **Accept**: `application/json`
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
### HTTP response details
|
|
1068
|
+
| Status code | Description | Response headers |
|
|
1069
|
+
|-------------|-------------|------------------|
|
|
1070
|
+
| **200** | Fetch Hedges response | - |
|
|
1071
|
+
|
|
1072
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1073
|
+
|
|
1074
|
+
|
|
751
1075
|
## fetchMarket
|
|
752
1076
|
|
|
753
1077
|
> FetchMarket200Response fetchMarket(exchange, limit, offset, sort, status, searchIn, query, slug, marketId, outcomeId, eventId, page, similarityThreshold)
|
|
@@ -770,7 +1094,7 @@ async function example() {
|
|
|
770
1094
|
const api = new DefaultApi();
|
|
771
1095
|
|
|
772
1096
|
const body = {
|
|
773
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1097
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
774
1098
|
exchange: exchange_example,
|
|
775
1099
|
// number | Maximum number of results to return (optional)
|
|
776
1100
|
limit: 8.14,
|
|
@@ -815,7 +1139,7 @@ example().catch(console.error);
|
|
|
815
1139
|
|
|
816
1140
|
| Name | Type | Description | Notes |
|
|
817
1141
|
|------------- | ------------- | ------------- | -------------|
|
|
818
|
-
| **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] |
|
|
1142
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
819
1143
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
820
1144
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
821
1145
|
| **sort** | `volume`, `liquidity`, `newest` | Sort order for results | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
@@ -873,7 +1197,7 @@ async function example() {
|
|
|
873
1197
|
const api = new DefaultApi();
|
|
874
1198
|
|
|
875
1199
|
const body = {
|
|
876
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1200
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
877
1201
|
exchange: exchange_example,
|
|
878
1202
|
// number | Maximum number of results to return (optional)
|
|
879
1203
|
limit: 8.14,
|
|
@@ -918,7 +1242,7 @@ example().catch(console.error);
|
|
|
918
1242
|
|
|
919
1243
|
| Name | Type | Description | Notes |
|
|
920
1244
|
|------------- | ------------- | ------------- | -------------|
|
|
921
|
-
| **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] |
|
|
1245
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
922
1246
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
923
1247
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
924
1248
|
| **sort** | `volume`, `liquidity`, `newest` | Sort order for results | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
@@ -976,7 +1300,7 @@ async function example() {
|
|
|
976
1300
|
const api = new DefaultApi();
|
|
977
1301
|
|
|
978
1302
|
const body = {
|
|
979
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1303
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
980
1304
|
exchange: exchange_example,
|
|
981
1305
|
// number (optional)
|
|
982
1306
|
limit: 8.14,
|
|
@@ -1003,7 +1327,7 @@ example().catch(console.error);
|
|
|
1003
1327
|
|
|
1004
1328
|
| Name | Type | Description | Notes |
|
|
1005
1329
|
|------------- | ------------- | ------------- | -------------|
|
|
1006
|
-
| **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] |
|
|
1330
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1007
1331
|
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1008
1332
|
| **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1009
1333
|
| **filter** | [](.md) | | [Optional] [Defaults to `undefined`] |
|
|
@@ -1030,6 +1354,94 @@ No authorization required
|
|
|
1030
1354
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1031
1355
|
|
|
1032
1356
|
|
|
1357
|
+
## fetchMatches
|
|
1358
|
+
|
|
1359
|
+
> FetchMatches200Response fetchMatches(exchange, marketId, slug, url, relation, minConfidence, limit, includePrices)
|
|
1360
|
+
|
|
1361
|
+
Fetch Matches
|
|
1362
|
+
|
|
1363
|
+
Fetch cross-venue matches for a given market.
|
|
1364
|
+
|
|
1365
|
+
### Example
|
|
1366
|
+
|
|
1367
|
+
```ts
|
|
1368
|
+
import {
|
|
1369
|
+
Configuration,
|
|
1370
|
+
DefaultApi,
|
|
1371
|
+
} from 'pmxtjs';
|
|
1372
|
+
import type { FetchMatchesRequest } from 'pmxtjs';
|
|
1373
|
+
|
|
1374
|
+
async function example() {
|
|
1375
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
1376
|
+
const api = new DefaultApi();
|
|
1377
|
+
|
|
1378
|
+
const body = {
|
|
1379
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1380
|
+
exchange: exchange_example,
|
|
1381
|
+
// string (optional)
|
|
1382
|
+
marketId: marketId_example,
|
|
1383
|
+
// string (optional)
|
|
1384
|
+
slug: slug_example,
|
|
1385
|
+
// string (optional)
|
|
1386
|
+
url: url_example,
|
|
1387
|
+
// 'identity' | 'subset' | 'superset' | 'overlap' | 'disjoint' (optional)
|
|
1388
|
+
relation: relation_example,
|
|
1389
|
+
// number (optional)
|
|
1390
|
+
minConfidence: 8.14,
|
|
1391
|
+
// number (optional)
|
|
1392
|
+
limit: 8.14,
|
|
1393
|
+
// boolean (optional)
|
|
1394
|
+
includePrices: true,
|
|
1395
|
+
} satisfies FetchMatchesRequest;
|
|
1396
|
+
|
|
1397
|
+
try {
|
|
1398
|
+
const data = await api.fetchMatches(body);
|
|
1399
|
+
console.log(data);
|
|
1400
|
+
} catch (error) {
|
|
1401
|
+
console.error(error);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
// Run the test
|
|
1406
|
+
example().catch(console.error);
|
|
1407
|
+
```
|
|
1408
|
+
|
|
1409
|
+
### Parameters
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
| Name | Type | Description | Notes |
|
|
1413
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1414
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1415
|
+
| **marketId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1416
|
+
| **slug** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1417
|
+
| **url** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1418
|
+
| **relation** | `identity`, `subset`, `superset`, `overlap`, `disjoint` | | [Optional] [Defaults to `undefined`] [Enum: identity, subset, superset, overlap, disjoint] |
|
|
1419
|
+
| **minConfidence** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1420
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1421
|
+
| **includePrices** | `boolean` | | [Optional] [Defaults to `undefined`] |
|
|
1422
|
+
|
|
1423
|
+
### Return type
|
|
1424
|
+
|
|
1425
|
+
[**FetchMatches200Response**](FetchMatches200Response.md)
|
|
1426
|
+
|
|
1427
|
+
### Authorization
|
|
1428
|
+
|
|
1429
|
+
No authorization required
|
|
1430
|
+
|
|
1431
|
+
### HTTP request headers
|
|
1432
|
+
|
|
1433
|
+
- **Content-Type**: Not defined
|
|
1434
|
+
- **Accept**: `application/json`
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
### HTTP response details
|
|
1438
|
+
| Status code | Description | Response headers |
|
|
1439
|
+
|-------------|-------------|------------------|
|
|
1440
|
+
| **200** | Fetch Matches response | - |
|
|
1441
|
+
|
|
1442
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1443
|
+
|
|
1444
|
+
|
|
1033
1445
|
## fetchMyTrades
|
|
1034
1446
|
|
|
1035
1447
|
> FetchMyTrades200Response fetchMyTrades(exchange, outcomeId, marketId, since, until, limit, cursor)
|
|
@@ -1050,7 +1462,7 @@ async function example() {
|
|
|
1050
1462
|
const api = new DefaultApi();
|
|
1051
1463
|
|
|
1052
1464
|
const body = {
|
|
1053
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1465
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1054
1466
|
exchange: exchange_example,
|
|
1055
1467
|
// string | filter to specific outcome/ticker (optional)
|
|
1056
1468
|
outcomeId: outcomeId_example,
|
|
@@ -1083,7 +1495,7 @@ example().catch(console.error);
|
|
|
1083
1495
|
|
|
1084
1496
|
| Name | Type | Description | Notes |
|
|
1085
1497
|
|------------- | ------------- | ------------- | -------------|
|
|
1086
|
-
| **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] |
|
|
1498
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1087
1499
|
| **outcomeId** | `string` | filter to specific outcome/ticker | [Optional] [Defaults to `undefined`] |
|
|
1088
1500
|
| **marketId** | `string` | filter to specific market | [Optional] [Defaults to `undefined`] |
|
|
1089
1501
|
| **since** | `Date` | Only return records after this date | [Optional] [Defaults to `undefined`] |
|
|
@@ -1135,7 +1547,7 @@ async function example() {
|
|
|
1135
1547
|
const api = new DefaultApi();
|
|
1136
1548
|
|
|
1137
1549
|
const body = {
|
|
1138
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1550
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1139
1551
|
exchange: exchange_example,
|
|
1140
1552
|
// string
|
|
1141
1553
|
id: id_example,
|
|
@@ -1166,7 +1578,7 @@ example().catch(console.error);
|
|
|
1166
1578
|
|
|
1167
1579
|
| Name | Type | Description | Notes |
|
|
1168
1580
|
|------------- | ------------- | ------------- | -------------|
|
|
1169
|
-
| **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] |
|
|
1581
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1170
1582
|
| **id** | `string` | | [Defaults to `undefined`] |
|
|
1171
1583
|
| **resolution** | `1m`, `5m`, `15m`, `1h`, `6h`, `1d` | Required for candle aggregation | [Optional] [Defaults to `undefined`] [Enum: 1m, 5m, 15m, 1h, 6h, 1d] |
|
|
1172
1584
|
| **start** | `Date` | Start of the time range | [Optional] [Defaults to `undefined`] |
|
|
@@ -1217,7 +1629,7 @@ async function example() {
|
|
|
1217
1629
|
const api = new DefaultApi();
|
|
1218
1630
|
|
|
1219
1631
|
const body = {
|
|
1220
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1632
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1221
1633
|
exchange: exchange_example,
|
|
1222
1634
|
// string (optional)
|
|
1223
1635
|
marketId: marketId_example,
|
|
@@ -1240,7 +1652,7 @@ example().catch(console.error);
|
|
|
1240
1652
|
|
|
1241
1653
|
| Name | Type | Description | Notes |
|
|
1242
1654
|
|------------- | ------------- | ------------- | -------------|
|
|
1243
|
-
| **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] |
|
|
1655
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1244
1656
|
| **marketId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1245
1657
|
|
|
1246
1658
|
### Return type
|
|
@@ -1287,7 +1699,7 @@ async function example() {
|
|
|
1287
1699
|
const api = new DefaultApi();
|
|
1288
1700
|
|
|
1289
1701
|
const body = {
|
|
1290
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1702
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1291
1703
|
exchange: exchange_example,
|
|
1292
1704
|
// string
|
|
1293
1705
|
orderId: orderId_example,
|
|
@@ -1310,7 +1722,7 @@ example().catch(console.error);
|
|
|
1310
1722
|
|
|
1311
1723
|
| Name | Type | Description | Notes |
|
|
1312
1724
|
|------------- | ------------- | ------------- | -------------|
|
|
1313
|
-
| **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] |
|
|
1725
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1314
1726
|
| **orderId** | `string` | | [Defaults to `undefined`] |
|
|
1315
1727
|
|
|
1316
1728
|
### Return type
|
|
@@ -1357,7 +1769,7 @@ async function example() {
|
|
|
1357
1769
|
const api = new DefaultApi();
|
|
1358
1770
|
|
|
1359
1771
|
const body = {
|
|
1360
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1772
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1361
1773
|
exchange: exchange_example,
|
|
1362
1774
|
// string
|
|
1363
1775
|
id: id_example,
|
|
@@ -1380,7 +1792,7 @@ example().catch(console.error);
|
|
|
1380
1792
|
|
|
1381
1793
|
| Name | Type | Description | Notes |
|
|
1382
1794
|
|------------- | ------------- | ------------- | -------------|
|
|
1383
|
-
| **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] |
|
|
1795
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1384
1796
|
| **id** | `string` | | [Defaults to `undefined`] |
|
|
1385
1797
|
|
|
1386
1798
|
### Return type
|
|
@@ -1427,7 +1839,7 @@ async function example() {
|
|
|
1427
1839
|
const api = new DefaultApi();
|
|
1428
1840
|
|
|
1429
1841
|
const body = {
|
|
1430
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1842
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1431
1843
|
exchange: exchange_example,
|
|
1432
1844
|
// string (optional)
|
|
1433
1845
|
address: address_example,
|
|
@@ -1450,7 +1862,7 @@ example().catch(console.error);
|
|
|
1450
1862
|
|
|
1451
1863
|
| Name | Type | Description | Notes |
|
|
1452
1864
|
|------------- | ------------- | ------------- | -------------|
|
|
1453
|
-
| **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] |
|
|
1865
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1454
1866
|
| **address** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1455
1867
|
|
|
1456
1868
|
### Return type
|
|
@@ -1497,7 +1909,7 @@ async function example() {
|
|
|
1497
1909
|
const api = new DefaultApi();
|
|
1498
1910
|
|
|
1499
1911
|
const body = {
|
|
1500
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1912
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1501
1913
|
exchange: exchange_example,
|
|
1502
1914
|
// string
|
|
1503
1915
|
id: id_example,
|
|
@@ -1526,7 +1938,7 @@ example().catch(console.error);
|
|
|
1526
1938
|
|
|
1527
1939
|
| Name | Type | Description | Notes |
|
|
1528
1940
|
|------------- | ------------- | ------------- | -------------|
|
|
1529
|
-
| **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] |
|
|
1941
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1530
1942
|
| **id** | `string` | | [Defaults to `undefined`] |
|
|
1531
1943
|
| **start** | `Date` | Start of the time range | [Optional] [Defaults to `undefined`] |
|
|
1532
1944
|
| **end** | `Date` | End of the time range | [Optional] [Defaults to `undefined`] |
|
|
@@ -1576,7 +1988,7 @@ async function example() {
|
|
|
1576
1988
|
const api = new DefaultApi();
|
|
1577
1989
|
|
|
1578
1990
|
const body = {
|
|
1579
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
1991
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1580
1992
|
exchange: exchange_example,
|
|
1581
1993
|
// FilterEventsRequest (optional)
|
|
1582
1994
|
filterEventsRequest: ...,
|
|
@@ -1599,7 +2011,7 @@ example().catch(console.error);
|
|
|
1599
2011
|
|
|
1600
2012
|
| Name | Type | Description | Notes |
|
|
1601
2013
|
|------------- | ------------- | ------------- | -------------|
|
|
1602
|
-
| **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] |
|
|
2014
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1603
2015
|
| **filterEventsRequest** | [FilterEventsRequest](FilterEventsRequest.md) | | [Optional] |
|
|
1604
2016
|
|
|
1605
2017
|
### Return type
|
|
@@ -1646,7 +2058,7 @@ async function example() {
|
|
|
1646
2058
|
const api = new DefaultApi();
|
|
1647
2059
|
|
|
1648
2060
|
const body = {
|
|
1649
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2061
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1650
2062
|
exchange: exchange_example,
|
|
1651
2063
|
// FilterMarketsRequest (optional)
|
|
1652
2064
|
filterMarketsRequest: ...,
|
|
@@ -1669,7 +2081,7 @@ example().catch(console.error);
|
|
|
1669
2081
|
|
|
1670
2082
|
| Name | Type | Description | Notes |
|
|
1671
2083
|
|------------- | ------------- | ------------- | -------------|
|
|
1672
|
-
| **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] |
|
|
2084
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1673
2085
|
| **filterMarketsRequest** | [FilterMarketsRequest](FilterMarketsRequest.md) | | [Optional] |
|
|
1674
2086
|
|
|
1675
2087
|
### Return type
|
|
@@ -1716,7 +2128,7 @@ async function example() {
|
|
|
1716
2128
|
const api = new DefaultApi();
|
|
1717
2129
|
|
|
1718
2130
|
const body = {
|
|
1719
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2131
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1720
2132
|
exchange: exchange_example,
|
|
1721
2133
|
// GetExecutionPriceRequest (optional)
|
|
1722
2134
|
getExecutionPriceRequest: ...,
|
|
@@ -1739,7 +2151,7 @@ example().catch(console.error);
|
|
|
1739
2151
|
|
|
1740
2152
|
| Name | Type | Description | Notes |
|
|
1741
2153
|
|------------- | ------------- | ------------- | -------------|
|
|
1742
|
-
| **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] |
|
|
2154
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1743
2155
|
| **getExecutionPriceRequest** | [GetExecutionPriceRequest](GetExecutionPriceRequest.md) | | [Optional] |
|
|
1744
2156
|
|
|
1745
2157
|
### Return type
|
|
@@ -1786,7 +2198,7 @@ async function example() {
|
|
|
1786
2198
|
const api = new DefaultApi();
|
|
1787
2199
|
|
|
1788
2200
|
const body = {
|
|
1789
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2201
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1790
2202
|
exchange: exchange_example,
|
|
1791
2203
|
// GetExecutionPriceDetailedRequest (optional)
|
|
1792
2204
|
getExecutionPriceDetailedRequest: ...,
|
|
@@ -1809,7 +2221,7 @@ example().catch(console.error);
|
|
|
1809
2221
|
|
|
1810
2222
|
| Name | Type | Description | Notes |
|
|
1811
2223
|
|------------- | ------------- | ------------- | -------------|
|
|
1812
|
-
| **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] |
|
|
2224
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1813
2225
|
| **getExecutionPriceDetailedRequest** | [GetExecutionPriceDetailedRequest](GetExecutionPriceDetailedRequest.md) | | [Optional] |
|
|
1814
2226
|
|
|
1815
2227
|
### Return type
|
|
@@ -1913,7 +2325,7 @@ async function example() {
|
|
|
1913
2325
|
const api = new DefaultApi();
|
|
1914
2326
|
|
|
1915
2327
|
const body = {
|
|
1916
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2328
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1917
2329
|
exchange: exchange_example,
|
|
1918
2330
|
// LoadMarketsRequest (optional)
|
|
1919
2331
|
loadMarketsRequest: ...,
|
|
@@ -1936,7 +2348,7 @@ example().catch(console.error);
|
|
|
1936
2348
|
|
|
1937
2349
|
| Name | Type | Description | Notes |
|
|
1938
2350
|
|------------- | ------------- | ------------- | -------------|
|
|
1939
|
-
| **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] |
|
|
2351
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
1940
2352
|
| **loadMarketsRequest** | [LoadMarketsRequest](LoadMarketsRequest.md) | | [Optional] |
|
|
1941
2353
|
|
|
1942
2354
|
### Return type
|
|
@@ -1983,7 +2395,7 @@ async function example() {
|
|
|
1983
2395
|
const api = new DefaultApi();
|
|
1984
2396
|
|
|
1985
2397
|
const body = {
|
|
1986
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2398
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1987
2399
|
exchange: exchange_example,
|
|
1988
2400
|
// SubmitOrderRequest (optional)
|
|
1989
2401
|
submitOrderRequest: ...,
|
|
@@ -2006,7 +2418,7 @@ example().catch(console.error);
|
|
|
2006
2418
|
|
|
2007
2419
|
| Name | Type | Description | Notes |
|
|
2008
2420
|
|------------- | ------------- | ------------- | -------------|
|
|
2009
|
-
| **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] |
|
|
2421
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
2010
2422
|
| **submitOrderRequest** | [SubmitOrderRequest](SubmitOrderRequest.md) | | [Optional] |
|
|
2011
2423
|
|
|
2012
2424
|
### Return type
|
|
@@ -2053,7 +2465,7 @@ async function example() {
|
|
|
2053
2465
|
const api = new DefaultApi();
|
|
2054
2466
|
|
|
2055
2467
|
const body = {
|
|
2056
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2468
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2057
2469
|
exchange: exchange_example,
|
|
2058
2470
|
// UnwatchAddressRequest (optional)
|
|
2059
2471
|
unwatchAddressRequest: ...,
|
|
@@ -2076,7 +2488,7 @@ example().catch(console.error);
|
|
|
2076
2488
|
|
|
2077
2489
|
| Name | Type | Description | Notes |
|
|
2078
2490
|
|------------- | ------------- | ------------- | -------------|
|
|
2079
|
-
| **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] |
|
|
2491
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
2080
2492
|
| **unwatchAddressRequest** | [UnwatchAddressRequest](UnwatchAddressRequest.md) | | [Optional] |
|
|
2081
2493
|
|
|
2082
2494
|
### Return type
|
|
@@ -2123,7 +2535,7 @@ async function example() {
|
|
|
2123
2535
|
const api = new DefaultApi();
|
|
2124
2536
|
|
|
2125
2537
|
const body = {
|
|
2126
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2538
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2127
2539
|
exchange: exchange_example,
|
|
2128
2540
|
// UnwatchOrderBookRequest (optional)
|
|
2129
2541
|
unwatchOrderBookRequest: ...,
|
|
@@ -2146,7 +2558,7 @@ example().catch(console.error);
|
|
|
2146
2558
|
|
|
2147
2559
|
| Name | Type | Description | Notes |
|
|
2148
2560
|
|------------- | ------------- | ------------- | -------------|
|
|
2149
|
-
| **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] |
|
|
2561
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
2150
2562
|
| **unwatchOrderBookRequest** | [UnwatchOrderBookRequest](UnwatchOrderBookRequest.md) | | [Optional] |
|
|
2151
2563
|
|
|
2152
2564
|
### Return type
|
|
@@ -2193,7 +2605,7 @@ async function example() {
|
|
|
2193
2605
|
const api = new DefaultApi();
|
|
2194
2606
|
|
|
2195
2607
|
const body = {
|
|
2196
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2608
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2197
2609
|
exchange: exchange_example,
|
|
2198
2610
|
// WatchAddressRequest (optional)
|
|
2199
2611
|
watchAddressRequest: ...,
|
|
@@ -2216,7 +2628,7 @@ example().catch(console.error);
|
|
|
2216
2628
|
|
|
2217
2629
|
| Name | Type | Description | Notes |
|
|
2218
2630
|
|------------- | ------------- | ------------- | -------------|
|
|
2219
|
-
| **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] |
|
|
2631
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
2220
2632
|
| **watchAddressRequest** | [WatchAddressRequest](WatchAddressRequest.md) | | [Optional] |
|
|
2221
2633
|
|
|
2222
2634
|
### Return type
|
|
@@ -2263,7 +2675,7 @@ async function example() {
|
|
|
2263
2675
|
const api = new DefaultApi();
|
|
2264
2676
|
|
|
2265
2677
|
const body = {
|
|
2266
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2678
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2267
2679
|
exchange: exchange_example,
|
|
2268
2680
|
// WatchOrderBookRequest (optional)
|
|
2269
2681
|
watchOrderBookRequest: ...,
|
|
@@ -2286,7 +2698,7 @@ example().catch(console.error);
|
|
|
2286
2698
|
|
|
2287
2699
|
| Name | Type | Description | Notes |
|
|
2288
2700
|
|------------- | ------------- | ------------- | -------------|
|
|
2289
|
-
| **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] |
|
|
2701
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
2290
2702
|
| **watchOrderBookRequest** | [WatchOrderBookRequest](WatchOrderBookRequest.md) | | [Optional] |
|
|
2291
2703
|
|
|
2292
2704
|
### Return type
|
|
@@ -2333,7 +2745,7 @@ async function example() {
|
|
|
2333
2745
|
const api = new DefaultApi();
|
|
2334
2746
|
|
|
2335
2747
|
const body = {
|
|
2336
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | The prediction market exchange to target.
|
|
2748
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2337
2749
|
exchange: exchange_example,
|
|
2338
2750
|
// WatchTradesRequest (optional)
|
|
2339
2751
|
watchTradesRequest: ...,
|
|
@@ -2356,7 +2768,7 @@ example().catch(console.error);
|
|
|
2356
2768
|
|
|
2357
2769
|
| Name | Type | Description | Notes |
|
|
2358
2770
|
|------------- | ------------- | ------------- | -------------|
|
|
2359
|
-
| **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] |
|
|
2771
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, router] |
|
|
2360
2772
|
| **watchTradesRequest** | [WatchTradesRequest](WatchTradesRequest.md) | | [Optional] |
|
|
2361
2773
|
|
|
2362
2774
|
### Return type
|