pmxtjs 2.37.8 → 2.37.10

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.
@@ -753,17 +753,6 @@ export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof
753
753
  * @export
754
754
  */
755
755
  export declare const CompareMarketPricesOperationExchangeEnum: {
756
- readonly Polymarket: "polymarket";
757
- readonly Kalshi: "kalshi";
758
- readonly KalshiDemo: "kalshi-demo";
759
- readonly Limitless: "limitless";
760
- readonly Probable: "probable";
761
- readonly Baozi: "baozi";
762
- readonly Myriad: "myriad";
763
- readonly Opinion: "opinion";
764
- readonly Metaculus: "metaculus";
765
- readonly Smarkets: "smarkets";
766
- readonly PolymarketUs: "polymarket_us";
767
756
  readonly Router: "router";
768
757
  };
769
758
  export type CompareMarketPricesOperationExchangeEnum = typeof CompareMarketPricesOperationExchangeEnum[keyof typeof CompareMarketPricesOperationExchangeEnum];
@@ -807,17 +796,6 @@ export type FetchAllOrdersExchangeEnum = typeof FetchAllOrdersExchangeEnum[keyof
807
796
  * @export
808
797
  */
809
798
  export declare const FetchArbitrageExchangeEnum: {
810
- readonly Polymarket: "polymarket";
811
- readonly Kalshi: "kalshi";
812
- readonly KalshiDemo: "kalshi-demo";
813
- readonly Limitless: "limitless";
814
- readonly Probable: "probable";
815
- readonly Baozi: "baozi";
816
- readonly Myriad: "myriad";
817
- readonly Opinion: "opinion";
818
- readonly Metaculus: "metaculus";
819
- readonly Smarkets: "smarkets";
820
- readonly PolymarketUs: "polymarket_us";
821
799
  readonly Router: "router";
822
800
  };
823
801
  export type FetchArbitrageExchangeEnum = typeof FetchArbitrageExchangeEnum[keyof typeof FetchArbitrageExchangeEnum];
@@ -918,17 +896,6 @@ export type FetchEventSearchInEnum = typeof FetchEventSearchInEnum[keyof typeof
918
896
  * @export
919
897
  */
920
898
  export declare const FetchEventMatchesExchangeEnum: {
921
- readonly Polymarket: "polymarket";
922
- readonly Kalshi: "kalshi";
923
- readonly KalshiDemo: "kalshi-demo";
924
- readonly Limitless: "limitless";
925
- readonly Probable: "probable";
926
- readonly Baozi: "baozi";
927
- readonly Myriad: "myriad";
928
- readonly Opinion: "opinion";
929
- readonly Metaculus: "metaculus";
930
- readonly Smarkets: "smarkets";
931
- readonly PolymarketUs: "polymarket_us";
932
899
  readonly Router: "router";
933
900
  };
934
901
  export type FetchEventMatchesExchangeEnum = typeof FetchEventMatchesExchangeEnum[keyof typeof FetchEventMatchesExchangeEnum];
@@ -1011,17 +978,6 @@ export type FetchEventsPaginatedExchangeEnum = typeof FetchEventsPaginatedExchan
1011
978
  * @export
1012
979
  */
1013
980
  export declare const FetchHedgesExchangeEnum: {
1014
- readonly Polymarket: "polymarket";
1015
- readonly Kalshi: "kalshi";
1016
- readonly KalshiDemo: "kalshi-demo";
1017
- readonly Limitless: "limitless";
1018
- readonly Probable: "probable";
1019
- readonly Baozi: "baozi";
1020
- readonly Myriad: "myriad";
1021
- readonly Opinion: "opinion";
1022
- readonly Metaculus: "metaculus";
1023
- readonly Smarkets: "smarkets";
1024
- readonly PolymarketUs: "polymarket_us";
1025
981
  readonly Router: "router";
1026
982
  };
1027
983
  export type FetchHedgesExchangeEnum = typeof FetchHedgesExchangeEnum[keyof typeof FetchHedgesExchangeEnum];
@@ -1095,17 +1051,6 @@ export type FetchMarketSearchInEnum = typeof FetchMarketSearchInEnum[keyof typeo
1095
1051
  * @export
1096
1052
  */
1097
1053
  export declare const FetchMarketMatchesExchangeEnum: {
1098
- readonly Polymarket: "polymarket";
1099
- readonly Kalshi: "kalshi";
1100
- readonly KalshiDemo: "kalshi-demo";
1101
- readonly Limitless: "limitless";
1102
- readonly Probable: "probable";
1103
- readonly Baozi: "baozi";
1104
- readonly Myriad: "myriad";
1105
- readonly Opinion: "opinion";
1106
- readonly Metaculus: "metaculus";
1107
- readonly Smarkets: "smarkets";
1108
- readonly PolymarketUs: "polymarket_us";
1109
1054
  readonly Router: "router";
1110
1055
  };
1111
1056
  export type FetchMarketMatchesExchangeEnum = typeof FetchMarketMatchesExchangeEnum[keyof typeof FetchMarketMatchesExchangeEnum];
@@ -1197,17 +1142,6 @@ export type FetchMarketsPaginatedExchangeEnum = typeof FetchMarketsPaginatedExch
1197
1142
  * @export
1198
1143
  */
1199
1144
  export declare const FetchMatchedMarketsExchangeEnum: {
1200
- readonly Polymarket: "polymarket";
1201
- readonly Kalshi: "kalshi";
1202
- readonly KalshiDemo: "kalshi-demo";
1203
- readonly Limitless: "limitless";
1204
- readonly Probable: "probable";
1205
- readonly Baozi: "baozi";
1206
- readonly Myriad: "myriad";
1207
- readonly Opinion: "opinion";
1208
- readonly Metaculus: "metaculus";
1209
- readonly Smarkets: "smarkets";
1210
- readonly PolymarketUs: "polymarket_us";
1211
1145
  readonly Router: "router";
1212
1146
  };
1213
1147
  export type FetchMatchedMarketsExchangeEnum = typeof FetchMatchedMarketsExchangeEnum[keyof typeof FetchMatchedMarketsExchangeEnum];
@@ -1226,17 +1160,6 @@ export type FetchMatchedMarketsRelationsEnum = typeof FetchMatchedMarketsRelatio
1226
1160
  * @export
1227
1161
  */
1228
1162
  export declare const FetchMatchedPricesExchangeEnum: {
1229
- readonly Polymarket: "polymarket";
1230
- readonly Kalshi: "kalshi";
1231
- readonly KalshiDemo: "kalshi-demo";
1232
- readonly Limitless: "limitless";
1233
- readonly Probable: "probable";
1234
- readonly Baozi: "baozi";
1235
- readonly Myriad: "myriad";
1236
- readonly Opinion: "opinion";
1237
- readonly Metaculus: "metaculus";
1238
- readonly Smarkets: "smarkets";
1239
- readonly PolymarketUs: "polymarket_us";
1240
1163
  readonly Router: "router";
1241
1164
  };
1242
1165
  export type FetchMatchedPricesExchangeEnum = typeof FetchMatchedPricesExchangeEnum[keyof typeof FetchMatchedPricesExchangeEnum];
@@ -1363,17 +1286,6 @@ export type FetchPositionsExchangeEnum = typeof FetchPositionsExchangeEnum[keyof
1363
1286
  * @export
1364
1287
  */
1365
1288
  export declare const FetchRelatedMarketsExchangeEnum: {
1366
- readonly Polymarket: "polymarket";
1367
- readonly Kalshi: "kalshi";
1368
- readonly KalshiDemo: "kalshi-demo";
1369
- readonly Limitless: "limitless";
1370
- readonly Probable: "probable";
1371
- readonly Baozi: "baozi";
1372
- readonly Myriad: "myriad";
1373
- readonly Opinion: "opinion";
1374
- readonly Metaculus: "metaculus";
1375
- readonly Smarkets: "smarkets";
1376
- readonly PolymarketUs: "polymarket_us";
1377
1289
  readonly Router: "router";
1378
1290
  };
1379
1291
  export type FetchRelatedMarketsExchangeEnum = typeof FetchRelatedMarketsExchangeEnum[keyof typeof FetchRelatedMarketsExchangeEnum];
@@ -1675,17 +1675,6 @@ export const CloseOperationExchangeEnum = {
1675
1675
  * @export
1676
1676
  */
1677
1677
  export const CompareMarketPricesOperationExchangeEnum = {
1678
- Polymarket: 'polymarket',
1679
- Kalshi: 'kalshi',
1680
- KalshiDemo: 'kalshi-demo',
1681
- Limitless: 'limitless',
1682
- Probable: 'probable',
1683
- Baozi: 'baozi',
1684
- Myriad: 'myriad',
1685
- Opinion: 'opinion',
1686
- Metaculus: 'metaculus',
1687
- Smarkets: 'smarkets',
1688
- PolymarketUs: 'polymarket_us',
1689
1678
  Router: 'router'
1690
1679
  };
1691
1680
  /**
@@ -1726,17 +1715,6 @@ export const FetchAllOrdersExchangeEnum = {
1726
1715
  * @export
1727
1716
  */
1728
1717
  export const FetchArbitrageExchangeEnum = {
1729
- Polymarket: 'polymarket',
1730
- Kalshi: 'kalshi',
1731
- KalshiDemo: 'kalshi-demo',
1732
- Limitless: 'limitless',
1733
- Probable: 'probable',
1734
- Baozi: 'baozi',
1735
- Myriad: 'myriad',
1736
- Opinion: 'opinion',
1737
- Metaculus: 'metaculus',
1738
- Smarkets: 'smarkets',
1739
- PolymarketUs: 'polymarket_us',
1740
1718
  Router: 'router'
1741
1719
  };
1742
1720
  /**
@@ -1829,17 +1807,6 @@ export const FetchEventSearchInEnum = {
1829
1807
  * @export
1830
1808
  */
1831
1809
  export const FetchEventMatchesExchangeEnum = {
1832
- Polymarket: 'polymarket',
1833
- Kalshi: 'kalshi',
1834
- KalshiDemo: 'kalshi-demo',
1835
- Limitless: 'limitless',
1836
- Probable: 'probable',
1837
- Baozi: 'baozi',
1838
- Myriad: 'myriad',
1839
- Opinion: 'opinion',
1840
- Metaculus: 'metaculus',
1841
- Smarkets: 'smarkets',
1842
- PolymarketUs: 'polymarket_us',
1843
1810
  Router: 'router'
1844
1811
  };
1845
1812
  /**
@@ -1915,17 +1882,6 @@ export const FetchEventsPaginatedExchangeEnum = {
1915
1882
  * @export
1916
1883
  */
1917
1884
  export const FetchHedgesExchangeEnum = {
1918
- Polymarket: 'polymarket',
1919
- Kalshi: 'kalshi',
1920
- KalshiDemo: 'kalshi-demo',
1921
- Limitless: 'limitless',
1922
- Probable: 'probable',
1923
- Baozi: 'baozi',
1924
- Myriad: 'myriad',
1925
- Opinion: 'opinion',
1926
- Metaculus: 'metaculus',
1927
- Smarkets: 'smarkets',
1928
- PolymarketUs: 'polymarket_us',
1929
1885
  Router: 'router'
1930
1886
  };
1931
1887
  /**
@@ -1992,17 +1948,6 @@ export const FetchMarketSearchInEnum = {
1992
1948
  * @export
1993
1949
  */
1994
1950
  export const FetchMarketMatchesExchangeEnum = {
1995
- Polymarket: 'polymarket',
1996
- Kalshi: 'kalshi',
1997
- KalshiDemo: 'kalshi-demo',
1998
- Limitless: 'limitless',
1999
- Probable: 'probable',
2000
- Baozi: 'baozi',
2001
- Myriad: 'myriad',
2002
- Opinion: 'opinion',
2003
- Metaculus: 'metaculus',
2004
- Smarkets: 'smarkets',
2005
- PolymarketUs: 'polymarket_us',
2006
1951
  Router: 'router'
2007
1952
  };
2008
1953
  /**
@@ -2086,17 +2031,6 @@ export const FetchMarketsPaginatedExchangeEnum = {
2086
2031
  * @export
2087
2032
  */
2088
2033
  export const FetchMatchedMarketsExchangeEnum = {
2089
- Polymarket: 'polymarket',
2090
- Kalshi: 'kalshi',
2091
- KalshiDemo: 'kalshi-demo',
2092
- Limitless: 'limitless',
2093
- Probable: 'probable',
2094
- Baozi: 'baozi',
2095
- Myriad: 'myriad',
2096
- Opinion: 'opinion',
2097
- Metaculus: 'metaculus',
2098
- Smarkets: 'smarkets',
2099
- PolymarketUs: 'polymarket_us',
2100
2034
  Router: 'router'
2101
2035
  };
2102
2036
  /**
@@ -2113,17 +2047,6 @@ export const FetchMatchedMarketsRelationsEnum = {
2113
2047
  * @export
2114
2048
  */
2115
2049
  export const FetchMatchedPricesExchangeEnum = {
2116
- Polymarket: 'polymarket',
2117
- Kalshi: 'kalshi',
2118
- KalshiDemo: 'kalshi-demo',
2119
- Limitless: 'limitless',
2120
- Probable: 'probable',
2121
- Baozi: 'baozi',
2122
- Myriad: 'myriad',
2123
- Opinion: 'opinion',
2124
- Metaculus: 'metaculus',
2125
- Smarkets: 'smarkets',
2126
- PolymarketUs: 'polymarket_us',
2127
2050
  Router: 'router'
2128
2051
  };
2129
2052
  /**
@@ -2242,17 +2165,6 @@ export const FetchPositionsExchangeEnum = {
2242
2165
  * @export
2243
2166
  */
2244
2167
  export const FetchRelatedMarketsExchangeEnum = {
2245
- Polymarket: 'polymarket',
2246
- Kalshi: 'kalshi',
2247
- KalshiDemo: 'kalshi-demo',
2248
- Limitless: 'limitless',
2249
- Probable: 'probable',
2250
- Baozi: 'baozi',
2251
- Myriad: 'myriad',
2252
- Opinion: 'opinion',
2253
- Metaculus: 'metaculus',
2254
- Smarkets: 'smarkets',
2255
- PolymarketUs: 'polymarket_us',
2256
2168
  Router: 'router'
2257
2169
  };
2258
2170
  /**
@@ -69,6 +69,12 @@ export interface CreateOrderParams {
69
69
  * @memberof CreateOrderParams
70
70
  */
71
71
  negRisk?: boolean;
72
+ /**
73
+ * Limitless delegated signing: profile ID to trade on behalf of
74
+ * @type {number}
75
+ * @memberof CreateOrderParams
76
+ */
77
+ onBehalfOf?: number;
72
78
  }
73
79
  /**
74
80
  * @export
@@ -58,6 +58,7 @@ export function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'fee': json['fee'] == null ? undefined : json['fee'],
59
59
  'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
60
60
  'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
61
+ 'onBehalfOf': json['onBehalfOf'] == null ? undefined : json['onBehalfOf'],
61
62
  };
62
63
  }
63
64
  export function CreateOrderParamsToJSON(json) {
@@ -77,5 +78,6 @@ export function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false)
77
78
  'fee': value['fee'],
78
79
  'tickSize': value['tickSize'],
79
80
  'negRisk': value['negRisk'],
81
+ 'onBehalfOf': value['onBehalfOf'],
80
82
  };
81
83
  }
@@ -58,6 +58,12 @@ export interface ExchangeCredentials {
58
58
  * @memberof ExchangeCredentials
59
59
  */
60
60
  funderAddress?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ExchangeCredentials
65
+ */
66
+ walletAddress?: string;
61
67
  }
62
68
  /**
63
69
  * Check if a given object implements the ExchangeCredentials interface.
@@ -33,6 +33,7 @@ export function ExchangeCredentialsFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
34
34
  'signatureType': json['signatureType'] == null ? undefined : ExchangeCredentialsSignatureTypeFromJSON(json['signatureType']),
35
35
  'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
36
+ 'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
36
37
  };
37
38
  }
38
39
  export function ExchangeCredentialsToJSON(json) {
@@ -50,5 +51,6 @@ export function ExchangeCredentialsToJSONTyped(value, ignoreDiscriminator = fals
50
51
  'privateKey': value['privateKey'],
51
52
  'signatureType': ExchangeCredentialsSignatureTypeToJSON(value['signatureType']),
52
53
  'funderAddress': value['funderAddress'],
54
+ 'walletAddress': value['walletAddress'],
53
55
  };
54
56
  }
@@ -118,7 +118,7 @@ export class Router extends Exchange {
118
118
  if (params.includePrices)
119
119
  query.includePrices = true;
120
120
  try {
121
- const json = await this.sidecarReadRequest('fetchMatches', query, [query]);
121
+ const json = await this.sidecarReadRequest('fetchMarketMatches', query, [query]);
122
122
  const data = this.handleResponse(json);
123
123
  if (!data)
124
124
  return [];
@@ -753,17 +753,6 @@ export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof
753
753
  * @export
754
754
  */
755
755
  export declare const CompareMarketPricesOperationExchangeEnum: {
756
- readonly Polymarket: "polymarket";
757
- readonly Kalshi: "kalshi";
758
- readonly KalshiDemo: "kalshi-demo";
759
- readonly Limitless: "limitless";
760
- readonly Probable: "probable";
761
- readonly Baozi: "baozi";
762
- readonly Myriad: "myriad";
763
- readonly Opinion: "opinion";
764
- readonly Metaculus: "metaculus";
765
- readonly Smarkets: "smarkets";
766
- readonly PolymarketUs: "polymarket_us";
767
756
  readonly Router: "router";
768
757
  };
769
758
  export type CompareMarketPricesOperationExchangeEnum = typeof CompareMarketPricesOperationExchangeEnum[keyof typeof CompareMarketPricesOperationExchangeEnum];
@@ -807,17 +796,6 @@ export type FetchAllOrdersExchangeEnum = typeof FetchAllOrdersExchangeEnum[keyof
807
796
  * @export
808
797
  */
809
798
  export declare const FetchArbitrageExchangeEnum: {
810
- readonly Polymarket: "polymarket";
811
- readonly Kalshi: "kalshi";
812
- readonly KalshiDemo: "kalshi-demo";
813
- readonly Limitless: "limitless";
814
- readonly Probable: "probable";
815
- readonly Baozi: "baozi";
816
- readonly Myriad: "myriad";
817
- readonly Opinion: "opinion";
818
- readonly Metaculus: "metaculus";
819
- readonly Smarkets: "smarkets";
820
- readonly PolymarketUs: "polymarket_us";
821
799
  readonly Router: "router";
822
800
  };
823
801
  export type FetchArbitrageExchangeEnum = typeof FetchArbitrageExchangeEnum[keyof typeof FetchArbitrageExchangeEnum];
@@ -918,17 +896,6 @@ export type FetchEventSearchInEnum = typeof FetchEventSearchInEnum[keyof typeof
918
896
  * @export
919
897
  */
920
898
  export declare const FetchEventMatchesExchangeEnum: {
921
- readonly Polymarket: "polymarket";
922
- readonly Kalshi: "kalshi";
923
- readonly KalshiDemo: "kalshi-demo";
924
- readonly Limitless: "limitless";
925
- readonly Probable: "probable";
926
- readonly Baozi: "baozi";
927
- readonly Myriad: "myriad";
928
- readonly Opinion: "opinion";
929
- readonly Metaculus: "metaculus";
930
- readonly Smarkets: "smarkets";
931
- readonly PolymarketUs: "polymarket_us";
932
899
  readonly Router: "router";
933
900
  };
934
901
  export type FetchEventMatchesExchangeEnum = typeof FetchEventMatchesExchangeEnum[keyof typeof FetchEventMatchesExchangeEnum];
@@ -1011,17 +978,6 @@ export type FetchEventsPaginatedExchangeEnum = typeof FetchEventsPaginatedExchan
1011
978
  * @export
1012
979
  */
1013
980
  export declare const FetchHedgesExchangeEnum: {
1014
- readonly Polymarket: "polymarket";
1015
- readonly Kalshi: "kalshi";
1016
- readonly KalshiDemo: "kalshi-demo";
1017
- readonly Limitless: "limitless";
1018
- readonly Probable: "probable";
1019
- readonly Baozi: "baozi";
1020
- readonly Myriad: "myriad";
1021
- readonly Opinion: "opinion";
1022
- readonly Metaculus: "metaculus";
1023
- readonly Smarkets: "smarkets";
1024
- readonly PolymarketUs: "polymarket_us";
1025
981
  readonly Router: "router";
1026
982
  };
1027
983
  export type FetchHedgesExchangeEnum = typeof FetchHedgesExchangeEnum[keyof typeof FetchHedgesExchangeEnum];
@@ -1095,17 +1051,6 @@ export type FetchMarketSearchInEnum = typeof FetchMarketSearchInEnum[keyof typeo
1095
1051
  * @export
1096
1052
  */
1097
1053
  export declare const FetchMarketMatchesExchangeEnum: {
1098
- readonly Polymarket: "polymarket";
1099
- readonly Kalshi: "kalshi";
1100
- readonly KalshiDemo: "kalshi-demo";
1101
- readonly Limitless: "limitless";
1102
- readonly Probable: "probable";
1103
- readonly Baozi: "baozi";
1104
- readonly Myriad: "myriad";
1105
- readonly Opinion: "opinion";
1106
- readonly Metaculus: "metaculus";
1107
- readonly Smarkets: "smarkets";
1108
- readonly PolymarketUs: "polymarket_us";
1109
1054
  readonly Router: "router";
1110
1055
  };
1111
1056
  export type FetchMarketMatchesExchangeEnum = typeof FetchMarketMatchesExchangeEnum[keyof typeof FetchMarketMatchesExchangeEnum];
@@ -1197,17 +1142,6 @@ export type FetchMarketsPaginatedExchangeEnum = typeof FetchMarketsPaginatedExch
1197
1142
  * @export
1198
1143
  */
1199
1144
  export declare const FetchMatchedMarketsExchangeEnum: {
1200
- readonly Polymarket: "polymarket";
1201
- readonly Kalshi: "kalshi";
1202
- readonly KalshiDemo: "kalshi-demo";
1203
- readonly Limitless: "limitless";
1204
- readonly Probable: "probable";
1205
- readonly Baozi: "baozi";
1206
- readonly Myriad: "myriad";
1207
- readonly Opinion: "opinion";
1208
- readonly Metaculus: "metaculus";
1209
- readonly Smarkets: "smarkets";
1210
- readonly PolymarketUs: "polymarket_us";
1211
1145
  readonly Router: "router";
1212
1146
  };
1213
1147
  export type FetchMatchedMarketsExchangeEnum = typeof FetchMatchedMarketsExchangeEnum[keyof typeof FetchMatchedMarketsExchangeEnum];
@@ -1226,17 +1160,6 @@ export type FetchMatchedMarketsRelationsEnum = typeof FetchMatchedMarketsRelatio
1226
1160
  * @export
1227
1161
  */
1228
1162
  export declare const FetchMatchedPricesExchangeEnum: {
1229
- readonly Polymarket: "polymarket";
1230
- readonly Kalshi: "kalshi";
1231
- readonly KalshiDemo: "kalshi-demo";
1232
- readonly Limitless: "limitless";
1233
- readonly Probable: "probable";
1234
- readonly Baozi: "baozi";
1235
- readonly Myriad: "myriad";
1236
- readonly Opinion: "opinion";
1237
- readonly Metaculus: "metaculus";
1238
- readonly Smarkets: "smarkets";
1239
- readonly PolymarketUs: "polymarket_us";
1240
1163
  readonly Router: "router";
1241
1164
  };
1242
1165
  export type FetchMatchedPricesExchangeEnum = typeof FetchMatchedPricesExchangeEnum[keyof typeof FetchMatchedPricesExchangeEnum];
@@ -1363,17 +1286,6 @@ export type FetchPositionsExchangeEnum = typeof FetchPositionsExchangeEnum[keyof
1363
1286
  * @export
1364
1287
  */
1365
1288
  export declare const FetchRelatedMarketsExchangeEnum: {
1366
- readonly Polymarket: "polymarket";
1367
- readonly Kalshi: "kalshi";
1368
- readonly KalshiDemo: "kalshi-demo";
1369
- readonly Limitless: "limitless";
1370
- readonly Probable: "probable";
1371
- readonly Baozi: "baozi";
1372
- readonly Myriad: "myriad";
1373
- readonly Opinion: "opinion";
1374
- readonly Metaculus: "metaculus";
1375
- readonly Smarkets: "smarkets";
1376
- readonly PolymarketUs: "polymarket_us";
1377
1289
  readonly Router: "router";
1378
1290
  };
1379
1291
  export type FetchRelatedMarketsExchangeEnum = typeof FetchRelatedMarketsExchangeEnum[keyof typeof FetchRelatedMarketsExchangeEnum];
@@ -1713,17 +1713,6 @@ exports.CloseOperationExchangeEnum = {
1713
1713
  * @export
1714
1714
  */
1715
1715
  exports.CompareMarketPricesOperationExchangeEnum = {
1716
- Polymarket: 'polymarket',
1717
- Kalshi: 'kalshi',
1718
- KalshiDemo: 'kalshi-demo',
1719
- Limitless: 'limitless',
1720
- Probable: 'probable',
1721
- Baozi: 'baozi',
1722
- Myriad: 'myriad',
1723
- Opinion: 'opinion',
1724
- Metaculus: 'metaculus',
1725
- Smarkets: 'smarkets',
1726
- PolymarketUs: 'polymarket_us',
1727
1716
  Router: 'router'
1728
1717
  };
1729
1718
  /**
@@ -1764,17 +1753,6 @@ exports.FetchAllOrdersExchangeEnum = {
1764
1753
  * @export
1765
1754
  */
1766
1755
  exports.FetchArbitrageExchangeEnum = {
1767
- Polymarket: 'polymarket',
1768
- Kalshi: 'kalshi',
1769
- KalshiDemo: 'kalshi-demo',
1770
- Limitless: 'limitless',
1771
- Probable: 'probable',
1772
- Baozi: 'baozi',
1773
- Myriad: 'myriad',
1774
- Opinion: 'opinion',
1775
- Metaculus: 'metaculus',
1776
- Smarkets: 'smarkets',
1777
- PolymarketUs: 'polymarket_us',
1778
1756
  Router: 'router'
1779
1757
  };
1780
1758
  /**
@@ -1867,17 +1845,6 @@ exports.FetchEventSearchInEnum = {
1867
1845
  * @export
1868
1846
  */
1869
1847
  exports.FetchEventMatchesExchangeEnum = {
1870
- Polymarket: 'polymarket',
1871
- Kalshi: 'kalshi',
1872
- KalshiDemo: 'kalshi-demo',
1873
- Limitless: 'limitless',
1874
- Probable: 'probable',
1875
- Baozi: 'baozi',
1876
- Myriad: 'myriad',
1877
- Opinion: 'opinion',
1878
- Metaculus: 'metaculus',
1879
- Smarkets: 'smarkets',
1880
- PolymarketUs: 'polymarket_us',
1881
1848
  Router: 'router'
1882
1849
  };
1883
1850
  /**
@@ -1953,17 +1920,6 @@ exports.FetchEventsPaginatedExchangeEnum = {
1953
1920
  * @export
1954
1921
  */
1955
1922
  exports.FetchHedgesExchangeEnum = {
1956
- Polymarket: 'polymarket',
1957
- Kalshi: 'kalshi',
1958
- KalshiDemo: 'kalshi-demo',
1959
- Limitless: 'limitless',
1960
- Probable: 'probable',
1961
- Baozi: 'baozi',
1962
- Myriad: 'myriad',
1963
- Opinion: 'opinion',
1964
- Metaculus: 'metaculus',
1965
- Smarkets: 'smarkets',
1966
- PolymarketUs: 'polymarket_us',
1967
1923
  Router: 'router'
1968
1924
  };
1969
1925
  /**
@@ -2030,17 +1986,6 @@ exports.FetchMarketSearchInEnum = {
2030
1986
  * @export
2031
1987
  */
2032
1988
  exports.FetchMarketMatchesExchangeEnum = {
2033
- Polymarket: 'polymarket',
2034
- Kalshi: 'kalshi',
2035
- KalshiDemo: 'kalshi-demo',
2036
- Limitless: 'limitless',
2037
- Probable: 'probable',
2038
- Baozi: 'baozi',
2039
- Myriad: 'myriad',
2040
- Opinion: 'opinion',
2041
- Metaculus: 'metaculus',
2042
- Smarkets: 'smarkets',
2043
- PolymarketUs: 'polymarket_us',
2044
1989
  Router: 'router'
2045
1990
  };
2046
1991
  /**
@@ -2124,17 +2069,6 @@ exports.FetchMarketsPaginatedExchangeEnum = {
2124
2069
  * @export
2125
2070
  */
2126
2071
  exports.FetchMatchedMarketsExchangeEnum = {
2127
- Polymarket: 'polymarket',
2128
- Kalshi: 'kalshi',
2129
- KalshiDemo: 'kalshi-demo',
2130
- Limitless: 'limitless',
2131
- Probable: 'probable',
2132
- Baozi: 'baozi',
2133
- Myriad: 'myriad',
2134
- Opinion: 'opinion',
2135
- Metaculus: 'metaculus',
2136
- Smarkets: 'smarkets',
2137
- PolymarketUs: 'polymarket_us',
2138
2072
  Router: 'router'
2139
2073
  };
2140
2074
  /**
@@ -2151,17 +2085,6 @@ exports.FetchMatchedMarketsRelationsEnum = {
2151
2085
  * @export
2152
2086
  */
2153
2087
  exports.FetchMatchedPricesExchangeEnum = {
2154
- Polymarket: 'polymarket',
2155
- Kalshi: 'kalshi',
2156
- KalshiDemo: 'kalshi-demo',
2157
- Limitless: 'limitless',
2158
- Probable: 'probable',
2159
- Baozi: 'baozi',
2160
- Myriad: 'myriad',
2161
- Opinion: 'opinion',
2162
- Metaculus: 'metaculus',
2163
- Smarkets: 'smarkets',
2164
- PolymarketUs: 'polymarket_us',
2165
2088
  Router: 'router'
2166
2089
  };
2167
2090
  /**
@@ -2280,17 +2203,6 @@ exports.FetchPositionsExchangeEnum = {
2280
2203
  * @export
2281
2204
  */
2282
2205
  exports.FetchRelatedMarketsExchangeEnum = {
2283
- Polymarket: 'polymarket',
2284
- Kalshi: 'kalshi',
2285
- KalshiDemo: 'kalshi-demo',
2286
- Limitless: 'limitless',
2287
- Probable: 'probable',
2288
- Baozi: 'baozi',
2289
- Myriad: 'myriad',
2290
- Opinion: 'opinion',
2291
- Metaculus: 'metaculus',
2292
- Smarkets: 'smarkets',
2293
- PolymarketUs: 'polymarket_us',
2294
2206
  Router: 'router'
2295
2207
  };
2296
2208
  /**
@@ -69,6 +69,12 @@ export interface CreateOrderParams {
69
69
  * @memberof CreateOrderParams
70
70
  */
71
71
  negRisk?: boolean;
72
+ /**
73
+ * Limitless delegated signing: profile ID to trade on behalf of
74
+ * @type {number}
75
+ * @memberof CreateOrderParams
76
+ */
77
+ onBehalfOf?: number;
72
78
  }
73
79
  /**
74
80
  * @export
@@ -66,6 +66,7 @@ function CreateOrderParamsFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'fee': json['fee'] == null ? undefined : json['fee'],
67
67
  'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
68
68
  'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
69
+ 'onBehalfOf': json['onBehalfOf'] == null ? undefined : json['onBehalfOf'],
69
70
  };
70
71
  }
71
72
  function CreateOrderParamsToJSON(json) {
@@ -85,5 +86,6 @@ function CreateOrderParamsToJSONTyped(value, ignoreDiscriminator = false) {
85
86
  'fee': value['fee'],
86
87
  'tickSize': value['tickSize'],
87
88
  'negRisk': value['negRisk'],
89
+ 'onBehalfOf': value['onBehalfOf'],
88
90
  };
89
91
  }
@@ -58,6 +58,12 @@ export interface ExchangeCredentials {
58
58
  * @memberof ExchangeCredentials
59
59
  */
60
60
  funderAddress?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ExchangeCredentials
65
+ */
66
+ walletAddress?: string;
61
67
  }
62
68
  /**
63
69
  * Check if a given object implements the ExchangeCredentials interface.
@@ -40,6 +40,7 @@ function ExchangeCredentialsFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
41
41
  'signatureType': json['signatureType'] == null ? undefined : (0, ExchangeCredentialsSignatureType_1.ExchangeCredentialsSignatureTypeFromJSON)(json['signatureType']),
42
42
  'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
43
+ 'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
43
44
  };
44
45
  }
45
46
  function ExchangeCredentialsToJSON(json) {
@@ -57,5 +58,6 @@ function ExchangeCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
57
58
  'privateKey': value['privateKey'],
58
59
  'signatureType': (0, ExchangeCredentialsSignatureType_1.ExchangeCredentialsSignatureTypeToJSON)(value['signatureType']),
59
60
  'funderAddress': value['funderAddress'],
61
+ 'walletAddress': value['walletAddress'],
60
62
  };
61
63
  }
@@ -154,7 +154,7 @@ class Router extends client_js_1.Exchange {
154
154
  if (params.includePrices)
155
155
  query.includePrices = true;
156
156
  try {
157
- const json = await this.sidecarReadRequest('fetchMatches', query, [query]);
157
+ const json = await this.sidecarReadRequest('fetchMarketMatches', query, [query]);
158
158
  const data = this.handleResponse(json);
159
159
  if (!data)
160
160
  return [];
@@ -15,6 +15,7 @@ Name | Type
15
15
  `fee` | number
16
16
  `tickSize` | number
17
17
  `negRisk` | boolean
18
+ `onBehalfOf` | number
18
19
 
19
20
  ## Example
20
21
 
@@ -32,6 +33,7 @@ const example = {
32
33
  "fee": null,
33
34
  "tickSize": null,
34
35
  "negRisk": null,
36
+ "onBehalfOf": null,
35
37
  } satisfies CreateOrderParams
36
38
 
37
39
  console.log(example)
@@ -280,7 +280,7 @@ async function example() {
280
280
  const api = new DefaultApi();
281
281
 
282
282
  const body = {
283
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
283
+ // 'router' | The prediction market exchange to target.
284
284
  exchange: exchange_example,
285
285
  // CompareMarketPricesRequest (optional)
286
286
  compareMarketPricesRequest: ...,
@@ -303,7 +303,7 @@ example().catch(console.error);
303
303
 
304
304
  | Name | Type | Description | Notes |
305
305
  |------------- | ------------- | ------------- | -------------|
306
- | **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] |
306
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
307
307
  | **compareMarketPricesRequest** | [CompareMarketPricesRequest](CompareMarketPricesRequest.md) | | [Optional] |
308
308
 
309
309
  ### Return type
@@ -498,7 +498,7 @@ async function example() {
498
498
  const api = new DefaultApi();
499
499
 
500
500
  const body = {
501
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
501
+ // 'router' | The prediction market exchange to target.
502
502
  exchange: exchange_example,
503
503
  // number (optional)
504
504
  minSpread: 8.14,
@@ -527,7 +527,7 @@ example().catch(console.error);
527
527
 
528
528
  | Name | Type | Description | Notes |
529
529
  |------------- | ------------- | ------------- | -------------|
530
- | **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] |
530
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
531
531
  | **minSpread** | `number` | | [Optional] [Defaults to `undefined`] |
532
532
  | **category** | `string` | | [Optional] [Defaults to `undefined`] |
533
533
  | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
@@ -827,7 +827,7 @@ async function example() {
827
827
  const api = new DefaultApi();
828
828
 
829
829
  const body = {
830
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
830
+ // 'router' | The prediction market exchange to target.
831
831
  exchange: exchange_example,
832
832
  // string | Keyword search across matched event titles. (optional)
833
833
  query: query_example,
@@ -866,7 +866,7 @@ example().catch(console.error);
866
866
 
867
867
  | Name | Type | Description | Notes |
868
868
  |------------- | ------------- | ------------- | -------------|
869
- | **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] |
869
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
870
870
  | **query** | `string` | Keyword search across matched event titles. | [Optional] [Defaults to `undefined`] |
871
871
  | **category** | `string` | Filter matches by category. | [Optional] [Defaults to `undefined`] |
872
872
  | **event** | [](.md) | Pass a UnifiedEvent directly instead of eventId/slug. | [Optional] [Defaults to `undefined`] |
@@ -1095,7 +1095,7 @@ async function example() {
1095
1095
  const api = new DefaultApi();
1096
1096
 
1097
1097
  const body = {
1098
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
1098
+ // 'router' | The prediction market exchange to target.
1099
1099
  exchange: exchange_example,
1100
1100
  // string | Keyword search across matched market titles. (optional)
1101
1101
  query: query_example,
@@ -1140,7 +1140,7 @@ example().catch(console.error);
1140
1140
 
1141
1141
  | Name | Type | Description | Notes |
1142
1142
  |------------- | ------------- | ------------- | -------------|
1143
- | **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] |
1143
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
1144
1144
  | **query** | `string` | Keyword search across matched market titles. | [Optional] [Defaults to `undefined`] |
1145
1145
  | **category** | `string` | Filter matches by category. | [Optional] [Defaults to `undefined`] |
1146
1146
  | **market** | [](.md) | Pass a UnifiedMarket directly instead of marketId/slug/url. | [Optional] [Defaults to `undefined`] |
@@ -1301,7 +1301,7 @@ async function example() {
1301
1301
  const api = new DefaultApi();
1302
1302
 
1303
1303
  const body = {
1304
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
1304
+ // 'router' | The prediction market exchange to target.
1305
1305
  exchange: exchange_example,
1306
1306
  // string | Keyword search across matched market titles. (optional)
1307
1307
  query: query_example,
@@ -1346,7 +1346,7 @@ example().catch(console.error);
1346
1346
 
1347
1347
  | Name | Type | Description | Notes |
1348
1348
  |------------- | ------------- | ------------- | -------------|
1349
- | **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] |
1349
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
1350
1350
  | **query** | `string` | Keyword search across matched market titles. | [Optional] [Defaults to `undefined`] |
1351
1351
  | **category** | `string` | Filter matches by category. | [Optional] [Defaults to `undefined`] |
1352
1352
  | **market** | [](.md) | Pass a UnifiedMarket directly instead of marketId/slug/url. | [Optional] [Defaults to `undefined`] |
@@ -1581,7 +1581,7 @@ async function example() {
1581
1581
  const api = new DefaultApi();
1582
1582
 
1583
1583
  const body = {
1584
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
1584
+ // 'router' | The prediction market exchange to target.
1585
1585
  exchange: exchange_example,
1586
1586
  // number (optional)
1587
1587
  minDifference: 8.14,
@@ -1610,7 +1610,7 @@ example().catch(console.error);
1610
1610
 
1611
1611
  | Name | Type | Description | Notes |
1612
1612
  |------------- | ------------- | ------------- | -------------|
1613
- | **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] |
1613
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
1614
1614
  | **minDifference** | `number` | | [Optional] [Defaults to `undefined`] |
1615
1615
  | **category** | `string` | | [Optional] [Defaults to `undefined`] |
1616
1616
  | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
@@ -1658,7 +1658,7 @@ async function example() {
1658
1658
  const api = new DefaultApi();
1659
1659
 
1660
1660
  const body = {
1661
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
1661
+ // 'router' | The prediction market exchange to target.
1662
1662
  exchange: exchange_example,
1663
1663
  // number (optional)
1664
1664
  minDifference: 8.14,
@@ -1687,7 +1687,7 @@ example().catch(console.error);
1687
1687
 
1688
1688
  | Name | Type | Description | Notes |
1689
1689
  |------------- | ------------- | ------------- | -------------|
1690
- | **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] |
1690
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
1691
1691
  | **minDifference** | `number` | | [Optional] [Defaults to `undefined`] |
1692
1692
  | **category** | `string` | | [Optional] [Defaults to `undefined`] |
1693
1693
  | **limit** | `number` | | [Optional] [Defaults to `undefined`] |
@@ -2185,7 +2185,7 @@ async function example() {
2185
2185
  const api = new DefaultApi();
2186
2186
 
2187
2187
  const body = {
2188
- // 'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'router' | The prediction market exchange to target.
2188
+ // 'router' | The prediction market exchange to target.
2189
2189
  exchange: exchange_example,
2190
2190
  // string | Keyword search across matched market titles. (optional)
2191
2191
  query: query_example,
@@ -2230,7 +2230,7 @@ example().catch(console.error);
2230
2230
 
2231
2231
  | Name | Type | Description | Notes |
2232
2232
  |------------- | ------------- | ------------- | -------------|
2233
- | **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] |
2233
+ | **exchange** | `router` | The prediction market exchange to target. | [Defaults to `undefined`] [Enum: router] |
2234
2234
  | **query** | `string` | Keyword search across matched market titles. | [Optional] [Defaults to `undefined`] |
2235
2235
  | **category** | `string` | Filter matches by category. | [Optional] [Defaults to `undefined`] |
2236
2236
  | **market** | [](.md) | Pass a UnifiedMarket directly instead of marketId/slug/url. | [Optional] [Defaults to `undefined`] |
@@ -14,6 +14,7 @@ Name | Type
14
14
  `privateKey` | string
15
15
  `signatureType` | [ExchangeCredentialsSignatureType](ExchangeCredentialsSignatureType.md)
16
16
  `funderAddress` | string
17
+ `walletAddress` | string
17
18
 
18
19
  ## Example
19
20
 
@@ -29,6 +30,7 @@ const example = {
29
30
  "privateKey": null,
30
31
  "signatureType": null,
31
32
  "funderAddress": null,
33
+ "walletAddress": null,
32
34
  } satisfies ExchangeCredentials
33
35
 
34
36
  console.log(example)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.37.8",
3
+ "version": "2.37.10",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -2767,17 +2767,6 @@ export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof
2767
2767
  * @export
2768
2768
  */
2769
2769
  export const CompareMarketPricesOperationExchangeEnum = {
2770
- Polymarket: 'polymarket',
2771
- Kalshi: 'kalshi',
2772
- KalshiDemo: 'kalshi-demo',
2773
- Limitless: 'limitless',
2774
- Probable: 'probable',
2775
- Baozi: 'baozi',
2776
- Myriad: 'myriad',
2777
- Opinion: 'opinion',
2778
- Metaculus: 'metaculus',
2779
- Smarkets: 'smarkets',
2780
- PolymarketUs: 'polymarket_us',
2781
2770
  Router: 'router'
2782
2771
  } as const;
2783
2772
  export type CompareMarketPricesOperationExchangeEnum = typeof CompareMarketPricesOperationExchangeEnum[keyof typeof CompareMarketPricesOperationExchangeEnum];
@@ -2821,17 +2810,6 @@ export type FetchAllOrdersExchangeEnum = typeof FetchAllOrdersExchangeEnum[keyof
2821
2810
  * @export
2822
2811
  */
2823
2812
  export const FetchArbitrageExchangeEnum = {
2824
- Polymarket: 'polymarket',
2825
- Kalshi: 'kalshi',
2826
- KalshiDemo: 'kalshi-demo',
2827
- Limitless: 'limitless',
2828
- Probable: 'probable',
2829
- Baozi: 'baozi',
2830
- Myriad: 'myriad',
2831
- Opinion: 'opinion',
2832
- Metaculus: 'metaculus',
2833
- Smarkets: 'smarkets',
2834
- PolymarketUs: 'polymarket_us',
2835
2813
  Router: 'router'
2836
2814
  } as const;
2837
2815
  export type FetchArbitrageExchangeEnum = typeof FetchArbitrageExchangeEnum[keyof typeof FetchArbitrageExchangeEnum];
@@ -2932,17 +2910,6 @@ export type FetchEventSearchInEnum = typeof FetchEventSearchInEnum[keyof typeof
2932
2910
  * @export
2933
2911
  */
2934
2912
  export const FetchEventMatchesExchangeEnum = {
2935
- Polymarket: 'polymarket',
2936
- Kalshi: 'kalshi',
2937
- KalshiDemo: 'kalshi-demo',
2938
- Limitless: 'limitless',
2939
- Probable: 'probable',
2940
- Baozi: 'baozi',
2941
- Myriad: 'myriad',
2942
- Opinion: 'opinion',
2943
- Metaculus: 'metaculus',
2944
- Smarkets: 'smarkets',
2945
- PolymarketUs: 'polymarket_us',
2946
2913
  Router: 'router'
2947
2914
  } as const;
2948
2915
  export type FetchEventMatchesExchangeEnum = typeof FetchEventMatchesExchangeEnum[keyof typeof FetchEventMatchesExchangeEnum];
@@ -3025,17 +2992,6 @@ export type FetchEventsPaginatedExchangeEnum = typeof FetchEventsPaginatedExchan
3025
2992
  * @export
3026
2993
  */
3027
2994
  export const FetchHedgesExchangeEnum = {
3028
- Polymarket: 'polymarket',
3029
- Kalshi: 'kalshi',
3030
- KalshiDemo: 'kalshi-demo',
3031
- Limitless: 'limitless',
3032
- Probable: 'probable',
3033
- Baozi: 'baozi',
3034
- Myriad: 'myriad',
3035
- Opinion: 'opinion',
3036
- Metaculus: 'metaculus',
3037
- Smarkets: 'smarkets',
3038
- PolymarketUs: 'polymarket_us',
3039
2995
  Router: 'router'
3040
2996
  } as const;
3041
2997
  export type FetchHedgesExchangeEnum = typeof FetchHedgesExchangeEnum[keyof typeof FetchHedgesExchangeEnum];
@@ -3109,17 +3065,6 @@ export type FetchMarketSearchInEnum = typeof FetchMarketSearchInEnum[keyof typeo
3109
3065
  * @export
3110
3066
  */
3111
3067
  export const FetchMarketMatchesExchangeEnum = {
3112
- Polymarket: 'polymarket',
3113
- Kalshi: 'kalshi',
3114
- KalshiDemo: 'kalshi-demo',
3115
- Limitless: 'limitless',
3116
- Probable: 'probable',
3117
- Baozi: 'baozi',
3118
- Myriad: 'myriad',
3119
- Opinion: 'opinion',
3120
- Metaculus: 'metaculus',
3121
- Smarkets: 'smarkets',
3122
- PolymarketUs: 'polymarket_us',
3123
3068
  Router: 'router'
3124
3069
  } as const;
3125
3070
  export type FetchMarketMatchesExchangeEnum = typeof FetchMarketMatchesExchangeEnum[keyof typeof FetchMarketMatchesExchangeEnum];
@@ -3211,17 +3156,6 @@ export type FetchMarketsPaginatedExchangeEnum = typeof FetchMarketsPaginatedExch
3211
3156
  * @export
3212
3157
  */
3213
3158
  export const FetchMatchedMarketsExchangeEnum = {
3214
- Polymarket: 'polymarket',
3215
- Kalshi: 'kalshi',
3216
- KalshiDemo: 'kalshi-demo',
3217
- Limitless: 'limitless',
3218
- Probable: 'probable',
3219
- Baozi: 'baozi',
3220
- Myriad: 'myriad',
3221
- Opinion: 'opinion',
3222
- Metaculus: 'metaculus',
3223
- Smarkets: 'smarkets',
3224
- PolymarketUs: 'polymarket_us',
3225
3159
  Router: 'router'
3226
3160
  } as const;
3227
3161
  export type FetchMatchedMarketsExchangeEnum = typeof FetchMatchedMarketsExchangeEnum[keyof typeof FetchMatchedMarketsExchangeEnum];
@@ -3240,17 +3174,6 @@ export type FetchMatchedMarketsRelationsEnum = typeof FetchMatchedMarketsRelatio
3240
3174
  * @export
3241
3175
  */
3242
3176
  export const FetchMatchedPricesExchangeEnum = {
3243
- Polymarket: 'polymarket',
3244
- Kalshi: 'kalshi',
3245
- KalshiDemo: 'kalshi-demo',
3246
- Limitless: 'limitless',
3247
- Probable: 'probable',
3248
- Baozi: 'baozi',
3249
- Myriad: 'myriad',
3250
- Opinion: 'opinion',
3251
- Metaculus: 'metaculus',
3252
- Smarkets: 'smarkets',
3253
- PolymarketUs: 'polymarket_us',
3254
3177
  Router: 'router'
3255
3178
  } as const;
3256
3179
  export type FetchMatchedPricesExchangeEnum = typeof FetchMatchedPricesExchangeEnum[keyof typeof FetchMatchedPricesExchangeEnum];
@@ -3377,17 +3300,6 @@ export type FetchPositionsExchangeEnum = typeof FetchPositionsExchangeEnum[keyof
3377
3300
  * @export
3378
3301
  */
3379
3302
  export const FetchRelatedMarketsExchangeEnum = {
3380
- Polymarket: 'polymarket',
3381
- Kalshi: 'kalshi',
3382
- KalshiDemo: 'kalshi-demo',
3383
- Limitless: 'limitless',
3384
- Probable: 'probable',
3385
- Baozi: 'baozi',
3386
- Myriad: 'myriad',
3387
- Opinion: 'opinion',
3388
- Metaculus: 'metaculus',
3389
- Smarkets: 'smarkets',
3390
- PolymarketUs: 'polymarket_us',
3391
3303
  Router: 'router'
3392
3304
  } as const;
3393
3305
  export type FetchRelatedMarketsExchangeEnum = typeof FetchRelatedMarketsExchangeEnum[keyof typeof FetchRelatedMarketsExchangeEnum];
@@ -73,6 +73,12 @@ export interface CreateOrderParams {
73
73
  * @memberof CreateOrderParams
74
74
  */
75
75
  negRisk?: boolean;
76
+ /**
77
+ * Limitless delegated signing: profile ID to trade on behalf of
78
+ * @type {number}
79
+ * @memberof CreateOrderParams
80
+ */
81
+ onBehalfOf?: number;
76
82
  }
77
83
 
78
84
 
@@ -126,6 +132,7 @@ export function CreateOrderParamsFromJSONTyped(json: any, ignoreDiscriminator: b
126
132
  'fee': json['fee'] == null ? undefined : json['fee'],
127
133
  'tickSize': json['tickSize'] == null ? undefined : json['tickSize'],
128
134
  'negRisk': json['negRisk'] == null ? undefined : json['negRisk'],
135
+ 'onBehalfOf': json['onBehalfOf'] == null ? undefined : json['onBehalfOf'],
129
136
  };
130
137
  }
131
138
 
@@ -149,6 +156,7 @@ export function CreateOrderParamsToJSONTyped(value?: CreateOrderParams | null, i
149
156
  'fee': value['fee'],
150
157
  'tickSize': value['tickSize'],
151
158
  'negRisk': value['negRisk'],
159
+ 'onBehalfOf': value['onBehalfOf'],
152
160
  };
153
161
  }
154
162
 
@@ -69,6 +69,12 @@ export interface ExchangeCredentials {
69
69
  * @memberof ExchangeCredentials
70
70
  */
71
71
  funderAddress?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof ExchangeCredentials
76
+ */
77
+ walletAddress?: string;
72
78
  }
73
79
 
74
80
  /**
@@ -95,6 +101,7 @@ export function ExchangeCredentialsFromJSONTyped(json: any, ignoreDiscriminator:
95
101
  'privateKey': json['privateKey'] == null ? undefined : json['privateKey'],
96
102
  'signatureType': json['signatureType'] == null ? undefined : ExchangeCredentialsSignatureTypeFromJSON(json['signatureType']),
97
103
  'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
104
+ 'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
98
105
  };
99
106
  }
100
107
 
@@ -116,6 +123,7 @@ export function ExchangeCredentialsToJSONTyped(value?: ExchangeCredentials | nul
116
123
  'privateKey': value['privateKey'],
117
124
  'signatureType': ExchangeCredentialsSignatureTypeToJSON(value['signatureType']),
118
125
  'funderAddress': value['funderAddress'],
126
+ 'walletAddress': value['walletAddress'],
119
127
  };
120
128
  }
121
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.37.8",
3
+ "version": "2.37.10",
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.37.8"
46
+ "pmxt-core": "2.37.10"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",
package/pmxt/router.ts CHANGED
@@ -170,7 +170,7 @@ export class Router extends Exchange {
170
170
  if (params.includePrices) query.includePrices = true;
171
171
 
172
172
  try {
173
- const json = await this.sidecarReadRequest('fetchMatches', query, [query]);
173
+ const json = await this.sidecarReadRequest('fetchMarketMatches', query, [query]);
174
174
  const data = this.handleResponse(json);
175
175
  if (!data) return [];
176
176
  return (data as any[]).map(parseMatchResult);