kalshi-typescript 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/.openapi-generator-ignore +9 -1
  3. package/README.md +6 -3
  4. package/api/exchange-api.ts +4 -4
  5. package/api/markets-api.ts +4 -4
  6. package/api/portfolio-api.ts +75 -1
  7. package/auth.ts +38 -0
  8. package/base.ts +51 -17
  9. package/common.ts +1 -1
  10. package/configuration.ts +1 -1
  11. package/dist/api/api-keys-api.d.ts +4 -4
  12. package/dist/api/communications-api.d.ts +11 -11
  13. package/dist/api/events-api.d.ts +3 -3
  14. package/dist/api/exchange-api.d.ts +8 -8
  15. package/dist/api/exchange-api.js +4 -4
  16. package/dist/api/markets-api.d.ts +9 -9
  17. package/dist/api/markets-api.js +4 -4
  18. package/dist/api/milestones-api.d.ts +2 -2
  19. package/dist/api/multivariate-collections-api.d.ts +3 -3
  20. package/dist/api/portfolio-api.d.ts +52 -19
  21. package/dist/api/portfolio-api.js +69 -1
  22. package/dist/api/series-api.d.ts +2 -2
  23. package/dist/api/structured-targets-api.d.ts +2 -2
  24. package/dist/auth.d.ts +7 -0
  25. package/dist/auth.js +33 -0
  26. package/dist/base.d.ts +25 -10
  27. package/dist/base.js +37 -6
  28. package/dist/esm/api/api-keys-api.d.ts +4 -4
  29. package/dist/esm/api/communications-api.d.ts +11 -11
  30. package/dist/esm/api/events-api.d.ts +3 -3
  31. package/dist/esm/api/exchange-api.d.ts +8 -8
  32. package/dist/esm/api/exchange-api.js +4 -4
  33. package/dist/esm/api/markets-api.d.ts +9 -9
  34. package/dist/esm/api/markets-api.js +4 -4
  35. package/dist/esm/api/milestones-api.d.ts +2 -2
  36. package/dist/esm/api/multivariate-collections-api.d.ts +3 -3
  37. package/dist/esm/api/portfolio-api.d.ts +52 -19
  38. package/dist/esm/api/portfolio-api.js +69 -1
  39. package/dist/esm/api/series-api.d.ts +2 -2
  40. package/dist/esm/api/structured-targets-api.d.ts +2 -2
  41. package/dist/esm/auth.d.ts +7 -0
  42. package/dist/esm/auth.js +29 -0
  43. package/dist/esm/base.d.ts +25 -10
  44. package/dist/esm/base.js +36 -5
  45. package/dist/esm/models/amend-order-request.d.ts +30 -0
  46. package/dist/esm/models/amend-order-request.js +8 -1
  47. package/dist/esm/models/create-order-group-request.d.ts +4 -1
  48. package/dist/esm/models/create-order-group-response.d.ts +4 -2
  49. package/dist/esm/models/create-order-request.d.ts +8 -0
  50. package/dist/esm/models/error-response-error.d.ts +1 -1
  51. package/dist/esm/models/event-position.d.ts +53 -0
  52. package/dist/esm/models/event-position.js +14 -0
  53. package/dist/esm/models/get-order-group-response.d.ts +21 -0
  54. package/dist/esm/models/get-order-group-response.js +14 -0
  55. package/dist/esm/models/get-order-response.d.ts +1 -1
  56. package/dist/esm/models/get-positions-response.d.ts +3 -1
  57. package/dist/esm/models/index.d.ts +2 -0
  58. package/dist/esm/models/index.js +2 -0
  59. package/dist/esm/models/order-group.d.ts +8 -4
  60. package/dist/esm/models/order.d.ts +16 -0
  61. package/dist/models/amend-order-request.d.ts +30 -0
  62. package/dist/models/amend-order-request.js +9 -0
  63. package/dist/models/create-order-group-request.d.ts +4 -1
  64. package/dist/models/create-order-group-response.d.ts +4 -2
  65. package/dist/models/create-order-request.d.ts +8 -0
  66. package/dist/models/error-response-error.d.ts +1 -1
  67. package/dist/models/event-position.d.ts +53 -0
  68. package/dist/models/event-position.js +15 -0
  69. package/dist/models/get-order-group-response.d.ts +21 -0
  70. package/dist/models/get-order-group-response.js +15 -0
  71. package/dist/models/get-order-response.d.ts +1 -1
  72. package/dist/models/get-positions-response.d.ts +3 -1
  73. package/dist/models/index.d.ts +2 -0
  74. package/dist/models/index.js +2 -0
  75. package/dist/models/order-group.d.ts +8 -4
  76. package/dist/models/order.d.ts +16 -0
  77. package/docs/AcceptQuoteRequest.md +1 -1
  78. package/docs/AmendOrderRequest.md +11 -1
  79. package/docs/AmendOrderResponse.md +1 -1
  80. package/docs/Announcement.md +1 -1
  81. package/docs/ApiKey.md +1 -1
  82. package/docs/ApiKeysApi.md +20 -8
  83. package/docs/BatchCancelOrdersRequest.md +1 -1
  84. package/docs/BatchCancelOrdersResponse.md +1 -1
  85. package/docs/BatchCancelOrdersResponseResponsesInner.md +1 -1
  86. package/docs/BatchCreateOrdersRequest.md +1 -1
  87. package/docs/BatchCreateOrdersResponse.md +1 -1
  88. package/docs/BatchCreateOrdersResponseResponsesInner.md +1 -1
  89. package/docs/CancelOrderResponse.md +1 -1
  90. package/docs/Candlestick.md +1 -1
  91. package/docs/CommunicationsApi.md +55 -22
  92. package/docs/CreateApiKeyRequest.md +1 -1
  93. package/docs/CreateApiKeyResponse.md +1 -1
  94. package/docs/CreateOrderGroupRequest.md +3 -3
  95. package/docs/CreateOrderGroupResponse.md +3 -3
  96. package/docs/CreateOrderRequest.md +5 -1
  97. package/docs/CreateOrderResponse.md +1 -1
  98. package/docs/CreateQuoteRequest.md +1 -1
  99. package/docs/CreateQuoteResponse.md +1 -1
  100. package/docs/CreateRFQRequest.md +1 -1
  101. package/docs/CreateRFQResponse.md +1 -1
  102. package/docs/DailySchedule.md +1 -1
  103. package/docs/DecreaseOrderRequest.md +1 -1
  104. package/docs/DecreaseOrderResponse.md +1 -1
  105. package/docs/ErrorResponse.md +1 -1
  106. package/docs/ErrorResponseError.md +2 -2
  107. package/docs/Event.md +1 -1
  108. package/docs/EventPosition.md +38 -0
  109. package/docs/EventsApi.md +15 -6
  110. package/docs/ExchangeApi.md +21 -9
  111. package/docs/ExchangeStatus.md +1 -1
  112. package/docs/Fill.md +1 -1
  113. package/docs/GenerateApiKeyRequest.md +1 -1
  114. package/docs/GenerateApiKeyResponse.md +1 -1
  115. package/docs/GetApiKeysResponse.md +1 -1
  116. package/docs/GetBalanceResponse.md +1 -1
  117. package/docs/GetCommunicationsIDResponse.md +1 -1
  118. package/docs/GetEventMetadataResponse.md +1 -1
  119. package/docs/GetEventResponse.md +1 -1
  120. package/docs/GetEventsResponse.md +1 -1
  121. package/docs/GetExchangeAnnouncementsResponse.md +1 -1
  122. package/docs/GetExchangeScheduleResponse.md +1 -1
  123. package/docs/GetExchangeScheduleResponseSchedule.md +1 -1
  124. package/docs/GetFillsResponse.md +1 -1
  125. package/docs/GetMarketCandlesticksResponse.md +1 -1
  126. package/docs/GetMarketOrderbookResponse.md +1 -1
  127. package/docs/GetMarketOrderbookResponseOrderbook.md +1 -1
  128. package/docs/GetMarketResponse.md +1 -1
  129. package/docs/GetMarketsResponse.md +1 -1
  130. package/docs/GetMilestoneResponse.md +1 -1
  131. package/docs/GetMilestonesResponse.md +1 -1
  132. package/docs/GetMultivariateEventCollectionResponse.md +1 -1
  133. package/docs/GetMultivariateEventCollectionsResponse.md +1 -1
  134. package/docs/GetOrderGroupResponse.md +22 -0
  135. package/docs/GetOrderGroupsResponse.md +1 -1
  136. package/docs/GetOrderQueuePositionResponse.md +1 -1
  137. package/docs/GetOrderResponse.md +2 -2
  138. package/docs/GetOrdersResponse.md +1 -1
  139. package/docs/GetPositionsResponse.md +5 -3
  140. package/docs/GetQueuePositionsRequest.md +1 -1
  141. package/docs/GetQueuePositionsResponse.md +1 -1
  142. package/docs/GetQuoteResponse.md +1 -1
  143. package/docs/GetQuotesResponse.md +1 -1
  144. package/docs/GetRFQResponse.md +1 -1
  145. package/docs/GetRFQsResponse.md +1 -1
  146. package/docs/GetSeriesByTickerResponse.md +1 -1
  147. package/docs/GetSeriesResponse.md +1 -1
  148. package/docs/GetSettlementsResponse.md +1 -1
  149. package/docs/GetStructuredTargetResponse.md +1 -1
  150. package/docs/GetStructuredTargetsResponse.md +1 -1
  151. package/docs/GetTotalRestingOrderValueResponse.md +1 -1
  152. package/docs/GetTradesResponse.md +1 -1
  153. package/docs/GetUserDataTimestampResponse.md +1 -1
  154. package/docs/LookupBundleRequest.md +1 -1
  155. package/docs/LookupBundleRequestBundleInner.md +1 -1
  156. package/docs/LookupBundleResponse.md +1 -1
  157. package/docs/Market.md +1 -1
  158. package/docs/MarketsApi.md +26 -11
  159. package/docs/Milestone.md +1 -1
  160. package/docs/MilestonesApi.md +10 -4
  161. package/docs/MultivariateCollectionsApi.md +15 -6
  162. package/docs/MultivariateEventCollection.md +1 -1
  163. package/docs/MultivariateEventCollectionEventsInner.md +1 -1
  164. package/docs/Order.md +9 -1
  165. package/docs/OrderGroup.md +5 -9
  166. package/docs/OrderbookLevel.md +1 -1
  167. package/docs/PortfolioApi.md +154 -39
  168. package/docs/Position.md +1 -1
  169. package/docs/Quote.md +1 -1
  170. package/docs/RFQ.md +1 -1
  171. package/docs/Series.md +1 -1
  172. package/docs/SeriesApi.md +10 -4
  173. package/docs/Settlement.md +1 -1
  174. package/docs/StructuredTarget.md +1 -1
  175. package/docs/StructuredTargetsApi.md +10 -4
  176. package/docs/Trade.md +1 -1
  177. package/models/amend-order-request.ts +34 -0
  178. package/models/create-order-group-request.ts +4 -1
  179. package/models/create-order-group-response.ts +4 -4
  180. package/models/create-order-request.ts +8 -0
  181. package/models/error-response-error.ts +1 -1
  182. package/models/event-position.ts +59 -0
  183. package/models/get-order-group-response.ts +27 -0
  184. package/models/get-order-response.ts +1 -1
  185. package/models/get-positions-response.ts +5 -1
  186. package/models/index.ts +2 -0
  187. package/models/order-group.ts +8 -4
  188. package/models/order.ts +16 -0
  189. package/package.json +4 -4
@@ -1,6 +1,5 @@
1
1
  .gitignore
2
2
  .npmignore
3
- .openapi-generator-ignore
4
3
  README.md
5
4
  api.ts
6
5
  api/api-keys-api.ts
@@ -47,6 +46,7 @@ docs/DecreaseOrderResponse.md
47
46
  docs/ErrorResponse.md
48
47
  docs/ErrorResponseError.md
49
48
  docs/Event.md
49
+ docs/EventPosition.md
50
50
  docs/EventsApi.md
51
51
  docs/ExchangeApi.md
52
52
  docs/ExchangeStatus.md
@@ -72,6 +72,7 @@ docs/GetMilestoneResponse.md
72
72
  docs/GetMilestonesResponse.md
73
73
  docs/GetMultivariateEventCollectionResponse.md
74
74
  docs/GetMultivariateEventCollectionsResponse.md
75
+ docs/GetOrderGroupResponse.md
75
76
  docs/GetOrderGroupsResponse.md
76
77
  docs/GetOrderQueuePositionResponse.md
77
78
  docs/GetOrderResponse.md
@@ -144,6 +145,7 @@ models/decrease-order-request.ts
144
145
  models/decrease-order-response.ts
145
146
  models/error-response-error.ts
146
147
  models/error-response.ts
148
+ models/event-position.ts
147
149
  models/event.ts
148
150
  models/exchange-status.ts
149
151
  models/fill.ts
@@ -168,6 +170,7 @@ models/get-milestone-response.ts
168
170
  models/get-milestones-response.ts
169
171
  models/get-multivariate-event-collection-response.ts
170
172
  models/get-multivariate-event-collections-response.ts
173
+ models/get-order-group-response.ts
171
174
  models/get-order-groups-response.ts
172
175
  models/get-order-queue-position-response.ts
173
176
  models/get-order-response.ts
@@ -1,3 +1,9 @@
1
+ # IMPORTANT: this file is generated with the option `openapiGeneratorIgnoreList` enabled
2
+ # (--openapi-generator-ignore-list in CLI for example) so the entries below are pre-populated based
3
+ # on the input provided by the users and this file will be overwritten every time when the option is
4
+ # enabled (which is the exact opposite of the default behaviour to not overwrite
5
+ # .openapi-generator-ignore if the file exists).
6
+
1
7
  # OpenAPI Generator Ignore
2
8
  # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
9
 
@@ -22,4 +28,6 @@
22
28
  # Then explicitly reverse the ignore rule for a single file:
23
29
  #!docs/README.md
24
30
 
25
- package.json
31
+ # The following entries are pre-populated based on the input obtained via
32
+ # the option `openapiGeneratorIgnoreList` (--openapi-generator-ignore-list in CLI for example).
33
+ auth.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @kalshi/trading-api@2.1.0
1
+ ## kalshi-typescript@2.1.2
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @kalshi/trading-api@2.1.0 --save
39
+ npm install kalshi-typescript@2.1.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
94
94
  *PortfolioApi* | [**getBalance**](docs/PortfolioApi.md#getbalance) | **GET** /portfolio/balance | Get Balance
95
95
  *PortfolioApi* | [**getFills**](docs/PortfolioApi.md#getfills) | **GET** /portfolio/fills | Get Fills
96
96
  *PortfolioApi* | [**getOrder**](docs/PortfolioApi.md#getorder) | **GET** /portfolio/orders/{order_id} | Get Order
97
+ *PortfolioApi* | [**getOrderGroup**](docs/PortfolioApi.md#getordergroup) | **GET** /portfolio/order_groups/{order_group_id} | Get Order Group
97
98
  *PortfolioApi* | [**getOrderGroups**](docs/PortfolioApi.md#getordergroups) | **GET** /portfolio/order_groups | Get Order Groups
98
99
  *PortfolioApi* | [**getOrderQueuePosition**](docs/PortfolioApi.md#getorderqueueposition) | **GET** /portfolio/orders/{order_id}/queue_position | Get Order Queue Position
99
100
  *PortfolioApi* | [**getOrders**](docs/PortfolioApi.md#getorders) | **GET** /portfolio/orders | Get Orders
@@ -101,7 +102,7 @@ Class | Method | HTTP request | Description
101
102
  *PortfolioApi* | [**getQueuePositions**](docs/PortfolioApi.md#getqueuepositions) | **POST** /portfolio/orders/queue_positions | Get Queue Positions
102
103
  *PortfolioApi* | [**getSettlements**](docs/PortfolioApi.md#getsettlements) | **GET** /portfolio/settlements | Get Settlements
103
104
  *PortfolioApi* | [**getTotalRestingOrderValue**](docs/PortfolioApi.md#gettotalrestingordervalue) | **GET** /portfolio/summary/total_resting_order_value | Get Total Resting Order Value
104
- *PortfolioApi* | [**resetOrderGroup**](docs/PortfolioApi.md#resetordergroup) | **POST** /portfolio/order_groups/{order_group_id}/reset | Reset Order Group
105
+ *PortfolioApi* | [**resetOrderGroup**](docs/PortfolioApi.md#resetordergroup) | **PUT** /portfolio/order_groups/{order_group_id}/reset | Reset Order Group
105
106
  *SeriesApi* | [**getSeries**](docs/SeriesApi.md#getseries) | **GET** /series | Get Series
106
107
  *SeriesApi* | [**getSeriesByTicker**](docs/SeriesApi.md#getseriesbyticker) | **GET** /series/{ticker} | Get Series by Ticker
107
108
  *StructuredTargetsApi* | [**getStructuredTarget**](docs/StructuredTargetsApi.md#getstructuredtarget) | **GET** /structured_targets/{structured_target_id} | Get Structured Target
@@ -139,6 +140,7 @@ Class | Method | HTTP request | Description
139
140
  - [ErrorResponse](docs/ErrorResponse.md)
140
141
  - [ErrorResponseError](docs/ErrorResponseError.md)
141
142
  - [Event](docs/Event.md)
143
+ - [EventPosition](docs/EventPosition.md)
142
144
  - [ExchangeStatus](docs/ExchangeStatus.md)
143
145
  - [Fill](docs/Fill.md)
144
146
  - [GenerateApiKeyRequest](docs/GenerateApiKeyRequest.md)
@@ -162,6 +164,7 @@ Class | Method | HTTP request | Description
162
164
  - [GetMilestonesResponse](docs/GetMilestonesResponse.md)
163
165
  - [GetMultivariateEventCollectionResponse](docs/GetMultivariateEventCollectionResponse.md)
164
166
  - [GetMultivariateEventCollectionsResponse](docs/GetMultivariateEventCollectionsResponse.md)
167
+ - [GetOrderGroupResponse](docs/GetOrderGroupResponse.md)
165
168
  - [GetOrderGroupsResponse](docs/GetOrderGroupsResponse.md)
166
169
  - [GetOrderQueuePositionResponse](docs/GetOrderQueuePositionResponse.md)
167
170
  - [GetOrderResponse](docs/GetOrderResponse.md)
@@ -130,7 +130,7 @@ export const ExchangeApiAxiosParamCreator = function (configuration?: Configurat
130
130
  };
131
131
  },
132
132
  /**
133
- * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
133
+ * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
134
134
  * @summary Get User Data Timestamp
135
135
  * @param {*} [options] Override http request option.
136
136
  * @throws {RequiredError}
@@ -209,7 +209,7 @@ export const ExchangeApiFp = function(configuration?: Configuration) {
209
209
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
210
210
  },
211
211
  /**
212
- * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
212
+ * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
213
213
  * @summary Get User Data Timestamp
214
214
  * @param {*} [options] Override http request option.
215
215
  * @throws {RequiredError}
@@ -257,7 +257,7 @@ export const ExchangeApiFactory = function (configuration?: Configuration, baseP
257
257
  return localVarFp.getExchangeStatus(options).then((request) => request(axios, basePath));
258
258
  },
259
259
  /**
260
- * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
260
+ * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
261
261
  * @summary Get User Data Timestamp
262
262
  * @param {*} [options] Override http request option.
263
263
  * @throws {RequiredError}
@@ -303,7 +303,7 @@ export class ExchangeApi extends BaseAPI {
303
303
  }
304
304
 
305
305
  /**
306
- * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
306
+ * There is typically a short delay before exchange events are reflected in the API endpoints. Whenever possible, combine API responses to PUT/POST/DELETE requests with websocket data to obtain the most accurate view of the exchange state. This endpoint provides an approximate indication of when the data from the following endpoints was last validated: GetBalance, GetOrder(s), GetFills, GetPositions
307
307
  * @summary Get User Data Timestamp
308
308
  * @param {*} [options] Override http request option.
309
309
  * @throws {RequiredError}
@@ -180,7 +180,7 @@ export const MarketsApiAxiosParamCreator = function (configuration?: Configurati
180
180
  };
181
181
  },
182
182
  /**
183
- * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
183
+ * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
184
184
  * @summary Get Markets
185
185
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
186
186
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
@@ -362,7 +362,7 @@ export const MarketsApiFp = function(configuration?: Configuration) {
362
362
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
363
363
  },
364
364
  /**
365
- * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
365
+ * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
366
366
  * @summary Get Markets
367
367
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
368
368
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
@@ -443,7 +443,7 @@ export const MarketsApiFactory = function (configuration?: Configuration, basePa
443
443
  return localVarFp.getMarketOrderbook(ticker, depth, options).then((request) => request(axios, basePath));
444
444
  },
445
445
  /**
446
- * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
446
+ * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
447
447
  * @summary Get Markets
448
448
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
449
449
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
@@ -519,7 +519,7 @@ export class MarketsApi extends BaseAPI {
519
519
  }
520
520
 
521
521
  /**
522
- * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
522
+ * List and discover markets on Kalshi. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-1000, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
523
523
  * @summary Get Markets
524
524
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 1000.
525
525
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
@@ -57,6 +57,8 @@ import type { GetBalanceResponse } from '../models';
57
57
  // @ts-ignore
58
58
  import type { GetFillsResponse } from '../models';
59
59
  // @ts-ignore
60
+ import type { GetOrderGroupResponse } from '../models';
61
+ // @ts-ignore
60
62
  import type { GetOrderGroupsResponse } from '../models';
61
63
  // @ts-ignore
62
64
  import type { GetOrderQueuePositionResponse } from '../models';
@@ -530,6 +532,44 @@ export const PortfolioApiAxiosParamCreator = function (configuration?: Configura
530
532
 
531
533
 
532
534
 
535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
538
+
539
+ return {
540
+ url: toPathString(localVarUrlObj),
541
+ options: localVarRequestOptions,
542
+ };
543
+ },
544
+ /**
545
+ * Get details of a specific order group
546
+ * @summary Get Order Group
547
+ * @param {string} orderGroupId Order group ID
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ getOrderGroup: async (orderGroupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
552
+ // verify required parameter 'orderGroupId' is not null or undefined
553
+ assertParamExists('getOrderGroup', 'orderGroupId', orderGroupId)
554
+ const localVarPath = `/portfolio/order_groups/{order_group_id}`
555
+ .replace(`{${"order_group_id"}}`, encodeURIComponent(String(orderGroupId)));
556
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
557
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
558
+ let baseOptions;
559
+ if (configuration) {
560
+ baseOptions = configuration.baseOptions;
561
+ }
562
+
563
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
564
+ const localVarHeaderParameter = {} as any;
565
+ const localVarQueryParameter = {} as any;
566
+
567
+ // authentication bearerAuth required
568
+ // http bearer authentication required
569
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
570
+
571
+
572
+
533
573
  setSearchParams(localVarUrlObj, localVarQueryParameter);
534
574
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
575
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -896,7 +936,7 @@ export const PortfolioApiAxiosParamCreator = function (configuration?: Configura
896
936
  baseOptions = configuration.baseOptions;
897
937
  }
898
938
 
899
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
939
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
900
940
  const localVarHeaderParameter = {} as any;
901
941
  const localVarQueryParameter = {} as any;
902
942
 
@@ -1073,6 +1113,19 @@ export const PortfolioApiFp = function(configuration?: Configuration) {
1073
1113
  const localVarOperationServerBasePath = operationServerMap['PortfolioApi.getOrder']?.[localVarOperationServerIndex]?.url;
1074
1114
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1075
1115
  },
1116
+ /**
1117
+ * Get details of a specific order group
1118
+ * @summary Get Order Group
1119
+ * @param {string} orderGroupId Order group ID
1120
+ * @param {*} [options] Override http request option.
1121
+ * @throws {RequiredError}
1122
+ */
1123
+ async getOrderGroup(orderGroupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrderGroupResponse>> {
1124
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderGroup(orderGroupId, options);
1125
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1126
+ const localVarOperationServerBasePath = operationServerMap['PortfolioApi.getOrderGroup']?.[localVarOperationServerIndex]?.url;
1127
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1128
+ },
1076
1129
  /**
1077
1130
  * Get order groups for the logged-in user
1078
1131
  * @summary Get Order Groups
@@ -1315,6 +1368,16 @@ export const PortfolioApiFactory = function (configuration?: Configuration, base
1315
1368
  getOrder(orderId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetOrderResponse> {
1316
1369
  return localVarFp.getOrder(orderId, options).then((request) => request(axios, basePath));
1317
1370
  },
1371
+ /**
1372
+ * Get details of a specific order group
1373
+ * @summary Get Order Group
1374
+ * @param {string} orderGroupId Order group ID
1375
+ * @param {*} [options] Override http request option.
1376
+ * @throws {RequiredError}
1377
+ */
1378
+ getOrderGroup(orderGroupId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetOrderGroupResponse> {
1379
+ return localVarFp.getOrderGroup(orderGroupId, options).then((request) => request(axios, basePath));
1380
+ },
1318
1381
  /**
1319
1382
  * Get order groups for the logged-in user
1320
1383
  * @summary Get Order Groups
@@ -1542,6 +1605,17 @@ export class PortfolioApi extends BaseAPI {
1542
1605
  return PortfolioApiFp(this.configuration).getOrder(orderId, options).then((request) => request(this.axios, this.basePath));
1543
1606
  }
1544
1607
 
1608
+ /**
1609
+ * Get details of a specific order group
1610
+ * @summary Get Order Group
1611
+ * @param {string} orderGroupId Order group ID
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ */
1615
+ public getOrderGroup(orderGroupId: string, options?: RawAxiosRequestConfig) {
1616
+ return PortfolioApiFp(this.configuration).getOrderGroup(orderGroupId, options).then((request) => request(this.axios, this.basePath));
1617
+ }
1618
+
1545
1619
  /**
1546
1620
  * Get order groups for the logged-in user
1547
1621
  * @summary Get Order Groups
package/auth.ts ADDED
@@ -0,0 +1,38 @@
1
+ import * as crypto from 'crypto';
2
+
3
+ export class KalshiAuth {
4
+ private apiKey: string;
5
+ private privateKeyPem: string;
6
+
7
+ constructor(apiKey: string, privateKeyPem: string) {
8
+ this.apiKey = apiKey;
9
+ this.privateKeyPem = privateKeyPem;
10
+ }
11
+
12
+ private signPssText(text: string): string {
13
+ const sign = crypto.createSign('RSA-SHA256');
14
+ sign.update(text);
15
+ sign.end();
16
+
17
+ const signature = sign.sign({
18
+ key: this.privateKeyPem,
19
+ padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
20
+ saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST,
21
+ });
22
+
23
+ return signature.toString('base64');
24
+ }
25
+
26
+ public generateAuthHeaders(method: string, path: string): Record<string, string> {
27
+ const currentTimeMilliseconds = Date.now();
28
+ const timestampStr = currentTimeMilliseconds.toString();
29
+ const msgString = timestampStr + method + path;
30
+ const sig = this.signPssText(msgString);
31
+
32
+ return {
33
+ 'KALSHI-ACCESS-KEY': this.apiKey,
34
+ 'KALSHI-ACCESS-SIGNATURE': sig,
35
+ 'KALSHI-ACCESS-TIMESTAMP': timestampStr
36
+ };
37
+ }
38
+ }
package/base.ts CHANGED
@@ -1,5 +1,3 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
1
  /**
4
2
  * Kalshi Trading API
5
3
  * Complete API for the Kalshi trading platform including all handlers for SDK generation
@@ -12,15 +10,22 @@
12
10
  * Do not edit the class manually.
13
11
  */
14
12
 
13
+ /* tslint:disable */
14
+ /* eslint-disable */
15
15
 
16
16
  import type { Configuration } from './configuration';
17
17
  // Some imports not used depending on template conditions
18
18
  // @ts-ignore
19
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
19
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig, Method } from 'axios';
20
20
  import globalAxios from 'axios';
21
+ import { KalshiAuth } from './auth';
21
22
 
22
23
  export const BASE_PATH = "https://api.elections.kalshi.com/trade-api/v2".replace(/\/+$/, "");
23
24
 
25
+ /**
26
+ *
27
+ * @export
28
+ */
24
29
  export const COLLECTION_FORMATS = {
25
30
  csv: ",",
26
31
  ssv: " ",
@@ -28,35 +33,64 @@ export const COLLECTION_FORMATS = {
28
33
  pipes: "|",
29
34
  };
30
35
 
36
+ /**
37
+ *
38
+ * @export
39
+ * @interface RequestArgs
40
+ */
31
41
  export interface RequestArgs {
32
42
  url: string;
33
- options: RawAxiosRequestConfig;
43
+ options: AxiosRequestConfig;
34
44
  }
35
45
 
46
+ /**
47
+ *
48
+ * @export
49
+ * @class BaseAPI
50
+ */
36
51
  export class BaseAPI {
37
52
  protected configuration: Configuration | undefined;
53
+ protected auth: KalshiAuth | undefined;
38
54
 
39
55
  constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
40
56
  if (configuration) {
41
57
  this.configuration = configuration;
42
- this.basePath = configuration.basePath ?? basePath;
58
+ this.basePath = configuration.basePath || this.basePath;
59
+
60
+ // Initialize auth if credentials are provided
61
+ if (configuration.apiKey && (configuration.privateKeyPath || configuration.privateKeyPem)) {
62
+ const privateKey = configuration.privateKeyPem ||
63
+ (configuration.privateKeyPath ? require('fs').readFileSync(configuration.privateKeyPath, 'utf8') : '');
64
+ this.auth = new KalshiAuth(configuration.apiKey, privateKey);
65
+ }
43
66
  }
67
+
68
+ // Add request interceptor for authentication
69
+ this.axios.interceptors.request.use((config) => {
70
+ if (this.auth && config.url && config.method) {
71
+ // Extract path from URL
72
+ const url = new URL(config.url, this.basePath);
73
+ const path = url.pathname;
74
+ const method = config.method.toUpperCase();
75
+
76
+ // Generate and add auth headers
77
+ const authHeaders = this.auth.generateAuthHeaders(method, path);
78
+ Object.assign(config.headers, authHeaders);
79
+ }
80
+ return config;
81
+ });
44
82
  }
45
83
  };
46
84
 
85
+ /**
86
+ *
87
+ * @export
88
+ * @class RequiredError
89
+ * @extends {Error}
90
+ */
47
91
  export class RequiredError extends Error {
92
+ name: "RequiredError" = "RequiredError";
48
93
  constructor(public field: string, msg?: string) {
49
94
  super(msg);
50
- this.name = "RequiredError"
51
95
  }
52
- }
53
-
54
- interface ServerMap {
55
- [key: string]: {
56
- url: string,
57
- description: string,
58
- }[];
59
- }
60
-
61
- export const operationServerMap: ServerMap = {
62
- }
96
+ }
package/common.ts CHANGED
@@ -95,4 +95,4 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
95
95
  const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
96
96
  return axios.request<T, R>(axiosRequestArgs);
97
97
  };
98
- }
98
+ }
package/configuration.ts CHANGED
@@ -91,4 +91,4 @@ export class Configuration {
91
91
  const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
92
92
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
93
93
  }
94
- }
94
+ }
@@ -136,7 +136,7 @@ export declare class ApiKeysApi extends BaseAPI {
136
136
  * @param {*} [options] Override http request option.
137
137
  * @throws {RequiredError}
138
138
  */
139
- createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateApiKeyResponse, any>>;
139
+ createApiKey(createApiKeyRequest: CreateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateApiKeyResponse, any, {}>>;
140
140
  /**
141
141
  * Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
142
142
  * @summary Delete API Key
@@ -144,7 +144,7 @@ export declare class ApiKeysApi extends BaseAPI {
144
144
  * @param {*} [options] Override http request option.
145
145
  * @throws {RequiredError}
146
146
  */
147
- deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
147
+ deleteApiKey(apiKey: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
148
148
  /**
149
149
  * Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
150
150
  * @summary Generate API Key
@@ -152,12 +152,12 @@ export declare class ApiKeysApi extends BaseAPI {
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
154
154
  */
155
- generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateApiKeyResponse, any>>;
155
+ generateApiKey(generateApiKeyRequest: GenerateApiKeyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateApiKeyResponse, any, {}>>;
156
156
  /**
157
157
  * Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
158
158
  * @summary Get API Keys
159
159
  * @param {*} [options] Override http request option.
160
160
  * @throws {RequiredError}
161
161
  */
162
- getApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetApiKeysResponse, any>>;
162
+ getApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetApiKeysResponse, any, {}>>;
163
163
  }
@@ -307,7 +307,7 @@ export declare class CommunicationsApi extends BaseAPI {
307
307
  * @param {*} [options] Override http request option.
308
308
  * @throws {RequiredError}
309
309
  */
310
- acceptQuote(quoteId: string, acceptQuoteRequest: AcceptQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
310
+ acceptQuote(quoteId: string, acceptQuoteRequest: AcceptQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
311
311
  /**
312
312
  * Confirm a quote. This will start a timer for order execution
313
313
  * @summary Confirm Quote
@@ -315,7 +315,7 @@ export declare class CommunicationsApi extends BaseAPI {
315
315
  * @param {*} [options] Override http request option.
316
316
  * @throws {RequiredError}
317
317
  */
318
- confirmQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
318
+ confirmQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
319
319
  /**
320
320
  * Create a quote in response to an RFQ
321
321
  * @summary Create Quote
@@ -323,7 +323,7 @@ export declare class CommunicationsApi extends BaseAPI {
323
323
  * @param {*} [options] Override http request option.
324
324
  * @throws {RequiredError}
325
325
  */
326
- createQuote(createQuoteRequest: CreateQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQuoteResponse, any>>;
326
+ createQuote(createQuoteRequest: CreateQuoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateQuoteResponse, any, {}>>;
327
327
  /**
328
328
  * Create a new RFQ
329
329
  * @summary Create RFQ
@@ -331,7 +331,7 @@ export declare class CommunicationsApi extends BaseAPI {
331
331
  * @param {*} [options] Override http request option.
332
332
  * @throws {RequiredError}
333
333
  */
334
- createRFQ(createRFQRequest: CreateRFQRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRFQResponse, any>>;
334
+ createRFQ(createRFQRequest: CreateRFQRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRFQResponse, any, {}>>;
335
335
  /**
336
336
  * Delete a quote, which means it can no longer be accepted
337
337
  * @summary Delete Quote
@@ -339,7 +339,7 @@ export declare class CommunicationsApi extends BaseAPI {
339
339
  * @param {*} [options] Override http request option.
340
340
  * @throws {RequiredError}
341
341
  */
342
- deleteQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
342
+ deleteQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
343
343
  /**
344
344
  * Delete an RFQ by ID
345
345
  * @summary Delete RFQ
@@ -347,14 +347,14 @@ export declare class CommunicationsApi extends BaseAPI {
347
347
  * @param {*} [options] Override http request option.
348
348
  * @throws {RequiredError}
349
349
  */
350
- deleteRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
350
+ deleteRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
351
351
  /**
352
352
  * Get the communications ID of the logged-in user
353
353
  * @summary Get Communications ID
354
354
  * @param {*} [options] Override http request option.
355
355
  * @throws {RequiredError}
356
356
  */
357
- getCommunicationsID(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommunicationsIDResponse, any>>;
357
+ getCommunicationsID(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommunicationsIDResponse, any, {}>>;
358
358
  /**
359
359
  * Get a particular quote by ID
360
360
  * @summary Get Quote
@@ -362,14 +362,14 @@ export declare class CommunicationsApi extends BaseAPI {
362
362
  * @param {*} [options] Override http request option.
363
363
  * @throws {RequiredError}
364
364
  */
365
- getQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuoteResponse, any>>;
365
+ getQuote(quoteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuoteResponse, any, {}>>;
366
366
  /**
367
367
  * Retrieve all quotes
368
368
  * @summary Get Quotes
369
369
  * @param {*} [options] Override http request option.
370
370
  * @throws {RequiredError}
371
371
  */
372
- getQuotes(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuotesResponse, any>>;
372
+ getQuotes(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetQuotesResponse, any, {}>>;
373
373
  /**
374
374
  * Get a single RFQ by ID
375
375
  * @summary Get RFQ
@@ -377,12 +377,12 @@ export declare class CommunicationsApi extends BaseAPI {
377
377
  * @param {*} [options] Override http request option.
378
378
  * @throws {RequiredError}
379
379
  */
380
- getRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQResponse, any>>;
380
+ getRFQ(rfqId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQResponse, any, {}>>;
381
381
  /**
382
382
  * Retrieve all RFQs
383
383
  * @summary Get RFQs
384
384
  * @param {*} [options] Override http request option.
385
385
  * @throws {RequiredError}
386
386
  */
387
- getRFQs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQsResponse, any>>;
387
+ getRFQs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRFQsResponse, any, {}>>;
388
388
  }
@@ -132,7 +132,7 @@ export declare class EventsApi extends BaseAPI {
132
132
  * @param {*} [options] Override http request option.
133
133
  * @throws {RequiredError}
134
134
  */
135
- getEvent(eventTicker: string, withNestedMarkets?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventResponse, any>>;
135
+ getEvent(eventTicker: string, withNestedMarkets?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventResponse, any, {}>>;
136
136
  /**
137
137
  * Get metadata about an event by its ticker
138
138
  * @summary Get Event Metadata
@@ -140,7 +140,7 @@ export declare class EventsApi extends BaseAPI {
140
140
  * @param {*} [options] Override http request option.
141
141
  * @throws {RequiredError}
142
142
  */
143
- getEventMetadata(eventTicker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventMetadataResponse, any>>;
143
+ getEventMetadata(eventTicker: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventMetadataResponse, any, {}>>;
144
144
  /**
145
145
  * Get data about all events. An event represents a real-world occurrence that can be traded on, such as an election, sports game, or economic indicator release. Events contain one or more markets where users can place trades on different outcomes. This endpoint returns a paginated response. Use the \'limit\' parameter to control page size (1-200, defaults to 100). The response includes a \'cursor\' field - pass this value in the \'cursor\' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.
146
146
  * @summary Get Events
@@ -153,5 +153,5 @@ export declare class EventsApi extends BaseAPI {
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
155
155
  */
156
- getEvents(limit?: number, cursor?: string, withNestedMarkets?: boolean, status?: string, seriesTicker?: string, minCloseTs?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventsResponse, any>>;
156
+ getEvents(limit?: number, cursor?: string, withNestedMarkets?: boolean, status?: string, seriesTicker?: string, minCloseTs?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventsResponse, any, {}>>;
157
157
  }