pmxtjs 2.4.0 → 2.6.0
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 +95 -1
- package/dist/esm/generated/src/apis/DefaultApi.js +146 -22
- package/dist/esm/generated/src/models/EventFetchParams.d.ts +12 -0
- package/dist/esm/generated/src/models/EventFetchParams.js +4 -0
- package/dist/esm/generated/src/models/FetchEvent200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/{SearchEvents200Response.js → FetchEvent200Response.js} +11 -11
- package/dist/esm/generated/src/models/FetchMarket200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchMarket200Response.js +47 -0
- package/dist/esm/generated/src/models/MarketFilterParams.d.ts +18 -0
- package/dist/esm/generated/src/models/MarketFilterParams.js +6 -0
- package/dist/esm/generated/src/models/index.d.ts +2 -0
- package/dist/esm/generated/src/models/index.js +2 -0
- package/dist/esm/pmxt/client.d.ts +31 -0
- package/dist/esm/pmxt/client.js +93 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +95 -1
- package/dist/generated/src/apis/DefaultApi.js +146 -22
- package/dist/generated/src/models/EventFetchParams.d.ts +12 -0
- package/dist/generated/src/models/EventFetchParams.js +4 -0
- package/dist/generated/src/models/FetchEvent200Response.d.ts +46 -0
- package/{generated/src/models/FetchOHLCV200Response.js → dist/generated/src/models/FetchEvent200Response.js} +16 -16
- package/dist/generated/src/models/FetchMarket200Response.d.ts +46 -0
- package/{generated/src/models/CreateOrder200Response.js → dist/generated/src/models/FetchMarket200Response.js} +16 -16
- package/dist/generated/src/models/MarketFilterParams.d.ts +18 -0
- package/dist/generated/src/models/MarketFilterParams.js +6 -0
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/dist/pmxt/client.d.ts +31 -0
- package/dist/pmxt/client.js +93 -0
- package/generated/.openapi-generator/FILES +5 -0
- package/generated/docs/DefaultApi.md +186 -42
- package/generated/docs/EventFetchParams.md +4 -0
- package/generated/docs/{SearchEvents200Response.md → FetchEvent200Response.md} +5 -5
- package/generated/docs/{GetMarketsBySlugRequest.md → FetchMarket200Response.md} +10 -8
- package/generated/docs/MarketFilterParams.md +6 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +190 -21
- package/generated/src/models/EventFetchParams.ts +16 -0
- package/generated/src/models/{SearchEvents200Response.ts → FetchEvent200Response.ts} +18 -18
- package/generated/src/models/FetchMarket200Response.ts +96 -0
- package/generated/src/models/MarketFilterParams.ts +24 -0
- package/generated/src/models/index.ts +2 -0
- package/package.json +2 -2
- package/pmxt/client.ts +103 -0
- package/dist/esm/generated/src/models/GetMarketsBySlugRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/GetMarketsBySlugRequest.js +0 -46
- package/dist/esm/generated/src/models/SearchEvents200Response.d.ts +0 -46
- package/dist/esm/generated/src/models/SearchEventsRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/SearchEventsRequest.js +0 -47
- package/dist/esm/generated/src/models/SearchMarketsRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/SearchMarketsRequest.js +0 -47
- package/dist/esm/generated/src/models/SearchMarketsRequestArgsInner.d.ts +0 -22
- package/dist/esm/generated/src/models/SearchMarketsRequestArgsInner.js +0 -50
- package/dist/generated/src/models/GetMarketsBySlugRequest.d.ts +0 -39
- package/dist/generated/src/models/GetMarketsBySlugRequest.js +0 -53
- package/dist/generated/src/models/SearchEvents200Response.d.ts +0 -46
- package/dist/generated/src/models/SearchEvents200Response.js +0 -54
- package/dist/generated/src/models/SearchEventsRequest.d.ts +0 -40
- package/dist/generated/src/models/SearchEventsRequest.js +0 -54
- package/dist/generated/src/models/SearchMarketsRequest.d.ts +0 -40
- package/dist/generated/src/models/SearchMarketsRequest.js +0 -54
- package/dist/generated/src/models/SearchMarketsRequestArgsInner.d.ts +0 -22
- package/dist/generated/src/models/SearchMarketsRequestArgsInner.js +0 -56
- package/generated/docs/SearchEventsRequest.md +0 -36
- package/generated/docs/SearchMarketsRequest.md +0 -36
- package/generated/docs/SearchMarketsRequestArgsInner.md +0 -40
- package/generated/src/apis/DefaultApi.js +0 -812
- package/generated/src/apis/index.js +0 -19
- package/generated/src/index.js +0 -21
- package/generated/src/models/Balance.js +0 -54
- package/generated/src/models/BaseRequest.js +0 -49
- package/generated/src/models/BaseResponse.js +0 -51
- package/generated/src/models/CancelOrderRequest.js +0 -53
- package/generated/src/models/CreateOrderParams.js +0 -85
- package/generated/src/models/CreateOrderRequest.js +0 -54
- package/generated/src/models/ErrorDetail.js +0 -48
- package/generated/src/models/ErrorResponse.js +0 -51
- package/generated/src/models/EventFetchParams.js +0 -63
- package/generated/src/models/ExchangeCredentials.js +0 -59
- package/generated/src/models/ExchangeCredentialsSignatureType.js +0 -49
- package/generated/src/models/ExecutionPriceResult.js +0 -52
- package/generated/src/models/FetchBalance200Response.js +0 -54
- package/generated/src/models/FetchEvents200Response.js +0 -54
- package/generated/src/models/FetchEventsRequest.js +0 -52
- package/generated/src/models/FetchMarkets200Response.js +0 -54
- package/generated/src/models/FetchMarketsRequest.js +0 -52
- package/generated/src/models/FetchOHLCVRequest.js +0 -54
- package/generated/src/models/FetchOHLCVRequestArgsInner.js +0 -56
- package/generated/src/models/FetchOpenOrders200Response.js +0 -54
- package/generated/src/models/FetchOpenOrdersRequest.js +0 -51
- package/generated/src/models/FetchOrderBook200Response.js +0 -54
- package/generated/src/models/FetchOrderBookRequest.js +0 -53
- package/generated/src/models/FetchPositions200Response.js +0 -54
- package/generated/src/models/FetchPositionsRequest.js +0 -51
- package/generated/src/models/FetchTrades200Response.js +0 -54
- package/generated/src/models/FetchTradesRequest.js +0 -54
- package/generated/src/models/FilterEventsRequest.js +0 -54
- package/generated/src/models/FilterEventsRequestArgsInner.js +0 -67
- package/generated/src/models/FilterMarketsRequest.js +0 -54
- package/generated/src/models/FilterMarketsRequestArgsInner.js +0 -67
- package/generated/src/models/FilterMarketsRequestArgsInnerOneOf.js +0 -47
- package/generated/src/models/GetExecutionPrice200Response.js +0 -53
- package/generated/src/models/GetExecutionPriceDetailed200Response.js +0 -54
- package/generated/src/models/GetExecutionPriceRequest.js +0 -54
- package/generated/src/models/GetExecutionPriceRequestArgsInner.js +0 -62
- package/generated/src/models/GetMarketsBySlugRequest.ts +0 -82
- package/generated/src/models/HealthCheck200Response.js +0 -50
- package/generated/src/models/HistoryFilterParams.js +0 -68
- package/generated/src/models/MarketFilterParams.js +0 -79
- package/generated/src/models/MarketOutcome.js +0 -56
- package/generated/src/models/Order.js +0 -95
- package/generated/src/models/OrderBook.js +0 -53
- package/generated/src/models/OrderLevel.js +0 -50
- package/generated/src/models/Position.js +0 -62
- package/generated/src/models/PriceCandle.js +0 -58
- package/generated/src/models/SearchEventsRequest.ts +0 -89
- package/generated/src/models/SearchMarketsRequest.ts +0 -89
- package/generated/src/models/SearchMarketsRequestArgsInner.ts +0 -69
- package/generated/src/models/Trade.js +0 -65
- package/generated/src/models/UnifiedEvent.js +0 -65
- package/generated/src/models/UnifiedMarket.js +0 -81
- package/generated/src/models/WatchOrderBookRequest.js +0 -54
- package/generated/src/models/WatchOrderBookRequestArgsInner.js +0 -49
- package/generated/src/models/WatchPricesRequest.js +0 -53
- package/generated/src/models/WatchTradesRequest.js +0 -54
- package/generated/src/models/WatchUserPositionsRequest.js +0 -49
- package/generated/src/models/index.js +0 -73
- package/generated/src/runtime.js +0 -338
|
@@ -8,7 +8,9 @@ All URIs are relative to *http://localhost:3847*
|
|
|
8
8
|
| [**close**](DefaultApi.md#close) | **POST** /api/{exchange}/close | Close WebSocket Connections |
|
|
9
9
|
| [**createOrder**](DefaultApi.md#createorderoperation) | **POST** /api/{exchange}/createOrder | Create Order |
|
|
10
10
|
| [**fetchBalance**](DefaultApi.md#fetchbalance) | **POST** /api/{exchange}/fetchBalance | Fetch Balance |
|
|
11
|
+
| [**fetchEvent**](DefaultApi.md#fetchevent) | **POST** /api/{exchange}/fetchEvent | Fetch Single Event |
|
|
11
12
|
| [**fetchEvents**](DefaultApi.md#fetcheventsoperation) | **POST** /api/{exchange}/fetchEvents | Fetch Events |
|
|
13
|
+
| [**fetchMarket**](DefaultApi.md#fetchmarket) | **POST** /api/{exchange}/fetchMarket | Fetch Single Market |
|
|
12
14
|
| [**fetchMarkets**](DefaultApi.md#fetchmarketsoperation) | **POST** /api/{exchange}/fetchMarkets | Fetch Markets |
|
|
13
15
|
| [**fetchOHLCV**](DefaultApi.md#fetchohlcvoperation) | **POST** /api/{exchange}/fetchOHLCV | Fetch OHLCV Candles |
|
|
14
16
|
| [**fetchOpenOrders**](DefaultApi.md#fetchopenordersoperation) | **POST** /api/{exchange}/fetchOpenOrders | Fetch Open Orders |
|
|
@@ -49,7 +51,7 @@ async function example() {
|
|
|
49
51
|
const api = new DefaultApi();
|
|
50
52
|
|
|
51
53
|
const body = {
|
|
52
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
54
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
53
55
|
exchange: exchange_example,
|
|
54
56
|
// CancelOrderRequest (optional)
|
|
55
57
|
cancelOrderRequest: ...,
|
|
@@ -72,7 +74,7 @@ example().catch(console.error);
|
|
|
72
74
|
|
|
73
75
|
| Name | Type | Description | Notes |
|
|
74
76
|
|------------- | ------------- | ------------- | -------------|
|
|
75
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
77
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
76
78
|
| **cancelOrderRequest** | [CancelOrderRequest](CancelOrderRequest.md) | | [Optional] |
|
|
77
79
|
|
|
78
80
|
### Return type
|
|
@@ -119,7 +121,7 @@ async function example() {
|
|
|
119
121
|
const api = new DefaultApi();
|
|
120
122
|
|
|
121
123
|
const body = {
|
|
122
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
124
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
123
125
|
exchange: exchange_example,
|
|
124
126
|
// WatchUserPositionsRequest (optional)
|
|
125
127
|
watchUserPositionsRequest: ...,
|
|
@@ -142,7 +144,7 @@ example().catch(console.error);
|
|
|
142
144
|
|
|
143
145
|
| Name | Type | Description | Notes |
|
|
144
146
|
|------------- | ------------- | ------------- | -------------|
|
|
145
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
147
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
146
148
|
| **watchUserPositionsRequest** | [WatchUserPositionsRequest](WatchUserPositionsRequest.md) | | [Optional] |
|
|
147
149
|
|
|
148
150
|
### Return type
|
|
@@ -187,7 +189,7 @@ async function example() {
|
|
|
187
189
|
const api = new DefaultApi();
|
|
188
190
|
|
|
189
191
|
const body = {
|
|
190
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
192
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
191
193
|
exchange: exchange_example,
|
|
192
194
|
// CreateOrderRequest (optional)
|
|
193
195
|
createOrderRequest: ...,
|
|
@@ -210,7 +212,7 @@ example().catch(console.error);
|
|
|
210
212
|
|
|
211
213
|
| Name | Type | Description | Notes |
|
|
212
214
|
|------------- | ------------- | ------------- | -------------|
|
|
213
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
215
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
214
216
|
| **createOrderRequest** | [CreateOrderRequest](CreateOrderRequest.md) | | [Optional] |
|
|
215
217
|
|
|
216
218
|
### Return type
|
|
@@ -255,7 +257,7 @@ async function example() {
|
|
|
255
257
|
const api = new DefaultApi();
|
|
256
258
|
|
|
257
259
|
const body = {
|
|
258
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
260
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
259
261
|
exchange: exchange_example,
|
|
260
262
|
// FetchPositionsRequest (optional)
|
|
261
263
|
fetchPositionsRequest: ...,
|
|
@@ -278,7 +280,7 @@ example().catch(console.error);
|
|
|
278
280
|
|
|
279
281
|
| Name | Type | Description | Notes |
|
|
280
282
|
|------------- | ------------- | ------------- | -------------|
|
|
281
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
283
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
282
284
|
| **fetchPositionsRequest** | [FetchPositionsRequest](FetchPositionsRequest.md) | | [Optional] |
|
|
283
285
|
|
|
284
286
|
### Return type
|
|
@@ -303,6 +305,77 @@ No authorization required
|
|
|
303
305
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
304
306
|
|
|
305
307
|
|
|
308
|
+
## fetchEvent
|
|
309
|
+
|
|
310
|
+
> FetchEvent200Response fetchEvent(exchange, fetchEventsRequest)
|
|
311
|
+
|
|
312
|
+
Fetch Single Event
|
|
313
|
+
|
|
314
|
+
Fetch a single event by lookup parameters. Returns the first matching event or a 404 error if no event is found. Convenience wrapper around fetchEvents.
|
|
315
|
+
|
|
316
|
+
### Example
|
|
317
|
+
|
|
318
|
+
```ts
|
|
319
|
+
import {
|
|
320
|
+
Configuration,
|
|
321
|
+
DefaultApi,
|
|
322
|
+
} from 'pmxtjs';
|
|
323
|
+
import type { FetchEventRequest } from 'pmxtjs';
|
|
324
|
+
|
|
325
|
+
async function example() {
|
|
326
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
327
|
+
const api = new DefaultApi();
|
|
328
|
+
|
|
329
|
+
const body = {
|
|
330
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
331
|
+
exchange: exchange_example,
|
|
332
|
+
// FetchEventsRequest (optional)
|
|
333
|
+
fetchEventsRequest: ...,
|
|
334
|
+
} satisfies FetchEventRequest;
|
|
335
|
+
|
|
336
|
+
try {
|
|
337
|
+
const data = await api.fetchEvent(body);
|
|
338
|
+
console.log(data);
|
|
339
|
+
} catch (error) {
|
|
340
|
+
console.error(error);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// Run the test
|
|
345
|
+
example().catch(console.error);
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Parameters
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
| Name | Type | Description | Notes |
|
|
352
|
+
|------------- | ------------- | ------------- | -------------|
|
|
353
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
354
|
+
| **fetchEventsRequest** | [FetchEventsRequest](FetchEventsRequest.md) | | [Optional] |
|
|
355
|
+
|
|
356
|
+
### Return type
|
|
357
|
+
|
|
358
|
+
[**FetchEvent200Response**](FetchEvent200Response.md)
|
|
359
|
+
|
|
360
|
+
### Authorization
|
|
361
|
+
|
|
362
|
+
No authorization required
|
|
363
|
+
|
|
364
|
+
### HTTP request headers
|
|
365
|
+
|
|
366
|
+
- **Content-Type**: `application/json`
|
|
367
|
+
- **Accept**: `application/json`
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### HTTP response details
|
|
371
|
+
| Status code | Description | Response headers |
|
|
372
|
+
|-------------|-------------|------------------|
|
|
373
|
+
| **200** | A single unified event | - |
|
|
374
|
+
| **404** | Event not found | - |
|
|
375
|
+
|
|
376
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
377
|
+
|
|
378
|
+
|
|
306
379
|
## fetchEvents
|
|
307
380
|
|
|
308
381
|
> FetchEvents200Response fetchEvents(exchange, fetchEventsRequest)
|
|
@@ -323,7 +396,7 @@ async function example() {
|
|
|
323
396
|
const api = new DefaultApi();
|
|
324
397
|
|
|
325
398
|
const body = {
|
|
326
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
399
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
327
400
|
exchange: exchange_example,
|
|
328
401
|
// FetchEventsRequest (optional)
|
|
329
402
|
fetchEventsRequest: ...,
|
|
@@ -346,7 +419,7 @@ example().catch(console.error);
|
|
|
346
419
|
|
|
347
420
|
| Name | Type | Description | Notes |
|
|
348
421
|
|------------- | ------------- | ------------- | -------------|
|
|
349
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
422
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
350
423
|
| **fetchEventsRequest** | [FetchEventsRequest](FetchEventsRequest.md) | | [Optional] |
|
|
351
424
|
|
|
352
425
|
### Return type
|
|
@@ -371,6 +444,77 @@ No authorization required
|
|
|
371
444
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
372
445
|
|
|
373
446
|
|
|
447
|
+
## fetchMarket
|
|
448
|
+
|
|
449
|
+
> FetchMarket200Response fetchMarket(exchange, fetchMarketsRequest)
|
|
450
|
+
|
|
451
|
+
Fetch Single Market
|
|
452
|
+
|
|
453
|
+
Fetch a single market by lookup parameters. Returns the first matching market or a 404 error if no market is found. Convenience wrapper around fetchMarkets.
|
|
454
|
+
|
|
455
|
+
### Example
|
|
456
|
+
|
|
457
|
+
```ts
|
|
458
|
+
import {
|
|
459
|
+
Configuration,
|
|
460
|
+
DefaultApi,
|
|
461
|
+
} from 'pmxtjs';
|
|
462
|
+
import type { FetchMarketRequest } from 'pmxtjs';
|
|
463
|
+
|
|
464
|
+
async function example() {
|
|
465
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
466
|
+
const api = new DefaultApi();
|
|
467
|
+
|
|
468
|
+
const body = {
|
|
469
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
470
|
+
exchange: exchange_example,
|
|
471
|
+
// FetchMarketsRequest (optional)
|
|
472
|
+
fetchMarketsRequest: ...,
|
|
473
|
+
} satisfies FetchMarketRequest;
|
|
474
|
+
|
|
475
|
+
try {
|
|
476
|
+
const data = await api.fetchMarket(body);
|
|
477
|
+
console.log(data);
|
|
478
|
+
} catch (error) {
|
|
479
|
+
console.error(error);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// Run the test
|
|
484
|
+
example().catch(console.error);
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
| Name | Type | Description | Notes |
|
|
491
|
+
|------------- | ------------- | ------------- | -------------|
|
|
492
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
493
|
+
| **fetchMarketsRequest** | [FetchMarketsRequest](FetchMarketsRequest.md) | | [Optional] |
|
|
494
|
+
|
|
495
|
+
### Return type
|
|
496
|
+
|
|
497
|
+
[**FetchMarket200Response**](FetchMarket200Response.md)
|
|
498
|
+
|
|
499
|
+
### Authorization
|
|
500
|
+
|
|
501
|
+
No authorization required
|
|
502
|
+
|
|
503
|
+
### HTTP request headers
|
|
504
|
+
|
|
505
|
+
- **Content-Type**: `application/json`
|
|
506
|
+
- **Accept**: `application/json`
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
### HTTP response details
|
|
510
|
+
| Status code | Description | Response headers |
|
|
511
|
+
|-------------|-------------|------------------|
|
|
512
|
+
| **200** | A single unified market | - |
|
|
513
|
+
| **404** | Market not found | - |
|
|
514
|
+
|
|
515
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
516
|
+
|
|
517
|
+
|
|
374
518
|
## fetchMarkets
|
|
375
519
|
|
|
376
520
|
> FetchMarkets200Response fetchMarkets(exchange, fetchMarketsRequest)
|
|
@@ -391,7 +535,7 @@ async function example() {
|
|
|
391
535
|
const api = new DefaultApi();
|
|
392
536
|
|
|
393
537
|
const body = {
|
|
394
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
538
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
395
539
|
exchange: exchange_example,
|
|
396
540
|
// FetchMarketsRequest (optional)
|
|
397
541
|
fetchMarketsRequest: ...,
|
|
@@ -414,7 +558,7 @@ example().catch(console.error);
|
|
|
414
558
|
|
|
415
559
|
| Name | Type | Description | Notes |
|
|
416
560
|
|------------- | ------------- | ------------- | -------------|
|
|
417
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
561
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
418
562
|
| **fetchMarketsRequest** | [FetchMarketsRequest](FetchMarketsRequest.md) | | [Optional] |
|
|
419
563
|
|
|
420
564
|
### Return type
|
|
@@ -459,7 +603,7 @@ async function example() {
|
|
|
459
603
|
const api = new DefaultApi();
|
|
460
604
|
|
|
461
605
|
const body = {
|
|
462
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
606
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
463
607
|
exchange: exchange_example,
|
|
464
608
|
// FetchOHLCVRequest (optional)
|
|
465
609
|
fetchOHLCVRequest: ...,
|
|
@@ -482,7 +626,7 @@ example().catch(console.error);
|
|
|
482
626
|
|
|
483
627
|
| Name | Type | Description | Notes |
|
|
484
628
|
|------------- | ------------- | ------------- | -------------|
|
|
485
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
629
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
486
630
|
| **fetchOHLCVRequest** | [FetchOHLCVRequest](FetchOHLCVRequest.md) | | [Optional] |
|
|
487
631
|
|
|
488
632
|
### Return type
|
|
@@ -527,7 +671,7 @@ async function example() {
|
|
|
527
671
|
const api = new DefaultApi();
|
|
528
672
|
|
|
529
673
|
const body = {
|
|
530
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
674
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
531
675
|
exchange: exchange_example,
|
|
532
676
|
// FetchOpenOrdersRequest (optional)
|
|
533
677
|
fetchOpenOrdersRequest: ...,
|
|
@@ -550,7 +694,7 @@ example().catch(console.error);
|
|
|
550
694
|
|
|
551
695
|
| Name | Type | Description | Notes |
|
|
552
696
|
|------------- | ------------- | ------------- | -------------|
|
|
553
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
697
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
554
698
|
| **fetchOpenOrdersRequest** | [FetchOpenOrdersRequest](FetchOpenOrdersRequest.md) | | [Optional] |
|
|
555
699
|
|
|
556
700
|
### Return type
|
|
@@ -595,7 +739,7 @@ async function example() {
|
|
|
595
739
|
const api = new DefaultApi();
|
|
596
740
|
|
|
597
741
|
const body = {
|
|
598
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
742
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
599
743
|
exchange: exchange_example,
|
|
600
744
|
// CancelOrderRequest (optional)
|
|
601
745
|
cancelOrderRequest: ...,
|
|
@@ -618,7 +762,7 @@ example().catch(console.error);
|
|
|
618
762
|
|
|
619
763
|
| Name | Type | Description | Notes |
|
|
620
764
|
|------------- | ------------- | ------------- | -------------|
|
|
621
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
765
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
622
766
|
| **cancelOrderRequest** | [CancelOrderRequest](CancelOrderRequest.md) | | [Optional] |
|
|
623
767
|
|
|
624
768
|
### Return type
|
|
@@ -663,7 +807,7 @@ async function example() {
|
|
|
663
807
|
const api = new DefaultApi();
|
|
664
808
|
|
|
665
809
|
const body = {
|
|
666
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
810
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
667
811
|
exchange: exchange_example,
|
|
668
812
|
// FetchOrderBookRequest (optional)
|
|
669
813
|
fetchOrderBookRequest: ...,
|
|
@@ -686,7 +830,7 @@ example().catch(console.error);
|
|
|
686
830
|
|
|
687
831
|
| Name | Type | Description | Notes |
|
|
688
832
|
|------------- | ------------- | ------------- | -------------|
|
|
689
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
833
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
690
834
|
| **fetchOrderBookRequest** | [FetchOrderBookRequest](FetchOrderBookRequest.md) | | [Optional] |
|
|
691
835
|
|
|
692
836
|
### Return type
|
|
@@ -731,7 +875,7 @@ async function example() {
|
|
|
731
875
|
const api = new DefaultApi();
|
|
732
876
|
|
|
733
877
|
const body = {
|
|
734
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
878
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
735
879
|
exchange: exchange_example,
|
|
736
880
|
// FetchPositionsRequest (optional)
|
|
737
881
|
fetchPositionsRequest: ...,
|
|
@@ -754,7 +898,7 @@ example().catch(console.error);
|
|
|
754
898
|
|
|
755
899
|
| Name | Type | Description | Notes |
|
|
756
900
|
|------------- | ------------- | ------------- | -------------|
|
|
757
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
901
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
758
902
|
| **fetchPositionsRequest** | [FetchPositionsRequest](FetchPositionsRequest.md) | | [Optional] |
|
|
759
903
|
|
|
760
904
|
### Return type
|
|
@@ -799,7 +943,7 @@ async function example() {
|
|
|
799
943
|
const api = new DefaultApi();
|
|
800
944
|
|
|
801
945
|
const body = {
|
|
802
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
946
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
803
947
|
exchange: exchange_example,
|
|
804
948
|
// FetchTradesRequest (optional)
|
|
805
949
|
fetchTradesRequest: ...,
|
|
@@ -822,7 +966,7 @@ example().catch(console.error);
|
|
|
822
966
|
|
|
823
967
|
| Name | Type | Description | Notes |
|
|
824
968
|
|------------- | ------------- | ------------- | -------------|
|
|
825
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
969
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
826
970
|
| **fetchTradesRequest** | [FetchTradesRequest](FetchTradesRequest.md) | | [Optional] |
|
|
827
971
|
|
|
828
972
|
### Return type
|
|
@@ -869,7 +1013,7 @@ async function example() {
|
|
|
869
1013
|
const api = new DefaultApi();
|
|
870
1014
|
|
|
871
1015
|
const body = {
|
|
872
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1016
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
873
1017
|
exchange: exchange_example,
|
|
874
1018
|
// FilterEventsRequest (optional)
|
|
875
1019
|
filterEventsRequest: ...,
|
|
@@ -892,7 +1036,7 @@ example().catch(console.error);
|
|
|
892
1036
|
|
|
893
1037
|
| Name | Type | Description | Notes |
|
|
894
1038
|
|------------- | ------------- | ------------- | -------------|
|
|
895
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1039
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
896
1040
|
| **filterEventsRequest** | [FilterEventsRequest](FilterEventsRequest.md) | | [Optional] |
|
|
897
1041
|
|
|
898
1042
|
### Return type
|
|
@@ -939,7 +1083,7 @@ async function example() {
|
|
|
939
1083
|
const api = new DefaultApi();
|
|
940
1084
|
|
|
941
1085
|
const body = {
|
|
942
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1086
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
943
1087
|
exchange: exchange_example,
|
|
944
1088
|
// FilterMarketsRequest (optional)
|
|
945
1089
|
filterMarketsRequest: ...,
|
|
@@ -962,7 +1106,7 @@ example().catch(console.error);
|
|
|
962
1106
|
|
|
963
1107
|
| Name | Type | Description | Notes |
|
|
964
1108
|
|------------- | ------------- | ------------- | -------------|
|
|
965
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1109
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
966
1110
|
| **filterMarketsRequest** | [FilterMarketsRequest](FilterMarketsRequest.md) | | [Optional] |
|
|
967
1111
|
|
|
968
1112
|
### Return type
|
|
@@ -1007,7 +1151,7 @@ async function example() {
|
|
|
1007
1151
|
const api = new DefaultApi();
|
|
1008
1152
|
|
|
1009
1153
|
const body = {
|
|
1010
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1154
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1011
1155
|
exchange: exchange_example,
|
|
1012
1156
|
// GetExecutionPriceRequest (optional)
|
|
1013
1157
|
getExecutionPriceRequest: ...,
|
|
@@ -1030,7 +1174,7 @@ example().catch(console.error);
|
|
|
1030
1174
|
|
|
1031
1175
|
| Name | Type | Description | Notes |
|
|
1032
1176
|
|------------- | ------------- | ------------- | -------------|
|
|
1033
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1177
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1034
1178
|
| **getExecutionPriceRequest** | [GetExecutionPriceRequest](GetExecutionPriceRequest.md) | | [Optional] |
|
|
1035
1179
|
|
|
1036
1180
|
### Return type
|
|
@@ -1075,7 +1219,7 @@ async function example() {
|
|
|
1075
1219
|
const api = new DefaultApi();
|
|
1076
1220
|
|
|
1077
1221
|
const body = {
|
|
1078
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1222
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1079
1223
|
exchange: exchange_example,
|
|
1080
1224
|
// GetExecutionPriceRequest (optional)
|
|
1081
1225
|
getExecutionPriceRequest: ...,
|
|
@@ -1098,7 +1242,7 @@ example().catch(console.error);
|
|
|
1098
1242
|
|
|
1099
1243
|
| Name | Type | Description | Notes |
|
|
1100
1244
|
|------------- | ------------- | ------------- | -------------|
|
|
1101
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1245
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1102
1246
|
| **getExecutionPriceRequest** | [GetExecutionPriceRequest](GetExecutionPriceRequest.md) | | [Optional] |
|
|
1103
1247
|
|
|
1104
1248
|
### Return type
|
|
@@ -1202,7 +1346,7 @@ async function example() {
|
|
|
1202
1346
|
const api = new DefaultApi();
|
|
1203
1347
|
|
|
1204
1348
|
const body = {
|
|
1205
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1349
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1206
1350
|
exchange: exchange_example,
|
|
1207
1351
|
// WatchOrderBookRequest (optional)
|
|
1208
1352
|
watchOrderBookRequest: ...,
|
|
@@ -1225,7 +1369,7 @@ example().catch(console.error);
|
|
|
1225
1369
|
|
|
1226
1370
|
| Name | Type | Description | Notes |
|
|
1227
1371
|
|------------- | ------------- | ------------- | -------------|
|
|
1228
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1372
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1229
1373
|
| **watchOrderBookRequest** | [WatchOrderBookRequest](WatchOrderBookRequest.md) | | [Optional] |
|
|
1230
1374
|
|
|
1231
1375
|
### Return type
|
|
@@ -1270,7 +1414,7 @@ async function example() {
|
|
|
1270
1414
|
const api = new DefaultApi();
|
|
1271
1415
|
|
|
1272
1416
|
const body = {
|
|
1273
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1417
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1274
1418
|
exchange: exchange_example,
|
|
1275
1419
|
// WatchPricesRequest (optional)
|
|
1276
1420
|
watchPricesRequest: ...,
|
|
@@ -1293,7 +1437,7 @@ example().catch(console.error);
|
|
|
1293
1437
|
|
|
1294
1438
|
| Name | Type | Description | Notes |
|
|
1295
1439
|
|------------- | ------------- | ------------- | -------------|
|
|
1296
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1440
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1297
1441
|
| **watchPricesRequest** | [WatchPricesRequest](WatchPricesRequest.md) | | [Optional] |
|
|
1298
1442
|
|
|
1299
1443
|
### Return type
|
|
@@ -1340,7 +1484,7 @@ async function example() {
|
|
|
1340
1484
|
const api = new DefaultApi();
|
|
1341
1485
|
|
|
1342
1486
|
const body = {
|
|
1343
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1487
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1344
1488
|
exchange: exchange_example,
|
|
1345
1489
|
// WatchTradesRequest (optional)
|
|
1346
1490
|
watchTradesRequest: ...,
|
|
@@ -1363,7 +1507,7 @@ example().catch(console.error);
|
|
|
1363
1507
|
|
|
1364
1508
|
| Name | Type | Description | Notes |
|
|
1365
1509
|
|------------- | ------------- | ------------- | -------------|
|
|
1366
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1510
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1367
1511
|
| **watchTradesRequest** | [WatchTradesRequest](WatchTradesRequest.md) | | [Optional] |
|
|
1368
1512
|
|
|
1369
1513
|
### Return type
|
|
@@ -1408,7 +1552,7 @@ async function example() {
|
|
|
1408
1552
|
const api = new DefaultApi();
|
|
1409
1553
|
|
|
1410
1554
|
const body = {
|
|
1411
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1555
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1412
1556
|
exchange: exchange_example,
|
|
1413
1557
|
// WatchUserPositionsRequest (optional)
|
|
1414
1558
|
watchUserPositionsRequest: ...,
|
|
@@ -1431,7 +1575,7 @@ example().catch(console.error);
|
|
|
1431
1575
|
|
|
1432
1576
|
| Name | Type | Description | Notes |
|
|
1433
1577
|
|------------- | ------------- | ------------- | -------------|
|
|
1434
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1578
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1435
1579
|
| **watchUserPositionsRequest** | [WatchUserPositionsRequest](WatchUserPositionsRequest.md) | | [Optional] |
|
|
1436
1580
|
|
|
1437
1581
|
### Return type
|
|
@@ -1476,7 +1620,7 @@ async function example() {
|
|
|
1476
1620
|
const api = new DefaultApi();
|
|
1477
1621
|
|
|
1478
1622
|
const body = {
|
|
1479
|
-
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | The prediction market exchange to target.
|
|
1623
|
+
// 'polymarket' | 'kalshi' | 'limitless' | 'probable' | 'baozi' | 'myriad' | The prediction market exchange to target.
|
|
1480
1624
|
exchange: exchange_example,
|
|
1481
1625
|
// WatchUserPositionsRequest (optional)
|
|
1482
1626
|
watchUserPositionsRequest: ...,
|
|
@@ -1499,7 +1643,7 @@ example().catch(console.error);
|
|
|
1499
1643
|
|
|
1500
1644
|
| Name | Type | Description | Notes |
|
|
1501
1645
|
|------------- | ------------- | ------------- | -------------|
|
|
1502
|
-
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable] |
|
|
1646
|
+
| **exchange** | `polymarket`, `kalshi`, `limitless`, `probable`, `baozi`, `myriad` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, limitless, probable, baozi, myriad] |
|
|
1503
1647
|
| **watchUserPositionsRequest** | [WatchUserPositionsRequest](WatchUserPositionsRequest.md) | | [Optional] |
|
|
1504
1648
|
|
|
1505
1649
|
### Return type
|
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`offset` | number
|
|
12
12
|
`status` | string
|
|
13
13
|
`searchIn` | string
|
|
14
|
+
`eventId` | string
|
|
15
|
+
`slug` | string
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"offset": null,
|
|
25
27
|
"status": null,
|
|
26
28
|
"searchIn": null,
|
|
29
|
+
"eventId": null,
|
|
30
|
+
"slug": null,
|
|
27
31
|
} satisfies EventFetchParams
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# FetchEvent200Response
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -8,19 +8,19 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`success` | boolean
|
|
10
10
|
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
|
-
`data` | [
|
|
11
|
+
`data` | [UnifiedEvent](UnifiedEvent.md)
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { FetchEvent200Response } from 'pmxtjs'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
20
|
"success": true,
|
|
21
21
|
"error": null,
|
|
22
22
|
"data": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies FetchEvent200Response
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as FetchEvent200Response
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# FetchMarket200Response
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`success` | boolean
|
|
10
|
+
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
|
+
`data` | [UnifiedMarket](UnifiedMarket.md)
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
14
15
|
```typescript
|
|
15
|
-
import type {
|
|
16
|
+
import type { FetchMarket200Response } from 'pmxtjs'
|
|
16
17
|
|
|
17
18
|
// TODO: Update the object below with actual values
|
|
18
19
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
20
|
+
"success": true,
|
|
21
|
+
"error": null,
|
|
22
|
+
"data": null,
|
|
23
|
+
} satisfies FetchMarket200Response
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
|
24
26
|
|
|
@@ -27,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
29
|
console.log(exampleJSON)
|
|
28
30
|
|
|
29
31
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as FetchMarket200Response
|
|
31
33
|
console.log(exampleParsed)
|
|
32
34
|
```
|
|
33
35
|
|
|
@@ -13,6 +13,9 @@ Name | Type
|
|
|
13
13
|
`searchIn` | string
|
|
14
14
|
`query` | string
|
|
15
15
|
`slug` | string
|
|
16
|
+
`marketId` | string
|
|
17
|
+
`outcomeId` | string
|
|
18
|
+
`eventId` | string
|
|
16
19
|
`page` | number
|
|
17
20
|
`similarityThreshold` | number
|
|
18
21
|
|
|
@@ -30,6 +33,9 @@ const example = {
|
|
|
30
33
|
"searchIn": null,
|
|
31
34
|
"query": null,
|
|
32
35
|
"slug": null,
|
|
36
|
+
"marketId": null,
|
|
37
|
+
"outcomeId": null,
|
|
38
|
+
"eventId": null,
|
|
33
39
|
"page": null,
|
|
34
40
|
"similarityThreshold": null,
|
|
35
41
|
} satisfies MarketFilterParams
|