pmxtjs 2.42.7 → 2.43.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 +120 -4
- package/dist/esm/generated/src/apis/DefaultApi.js +136 -5
- package/dist/esm/generated/src/models/FetchOrderBooks200Response.d.ts +48 -0
- package/dist/esm/generated/src/models/FetchOrderBooks200Response.js +48 -0
- package/dist/esm/generated/src/models/FetchOrderBooksRequest.d.ts +39 -0
- package/dist/esm/generated/src/models/FetchOrderBooksRequest.js +46 -0
- package/dist/esm/generated/src/models/OrderBook.d.ts +6 -0
- package/dist/esm/generated/src/models/OrderBook.js +2 -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/index.d.ts +5 -2
- package/dist/esm/index.js +5 -2
- package/dist/esm/pmxt/client.d.ts +45 -3
- package/dist/esm/pmxt/client.js +97 -5
- package/dist/esm/pmxt/models.d.ts +3 -1
- package/dist/generated/src/apis/DefaultApi.d.ts +120 -4
- package/dist/generated/src/apis/DefaultApi.js +137 -6
- package/dist/generated/src/models/FetchOrderBooks200Response.d.ts +48 -0
- package/dist/generated/src/models/FetchOrderBooks200Response.js +55 -0
- package/dist/generated/src/models/FetchOrderBooksRequest.d.ts +39 -0
- package/dist/generated/src/models/FetchOrderBooksRequest.js +53 -0
- package/dist/generated/src/models/OrderBook.d.ts +6 -0
- package/dist/generated/src/models/OrderBook.js +2 -0
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +7 -1
- package/dist/pmxt/client.d.ts +45 -3
- package/dist/pmxt/client.js +101 -6
- package/dist/pmxt/models.d.ts +3 -1
- package/generated/.openapi-generator/FILES +4 -0
- package/generated/docs/DefaultApi.md +130 -59
- package/generated/docs/FetchOrderBooks200Response.md +38 -0
- package/generated/docs/FetchOrderBooksRequest.md +36 -0
- package/generated/docs/GetExecutionPriceRequestArgsInner.md +2 -0
- package/generated/docs/OrderBook.md +2 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +160 -5
- package/generated/src/models/FetchOrderBooks200Response.ts +96 -0
- package/generated/src/models/FetchOrderBooksRequest.ts +82 -0
- package/generated/src/models/OrderBook.ts +8 -0
- package/generated/src/models/index.ts +2 -0
- package/index.ts +5 -2
- package/package.json +2 -2
- package/pmxt/client.ts +105 -11
- package/pmxt/models.ts +4 -1
|
@@ -29,6 +29,7 @@ All URIs are relative to *http://localhost:3847*
|
|
|
29
29
|
| [**fetchOpenOrders**](DefaultApi.md#fetchopenorders) | **GET** /api/{exchange}/fetchOpenOrders | Fetch Open Orders |
|
|
30
30
|
| [**fetchOrder**](DefaultApi.md#fetchorder) | **GET** /api/{exchange}/fetchOrder | Fetch Order |
|
|
31
31
|
| [**fetchOrderBook**](DefaultApi.md#fetchorderbook) | **GET** /api/{exchange}/fetchOrderBook | Fetch Order Book |
|
|
32
|
+
| [**fetchOrderBooks**](DefaultApi.md#fetchorderbooksoperation) | **POST** /api/{exchange}/fetchOrderBooks | Fetch Order Books |
|
|
32
33
|
| [**fetchPositions**](DefaultApi.md#fetchpositions) | **GET** /api/{exchange}/fetchPositions | Fetch Positions |
|
|
33
34
|
| [**fetchRelatedMarkets**](DefaultApi.md#fetchrelatedmarkets) | **GET** /api/{exchange}/fetchRelatedMarkets | Find Related Markets |
|
|
34
35
|
| [**fetchTrades**](DefaultApi.md#fetchtrades) | **GET** /api/{exchange}/fetchTrades | Fetch Trades |
|
|
@@ -65,7 +66,7 @@ async function example() {
|
|
|
65
66
|
const api = new DefaultApi();
|
|
66
67
|
|
|
67
68
|
const body = {
|
|
68
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
69
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
69
70
|
exchange: exchange_example,
|
|
70
71
|
// BuildOrderRequest (optional)
|
|
71
72
|
buildOrderRequest: ...,
|
|
@@ -88,7 +89,7 @@ example().catch(console.error);
|
|
|
88
89
|
|
|
89
90
|
| Name | Type | Description | Notes |
|
|
90
91
|
|------------- | ------------- | ------------- | -------------|
|
|
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] |
|
|
92
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
92
93
|
| **buildOrderRequest** | [BuildOrderRequest](BuildOrderRequest.md) | | [Optional] |
|
|
93
94
|
|
|
94
95
|
### Return type
|
|
@@ -135,7 +136,7 @@ async function example() {
|
|
|
135
136
|
const api = new DefaultApi();
|
|
136
137
|
|
|
137
138
|
const body = {
|
|
138
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
139
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
139
140
|
exchange: exchange_example,
|
|
140
141
|
// CancelOrderRequest (optional)
|
|
141
142
|
cancelOrderRequest: ...,
|
|
@@ -158,7 +159,7 @@ example().catch(console.error);
|
|
|
158
159
|
|
|
159
160
|
| Name | Type | Description | Notes |
|
|
160
161
|
|------------- | ------------- | ------------- | -------------|
|
|
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] |
|
|
162
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
162
163
|
| **cancelOrderRequest** | [CancelOrderRequest](CancelOrderRequest.md) | | [Optional] |
|
|
163
164
|
|
|
164
165
|
### Return type
|
|
@@ -203,7 +204,7 @@ async function example() {
|
|
|
203
204
|
const api = new DefaultApi();
|
|
204
205
|
|
|
205
206
|
const body = {
|
|
206
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
207
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
207
208
|
exchange: exchange_example,
|
|
208
209
|
// CloseRequest (optional)
|
|
209
210
|
closeRequest: ...,
|
|
@@ -226,7 +227,7 @@ example().catch(console.error);
|
|
|
226
227
|
|
|
227
228
|
| Name | Type | Description | Notes |
|
|
228
229
|
|------------- | ------------- | ------------- | -------------|
|
|
229
|
-
| **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] |
|
|
230
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
230
231
|
| **closeRequest** | [CloseRequest](CloseRequest.md) | | [Optional] |
|
|
231
232
|
|
|
232
233
|
### Return type
|
|
@@ -343,7 +344,7 @@ async function example() {
|
|
|
343
344
|
const api = new DefaultApi();
|
|
344
345
|
|
|
345
346
|
const body = {
|
|
346
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
347
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
347
348
|
exchange: exchange_example,
|
|
348
349
|
// CreateOrderRequest (optional)
|
|
349
350
|
createOrderRequest: ...,
|
|
@@ -366,7 +367,7 @@ example().catch(console.error);
|
|
|
366
367
|
|
|
367
368
|
| Name | Type | Description | Notes |
|
|
368
369
|
|------------- | ------------- | ------------- | -------------|
|
|
369
|
-
| **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] |
|
|
370
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
370
371
|
| **createOrderRequest** | [CreateOrderRequest](CreateOrderRequest.md) | | [Optional] |
|
|
371
372
|
|
|
372
373
|
### Return type
|
|
@@ -411,7 +412,7 @@ async function example() {
|
|
|
411
412
|
const api = new DefaultApi();
|
|
412
413
|
|
|
413
414
|
const body = {
|
|
414
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
415
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
415
416
|
exchange: exchange_example,
|
|
416
417
|
// string | required for Limitless (slug) (optional)
|
|
417
418
|
marketId: marketId_example,
|
|
@@ -442,7 +443,7 @@ example().catch(console.error);
|
|
|
442
443
|
|
|
443
444
|
| Name | Type | Description | Notes |
|
|
444
445
|
|------------- | ------------- | ------------- | -------------|
|
|
445
|
-
| **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] |
|
|
446
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
446
447
|
| **marketId** | `string` | required for Limitless (slug) | [Optional] [Defaults to `undefined`] |
|
|
447
448
|
| **since** | `Date` | Only return records after this date | [Optional] [Defaults to `undefined`] |
|
|
448
449
|
| **until** | `Date` | Only return records before this date | [Optional] [Defaults to `undefined`] |
|
|
@@ -570,7 +571,7 @@ async function example() {
|
|
|
570
571
|
const api = new DefaultApi();
|
|
571
572
|
|
|
572
573
|
const body = {
|
|
573
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
574
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
574
575
|
exchange: exchange_example,
|
|
575
576
|
// string (optional)
|
|
576
577
|
address: address_example,
|
|
@@ -593,7 +594,7 @@ example().catch(console.error);
|
|
|
593
594
|
|
|
594
595
|
| Name | Type | Description | Notes |
|
|
595
596
|
|------------- | ------------- | ------------- | -------------|
|
|
596
|
-
| **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] |
|
|
597
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
597
598
|
| **address** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
598
599
|
|
|
599
600
|
### Return type
|
|
@@ -638,7 +639,7 @@ async function example() {
|
|
|
638
639
|
const api = new DefaultApi();
|
|
639
640
|
|
|
640
641
|
const body = {
|
|
641
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
642
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
642
643
|
exchange: exchange_example,
|
|
643
644
|
// string | required for Limitless (slug) (optional)
|
|
644
645
|
marketId: marketId_example,
|
|
@@ -669,7 +670,7 @@ example().catch(console.error);
|
|
|
669
670
|
|
|
670
671
|
| Name | Type | Description | Notes |
|
|
671
672
|
|------------- | ------------- | ------------- | -------------|
|
|
672
|
-
| **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] |
|
|
673
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
673
674
|
| **marketId** | `string` | required for Limitless (slug) | [Optional] [Defaults to `undefined`] |
|
|
674
675
|
| **since** | `Date` | Only return records after this date | [Optional] [Defaults to `undefined`] |
|
|
675
676
|
| **until** | `Date` | Only return records before this date | [Optional] [Defaults to `undefined`] |
|
|
@@ -720,7 +721,7 @@ async function example() {
|
|
|
720
721
|
const api = new DefaultApi();
|
|
721
722
|
|
|
722
723
|
const body = {
|
|
723
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
724
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
724
725
|
exchange: exchange_example,
|
|
725
726
|
// string | For keyword search (optional)
|
|
726
727
|
query: query_example,
|
|
@@ -763,7 +764,7 @@ example().catch(console.error);
|
|
|
763
764
|
|
|
764
765
|
| Name | Type | Description | Notes |
|
|
765
766
|
|------------- | ------------- | ------------- | -------------|
|
|
766
|
-
| **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] |
|
|
767
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
767
768
|
| **query** | `string` | For keyword search | [Optional] [Defaults to `undefined`] |
|
|
768
769
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
769
770
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
@@ -914,7 +915,7 @@ async function example() {
|
|
|
914
915
|
const api = new DefaultApi();
|
|
915
916
|
|
|
916
917
|
const body = {
|
|
917
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
918
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
918
919
|
exchange: exchange_example,
|
|
919
920
|
// string | For keyword search (optional)
|
|
920
921
|
query: query_example,
|
|
@@ -957,7 +958,7 @@ example().catch(console.error);
|
|
|
957
958
|
|
|
958
959
|
| Name | Type | Description | Notes |
|
|
959
960
|
|------------- | ------------- | ------------- | -------------|
|
|
960
|
-
| **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] |
|
|
961
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
961
962
|
| **query** | `string` | For keyword search | [Optional] [Defaults to `undefined`] |
|
|
962
963
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
963
964
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
@@ -1014,7 +1015,7 @@ async function example() {
|
|
|
1014
1015
|
const api = new DefaultApi();
|
|
1015
1016
|
|
|
1016
1017
|
const body = {
|
|
1017
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1018
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1018
1019
|
exchange: exchange_example,
|
|
1019
1020
|
// number (optional)
|
|
1020
1021
|
limit: 8.14,
|
|
@@ -1041,7 +1042,7 @@ example().catch(console.error);
|
|
|
1041
1042
|
|
|
1042
1043
|
| Name | Type | Description | Notes |
|
|
1043
1044
|
|------------- | ------------- | ------------- | -------------|
|
|
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
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1045
1046
|
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1046
1047
|
| **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1047
1048
|
| **filter** | [](.md) | | [Optional] [Defaults to `undefined`] |
|
|
@@ -1191,7 +1192,7 @@ async function example() {
|
|
|
1191
1192
|
const api = new DefaultApi();
|
|
1192
1193
|
|
|
1193
1194
|
const body = {
|
|
1194
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1195
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1195
1196
|
exchange: exchange_example,
|
|
1196
1197
|
// number | Maximum number of results to return (optional)
|
|
1197
1198
|
limit: 8.14,
|
|
@@ -1236,7 +1237,7 @@ example().catch(console.error);
|
|
|
1236
1237
|
|
|
1237
1238
|
| Name | Type | Description | Notes |
|
|
1238
1239
|
|------------- | ------------- | ------------- | -------------|
|
|
1239
|
-
| **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] |
|
|
1240
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1240
1241
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
1241
1242
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
1242
1243
|
| **sort** | `volume`, `liquidity`, `newest` | Sort order for results | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
@@ -1397,7 +1398,7 @@ async function example() {
|
|
|
1397
1398
|
const api = new DefaultApi();
|
|
1398
1399
|
|
|
1399
1400
|
const body = {
|
|
1400
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1401
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1401
1402
|
exchange: exchange_example,
|
|
1402
1403
|
// number | Maximum number of results to return (optional)
|
|
1403
1404
|
limit: 8.14,
|
|
@@ -1442,7 +1443,7 @@ example().catch(console.error);
|
|
|
1442
1443
|
|
|
1443
1444
|
| Name | Type | Description | Notes |
|
|
1444
1445
|
|------------- | ------------- | ------------- | -------------|
|
|
1445
|
-
| **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] |
|
|
1446
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1446
1447
|
| **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
|
|
1447
1448
|
| **offset** | `number` | Pagination offset — number of results to skip | [Optional] [Defaults to `undefined`] |
|
|
1448
1449
|
| **sort** | `volume`, `liquidity`, `newest` | Sort order for results | [Optional] [Defaults to `undefined`] [Enum: volume, liquidity, newest] |
|
|
@@ -1500,7 +1501,7 @@ async function example() {
|
|
|
1500
1501
|
const api = new DefaultApi();
|
|
1501
1502
|
|
|
1502
1503
|
const body = {
|
|
1503
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1504
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1504
1505
|
exchange: exchange_example,
|
|
1505
1506
|
// number (optional)
|
|
1506
1507
|
limit: 8.14,
|
|
@@ -1527,7 +1528,7 @@ example().catch(console.error);
|
|
|
1527
1528
|
|
|
1528
1529
|
| Name | Type | Description | Notes |
|
|
1529
1530
|
|------------- | ------------- | ------------- | -------------|
|
|
1530
|
-
| **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] |
|
|
1531
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1531
1532
|
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
1532
1533
|
| **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1533
1534
|
| **filter** | [](.md) | | [Optional] [Defaults to `undefined`] |
|
|
@@ -1728,7 +1729,7 @@ async function example() {
|
|
|
1728
1729
|
const api = new DefaultApi();
|
|
1729
1730
|
|
|
1730
1731
|
const body = {
|
|
1731
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1732
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1732
1733
|
exchange: exchange_example,
|
|
1733
1734
|
// string | filter to specific outcome/ticker (optional)
|
|
1734
1735
|
outcomeId: outcomeId_example,
|
|
@@ -1761,7 +1762,7 @@ example().catch(console.error);
|
|
|
1761
1762
|
|
|
1762
1763
|
| Name | Type | Description | Notes |
|
|
1763
1764
|
|------------- | ------------- | ------------- | -------------|
|
|
1764
|
-
| **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] |
|
|
1765
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1765
1766
|
| **outcomeId** | `string` | filter to specific outcome/ticker | [Optional] [Defaults to `undefined`] |
|
|
1766
1767
|
| **marketId** | `string` | filter to specific market | [Optional] [Defaults to `undefined`] |
|
|
1767
1768
|
| **since** | `Date` | Only return records after this date | [Optional] [Defaults to `undefined`] |
|
|
@@ -1813,7 +1814,7 @@ async function example() {
|
|
|
1813
1814
|
const api = new DefaultApi();
|
|
1814
1815
|
|
|
1815
1816
|
const body = {
|
|
1816
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1817
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1817
1818
|
exchange: exchange_example,
|
|
1818
1819
|
// string
|
|
1819
1820
|
outcomeId: outcomeId_example,
|
|
@@ -1844,7 +1845,7 @@ example().catch(console.error);
|
|
|
1844
1845
|
|
|
1845
1846
|
| Name | Type | Description | Notes |
|
|
1846
1847
|
|------------- | ------------- | ------------- | -------------|
|
|
1847
|
-
| **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] |
|
|
1848
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1848
1849
|
| **outcomeId** | `string` | | [Defaults to `undefined`] |
|
|
1849
1850
|
| **resolution** | `string` | Required for candle aggregation | [Optional] [Defaults to `undefined`] |
|
|
1850
1851
|
| **start** | `Date` | Start of the time range | [Optional] [Defaults to `undefined`] |
|
|
@@ -1895,7 +1896,7 @@ async function example() {
|
|
|
1895
1896
|
const api = new DefaultApi();
|
|
1896
1897
|
|
|
1897
1898
|
const body = {
|
|
1898
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1899
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1899
1900
|
exchange: exchange_example,
|
|
1900
1901
|
// string (optional)
|
|
1901
1902
|
marketId: marketId_example,
|
|
@@ -1918,7 +1919,7 @@ example().catch(console.error);
|
|
|
1918
1919
|
|
|
1919
1920
|
| Name | Type | Description | Notes |
|
|
1920
1921
|
|------------- | ------------- | ------------- | -------------|
|
|
1921
|
-
| **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] |
|
|
1922
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1922
1923
|
| **marketId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
1923
1924
|
|
|
1924
1925
|
### Return type
|
|
@@ -1965,7 +1966,7 @@ async function example() {
|
|
|
1965
1966
|
const api = new DefaultApi();
|
|
1966
1967
|
|
|
1967
1968
|
const body = {
|
|
1968
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
1969
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
1969
1970
|
exchange: exchange_example,
|
|
1970
1971
|
// string
|
|
1971
1972
|
orderId: orderId_example,
|
|
@@ -1988,7 +1989,7 @@ example().catch(console.error);
|
|
|
1988
1989
|
|
|
1989
1990
|
| Name | Type | Description | Notes |
|
|
1990
1991
|
|------------- | ------------- | ------------- | -------------|
|
|
1991
|
-
| **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] |
|
|
1992
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
1992
1993
|
| **orderId** | `string` | | [Defaults to `undefined`] |
|
|
1993
1994
|
|
|
1994
1995
|
### Return type
|
|
@@ -2015,11 +2016,11 @@ No authorization required
|
|
|
2015
2016
|
|
|
2016
2017
|
## fetchOrderBook
|
|
2017
2018
|
|
|
2018
|
-
> FetchOrderBook200Response fetchOrderBook(exchange, outcomeId,
|
|
2019
|
+
> FetchOrderBook200Response fetchOrderBook(exchange, outcomeId, limit)
|
|
2019
2020
|
|
|
2020
2021
|
Fetch Order Book
|
|
2021
2022
|
|
|
2022
|
-
Fetch the
|
|
2023
|
+
Fetch the order book (bids/asks) for a specific outcome.
|
|
2023
2024
|
|
|
2024
2025
|
### Example
|
|
2025
2026
|
|
|
@@ -2035,12 +2036,12 @@ async function example() {
|
|
|
2035
2036
|
const api = new DefaultApi();
|
|
2036
2037
|
|
|
2037
2038
|
const body = {
|
|
2038
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2039
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2039
2040
|
exchange: exchange_example,
|
|
2040
2041
|
// string
|
|
2041
2042
|
outcomeId: outcomeId_example,
|
|
2042
|
-
//
|
|
2043
|
-
|
|
2043
|
+
// number (optional)
|
|
2044
|
+
limit: 8.14,
|
|
2044
2045
|
} satisfies FetchOrderBookRequest;
|
|
2045
2046
|
|
|
2046
2047
|
try {
|
|
@@ -2060,9 +2061,9 @@ example().catch(console.error);
|
|
|
2060
2061
|
|
|
2061
2062
|
| Name | Type | Description | Notes |
|
|
2062
2063
|
|------------- | ------------- | ------------- | -------------|
|
|
2063
|
-
| **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] |
|
|
2064
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2064
2065
|
| **outcomeId** | `string` | | [Defaults to `undefined`] |
|
|
2065
|
-
| **
|
|
2066
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
2066
2067
|
|
|
2067
2068
|
### Return type
|
|
2068
2069
|
|
|
@@ -2086,6 +2087,76 @@ No authorization required
|
|
|
2086
2087
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2087
2088
|
|
|
2088
2089
|
|
|
2090
|
+
## fetchOrderBooks
|
|
2091
|
+
|
|
2092
|
+
> FetchOrderBooks200Response fetchOrderBooks(exchange, fetchOrderBooksRequest)
|
|
2093
|
+
|
|
2094
|
+
Fetch Order Books
|
|
2095
|
+
|
|
2096
|
+
Batch variant of {@link fetchOrderBook}. Fetches order books for multiple outcomes in a single request where the exchange supports it.
|
|
2097
|
+
|
|
2098
|
+
### Example
|
|
2099
|
+
|
|
2100
|
+
```ts
|
|
2101
|
+
import {
|
|
2102
|
+
Configuration,
|
|
2103
|
+
DefaultApi,
|
|
2104
|
+
} from 'pmxtjs';
|
|
2105
|
+
import type { FetchOrderBooksOperationRequest } from 'pmxtjs';
|
|
2106
|
+
|
|
2107
|
+
async function example() {
|
|
2108
|
+
console.log("🚀 Testing pmxtjs SDK...");
|
|
2109
|
+
const api = new DefaultApi();
|
|
2110
|
+
|
|
2111
|
+
const body = {
|
|
2112
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2113
|
+
exchange: exchange_example,
|
|
2114
|
+
// FetchOrderBooksRequest (optional)
|
|
2115
|
+
fetchOrderBooksRequest: ...,
|
|
2116
|
+
} satisfies FetchOrderBooksOperationRequest;
|
|
2117
|
+
|
|
2118
|
+
try {
|
|
2119
|
+
const data = await api.fetchOrderBooks(body);
|
|
2120
|
+
console.log(data);
|
|
2121
|
+
} catch (error) {
|
|
2122
|
+
console.error(error);
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
// Run the test
|
|
2127
|
+
example().catch(console.error);
|
|
2128
|
+
```
|
|
2129
|
+
|
|
2130
|
+
### Parameters
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
| Name | Type | Description | Notes |
|
|
2134
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2135
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2136
|
+
| **fetchOrderBooksRequest** | [FetchOrderBooksRequest](FetchOrderBooksRequest.md) | | [Optional] |
|
|
2137
|
+
|
|
2138
|
+
### Return type
|
|
2139
|
+
|
|
2140
|
+
[**FetchOrderBooks200Response**](FetchOrderBooks200Response.md)
|
|
2141
|
+
|
|
2142
|
+
### Authorization
|
|
2143
|
+
|
|
2144
|
+
No authorization required
|
|
2145
|
+
|
|
2146
|
+
### HTTP request headers
|
|
2147
|
+
|
|
2148
|
+
- **Content-Type**: `application/json`
|
|
2149
|
+
- **Accept**: `application/json`
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
### HTTP response details
|
|
2153
|
+
| Status code | Description | Response headers |
|
|
2154
|
+
|-------------|-------------|------------------|
|
|
2155
|
+
| **200** | Fetch Order Books response | - |
|
|
2156
|
+
|
|
2157
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
2158
|
+
|
|
2159
|
+
|
|
2089
2160
|
## fetchPositions
|
|
2090
2161
|
|
|
2091
2162
|
> FetchPositions200Response fetchPositions(exchange, address)
|
|
@@ -2108,7 +2179,7 @@ async function example() {
|
|
|
2108
2179
|
const api = new DefaultApi();
|
|
2109
2180
|
|
|
2110
2181
|
const body = {
|
|
2111
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2182
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2112
2183
|
exchange: exchange_example,
|
|
2113
2184
|
// string (optional)
|
|
2114
2185
|
address: address_example,
|
|
@@ -2131,7 +2202,7 @@ example().catch(console.error);
|
|
|
2131
2202
|
|
|
2132
2203
|
| Name | Type | Description | Notes |
|
|
2133
2204
|
|------------- | ------------- | ------------- | -------------|
|
|
2134
|
-
| **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] |
|
|
2205
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2135
2206
|
| **address** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
2136
2207
|
|
|
2137
2208
|
### Return type
|
|
@@ -2281,7 +2352,7 @@ async function example() {
|
|
|
2281
2352
|
const api = new DefaultApi();
|
|
2282
2353
|
|
|
2283
2354
|
const body = {
|
|
2284
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2355
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2285
2356
|
exchange: exchange_example,
|
|
2286
2357
|
// string
|
|
2287
2358
|
outcomeId: outcomeId_example,
|
|
@@ -2310,7 +2381,7 @@ example().catch(console.error);
|
|
|
2310
2381
|
|
|
2311
2382
|
| Name | Type | Description | Notes |
|
|
2312
2383
|
|------------- | ------------- | ------------- | -------------|
|
|
2313
|
-
| **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] |
|
|
2384
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2314
2385
|
| **outcomeId** | `string` | | [Defaults to `undefined`] |
|
|
2315
2386
|
| **start** | `Date` | Start of the time range | [Optional] [Defaults to `undefined`] |
|
|
2316
2387
|
| **end** | `Date` | End of the time range | [Optional] [Defaults to `undefined`] |
|
|
@@ -2360,7 +2431,7 @@ async function example() {
|
|
|
2360
2431
|
const api = new DefaultApi();
|
|
2361
2432
|
|
|
2362
2433
|
const body = {
|
|
2363
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2434
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2364
2435
|
exchange: exchange_example,
|
|
2365
2436
|
// FilterEventsRequest (optional)
|
|
2366
2437
|
filterEventsRequest: ...,
|
|
@@ -2383,7 +2454,7 @@ example().catch(console.error);
|
|
|
2383
2454
|
|
|
2384
2455
|
| Name | Type | Description | Notes |
|
|
2385
2456
|
|------------- | ------------- | ------------- | -------------|
|
|
2386
|
-
| **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] |
|
|
2457
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2387
2458
|
| **filterEventsRequest** | [FilterEventsRequest](FilterEventsRequest.md) | | [Optional] |
|
|
2388
2459
|
|
|
2389
2460
|
### Return type
|
|
@@ -2430,7 +2501,7 @@ async function example() {
|
|
|
2430
2501
|
const api = new DefaultApi();
|
|
2431
2502
|
|
|
2432
2503
|
const body = {
|
|
2433
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2504
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2434
2505
|
exchange: exchange_example,
|
|
2435
2506
|
// FilterMarketsRequest (optional)
|
|
2436
2507
|
filterMarketsRequest: ...,
|
|
@@ -2453,7 +2524,7 @@ example().catch(console.error);
|
|
|
2453
2524
|
|
|
2454
2525
|
| Name | Type | Description | Notes |
|
|
2455
2526
|
|------------- | ------------- | ------------- | -------------|
|
|
2456
|
-
| **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] |
|
|
2527
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2457
2528
|
| **filterMarketsRequest** | [FilterMarketsRequest](FilterMarketsRequest.md) | | [Optional] |
|
|
2458
2529
|
|
|
2459
2530
|
### Return type
|
|
@@ -2500,7 +2571,7 @@ async function example() {
|
|
|
2500
2571
|
const api = new DefaultApi();
|
|
2501
2572
|
|
|
2502
2573
|
const body = {
|
|
2503
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2574
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2504
2575
|
exchange: exchange_example,
|
|
2505
2576
|
// GetExecutionPriceRequest (optional)
|
|
2506
2577
|
getExecutionPriceRequest: ...,
|
|
@@ -2523,7 +2594,7 @@ example().catch(console.error);
|
|
|
2523
2594
|
|
|
2524
2595
|
| Name | Type | Description | Notes |
|
|
2525
2596
|
|------------- | ------------- | ------------- | -------------|
|
|
2526
|
-
| **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] |
|
|
2597
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2527
2598
|
| **getExecutionPriceRequest** | [GetExecutionPriceRequest](GetExecutionPriceRequest.md) | | [Optional] |
|
|
2528
2599
|
|
|
2529
2600
|
### Return type
|
|
@@ -2570,7 +2641,7 @@ async function example() {
|
|
|
2570
2641
|
const api = new DefaultApi();
|
|
2571
2642
|
|
|
2572
2643
|
const body = {
|
|
2573
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2644
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2574
2645
|
exchange: exchange_example,
|
|
2575
2646
|
// GetExecutionPriceDetailedRequest (optional)
|
|
2576
2647
|
getExecutionPriceDetailedRequest: ...,
|
|
@@ -2593,7 +2664,7 @@ example().catch(console.error);
|
|
|
2593
2664
|
|
|
2594
2665
|
| Name | Type | Description | Notes |
|
|
2595
2666
|
|------------- | ------------- | ------------- | -------------|
|
|
2596
|
-
| **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] |
|
|
2667
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2597
2668
|
| **getExecutionPriceDetailedRequest** | [GetExecutionPriceDetailedRequest](GetExecutionPriceDetailedRequest.md) | | [Optional] |
|
|
2598
2669
|
|
|
2599
2670
|
### Return type
|
|
@@ -2697,7 +2768,7 @@ async function example() {
|
|
|
2697
2768
|
const api = new DefaultApi();
|
|
2698
2769
|
|
|
2699
2770
|
const body = {
|
|
2700
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2771
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2701
2772
|
exchange: exchange_example,
|
|
2702
2773
|
// LoadMarketsRequest (optional)
|
|
2703
2774
|
loadMarketsRequest: ...,
|
|
@@ -2720,7 +2791,7 @@ example().catch(console.error);
|
|
|
2720
2791
|
|
|
2721
2792
|
| Name | Type | Description | Notes |
|
|
2722
2793
|
|------------- | ------------- | ------------- | -------------|
|
|
2723
|
-
| **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] |
|
|
2794
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2724
2795
|
| **loadMarketsRequest** | [LoadMarketsRequest](LoadMarketsRequest.md) | | [Optional] |
|
|
2725
2796
|
|
|
2726
2797
|
### Return type
|
|
@@ -2767,7 +2838,7 @@ async function example() {
|
|
|
2767
2838
|
const api = new DefaultApi();
|
|
2768
2839
|
|
|
2769
2840
|
const body = {
|
|
2770
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2841
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2771
2842
|
exchange: exchange_example,
|
|
2772
2843
|
// SubmitOrderRequest (optional)
|
|
2773
2844
|
submitOrderRequest: ...,
|
|
@@ -2790,7 +2861,7 @@ example().catch(console.error);
|
|
|
2790
2861
|
|
|
2791
2862
|
| Name | Type | Description | Notes |
|
|
2792
2863
|
|------------- | ------------- | ------------- | -------------|
|
|
2793
|
-
| **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] |
|
|
2864
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2794
2865
|
| **submitOrderRequest** | [SubmitOrderRequest](SubmitOrderRequest.md) | | [Optional] |
|
|
2795
2866
|
|
|
2796
2867
|
### Return type
|
|
@@ -2837,7 +2908,7 @@ async function example() {
|
|
|
2837
2908
|
const api = new DefaultApi();
|
|
2838
2909
|
|
|
2839
2910
|
const body = {
|
|
2840
|
-
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
|
|
2911
|
+
// 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'mock' | 'router' | The prediction market exchange to target.
|
|
2841
2912
|
exchange: exchange_example,
|
|
2842
2913
|
// TestDummyMethodRequest (optional)
|
|
2843
2914
|
testDummyMethodRequest: ...,
|
|
@@ -2860,7 +2931,7 @@ example().catch(console.error);
|
|
|
2860
2931
|
|
|
2861
2932
|
| Name | Type | Description | Notes |
|
|
2862
2933
|
|------------- | ------------- | ------------- | -------------|
|
|
2863
|
-
| **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] |
|
|
2934
|
+
| **exchange** | `polymarket`, `kalshi`, `kalshi-demo`, `limitless`, `probable`, `baozi`, `myriad`, `opinion`, `metaculus`, `smarkets`, `polymarket_us`, `gemini-titan`, `hyperliquid`, `mock`, `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, mock, router] |
|
|
2864
2935
|
| **testDummyMethodRequest** | [TestDummyMethodRequest](TestDummyMethodRequest.md) | | [Optional] |
|
|
2865
2936
|
|
|
2866
2937
|
### Return type
|