kalshi-typescript 2.1.1 → 2.1.3

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 (210) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/.openapi-generator-ignore +9 -2
  3. package/README.md +200 -29
  4. package/api/api-keys-api.ts +5 -5
  5. package/api/communications-api.ts +12 -12
  6. package/api/events-api.ts +4 -4
  7. package/api/exchange-api.ts +9 -9
  8. package/api/markets-api.ts +10 -10
  9. package/api/milestones-api.ts +3 -3
  10. package/api/multivariate-collections-api.ts +4 -4
  11. package/api/portfolio-api.ts +95 -21
  12. package/api/series-api.ts +3 -3
  13. package/api/structured-targets-api.ts +3 -3
  14. package/auth.ts +38 -0
  15. package/base.ts +51 -17
  16. package/common.ts +1 -1
  17. package/configuration.ts +1 -1
  18. package/dist/api/api-keys-api.d.ts +4 -4
  19. package/dist/api/api-keys-api.js +8 -8
  20. package/dist/api/communications-api.d.ts +11 -11
  21. package/dist/api/communications-api.js +22 -22
  22. package/dist/api/events-api.d.ts +3 -3
  23. package/dist/api/events-api.js +6 -6
  24. package/dist/api/exchange-api.d.ts +8 -8
  25. package/dist/api/exchange-api.js +12 -12
  26. package/dist/api/markets-api.d.ts +9 -9
  27. package/dist/api/markets-api.js +14 -14
  28. package/dist/api/milestones-api.d.ts +2 -2
  29. package/dist/api/milestones-api.js +4 -4
  30. package/dist/api/multivariate-collections-api.d.ts +3 -3
  31. package/dist/api/multivariate-collections-api.js +6 -6
  32. package/dist/api/portfolio-api.d.ts +52 -19
  33. package/dist/api/portfolio-api.js +107 -39
  34. package/dist/api/series-api.d.ts +2 -2
  35. package/dist/api/series-api.js +4 -4
  36. package/dist/api/structured-targets-api.d.ts +2 -2
  37. package/dist/api/structured-targets-api.js +4 -4
  38. package/dist/auth.d.ts +7 -0
  39. package/dist/auth.js +33 -0
  40. package/dist/base.d.ts +25 -10
  41. package/dist/base.js +37 -6
  42. package/dist/esm/api/api-keys-api.d.ts +4 -4
  43. package/dist/esm/api/api-keys-api.js +9 -9
  44. package/dist/esm/api/communications-api.d.ts +11 -11
  45. package/dist/esm/api/communications-api.js +23 -23
  46. package/dist/esm/api/events-api.d.ts +3 -3
  47. package/dist/esm/api/events-api.js +7 -7
  48. package/dist/esm/api/exchange-api.d.ts +8 -8
  49. package/dist/esm/api/exchange-api.js +13 -13
  50. package/dist/esm/api/markets-api.d.ts +9 -9
  51. package/dist/esm/api/markets-api.js +15 -15
  52. package/dist/esm/api/milestones-api.d.ts +2 -2
  53. package/dist/esm/api/milestones-api.js +5 -5
  54. package/dist/esm/api/multivariate-collections-api.d.ts +3 -3
  55. package/dist/esm/api/multivariate-collections-api.js +7 -7
  56. package/dist/esm/api/portfolio-api.d.ts +52 -19
  57. package/dist/esm/api/portfolio-api.js +108 -40
  58. package/dist/esm/api/series-api.d.ts +2 -2
  59. package/dist/esm/api/series-api.js +5 -5
  60. package/dist/esm/api/structured-targets-api.d.ts +2 -2
  61. package/dist/esm/api/structured-targets-api.js +5 -5
  62. package/dist/esm/auth.d.ts +7 -0
  63. package/dist/esm/auth.js +29 -0
  64. package/dist/esm/base.d.ts +25 -10
  65. package/dist/esm/base.js +36 -5
  66. package/dist/esm/models/amend-order-request.d.ts +30 -0
  67. package/dist/esm/models/amend-order-request.js +8 -1
  68. package/dist/esm/models/create-order-group-request.d.ts +4 -1
  69. package/dist/esm/models/create-order-group-response.d.ts +4 -2
  70. package/dist/esm/models/create-order-request.d.ts +8 -0
  71. package/dist/esm/models/error-response-error.d.ts +1 -1
  72. package/dist/esm/models/event-position.d.ts +53 -0
  73. package/dist/esm/models/event-position.js +14 -0
  74. package/dist/esm/models/get-order-group-response.d.ts +21 -0
  75. package/dist/esm/models/get-order-group-response.js +14 -0
  76. package/dist/esm/models/get-order-response.d.ts +1 -1
  77. package/dist/esm/models/get-positions-response.d.ts +3 -1
  78. package/dist/esm/models/index.d.ts +2 -0
  79. package/dist/esm/models/index.js +2 -0
  80. package/dist/esm/models/order-group.d.ts +8 -4
  81. package/dist/esm/models/order.d.ts +16 -0
  82. package/dist/models/amend-order-request.d.ts +30 -0
  83. package/dist/models/amend-order-request.js +9 -0
  84. package/dist/models/create-order-group-request.d.ts +4 -1
  85. package/dist/models/create-order-group-response.d.ts +4 -2
  86. package/dist/models/create-order-request.d.ts +8 -0
  87. package/dist/models/error-response-error.d.ts +1 -1
  88. package/dist/models/event-position.d.ts +53 -0
  89. package/dist/models/event-position.js +15 -0
  90. package/dist/models/get-order-group-response.d.ts +21 -0
  91. package/dist/models/get-order-group-response.js +15 -0
  92. package/dist/models/get-order-response.d.ts +1 -1
  93. package/dist/models/get-positions-response.d.ts +3 -1
  94. package/dist/models/index.d.ts +2 -0
  95. package/dist/models/index.js +2 -0
  96. package/dist/models/order-group.d.ts +8 -4
  97. package/dist/models/order.d.ts +16 -0
  98. package/docs/AcceptQuoteRequest.md +1 -1
  99. package/docs/AmendOrderRequest.md +11 -1
  100. package/docs/AmendOrderResponse.md +1 -1
  101. package/docs/Announcement.md +1 -1
  102. package/docs/ApiKey.md +1 -1
  103. package/docs/ApiKeysApi.md +20 -8
  104. package/docs/BatchCancelOrdersRequest.md +1 -1
  105. package/docs/BatchCancelOrdersResponse.md +1 -1
  106. package/docs/BatchCancelOrdersResponseResponsesInner.md +1 -1
  107. package/docs/BatchCreateOrdersRequest.md +1 -1
  108. package/docs/BatchCreateOrdersResponse.md +1 -1
  109. package/docs/BatchCreateOrdersResponseResponsesInner.md +1 -1
  110. package/docs/CancelOrderResponse.md +1 -1
  111. package/docs/Candlestick.md +1 -1
  112. package/docs/CommunicationsApi.md +55 -22
  113. package/docs/CreateApiKeyRequest.md +1 -1
  114. package/docs/CreateApiKeyResponse.md +1 -1
  115. package/docs/CreateOrderGroupRequest.md +3 -3
  116. package/docs/CreateOrderGroupResponse.md +3 -3
  117. package/docs/CreateOrderRequest.md +5 -1
  118. package/docs/CreateOrderResponse.md +1 -1
  119. package/docs/CreateQuoteRequest.md +1 -1
  120. package/docs/CreateQuoteResponse.md +1 -1
  121. package/docs/CreateRFQRequest.md +1 -1
  122. package/docs/CreateRFQResponse.md +1 -1
  123. package/docs/DailySchedule.md +1 -1
  124. package/docs/DecreaseOrderRequest.md +1 -1
  125. package/docs/DecreaseOrderResponse.md +1 -1
  126. package/docs/ErrorResponse.md +1 -1
  127. package/docs/ErrorResponseError.md +2 -2
  128. package/docs/Event.md +1 -1
  129. package/docs/EventPosition.md +38 -0
  130. package/docs/EventsApi.md +15 -6
  131. package/docs/ExchangeApi.md +21 -9
  132. package/docs/ExchangeStatus.md +1 -1
  133. package/docs/Fill.md +1 -1
  134. package/docs/GenerateApiKeyRequest.md +1 -1
  135. package/docs/GenerateApiKeyResponse.md +1 -1
  136. package/docs/GetApiKeysResponse.md +1 -1
  137. package/docs/GetBalanceResponse.md +1 -1
  138. package/docs/GetCommunicationsIDResponse.md +1 -1
  139. package/docs/GetEventMetadataResponse.md +1 -1
  140. package/docs/GetEventResponse.md +1 -1
  141. package/docs/GetEventsResponse.md +1 -1
  142. package/docs/GetExchangeAnnouncementsResponse.md +1 -1
  143. package/docs/GetExchangeScheduleResponse.md +1 -1
  144. package/docs/GetExchangeScheduleResponseSchedule.md +1 -1
  145. package/docs/GetFillsResponse.md +1 -1
  146. package/docs/GetMarketCandlesticksResponse.md +1 -1
  147. package/docs/GetMarketOrderbookResponse.md +1 -1
  148. package/docs/GetMarketOrderbookResponseOrderbook.md +1 -1
  149. package/docs/GetMarketResponse.md +1 -1
  150. package/docs/GetMarketsResponse.md +1 -1
  151. package/docs/GetMilestoneResponse.md +1 -1
  152. package/docs/GetMilestonesResponse.md +1 -1
  153. package/docs/GetMultivariateEventCollectionResponse.md +1 -1
  154. package/docs/GetMultivariateEventCollectionsResponse.md +1 -1
  155. package/docs/GetOrderGroupResponse.md +22 -0
  156. package/docs/GetOrderGroupsResponse.md +1 -1
  157. package/docs/GetOrderQueuePositionResponse.md +1 -1
  158. package/docs/GetOrderResponse.md +2 -2
  159. package/docs/GetOrdersResponse.md +1 -1
  160. package/docs/GetPositionsResponse.md +5 -3
  161. package/docs/GetQueuePositionsRequest.md +1 -1
  162. package/docs/GetQueuePositionsResponse.md +1 -1
  163. package/docs/GetQuoteResponse.md +1 -1
  164. package/docs/GetQuotesResponse.md +1 -1
  165. package/docs/GetRFQResponse.md +1 -1
  166. package/docs/GetRFQsResponse.md +1 -1
  167. package/docs/GetSeriesByTickerResponse.md +1 -1
  168. package/docs/GetSeriesResponse.md +1 -1
  169. package/docs/GetSettlementsResponse.md +1 -1
  170. package/docs/GetStructuredTargetResponse.md +1 -1
  171. package/docs/GetStructuredTargetsResponse.md +1 -1
  172. package/docs/GetTotalRestingOrderValueResponse.md +1 -1
  173. package/docs/GetTradesResponse.md +1 -1
  174. package/docs/GetUserDataTimestampResponse.md +1 -1
  175. package/docs/LookupBundleRequest.md +1 -1
  176. package/docs/LookupBundleRequestBundleInner.md +1 -1
  177. package/docs/LookupBundleResponse.md +1 -1
  178. package/docs/Market.md +1 -1
  179. package/docs/MarketsApi.md +26 -11
  180. package/docs/Milestone.md +1 -1
  181. package/docs/MilestonesApi.md +10 -4
  182. package/docs/MultivariateCollectionsApi.md +15 -6
  183. package/docs/MultivariateEventCollection.md +1 -1
  184. package/docs/MultivariateEventCollectionEventsInner.md +1 -1
  185. package/docs/Order.md +9 -1
  186. package/docs/OrderGroup.md +5 -9
  187. package/docs/OrderbookLevel.md +1 -1
  188. package/docs/PortfolioApi.md +154 -39
  189. package/docs/Position.md +1 -1
  190. package/docs/Quote.md +1 -1
  191. package/docs/RFQ.md +1 -1
  192. package/docs/Series.md +1 -1
  193. package/docs/SeriesApi.md +10 -4
  194. package/docs/Settlement.md +1 -1
  195. package/docs/StructuredTarget.md +1 -1
  196. package/docs/StructuredTargetsApi.md +10 -4
  197. package/docs/Trade.md +1 -1
  198. package/models/amend-order-request.ts +34 -0
  199. package/models/create-order-group-request.ts +4 -1
  200. package/models/create-order-group-response.ts +4 -4
  201. package/models/create-order-request.ts +8 -0
  202. package/models/error-response-error.ts +1 -1
  203. package/models/event-position.ts +59 -0
  204. package/models/get-order-group-response.ts +27 -0
  205. package/models/get-order-response.ts +1 -1
  206. package/models/get-positions-response.ts +5 -1
  207. package/models/index.ts +2 -0
  208. package/models/order-group.ts +8 -4
  209. package/models/order.ts +16 -0
  210. package/package.json +4 -4
@@ -20,9 +20,12 @@ Get all exchange-wide announcements
20
20
  import {
21
21
  ExchangeApi,
22
22
  Configuration
23
- } from '@kalshi/trading-api';
23
+ } from 'kalshi-typescript';
24
24
 
25
- const configuration = new Configuration();
25
+ const configuration = new Configuration({
26
+ apiKey: 'your-api-key-id',
27
+ privateKeyPath: '/path/to/private-key.pem' // or privateKeyPem: 'PEM string'
28
+ });
26
29
  const apiInstance = new ExchangeApi(configuration);
27
30
 
28
31
  const { status, data } = await apiInstance.getExchangeAnnouncements();
@@ -65,9 +68,12 @@ Get the exchange schedule
65
68
  import {
66
69
  ExchangeApi,
67
70
  Configuration
68
- } from '@kalshi/trading-api';
71
+ } from 'kalshi-typescript';
69
72
 
70
- const configuration = new Configuration();
73
+ const configuration = new Configuration({
74
+ apiKey: 'your-api-key-id',
75
+ privateKeyPath: '/path/to/private-key.pem' // or privateKeyPem: 'PEM string'
76
+ });
71
77
  const apiInstance = new ExchangeApi(configuration);
72
78
 
73
79
  const { status, data } = await apiInstance.getExchangeSchedule();
@@ -110,9 +116,12 @@ Get the exchange status
110
116
  import {
111
117
  ExchangeApi,
112
118
  Configuration
113
- } from '@kalshi/trading-api';
119
+ } from 'kalshi-typescript';
114
120
 
115
- const configuration = new Configuration();
121
+ const configuration = new Configuration({
122
+ apiKey: 'your-api-key-id',
123
+ privateKeyPath: '/path/to/private-key.pem' // or privateKeyPem: 'PEM string'
124
+ });
116
125
  const apiInstance = new ExchangeApi(configuration);
117
126
 
118
127
  const { status, data } = await apiInstance.getExchangeStatus();
@@ -147,7 +156,7 @@ No authorization required
147
156
  # **getUserDataTimestamp**
148
157
  > GetUserDataTimestampResponse getUserDataTimestamp()
149
158
 
150
- 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
159
+ 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
151
160
 
152
161
  ### Example
153
162
 
@@ -155,9 +164,12 @@ There is typically a short delay before exchange events are reflected in the API
155
164
  import {
156
165
  ExchangeApi,
157
166
  Configuration
158
- } from '@kalshi/trading-api';
167
+ } from 'kalshi-typescript';
159
168
 
160
- const configuration = new Configuration();
169
+ const configuration = new Configuration({
170
+ apiKey: 'your-api-key-id',
171
+ privateKeyPath: '/path/to/private-key.pem' // or privateKeyPem: 'PEM string'
172
+ });
161
173
  const apiInstance = new ExchangeApi(configuration);
162
174
 
163
175
  const { status, data } = await apiInstance.getUserDataTimestamp();
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { ExchangeStatus } from '@kalshi/trading-api';
14
+ import { ExchangeStatus } from 'kalshi-typescript';
15
15
 
16
16
  const instance: ExchangeStatus = {
17
17
  exchange_active,
package/docs/Fill.md CHANGED
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
18
18
  ## Example
19
19
 
20
20
  ```typescript
21
- import { Fill } from '@kalshi/trading-api';
21
+ import { Fill } from 'kalshi-typescript';
22
22
 
23
23
  const instance: Fill = {
24
24
  fill_id,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GenerateApiKeyRequest } from '@kalshi/trading-api';
13
+ import { GenerateApiKeyRequest } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GenerateApiKeyRequest = {
16
16
  name,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GenerateApiKeyResponse } from '@kalshi/trading-api';
14
+ import { GenerateApiKeyResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GenerateApiKeyResponse = {
17
17
  api_key_id,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetApiKeysResponse } from '@kalshi/trading-api';
13
+ import { GetApiKeysResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetApiKeysResponse = {
16
16
  api_keys,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetBalanceResponse } from '@kalshi/trading-api';
13
+ import { GetBalanceResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetBalanceResponse = {
16
16
  balance,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetCommunicationsIDResponse } from '@kalshi/trading-api';
13
+ import { GetCommunicationsIDResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetCommunicationsIDResponse = {
16
16
  communications_id,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetEventMetadataResponse } from '@kalshi/trading-api';
13
+ import { GetEventMetadataResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetEventMetadataResponse = {
16
16
  metadata,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetEventResponse } from '@kalshi/trading-api';
14
+ import { GetEventResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetEventResponse = {
17
17
  event,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetEventsResponse } from '@kalshi/trading-api';
14
+ import { GetEventsResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetEventsResponse = {
17
17
  events,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetExchangeAnnouncementsResponse } from '@kalshi/trading-api';
13
+ import { GetExchangeAnnouncementsResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetExchangeAnnouncementsResponse = {
16
16
  announcements,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetExchangeScheduleResponse } from '@kalshi/trading-api';
13
+ import { GetExchangeScheduleResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetExchangeScheduleResponse = {
16
16
  schedule,
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  ## Example
17
17
 
18
18
  ```typescript
19
- import { GetExchangeScheduleResponseSchedule } from '@kalshi/trading-api';
19
+ import { GetExchangeScheduleResponseSchedule } from 'kalshi-typescript';
20
20
 
21
21
  const instance: GetExchangeScheduleResponseSchedule = {
22
22
  monday,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetFillsResponse } from '@kalshi/trading-api';
14
+ import { GetFillsResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetFillsResponse = {
17
17
  fills,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMarketCandlesticksResponse } from '@kalshi/trading-api';
13
+ import { GetMarketCandlesticksResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMarketCandlesticksResponse = {
16
16
  candlesticks,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMarketOrderbookResponse } from '@kalshi/trading-api';
13
+ import { GetMarketOrderbookResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMarketOrderbookResponse = {
16
16
  orderbook,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetMarketOrderbookResponseOrderbook } from '@kalshi/trading-api';
14
+ import { GetMarketOrderbookResponseOrderbook } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetMarketOrderbookResponseOrderbook = {
17
17
  _true,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMarketResponse } from '@kalshi/trading-api';
13
+ import { GetMarketResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMarketResponse = {
16
16
  market,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetMarketsResponse } from '@kalshi/trading-api';
14
+ import { GetMarketsResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetMarketsResponse = {
17
17
  markets,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMilestoneResponse } from '@kalshi/trading-api';
13
+ import { GetMilestoneResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMilestoneResponse = {
16
16
  milestone,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMilestonesResponse } from '@kalshi/trading-api';
13
+ import { GetMilestonesResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMilestonesResponse = {
16
16
  milestones,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMultivariateEventCollectionResponse } from '@kalshi/trading-api';
13
+ import { GetMultivariateEventCollectionResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMultivariateEventCollectionResponse = {
16
16
  collection,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetMultivariateEventCollectionsResponse } from '@kalshi/trading-api';
13
+ import { GetMultivariateEventCollectionsResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetMultivariateEventCollectionsResponse = {
16
16
  collections,
@@ -0,0 +1,22 @@
1
+ # GetOrderGroupResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **is_auto_cancel_enabled** | **boolean** | Whether auto-cancel is enabled for this order group | [optional] [default to undefined]
9
+ **orders** | **Array<string>** | List of order IDs that belong to this order group | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetOrderGroupResponse } from 'kalshi-typescript';
15
+
16
+ const instance: GetOrderGroupResponse = {
17
+ is_auto_cancel_enabled,
18
+ orders,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetOrderGroupsResponse } from '@kalshi/trading-api';
14
+ import { GetOrderGroupsResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetOrderGroupsResponse = {
17
17
  order_groups,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetOrderQueuePositionResponse } from '@kalshi/trading-api';
13
+ import { GetOrderQueuePositionResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetOrderQueuePositionResponse = {
16
16
  queue_position,
@@ -5,12 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **order** | [**Order**](Order.md) | | [optional] [default to undefined]
8
+ **order** | [**Order**](Order.md) | | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetOrderResponse } from '@kalshi/trading-api';
13
+ import { GetOrderResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetOrderResponse = {
16
16
  order,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetOrdersResponse } from '@kalshi/trading-api';
14
+ import { GetOrdersResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetOrdersResponse = {
17
17
  orders,
@@ -5,16 +5,18 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **positions** | [**Array<Position>**](Position.md) | | [optional] [default to undefined]
8
+ **market_positions** | [**Array<Position>**](Position.md) | | [optional] [default to undefined]
9
+ **event_positions** | [**Array<EventPosition>**](EventPosition.md) | | [optional] [default to undefined]
9
10
  **cursor** | **string** | | [optional] [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
13
14
  ```typescript
14
- import { GetPositionsResponse } from '@kalshi/trading-api';
15
+ import { GetPositionsResponse } from 'kalshi-typescript';
15
16
 
16
17
  const instance: GetPositionsResponse = {
17
- positions,
18
+ market_positions,
19
+ event_positions,
18
20
  cursor,
19
21
  };
20
22
  ```
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetQueuePositionsRequest } from '@kalshi/trading-api';
13
+ import { GetQueuePositionsRequest } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetQueuePositionsRequest = {
16
16
  order_ids,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetQueuePositionsResponse } from '@kalshi/trading-api';
13
+ import { GetQueuePositionsResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetQueuePositionsResponse = {
16
16
  queue_positions,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetQuoteResponse } from '@kalshi/trading-api';
13
+ import { GetQuoteResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetQuoteResponse = {
16
16
  quote,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetQuotesResponse } from '@kalshi/trading-api';
13
+ import { GetQuotesResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetQuotesResponse = {
16
16
  quotes,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetRFQResponse } from '@kalshi/trading-api';
13
+ import { GetRFQResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetRFQResponse = {
16
16
  rfq,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetRFQsResponse } from '@kalshi/trading-api';
13
+ import { GetRFQsResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetRFQsResponse = {
16
16
  rfqs,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetSeriesByTickerResponse } from '@kalshi/trading-api';
13
+ import { GetSeriesByTickerResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetSeriesByTickerResponse = {
16
16
  series,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetSeriesResponse } from '@kalshi/trading-api';
13
+ import { GetSeriesResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetSeriesResponse = {
16
16
  series,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetSettlementsResponse } from '@kalshi/trading-api';
14
+ import { GetSettlementsResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetSettlementsResponse = {
17
17
  settlements,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetStructuredTargetResponse } from '@kalshi/trading-api';
13
+ import { GetStructuredTargetResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetStructuredTargetResponse = {
16
16
  structured_target,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetStructuredTargetsResponse } from '@kalshi/trading-api';
13
+ import { GetStructuredTargetsResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetStructuredTargetsResponse = {
16
16
  structured_targets,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetTotalRestingOrderValueResponse } from '@kalshi/trading-api';
13
+ import { GetTotalRestingOrderValueResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetTotalRestingOrderValueResponse = {
16
16
  total_resting_order_value,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { GetTradesResponse } from '@kalshi/trading-api';
14
+ import { GetTradesResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: GetTradesResponse = {
17
17
  trades,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetUserDataTimestampResponse } from '@kalshi/trading-api';
13
+ import { GetUserDataTimestampResponse } from 'kalshi-typescript';
14
14
 
15
15
  const instance: GetUserDataTimestampResponse = {
16
16
  timestamp,
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { LookupBundleRequest } from '@kalshi/trading-api';
13
+ import { LookupBundleRequest } from 'kalshi-typescript';
14
14
 
15
15
  const instance: LookupBundleRequest = {
16
16
  bundle,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { LookupBundleRequestBundleInner } from '@kalshi/trading-api';
14
+ import { LookupBundleRequestBundleInner } from 'kalshi-typescript';
15
15
 
16
16
  const instance: LookupBundleRequestBundleInner = {
17
17
  ticker,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { LookupBundleResponse } from '@kalshi/trading-api';
14
+ import { LookupBundleResponse } from 'kalshi-typescript';
15
15
 
16
16
  const instance: LookupBundleResponse = {
17
17
  bundle_id,
package/docs/Market.md CHANGED
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
28
28
  ## Example
29
29
 
30
30
  ```typescript
31
- import { Market } from '@kalshi/trading-api';
31
+ import { Market } from 'kalshi-typescript';
32
32
 
33
33
  const instance: Market = {
34
34
  ticker,