pmxtjs 2.38.0 → 2.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1799,7 +1799,7 @@ No authorization required
1799
1799
 
1800
1800
  ## fetchOHLCV
1801
1801
 
1802
- > FetchOHLCV200Response fetchOHLCV(exchange, id, resolution, start, end, limit)
1802
+ > FetchOHLCV200Response fetchOHLCV(exchange, outcomeId, resolution, start, end, limit)
1803
1803
 
1804
1804
  Fetch OHLCV
1805
1805
 
@@ -1822,7 +1822,7 @@ async function example() {
1822
1822
  // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
1823
1823
  exchange: exchange_example,
1824
1824
  // string
1825
- id: id_example,
1825
+ outcomeId: outcomeId_example,
1826
1826
  // string | Required for candle aggregation (optional)
1827
1827
  resolution: resolution_example,
1828
1828
  // Date | Start of the time range (optional)
@@ -1851,7 +1851,7 @@ example().catch(console.error);
1851
1851
  | Name | Type | Description | Notes |
1852
1852
  |------------- | ------------- | ------------- | -------------|
1853
1853
  | **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] |
1854
- | **id** | `string` | | [Defaults to `undefined`] |
1854
+ | **outcomeId** | `string` | | [Defaults to `undefined`] |
1855
1855
  | **resolution** | `string` | Required for candle aggregation | [Optional] [Defaults to `undefined`] |
1856
1856
  | **start** | `Date` | Start of the time range | [Optional] [Defaults to `undefined`] |
1857
1857
  | **end** | `Date` | End of the time range | [Optional] [Defaults to `undefined`] |
@@ -2021,7 +2021,7 @@ No authorization required
2021
2021
 
2022
2022
  ## fetchOrderBook
2023
2023
 
2024
- > FetchOrderBook200Response fetchOrderBook(exchange, id, side)
2024
+ > FetchOrderBook200Response fetchOrderBook(exchange, outcomeId, side)
2025
2025
 
2026
2026
  Fetch Order Book
2027
2027
 
@@ -2044,7 +2044,7 @@ async function example() {
2044
2044
  // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
2045
2045
  exchange: exchange_example,
2046
2046
  // string
2047
- id: id_example,
2047
+ outcomeId: outcomeId_example,
2048
2048
  // string (optional)
2049
2049
  side: side_example,
2050
2050
  } satisfies FetchOrderBookRequest;
@@ -2067,7 +2067,7 @@ example().catch(console.error);
2067
2067
  | Name | Type | Description | Notes |
2068
2068
  |------------- | ------------- | ------------- | -------------|
2069
2069
  | **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] |
2070
- | **id** | `string` | | [Defaults to `undefined`] |
2070
+ | **outcomeId** | `string` | | [Defaults to `undefined`] |
2071
2071
  | **side** | `string` | | [Optional] [Defaults to `undefined`] |
2072
2072
 
2073
2073
  ### Return type
@@ -2267,7 +2267,7 @@ No authorization required
2267
2267
 
2268
2268
  ## fetchTrades
2269
2269
 
2270
- > FetchTrades200Response fetchTrades(exchange, id, start, end, limit)
2270
+ > FetchTrades200Response fetchTrades(exchange, outcomeId, start, end, limit)
2271
2271
 
2272
2272
  Fetch Trades
2273
2273
 
@@ -2290,7 +2290,7 @@ async function example() {
2290
2290
  // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
2291
2291
  exchange: exchange_example,
2292
2292
  // string
2293
- id: id_example,
2293
+ outcomeId: outcomeId_example,
2294
2294
  // Date | Start of the time range (optional)
2295
2295
  start: 2013-10-20T19:20:30+01:00,
2296
2296
  // Date | End of the time range (optional)
@@ -2317,7 +2317,7 @@ example().catch(console.error);
2317
2317
  | Name | Type | Description | Notes |
2318
2318
  |------------- | ------------- | ------------- | -------------|
2319
2319
  | **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] |
2320
- | **id** | `string` | | [Defaults to `undefined`] |
2320
+ | **outcomeId** | `string` | | [Defaults to `undefined`] |
2321
2321
  | **start** | `Date` | Start of the time range | [Optional] [Defaults to `undefined`] |
2322
2322
  | **end** | `Date` | End of the time range | [Optional] [Defaults to `undefined`] |
2323
2323
  | **limit** | `number` | Maximum number of results to return | [Optional] [Defaults to `undefined`] |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.38.0",
3
+ "version": "2.39.1",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -374,7 +374,7 @@ export interface FetchMyTradesRequest {
374
374
 
375
375
  export interface FetchOHLCVRequest {
376
376
  exchange: FetchOHLCVExchangeEnum;
377
- id: string;
377
+ outcomeId: string;
378
378
  resolution?: string;
379
379
  start?: Date;
380
380
  end?: Date;
@@ -393,7 +393,7 @@ export interface FetchOrderRequest {
393
393
 
394
394
  export interface FetchOrderBookRequest {
395
395
  exchange: FetchOrderBookExchangeEnum;
396
- id: string;
396
+ outcomeId: string;
397
397
  side?: string;
398
398
  }
399
399
 
@@ -420,7 +420,7 @@ export interface FetchRelatedMarketsRequest {
420
420
 
421
421
  export interface FetchTradesRequest {
422
422
  exchange: FetchTradesExchangeEnum;
423
- id: string;
423
+ outcomeId: string;
424
424
  start?: Date;
425
425
  end?: Date;
426
426
  limit?: number;
@@ -1790,17 +1790,17 @@ export class DefaultApi extends runtime.BaseAPI {
1790
1790
  );
1791
1791
  }
1792
1792
 
1793
- if (requestParameters['id'] == null) {
1793
+ if (requestParameters['outcomeId'] == null) {
1794
1794
  throw new runtime.RequiredError(
1795
- 'id',
1796
- 'Required parameter "id" was null or undefined when calling fetchOHLCV().'
1795
+ 'outcomeId',
1796
+ 'Required parameter "outcomeId" was null or undefined when calling fetchOHLCV().'
1797
1797
  );
1798
1798
  }
1799
1799
 
1800
1800
  const queryParameters: any = {};
1801
1801
 
1802
- if (requestParameters['id'] != null) {
1803
- queryParameters['id'] = requestParameters['id'];
1802
+ if (requestParameters['outcomeId'] != null) {
1803
+ queryParameters['outcomeId'] = requestParameters['outcomeId'];
1804
1804
  }
1805
1805
 
1806
1806
  if (requestParameters['resolution'] != null) {
@@ -1949,17 +1949,17 @@ export class DefaultApi extends runtime.BaseAPI {
1949
1949
  );
1950
1950
  }
1951
1951
 
1952
- if (requestParameters['id'] == null) {
1952
+ if (requestParameters['outcomeId'] == null) {
1953
1953
  throw new runtime.RequiredError(
1954
- 'id',
1955
- 'Required parameter "id" was null or undefined when calling fetchOrderBook().'
1954
+ 'outcomeId',
1955
+ 'Required parameter "outcomeId" was null or undefined when calling fetchOrderBook().'
1956
1956
  );
1957
1957
  }
1958
1958
 
1959
1959
  const queryParameters: any = {};
1960
1960
 
1961
- if (requestParameters['id'] != null) {
1962
- queryParameters['id'] = requestParameters['id'];
1961
+ if (requestParameters['outcomeId'] != null) {
1962
+ queryParameters['outcomeId'] = requestParameters['outcomeId'];
1963
1963
  }
1964
1964
 
1965
1965
  if (requestParameters['side'] != null) {
@@ -2133,17 +2133,17 @@ export class DefaultApi extends runtime.BaseAPI {
2133
2133
  );
2134
2134
  }
2135
2135
 
2136
- if (requestParameters['id'] == null) {
2136
+ if (requestParameters['outcomeId'] == null) {
2137
2137
  throw new runtime.RequiredError(
2138
- 'id',
2139
- 'Required parameter "id" was null or undefined when calling fetchTrades().'
2138
+ 'outcomeId',
2139
+ 'Required parameter "outcomeId" was null or undefined when calling fetchTrades().'
2140
2140
  );
2141
2141
  }
2142
2142
 
2143
2143
  const queryParameters: any = {};
2144
2144
 
2145
- if (requestParameters['id'] != null) {
2146
- queryParameters['id'] = requestParameters['id'];
2145
+ if (requestParameters['outcomeId'] != null) {
2146
+ queryParameters['outcomeId'] = requestParameters['outcomeId'];
2147
2147
  }
2148
2148
 
2149
2149
  if (requestParameters['start'] != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.38.0",
3
+ "version": "2.39.1",
4
4
  "description": "Unified prediction market data API - The ccxt for prediction markets",
5
5
  "author": "PMXT Contributors",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "unified"
44
44
  ],
45
45
  "dependencies": {
46
- "pmxt-core": "2.38.0"
46
+ "pmxt-core": "2.39.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",