@adaptic/backend-legacy 0.0.921 → 0.0.923

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 (62) hide show
  1. package/Asset.cjs +30 -0
  2. package/DeadLetterMessage.cjs +6 -0
  3. package/InstitutionalFlowSignal.cjs +33 -0
  4. package/InstitutionalHolding.cjs +33 -0
  5. package/NewsArticle.cjs +66 -0
  6. package/NewsArticleAssetSentiment.cjs +48 -0
  7. package/OptionsContract.cjs +825 -0
  8. package/OptionsGreeksHistory.cjs +681 -0
  9. package/OptionsPosition.cjs +1017 -0
  10. package/OptionsTradeExecution.cjs +969 -0
  11. package/PortfolioGreeksHistory.cjs +36 -0
  12. package/SignalGeneratorMetrics.cjs +24 -0
  13. package/SignalLineage.cjs +6 -0
  14. package/SignalOutcome.cjs +9 -0
  15. package/SignalPriorityQueue.cjs +12 -0
  16. package/esm/Asset.d.ts.map +1 -1
  17. package/esm/Asset.js.map +1 -1
  18. package/esm/Asset.mjs +30 -0
  19. package/esm/DeadLetterMessage.d.ts.map +1 -1
  20. package/esm/DeadLetterMessage.js.map +1 -1
  21. package/esm/DeadLetterMessage.mjs +6 -0
  22. package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
  23. package/esm/InstitutionalFlowSignal.js.map +1 -1
  24. package/esm/InstitutionalFlowSignal.mjs +33 -0
  25. package/esm/InstitutionalHolding.d.ts.map +1 -1
  26. package/esm/InstitutionalHolding.js.map +1 -1
  27. package/esm/InstitutionalHolding.mjs +33 -0
  28. package/esm/NewsArticle.d.ts.map +1 -1
  29. package/esm/NewsArticle.js.map +1 -1
  30. package/esm/NewsArticle.mjs +66 -0
  31. package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
  32. package/esm/NewsArticleAssetSentiment.js.map +1 -1
  33. package/esm/NewsArticleAssetSentiment.mjs +48 -0
  34. package/esm/OptionsContract.d.ts.map +1 -1
  35. package/esm/OptionsContract.js.map +1 -1
  36. package/esm/OptionsContract.mjs +825 -0
  37. package/esm/OptionsGreeksHistory.d.ts.map +1 -1
  38. package/esm/OptionsGreeksHistory.js.map +1 -1
  39. package/esm/OptionsGreeksHistory.mjs +681 -0
  40. package/esm/OptionsPosition.d.ts.map +1 -1
  41. package/esm/OptionsPosition.js.map +1 -1
  42. package/esm/OptionsPosition.mjs +1017 -0
  43. package/esm/OptionsTradeExecution.d.ts.map +1 -1
  44. package/esm/OptionsTradeExecution.js.map +1 -1
  45. package/esm/OptionsTradeExecution.mjs +969 -0
  46. package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
  47. package/esm/PortfolioGreeksHistory.js.map +1 -1
  48. package/esm/PortfolioGreeksHistory.mjs +36 -0
  49. package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
  50. package/esm/SignalGeneratorMetrics.js.map +1 -1
  51. package/esm/SignalGeneratorMetrics.mjs +24 -0
  52. package/esm/SignalLineage.d.ts.map +1 -1
  53. package/esm/SignalLineage.js.map +1 -1
  54. package/esm/SignalLineage.mjs +6 -0
  55. package/esm/SignalOutcome.d.ts.map +1 -1
  56. package/esm/SignalOutcome.js.map +1 -1
  57. package/esm/SignalOutcome.mjs +9 -0
  58. package/esm/SignalPriorityQueue.d.ts.map +1 -1
  59. package/esm/SignalPriorityQueue.js.map +1 -1
  60. package/esm/SignalPriorityQueue.mjs +12 -0
  61. package/esm/index.d.ts.map +1 -1
  62. package/package.json +1 -1
@@ -144,8 +144,25 @@ export const OptionsPosition = {
144
144
  status: props.status !== undefined ? props.status : undefined,
145
145
  openingSide: props.openingSide !== undefined ? props.openingSide : undefined,
146
146
  quantity: props.quantity !== undefined ? props.quantity : undefined,
147
+ entryPrice: props.entryPrice !== undefined ? props.entryPrice : undefined,
148
+ entryCost: props.entryCost !== undefined ? props.entryCost : undefined,
147
149
  entryTime: props.entryTime !== undefined ? props.entryTime : undefined,
150
+ exitPrice: props.exitPrice !== undefined ? props.exitPrice : undefined,
151
+ exitValue: props.exitValue !== undefined ? props.exitValue : undefined,
148
152
  exitTime: props.exitTime !== undefined ? props.exitTime : undefined,
153
+ currentPrice: props.currentPrice !== undefined ? props.currentPrice : undefined,
154
+ currentValue: props.currentValue !== undefined ? props.currentValue : undefined,
155
+ unrealizedPnL: props.unrealizedPnL !== undefined ? props.unrealizedPnL : undefined,
156
+ unrealizedPnLPercent: props.unrealizedPnLPercent !== undefined ? props.unrealizedPnLPercent : undefined,
157
+ realizedPnL: props.realizedPnL !== undefined ? props.realizedPnL : undefined,
158
+ realizedPnLPercent: props.realizedPnLPercent !== undefined ? props.realizedPnLPercent : undefined,
159
+ totalFees: props.totalFees !== undefined ? props.totalFees : undefined,
160
+ currentDelta: props.currentDelta !== undefined ? props.currentDelta : undefined,
161
+ currentGamma: props.currentGamma !== undefined ? props.currentGamma : undefined,
162
+ currentTheta: props.currentTheta !== undefined ? props.currentTheta : undefined,
163
+ currentVega: props.currentVega !== undefined ? props.currentVega : undefined,
164
+ currentRho: props.currentRho !== undefined ? props.currentRho : undefined,
165
+ currentImpliedVolatility: props.currentImpliedVolatility !== undefined ? props.currentImpliedVolatility : undefined,
149
166
  daysHeld: props.daysHeld !== undefined ? props.daysHeld : undefined,
150
167
  exitReason: props.exitReason !== undefined ? props.exitReason : undefined,
151
168
  strategyType: props.strategyType !== undefined ? props.strategyType : undefined,
@@ -168,13 +185,28 @@ export const OptionsPosition = {
168
185
  symbol: props.contract.symbol !== undefined ? props.contract.symbol : undefined,
169
186
  contractSymbol: props.contract.contractSymbol !== undefined ? props.contract.contractSymbol : undefined,
170
187
  optionType: props.contract.optionType !== undefined ? props.contract.optionType : undefined,
188
+ strikePrice: props.contract.strikePrice !== undefined ? props.contract.strikePrice : undefined,
171
189
  expirationDate: props.contract.expirationDate !== undefined ? props.contract.expirationDate : undefined,
172
190
  daysToExpiration: props.contract.daysToExpiration !== undefined ? props.contract.daysToExpiration : undefined,
191
+ lastPrice: props.contract.lastPrice !== undefined ? props.contract.lastPrice : undefined,
192
+ bidPrice: props.contract.bidPrice !== undefined ? props.contract.bidPrice : undefined,
193
+ askPrice: props.contract.askPrice !== undefined ? props.contract.askPrice : undefined,
194
+ midPrice: props.contract.midPrice !== undefined ? props.contract.midPrice : undefined,
173
195
  bidSize: props.contract.bidSize !== undefined ? props.contract.bidSize : undefined,
174
196
  askSize: props.contract.askSize !== undefined ? props.contract.askSize : undefined,
175
197
  volume: props.contract.volume !== undefined ? props.contract.volume : undefined,
176
198
  openInterest: props.contract.openInterest !== undefined ? props.contract.openInterest : undefined,
199
+ impliedVolatility: props.contract.impliedVolatility !== undefined ? props.contract.impliedVolatility : undefined,
200
+ delta: props.contract.delta !== undefined ? props.contract.delta : undefined,
201
+ gamma: props.contract.gamma !== undefined ? props.contract.gamma : undefined,
202
+ theta: props.contract.theta !== undefined ? props.contract.theta : undefined,
203
+ vega: props.contract.vega !== undefined ? props.contract.vega : undefined,
204
+ rho: props.contract.rho !== undefined ? props.contract.rho : undefined,
177
205
  inTheMoney: props.contract.inTheMoney !== undefined ? props.contract.inTheMoney : undefined,
206
+ intrinsicValue: props.contract.intrinsicValue !== undefined ? props.contract.intrinsicValue : undefined,
207
+ extrinsicValue: props.contract.extrinsicValue !== undefined ? props.contract.extrinsicValue : undefined,
208
+ theoreticalPrice: props.contract.theoreticalPrice !== undefined ? props.contract.theoreticalPrice : undefined,
209
+ underlyingPrice: props.contract.underlyingPrice !== undefined ? props.contract.underlyingPrice : undefined,
178
210
  metadata: props.contract.metadata !== undefined ? props.contract.metadata : undefined,
179
211
  dataTimestamp: props.contract.dataTimestamp !== undefined ? props.contract.dataTimestamp : undefined,
180
212
  greeksHistory: props.contract.greeksHistory ?
@@ -192,9 +224,21 @@ export const OptionsPosition = {
192
224
  },
193
225
  create: {
194
226
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
227
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
228
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
229
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
230
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
231
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
232
+ delta: item.delta !== undefined ? item.delta : undefined,
233
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
234
+ theta: item.theta !== undefined ? item.theta : undefined,
235
+ vega: item.vega !== undefined ? item.vega : undefined,
236
+ rho: item.rho !== undefined ? item.rho : undefined,
195
237
  volume: item.volume !== undefined ? item.volume : undefined,
196
238
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
197
239
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
240
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
241
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
198
242
  metadata: item.metadata !== undefined ? item.metadata : undefined,
199
243
  },
200
244
  }))
@@ -226,10 +270,23 @@ export const OptionsPosition = {
226
270
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
227
271
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
228
272
  quantity: item.quantity !== undefined ? item.quantity : undefined,
273
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
274
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
275
+ fees: item.fees !== undefined ? item.fees : undefined,
229
276
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
277
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
278
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
279
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
280
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
281
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
282
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
283
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
230
284
  orderType: item.orderType !== undefined ? item.orderType : undefined,
285
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
286
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
231
287
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
232
288
  venue: item.venue !== undefined ? item.venue : undefined,
289
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
233
290
  notes: item.notes !== undefined ? item.notes : undefined,
234
291
  metadata: item.metadata !== undefined ? item.metadata : undefined,
235
292
  position: item.position ?
@@ -256,8 +313,25 @@ export const OptionsPosition = {
256
313
  status: item.position.status !== undefined ? item.position.status : undefined,
257
314
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
258
315
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
316
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
317
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
259
318
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
319
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
320
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
260
321
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
322
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
323
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
324
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
325
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
326
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
327
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
328
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
329
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
330
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
331
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
332
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
333
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
334
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
261
335
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
262
336
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
263
337
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -299,10 +373,23 @@ export const OptionsPosition = {
299
373
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
300
374
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
301
375
  quantity: item.quantity !== undefined ? item.quantity : undefined,
376
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
377
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
378
+ fees: item.fees !== undefined ? item.fees : undefined,
302
379
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
380
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
381
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
382
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
383
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
384
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
385
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
386
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
303
387
  orderType: item.orderType !== undefined ? item.orderType : undefined,
388
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
389
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
304
390
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
305
391
  venue: item.venue !== undefined ? item.venue : undefined,
392
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
306
393
  notes: item.notes !== undefined ? item.notes : undefined,
307
394
  metadata: item.metadata !== undefined ? item.metadata : undefined,
308
395
  contract: item.contract ?
@@ -322,13 +409,28 @@ export const OptionsPosition = {
322
409
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
323
410
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
324
411
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
412
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
325
413
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
326
414
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
415
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
416
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
417
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
418
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
327
419
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
328
420
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
329
421
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
330
422
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
423
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
424
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
425
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
426
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
427
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
428
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
331
429
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
430
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
431
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
432
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
433
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
332
434
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
333
435
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
334
436
  positions: item.contract.positions ?
@@ -355,8 +457,25 @@ export const OptionsPosition = {
355
457
  status: item.status !== undefined ? item.status : undefined,
356
458
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
357
459
  quantity: item.quantity !== undefined ? item.quantity : undefined,
460
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
461
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
358
462
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
463
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
464
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
359
465
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
466
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
467
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
468
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
469
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
470
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
471
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
472
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
473
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
474
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
475
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
476
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
477
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
478
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
360
479
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
361
480
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
362
481
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -380,9 +499,21 @@ export const OptionsPosition = {
380
499
  },
381
500
  create: {
382
501
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
502
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
503
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
504
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
505
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
506
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
507
+ delta: item.delta !== undefined ? item.delta : undefined,
508
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
509
+ theta: item.theta !== undefined ? item.theta : undefined,
510
+ vega: item.vega !== undefined ? item.vega : undefined,
511
+ rho: item.rho !== undefined ? item.rho : undefined,
383
512
  volume: item.volume !== undefined ? item.volume : undefined,
384
513
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
385
514
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
515
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
516
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
386
517
  metadata: item.metadata !== undefined ? item.metadata : undefined,
387
518
  },
388
519
  }))
@@ -501,8 +632,25 @@ export const OptionsPosition = {
501
632
  status: prop.status !== undefined ? prop.status : undefined,
502
633
  openingSide: prop.openingSide !== undefined ? prop.openingSide : undefined,
503
634
  quantity: prop.quantity !== undefined ? prop.quantity : undefined,
635
+ entryPrice: prop.entryPrice !== undefined ? prop.entryPrice : undefined,
636
+ entryCost: prop.entryCost !== undefined ? prop.entryCost : undefined,
504
637
  entryTime: prop.entryTime !== undefined ? prop.entryTime : undefined,
638
+ exitPrice: prop.exitPrice !== undefined ? prop.exitPrice : undefined,
639
+ exitValue: prop.exitValue !== undefined ? prop.exitValue : undefined,
505
640
  exitTime: prop.exitTime !== undefined ? prop.exitTime : undefined,
641
+ currentPrice: prop.currentPrice !== undefined ? prop.currentPrice : undefined,
642
+ currentValue: prop.currentValue !== undefined ? prop.currentValue : undefined,
643
+ unrealizedPnL: prop.unrealizedPnL !== undefined ? prop.unrealizedPnL : undefined,
644
+ unrealizedPnLPercent: prop.unrealizedPnLPercent !== undefined ? prop.unrealizedPnLPercent : undefined,
645
+ realizedPnL: prop.realizedPnL !== undefined ? prop.realizedPnL : undefined,
646
+ realizedPnLPercent: prop.realizedPnLPercent !== undefined ? prop.realizedPnLPercent : undefined,
647
+ totalFees: prop.totalFees !== undefined ? prop.totalFees : undefined,
648
+ currentDelta: prop.currentDelta !== undefined ? prop.currentDelta : undefined,
649
+ currentGamma: prop.currentGamma !== undefined ? prop.currentGamma : undefined,
650
+ currentTheta: prop.currentTheta !== undefined ? prop.currentTheta : undefined,
651
+ currentVega: prop.currentVega !== undefined ? prop.currentVega : undefined,
652
+ currentRho: prop.currentRho !== undefined ? prop.currentRho : undefined,
653
+ currentImpliedVolatility: prop.currentImpliedVolatility !== undefined ? prop.currentImpliedVolatility : undefined,
506
654
  daysHeld: prop.daysHeld !== undefined ? prop.daysHeld : undefined,
507
655
  exitReason: prop.exitReason !== undefined ? prop.exitReason : undefined,
508
656
  strategyType: prop.strategyType !== undefined ? prop.strategyType : undefined,
@@ -885,9 +1033,21 @@ export const OptionsPosition = {
885
1033
  },
886
1034
  create: {
887
1035
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
1036
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
1037
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
1038
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
1039
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
1040
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
1041
+ delta: item.delta !== undefined ? item.delta : undefined,
1042
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
1043
+ theta: item.theta !== undefined ? item.theta : undefined,
1044
+ vega: item.vega !== undefined ? item.vega : undefined,
1045
+ rho: item.rho !== undefined ? item.rho : undefined,
888
1046
  volume: item.volume !== undefined ? item.volume : undefined,
889
1047
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
890
1048
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
1049
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
1050
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
891
1051
  metadata: item.metadata !== undefined ? item.metadata : undefined,
892
1052
  },
893
1053
  }))
@@ -1104,8 +1264,25 @@ export const OptionsPosition = {
1104
1264
  status: item.position.status !== undefined ? item.position.status : undefined,
1105
1265
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
1106
1266
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
1267
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
1268
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
1107
1269
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
1270
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
1271
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
1108
1272
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
1273
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
1274
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
1275
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
1276
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
1277
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
1278
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
1279
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
1280
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
1281
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
1282
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
1283
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
1284
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
1285
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
1109
1286
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
1110
1287
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
1111
1288
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -1120,10 +1297,23 @@ export const OptionsPosition = {
1120
1297
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
1121
1298
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
1122
1299
  quantity: item.quantity !== undefined ? item.quantity : undefined,
1300
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
1301
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
1302
+ fees: item.fees !== undefined ? item.fees : undefined,
1123
1303
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
1304
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
1305
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
1306
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
1307
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
1308
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
1309
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
1310
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
1124
1311
  orderType: item.orderType !== undefined ? item.orderType : undefined,
1312
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
1313
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
1125
1314
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
1126
1315
  venue: item.venue !== undefined ? item.venue : undefined,
1316
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
1127
1317
  notes: item.notes !== undefined ? item.notes : undefined,
1128
1318
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1129
1319
  position: item.position ?
@@ -1150,8 +1340,25 @@ export const OptionsPosition = {
1150
1340
  status: item.position.status !== undefined ? item.position.status : undefined,
1151
1341
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
1152
1342
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
1343
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
1344
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
1153
1345
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
1346
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
1347
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
1154
1348
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
1349
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
1350
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
1351
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
1352
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
1353
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
1354
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
1355
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
1356
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
1357
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
1358
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
1359
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
1360
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
1361
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
1155
1362
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
1156
1363
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
1157
1364
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -1168,13 +1375,28 @@ export const OptionsPosition = {
1168
1375
  symbol: props.contract.symbol !== undefined ? props.contract.symbol : undefined,
1169
1376
  contractSymbol: props.contract.contractSymbol !== undefined ? props.contract.contractSymbol : undefined,
1170
1377
  optionType: props.contract.optionType !== undefined ? props.contract.optionType : undefined,
1378
+ strikePrice: props.contract.strikePrice !== undefined ? props.contract.strikePrice : undefined,
1171
1379
  expirationDate: props.contract.expirationDate !== undefined ? props.contract.expirationDate : undefined,
1172
1380
  daysToExpiration: props.contract.daysToExpiration !== undefined ? props.contract.daysToExpiration : undefined,
1381
+ lastPrice: props.contract.lastPrice !== undefined ? props.contract.lastPrice : undefined,
1382
+ bidPrice: props.contract.bidPrice !== undefined ? props.contract.bidPrice : undefined,
1383
+ askPrice: props.contract.askPrice !== undefined ? props.contract.askPrice : undefined,
1384
+ midPrice: props.contract.midPrice !== undefined ? props.contract.midPrice : undefined,
1173
1385
  bidSize: props.contract.bidSize !== undefined ? props.contract.bidSize : undefined,
1174
1386
  askSize: props.contract.askSize !== undefined ? props.contract.askSize : undefined,
1175
1387
  volume: props.contract.volume !== undefined ? props.contract.volume : undefined,
1176
1388
  openInterest: props.contract.openInterest !== undefined ? props.contract.openInterest : undefined,
1389
+ impliedVolatility: props.contract.impliedVolatility !== undefined ? props.contract.impliedVolatility : undefined,
1390
+ delta: props.contract.delta !== undefined ? props.contract.delta : undefined,
1391
+ gamma: props.contract.gamma !== undefined ? props.contract.gamma : undefined,
1392
+ theta: props.contract.theta !== undefined ? props.contract.theta : undefined,
1393
+ vega: props.contract.vega !== undefined ? props.contract.vega : undefined,
1394
+ rho: props.contract.rho !== undefined ? props.contract.rho : undefined,
1177
1395
  inTheMoney: props.contract.inTheMoney !== undefined ? props.contract.inTheMoney : undefined,
1396
+ intrinsicValue: props.contract.intrinsicValue !== undefined ? props.contract.intrinsicValue : undefined,
1397
+ extrinsicValue: props.contract.extrinsicValue !== undefined ? props.contract.extrinsicValue : undefined,
1398
+ theoreticalPrice: props.contract.theoreticalPrice !== undefined ? props.contract.theoreticalPrice : undefined,
1399
+ underlyingPrice: props.contract.underlyingPrice !== undefined ? props.contract.underlyingPrice : undefined,
1178
1400
  metadata: props.contract.metadata !== undefined ? props.contract.metadata : undefined,
1179
1401
  dataTimestamp: props.contract.dataTimestamp !== undefined ? props.contract.dataTimestamp : undefined,
1180
1402
  greeksHistory: props.contract.greeksHistory ?
@@ -1192,9 +1414,21 @@ export const OptionsPosition = {
1192
1414
  },
1193
1415
  create: {
1194
1416
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
1417
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
1418
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
1419
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
1420
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
1421
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
1422
+ delta: item.delta !== undefined ? item.delta : undefined,
1423
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
1424
+ theta: item.theta !== undefined ? item.theta : undefined,
1425
+ vega: item.vega !== undefined ? item.vega : undefined,
1426
+ rho: item.rho !== undefined ? item.rho : undefined,
1195
1427
  volume: item.volume !== undefined ? item.volume : undefined,
1196
1428
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
1197
1429
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
1430
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
1431
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
1198
1432
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1199
1433
  },
1200
1434
  }))
@@ -1226,10 +1460,23 @@ export const OptionsPosition = {
1226
1460
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
1227
1461
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
1228
1462
  quantity: item.quantity !== undefined ? item.quantity : undefined,
1463
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
1464
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
1465
+ fees: item.fees !== undefined ? item.fees : undefined,
1229
1466
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
1467
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
1468
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
1469
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
1470
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
1471
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
1472
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
1473
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
1230
1474
  orderType: item.orderType !== undefined ? item.orderType : undefined,
1475
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
1476
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
1231
1477
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
1232
1478
  venue: item.venue !== undefined ? item.venue : undefined,
1479
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
1233
1480
  notes: item.notes !== undefined ? item.notes : undefined,
1234
1481
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1235
1482
  position: item.position ?
@@ -1256,8 +1503,25 @@ export const OptionsPosition = {
1256
1503
  status: item.position.status !== undefined ? item.position.status : undefined,
1257
1504
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
1258
1505
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
1506
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
1507
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
1259
1508
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
1509
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
1510
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
1260
1511
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
1512
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
1513
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
1514
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
1515
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
1516
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
1517
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
1518
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
1519
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
1520
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
1521
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
1522
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
1523
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
1524
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
1261
1525
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
1262
1526
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
1263
1527
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -1581,8 +1845,25 @@ export const OptionsPosition = {
1581
1845
  status: item.status !== undefined ? item.status : undefined,
1582
1846
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
1583
1847
  quantity: item.quantity !== undefined ? item.quantity : undefined,
1848
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
1849
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
1584
1850
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
1851
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
1852
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
1585
1853
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
1854
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
1855
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
1856
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
1857
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
1858
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
1859
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
1860
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
1861
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
1862
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
1863
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
1864
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
1865
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
1866
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
1586
1867
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
1587
1868
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
1588
1869
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -1661,9 +1942,21 @@ export const OptionsPosition = {
1661
1942
  },
1662
1943
  create: {
1663
1944
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
1945
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
1946
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
1947
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
1948
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
1949
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
1950
+ delta: item.delta !== undefined ? item.delta : undefined,
1951
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
1952
+ theta: item.theta !== undefined ? item.theta : undefined,
1953
+ vega: item.vega !== undefined ? item.vega : undefined,
1954
+ rho: item.rho !== undefined ? item.rho : undefined,
1664
1955
  volume: item.volume !== undefined ? item.volume : undefined,
1665
1956
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
1666
1957
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
1958
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
1959
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
1667
1960
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1668
1961
  },
1669
1962
  }))
@@ -1673,13 +1966,28 @@ export const OptionsPosition = {
1673
1966
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
1674
1967
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
1675
1968
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
1969
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
1676
1970
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
1677
1971
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
1972
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
1973
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
1974
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
1975
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
1678
1976
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
1679
1977
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
1680
1978
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
1681
1979
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
1980
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
1981
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
1982
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
1983
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
1984
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
1985
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
1682
1986
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
1987
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
1988
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
1989
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
1990
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
1683
1991
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
1684
1992
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
1685
1993
  positions: item.contract.positions ?
@@ -1706,8 +2014,25 @@ export const OptionsPosition = {
1706
2014
  status: item.status !== undefined ? item.status : undefined,
1707
2015
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
1708
2016
  quantity: item.quantity !== undefined ? item.quantity : undefined,
2017
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
2018
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
1709
2019
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
2020
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
2021
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
1710
2022
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
2023
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
2024
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
2025
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
2026
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
2027
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
2028
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
2029
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
2030
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
2031
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
2032
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
2033
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
2034
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
2035
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
1711
2036
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
1712
2037
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
1713
2038
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -1731,9 +2056,21 @@ export const OptionsPosition = {
1731
2056
  },
1732
2057
  create: {
1733
2058
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
2059
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
2060
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
2061
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
2062
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
2063
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
2064
+ delta: item.delta !== undefined ? item.delta : undefined,
2065
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
2066
+ theta: item.theta !== undefined ? item.theta : undefined,
2067
+ vega: item.vega !== undefined ? item.vega : undefined,
2068
+ rho: item.rho !== undefined ? item.rho : undefined,
1734
2069
  volume: item.volume !== undefined ? item.volume : undefined,
1735
2070
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
1736
2071
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
2072
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
2073
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
1737
2074
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1738
2075
  },
1739
2076
  }))
@@ -1747,10 +2084,23 @@ export const OptionsPosition = {
1747
2084
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
1748
2085
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
1749
2086
  quantity: item.quantity !== undefined ? item.quantity : undefined,
2087
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
2088
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
2089
+ fees: item.fees !== undefined ? item.fees : undefined,
1750
2090
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
2091
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
2092
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
2093
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
2094
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
2095
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
2096
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
2097
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
1751
2098
  orderType: item.orderType !== undefined ? item.orderType : undefined,
2099
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
2100
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
1752
2101
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
1753
2102
  venue: item.venue !== undefined ? item.venue : undefined,
2103
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
1754
2104
  notes: item.notes !== undefined ? item.notes : undefined,
1755
2105
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1756
2106
  contract: item.contract ?
@@ -1770,13 +2120,28 @@ export const OptionsPosition = {
1770
2120
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
1771
2121
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
1772
2122
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
2123
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
1773
2124
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
1774
2125
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
2126
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
2127
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
2128
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
2129
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
1775
2130
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
1776
2131
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
1777
2132
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
1778
2133
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
2134
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
2135
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
2136
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
2137
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
2138
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
2139
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
1779
2140
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
2141
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
2142
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
2143
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
2144
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
1780
2145
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
1781
2146
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
1782
2147
  positions: item.contract.positions ?
@@ -1803,8 +2168,25 @@ export const OptionsPosition = {
1803
2168
  status: item.status !== undefined ? item.status : undefined,
1804
2169
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
1805
2170
  quantity: item.quantity !== undefined ? item.quantity : undefined,
2171
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
2172
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
1806
2173
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
2174
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
2175
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
1807
2176
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
2177
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
2178
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
2179
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
2180
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
2181
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
2182
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
2183
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
2184
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
2185
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
2186
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
2187
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
2188
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
2189
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
1808
2190
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
1809
2191
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
1810
2192
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -1828,9 +2210,21 @@ export const OptionsPosition = {
1828
2210
  },
1829
2211
  create: {
1830
2212
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
2213
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
2214
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
2215
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
2216
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
2217
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
2218
+ delta: item.delta !== undefined ? item.delta : undefined,
2219
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
2220
+ theta: item.theta !== undefined ? item.theta : undefined,
2221
+ vega: item.vega !== undefined ? item.vega : undefined,
2222
+ rho: item.rho !== undefined ? item.rho : undefined,
1831
2223
  volume: item.volume !== undefined ? item.volume : undefined,
1832
2224
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
1833
2225
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
2226
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
2227
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
1834
2228
  metadata: item.metadata !== undefined ? item.metadata : undefined,
1835
2229
  },
1836
2230
  }))
@@ -1962,8 +2356,25 @@ export const OptionsPosition = {
1962
2356
  status: props.status !== undefined ? props.status : undefined,
1963
2357
  openingSide: props.openingSide !== undefined ? props.openingSide : undefined,
1964
2358
  quantity: props.quantity !== undefined ? props.quantity : undefined,
2359
+ entryPrice: props.entryPrice !== undefined ? props.entryPrice : undefined,
2360
+ entryCost: props.entryCost !== undefined ? props.entryCost : undefined,
1965
2361
  entryTime: props.entryTime !== undefined ? props.entryTime : undefined,
2362
+ exitPrice: props.exitPrice !== undefined ? props.exitPrice : undefined,
2363
+ exitValue: props.exitValue !== undefined ? props.exitValue : undefined,
1966
2364
  exitTime: props.exitTime !== undefined ? props.exitTime : undefined,
2365
+ currentPrice: props.currentPrice !== undefined ? props.currentPrice : undefined,
2366
+ currentValue: props.currentValue !== undefined ? props.currentValue : undefined,
2367
+ unrealizedPnL: props.unrealizedPnL !== undefined ? props.unrealizedPnL : undefined,
2368
+ unrealizedPnLPercent: props.unrealizedPnLPercent !== undefined ? props.unrealizedPnLPercent : undefined,
2369
+ realizedPnL: props.realizedPnL !== undefined ? props.realizedPnL : undefined,
2370
+ realizedPnLPercent: props.realizedPnLPercent !== undefined ? props.realizedPnLPercent : undefined,
2371
+ totalFees: props.totalFees !== undefined ? props.totalFees : undefined,
2372
+ currentDelta: props.currentDelta !== undefined ? props.currentDelta : undefined,
2373
+ currentGamma: props.currentGamma !== undefined ? props.currentGamma : undefined,
2374
+ currentTheta: props.currentTheta !== undefined ? props.currentTheta : undefined,
2375
+ currentVega: props.currentVega !== undefined ? props.currentVega : undefined,
2376
+ currentRho: props.currentRho !== undefined ? props.currentRho : undefined,
2377
+ currentImpliedVolatility: props.currentImpliedVolatility !== undefined ? props.currentImpliedVolatility : undefined,
1967
2378
  daysHeld: props.daysHeld !== undefined ? props.daysHeld : undefined,
1968
2379
  exitReason: props.exitReason !== undefined ? props.exitReason : undefined,
1969
2380
  strategyType: props.strategyType !== undefined ? props.strategyType : undefined,
@@ -1986,13 +2397,28 @@ export const OptionsPosition = {
1986
2397
  symbol: props.contract.symbol !== undefined ? props.contract.symbol : undefined,
1987
2398
  contractSymbol: props.contract.contractSymbol !== undefined ? props.contract.contractSymbol : undefined,
1988
2399
  optionType: props.contract.optionType !== undefined ? props.contract.optionType : undefined,
2400
+ strikePrice: props.contract.strikePrice !== undefined ? props.contract.strikePrice : undefined,
1989
2401
  expirationDate: props.contract.expirationDate !== undefined ? props.contract.expirationDate : undefined,
1990
2402
  daysToExpiration: props.contract.daysToExpiration !== undefined ? props.contract.daysToExpiration : undefined,
2403
+ lastPrice: props.contract.lastPrice !== undefined ? props.contract.lastPrice : undefined,
2404
+ bidPrice: props.contract.bidPrice !== undefined ? props.contract.bidPrice : undefined,
2405
+ askPrice: props.contract.askPrice !== undefined ? props.contract.askPrice : undefined,
2406
+ midPrice: props.contract.midPrice !== undefined ? props.contract.midPrice : undefined,
1991
2407
  bidSize: props.contract.bidSize !== undefined ? props.contract.bidSize : undefined,
1992
2408
  askSize: props.contract.askSize !== undefined ? props.contract.askSize : undefined,
1993
2409
  volume: props.contract.volume !== undefined ? props.contract.volume : undefined,
1994
2410
  openInterest: props.contract.openInterest !== undefined ? props.contract.openInterest : undefined,
2411
+ impliedVolatility: props.contract.impliedVolatility !== undefined ? props.contract.impliedVolatility : undefined,
2412
+ delta: props.contract.delta !== undefined ? props.contract.delta : undefined,
2413
+ gamma: props.contract.gamma !== undefined ? props.contract.gamma : undefined,
2414
+ theta: props.contract.theta !== undefined ? props.contract.theta : undefined,
2415
+ vega: props.contract.vega !== undefined ? props.contract.vega : undefined,
2416
+ rho: props.contract.rho !== undefined ? props.contract.rho : undefined,
1995
2417
  inTheMoney: props.contract.inTheMoney !== undefined ? props.contract.inTheMoney : undefined,
2418
+ intrinsicValue: props.contract.intrinsicValue !== undefined ? props.contract.intrinsicValue : undefined,
2419
+ extrinsicValue: props.contract.extrinsicValue !== undefined ? props.contract.extrinsicValue : undefined,
2420
+ theoreticalPrice: props.contract.theoreticalPrice !== undefined ? props.contract.theoreticalPrice : undefined,
2421
+ underlyingPrice: props.contract.underlyingPrice !== undefined ? props.contract.underlyingPrice : undefined,
1996
2422
  metadata: props.contract.metadata !== undefined ? props.contract.metadata : undefined,
1997
2423
  dataTimestamp: props.contract.dataTimestamp !== undefined ? props.contract.dataTimestamp : undefined,
1998
2424
  greeksHistory: props.contract.greeksHistory ?
@@ -2010,9 +2436,21 @@ export const OptionsPosition = {
2010
2436
  },
2011
2437
  create: {
2012
2438
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
2439
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
2440
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
2441
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
2442
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
2443
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
2444
+ delta: item.delta !== undefined ? item.delta : undefined,
2445
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
2446
+ theta: item.theta !== undefined ? item.theta : undefined,
2447
+ vega: item.vega !== undefined ? item.vega : undefined,
2448
+ rho: item.rho !== undefined ? item.rho : undefined,
2013
2449
  volume: item.volume !== undefined ? item.volume : undefined,
2014
2450
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
2015
2451
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
2452
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
2453
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
2016
2454
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2017
2455
  },
2018
2456
  }))
@@ -2044,10 +2482,23 @@ export const OptionsPosition = {
2044
2482
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
2045
2483
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
2046
2484
  quantity: item.quantity !== undefined ? item.quantity : undefined,
2485
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
2486
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
2487
+ fees: item.fees !== undefined ? item.fees : undefined,
2047
2488
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
2489
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
2490
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
2491
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
2492
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
2493
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
2494
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
2495
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
2048
2496
  orderType: item.orderType !== undefined ? item.orderType : undefined,
2497
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
2498
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
2049
2499
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
2050
2500
  venue: item.venue !== undefined ? item.venue : undefined,
2501
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
2051
2502
  notes: item.notes !== undefined ? item.notes : undefined,
2052
2503
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2053
2504
  position: item.position ?
@@ -2074,8 +2525,25 @@ export const OptionsPosition = {
2074
2525
  status: item.position.status !== undefined ? item.position.status : undefined,
2075
2526
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
2076
2527
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
2528
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
2529
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
2077
2530
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
2531
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
2532
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
2078
2533
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
2534
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
2535
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
2536
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
2537
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
2538
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
2539
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
2540
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
2541
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
2542
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
2543
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
2544
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
2545
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
2546
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
2079
2547
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
2080
2548
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
2081
2549
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -2117,10 +2585,23 @@ export const OptionsPosition = {
2117
2585
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
2118
2586
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
2119
2587
  quantity: item.quantity !== undefined ? item.quantity : undefined,
2588
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
2589
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
2590
+ fees: item.fees !== undefined ? item.fees : undefined,
2120
2591
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
2592
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
2593
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
2594
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
2595
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
2596
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
2597
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
2598
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
2121
2599
  orderType: item.orderType !== undefined ? item.orderType : undefined,
2600
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
2601
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
2122
2602
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
2123
2603
  venue: item.venue !== undefined ? item.venue : undefined,
2604
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
2124
2605
  notes: item.notes !== undefined ? item.notes : undefined,
2125
2606
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2126
2607
  contract: item.contract ?
@@ -2140,13 +2621,28 @@ export const OptionsPosition = {
2140
2621
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
2141
2622
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
2142
2623
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
2624
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
2143
2625
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
2144
2626
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
2627
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
2628
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
2629
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
2630
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
2145
2631
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
2146
2632
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
2147
2633
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
2148
2634
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
2635
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
2636
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
2637
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
2638
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
2639
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
2640
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
2149
2641
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
2642
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
2643
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
2644
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
2645
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
2150
2646
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
2151
2647
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
2152
2648
  positions: item.contract.positions ?
@@ -2173,8 +2669,25 @@ export const OptionsPosition = {
2173
2669
  status: item.status !== undefined ? item.status : undefined,
2174
2670
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
2175
2671
  quantity: item.quantity !== undefined ? item.quantity : undefined,
2672
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
2673
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
2176
2674
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
2675
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
2676
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
2177
2677
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
2678
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
2679
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
2680
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
2681
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
2682
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
2683
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
2684
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
2685
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
2686
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
2687
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
2688
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
2689
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
2690
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
2178
2691
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
2179
2692
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
2180
2693
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -2198,9 +2711,21 @@ export const OptionsPosition = {
2198
2711
  },
2199
2712
  create: {
2200
2713
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
2714
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
2715
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
2716
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
2717
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
2718
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
2719
+ delta: item.delta !== undefined ? item.delta : undefined,
2720
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
2721
+ theta: item.theta !== undefined ? item.theta : undefined,
2722
+ vega: item.vega !== undefined ? item.vega : undefined,
2723
+ rho: item.rho !== undefined ? item.rho : undefined,
2201
2724
  volume: item.volume !== undefined ? item.volume : undefined,
2202
2725
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
2203
2726
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
2727
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
2728
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
2204
2729
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2205
2730
  },
2206
2731
  }))
@@ -2467,9 +2992,21 @@ export const OptionsPosition = {
2467
2992
  },
2468
2993
  create: {
2469
2994
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
2995
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
2996
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
2997
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
2998
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
2999
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
3000
+ delta: item.delta !== undefined ? item.delta : undefined,
3001
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
3002
+ theta: item.theta !== undefined ? item.theta : undefined,
3003
+ vega: item.vega !== undefined ? item.vega : undefined,
3004
+ rho: item.rho !== undefined ? item.rho : undefined,
2470
3005
  volume: item.volume !== undefined ? item.volume : undefined,
2471
3006
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
2472
3007
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
3008
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
3009
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
2473
3010
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2474
3011
  },
2475
3012
  }))
@@ -2686,8 +3223,25 @@ export const OptionsPosition = {
2686
3223
  status: item.position.status !== undefined ? item.position.status : undefined,
2687
3224
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
2688
3225
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
3226
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
3227
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
2689
3228
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
3229
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
3230
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
2690
3231
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
3232
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
3233
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
3234
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
3235
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
3236
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
3237
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
3238
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
3239
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
3240
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
3241
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
3242
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
3243
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
3244
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
2691
3245
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
2692
3246
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
2693
3247
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -2702,10 +3256,23 @@ export const OptionsPosition = {
2702
3256
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
2703
3257
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
2704
3258
  quantity: item.quantity !== undefined ? item.quantity : undefined,
3259
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
3260
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
3261
+ fees: item.fees !== undefined ? item.fees : undefined,
2705
3262
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
3263
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
3264
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
3265
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
3266
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
3267
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
3268
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
3269
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
2706
3270
  orderType: item.orderType !== undefined ? item.orderType : undefined,
3271
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
3272
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
2707
3273
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
2708
3274
  venue: item.venue !== undefined ? item.venue : undefined,
3275
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
2709
3276
  notes: item.notes !== undefined ? item.notes : undefined,
2710
3277
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2711
3278
  position: item.position ?
@@ -2732,8 +3299,25 @@ export const OptionsPosition = {
2732
3299
  status: item.position.status !== undefined ? item.position.status : undefined,
2733
3300
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
2734
3301
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
3302
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
3303
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
2735
3304
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
3305
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
3306
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
2736
3307
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
3308
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
3309
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
3310
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
3311
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
3312
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
3313
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
3314
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
3315
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
3316
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
3317
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
3318
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
3319
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
3320
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
2737
3321
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
2738
3322
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
2739
3323
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -2750,13 +3334,28 @@ export const OptionsPosition = {
2750
3334
  symbol: props.contract.symbol !== undefined ? props.contract.symbol : undefined,
2751
3335
  contractSymbol: props.contract.contractSymbol !== undefined ? props.contract.contractSymbol : undefined,
2752
3336
  optionType: props.contract.optionType !== undefined ? props.contract.optionType : undefined,
3337
+ strikePrice: props.contract.strikePrice !== undefined ? props.contract.strikePrice : undefined,
2753
3338
  expirationDate: props.contract.expirationDate !== undefined ? props.contract.expirationDate : undefined,
2754
3339
  daysToExpiration: props.contract.daysToExpiration !== undefined ? props.contract.daysToExpiration : undefined,
3340
+ lastPrice: props.contract.lastPrice !== undefined ? props.contract.lastPrice : undefined,
3341
+ bidPrice: props.contract.bidPrice !== undefined ? props.contract.bidPrice : undefined,
3342
+ askPrice: props.contract.askPrice !== undefined ? props.contract.askPrice : undefined,
3343
+ midPrice: props.contract.midPrice !== undefined ? props.contract.midPrice : undefined,
2755
3344
  bidSize: props.contract.bidSize !== undefined ? props.contract.bidSize : undefined,
2756
3345
  askSize: props.contract.askSize !== undefined ? props.contract.askSize : undefined,
2757
3346
  volume: props.contract.volume !== undefined ? props.contract.volume : undefined,
2758
3347
  openInterest: props.contract.openInterest !== undefined ? props.contract.openInterest : undefined,
3348
+ impliedVolatility: props.contract.impliedVolatility !== undefined ? props.contract.impliedVolatility : undefined,
3349
+ delta: props.contract.delta !== undefined ? props.contract.delta : undefined,
3350
+ gamma: props.contract.gamma !== undefined ? props.contract.gamma : undefined,
3351
+ theta: props.contract.theta !== undefined ? props.contract.theta : undefined,
3352
+ vega: props.contract.vega !== undefined ? props.contract.vega : undefined,
3353
+ rho: props.contract.rho !== undefined ? props.contract.rho : undefined,
2759
3354
  inTheMoney: props.contract.inTheMoney !== undefined ? props.contract.inTheMoney : undefined,
3355
+ intrinsicValue: props.contract.intrinsicValue !== undefined ? props.contract.intrinsicValue : undefined,
3356
+ extrinsicValue: props.contract.extrinsicValue !== undefined ? props.contract.extrinsicValue : undefined,
3357
+ theoreticalPrice: props.contract.theoreticalPrice !== undefined ? props.contract.theoreticalPrice : undefined,
3358
+ underlyingPrice: props.contract.underlyingPrice !== undefined ? props.contract.underlyingPrice : undefined,
2760
3359
  metadata: props.contract.metadata !== undefined ? props.contract.metadata : undefined,
2761
3360
  dataTimestamp: props.contract.dataTimestamp !== undefined ? props.contract.dataTimestamp : undefined,
2762
3361
  greeksHistory: props.contract.greeksHistory ?
@@ -2774,9 +3373,21 @@ export const OptionsPosition = {
2774
3373
  },
2775
3374
  create: {
2776
3375
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
3376
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
3377
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
3378
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
3379
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
3380
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
3381
+ delta: item.delta !== undefined ? item.delta : undefined,
3382
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
3383
+ theta: item.theta !== undefined ? item.theta : undefined,
3384
+ vega: item.vega !== undefined ? item.vega : undefined,
3385
+ rho: item.rho !== undefined ? item.rho : undefined,
2777
3386
  volume: item.volume !== undefined ? item.volume : undefined,
2778
3387
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
2779
3388
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
3389
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
3390
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
2780
3391
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2781
3392
  },
2782
3393
  }))
@@ -2808,10 +3419,23 @@ export const OptionsPosition = {
2808
3419
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
2809
3420
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
2810
3421
  quantity: item.quantity !== undefined ? item.quantity : undefined,
3422
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
3423
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
3424
+ fees: item.fees !== undefined ? item.fees : undefined,
2811
3425
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
3426
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
3427
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
3428
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
3429
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
3430
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
3431
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
3432
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
2812
3433
  orderType: item.orderType !== undefined ? item.orderType : undefined,
3434
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
3435
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
2813
3436
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
2814
3437
  venue: item.venue !== undefined ? item.venue : undefined,
3438
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
2815
3439
  notes: item.notes !== undefined ? item.notes : undefined,
2816
3440
  metadata: item.metadata !== undefined ? item.metadata : undefined,
2817
3441
  position: item.position ?
@@ -2838,8 +3462,25 @@ export const OptionsPosition = {
2838
3462
  status: item.position.status !== undefined ? item.position.status : undefined,
2839
3463
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
2840
3464
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
3465
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
3466
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
2841
3467
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
3468
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
3469
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
2842
3470
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
3471
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
3472
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
3473
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
3474
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
3475
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
3476
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
3477
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
3478
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
3479
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
3480
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
3481
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
3482
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
3483
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
2843
3484
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
2844
3485
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
2845
3486
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -3163,8 +3804,25 @@ export const OptionsPosition = {
3163
3804
  status: item.status !== undefined ? item.status : undefined,
3164
3805
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
3165
3806
  quantity: item.quantity !== undefined ? item.quantity : undefined,
3807
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
3808
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
3166
3809
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
3810
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
3811
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
3167
3812
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
3813
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
3814
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
3815
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
3816
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
3817
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
3818
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
3819
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
3820
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
3821
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
3822
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
3823
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
3824
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
3825
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
3168
3826
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
3169
3827
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
3170
3828
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -3243,9 +3901,21 @@ export const OptionsPosition = {
3243
3901
  },
3244
3902
  create: {
3245
3903
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
3904
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
3905
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
3906
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
3907
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
3908
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
3909
+ delta: item.delta !== undefined ? item.delta : undefined,
3910
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
3911
+ theta: item.theta !== undefined ? item.theta : undefined,
3912
+ vega: item.vega !== undefined ? item.vega : undefined,
3913
+ rho: item.rho !== undefined ? item.rho : undefined,
3246
3914
  volume: item.volume !== undefined ? item.volume : undefined,
3247
3915
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
3248
3916
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
3917
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
3918
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
3249
3919
  metadata: item.metadata !== undefined ? item.metadata : undefined,
3250
3920
  },
3251
3921
  }))
@@ -3255,13 +3925,28 @@ export const OptionsPosition = {
3255
3925
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
3256
3926
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
3257
3927
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
3928
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
3258
3929
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
3259
3930
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
3931
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
3932
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
3933
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
3934
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
3260
3935
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
3261
3936
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
3262
3937
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
3263
3938
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
3939
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
3940
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
3941
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
3942
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
3943
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
3944
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
3264
3945
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
3946
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
3947
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
3948
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
3949
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
3265
3950
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
3266
3951
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
3267
3952
  positions: item.contract.positions ?
@@ -3288,8 +3973,25 @@ export const OptionsPosition = {
3288
3973
  status: item.status !== undefined ? item.status : undefined,
3289
3974
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
3290
3975
  quantity: item.quantity !== undefined ? item.quantity : undefined,
3976
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
3977
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
3291
3978
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
3979
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
3980
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
3292
3981
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
3982
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
3983
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
3984
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
3985
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
3986
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
3987
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
3988
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
3989
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
3990
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
3991
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
3992
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
3993
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
3994
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
3293
3995
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
3294
3996
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
3295
3997
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -3313,9 +4015,21 @@ export const OptionsPosition = {
3313
4015
  },
3314
4016
  create: {
3315
4017
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
4018
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
4019
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
4020
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
4021
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
4022
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
4023
+ delta: item.delta !== undefined ? item.delta : undefined,
4024
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
4025
+ theta: item.theta !== undefined ? item.theta : undefined,
4026
+ vega: item.vega !== undefined ? item.vega : undefined,
4027
+ rho: item.rho !== undefined ? item.rho : undefined,
3316
4028
  volume: item.volume !== undefined ? item.volume : undefined,
3317
4029
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
3318
4030
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
4031
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
4032
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
3319
4033
  metadata: item.metadata !== undefined ? item.metadata : undefined,
3320
4034
  },
3321
4035
  }))
@@ -3329,10 +4043,23 @@ export const OptionsPosition = {
3329
4043
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
3330
4044
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
3331
4045
  quantity: item.quantity !== undefined ? item.quantity : undefined,
4046
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
4047
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
4048
+ fees: item.fees !== undefined ? item.fees : undefined,
3332
4049
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
4050
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
4051
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
4052
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
4053
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
4054
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
4055
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
4056
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
3333
4057
  orderType: item.orderType !== undefined ? item.orderType : undefined,
4058
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
4059
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
3334
4060
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
3335
4061
  venue: item.venue !== undefined ? item.venue : undefined,
4062
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
3336
4063
  notes: item.notes !== undefined ? item.notes : undefined,
3337
4064
  metadata: item.metadata !== undefined ? item.metadata : undefined,
3338
4065
  contract: item.contract ?
@@ -3352,13 +4079,28 @@ export const OptionsPosition = {
3352
4079
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
3353
4080
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
3354
4081
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
4082
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
3355
4083
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
3356
4084
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
4085
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
4086
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
4087
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
4088
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
3357
4089
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
3358
4090
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
3359
4091
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
3360
4092
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
4093
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
4094
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
4095
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
4096
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
4097
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
4098
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
3361
4099
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
4100
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
4101
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
4102
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
4103
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
3362
4104
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
3363
4105
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
3364
4106
  positions: item.contract.positions ?
@@ -3385,8 +4127,25 @@ export const OptionsPosition = {
3385
4127
  status: item.status !== undefined ? item.status : undefined,
3386
4128
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
3387
4129
  quantity: item.quantity !== undefined ? item.quantity : undefined,
4130
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
4131
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
3388
4132
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
4133
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
4134
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
3389
4135
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
4136
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
4137
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
4138
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
4139
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
4140
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
4141
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
4142
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
4143
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
4144
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
4145
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
4146
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
4147
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
4148
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
3390
4149
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
3391
4150
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
3392
4151
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -3410,9 +4169,21 @@ export const OptionsPosition = {
3410
4169
  },
3411
4170
  create: {
3412
4171
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
4172
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
4173
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
4174
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
4175
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
4176
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
4177
+ delta: item.delta !== undefined ? item.delta : undefined,
4178
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
4179
+ theta: item.theta !== undefined ? item.theta : undefined,
4180
+ vega: item.vega !== undefined ? item.vega : undefined,
4181
+ rho: item.rho !== undefined ? item.rho : undefined,
3413
4182
  volume: item.volume !== undefined ? item.volume : undefined,
3414
4183
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
3415
4184
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
4185
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
4186
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
3416
4187
  metadata: item.metadata !== undefined ? item.metadata : undefined,
3417
4188
  },
3418
4189
  }))
@@ -3803,9 +4574,21 @@ export const OptionsPosition = {
3803
4574
  },
3804
4575
  create: {
3805
4576
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
4577
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
4578
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
4579
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
4580
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
4581
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
4582
+ delta: item.delta !== undefined ? item.delta : undefined,
4583
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
4584
+ theta: item.theta !== undefined ? item.theta : undefined,
4585
+ vega: item.vega !== undefined ? item.vega : undefined,
4586
+ rho: item.rho !== undefined ? item.rho : undefined,
3806
4587
  volume: item.volume !== undefined ? item.volume : undefined,
3807
4588
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
3808
4589
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
4590
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
4591
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
3809
4592
  metadata: item.metadata !== undefined ? item.metadata : undefined,
3810
4593
  },
3811
4594
  }))
@@ -4022,8 +4805,25 @@ export const OptionsPosition = {
4022
4805
  status: item.position.status !== undefined ? item.position.status : undefined,
4023
4806
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
4024
4807
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
4808
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
4809
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
4025
4810
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
4811
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
4812
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
4026
4813
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
4814
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
4815
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
4816
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
4817
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
4818
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
4819
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
4820
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
4821
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
4822
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
4823
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
4824
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
4825
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
4826
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
4027
4827
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
4028
4828
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
4029
4829
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -4038,10 +4838,23 @@ export const OptionsPosition = {
4038
4838
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
4039
4839
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
4040
4840
  quantity: item.quantity !== undefined ? item.quantity : undefined,
4841
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
4842
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
4843
+ fees: item.fees !== undefined ? item.fees : undefined,
4041
4844
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
4845
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
4846
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
4847
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
4848
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
4849
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
4850
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
4851
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
4042
4852
  orderType: item.orderType !== undefined ? item.orderType : undefined,
4853
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
4854
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
4043
4855
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
4044
4856
  venue: item.venue !== undefined ? item.venue : undefined,
4857
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
4045
4858
  notes: item.notes !== undefined ? item.notes : undefined,
4046
4859
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4047
4860
  position: item.position ?
@@ -4068,8 +4881,25 @@ export const OptionsPosition = {
4068
4881
  status: item.position.status !== undefined ? item.position.status : undefined,
4069
4882
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
4070
4883
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
4884
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
4885
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
4071
4886
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
4887
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
4888
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
4072
4889
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
4890
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
4891
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
4892
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
4893
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
4894
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
4895
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
4896
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
4897
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
4898
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
4899
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
4900
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
4901
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
4902
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
4073
4903
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
4074
4904
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
4075
4905
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -4086,13 +4916,28 @@ export const OptionsPosition = {
4086
4916
  symbol: prop.contract.symbol !== undefined ? prop.contract.symbol : undefined,
4087
4917
  contractSymbol: prop.contract.contractSymbol !== undefined ? prop.contract.contractSymbol : undefined,
4088
4918
  optionType: prop.contract.optionType !== undefined ? prop.contract.optionType : undefined,
4919
+ strikePrice: prop.contract.strikePrice !== undefined ? prop.contract.strikePrice : undefined,
4089
4920
  expirationDate: prop.contract.expirationDate !== undefined ? prop.contract.expirationDate : undefined,
4090
4921
  daysToExpiration: prop.contract.daysToExpiration !== undefined ? prop.contract.daysToExpiration : undefined,
4922
+ lastPrice: prop.contract.lastPrice !== undefined ? prop.contract.lastPrice : undefined,
4923
+ bidPrice: prop.contract.bidPrice !== undefined ? prop.contract.bidPrice : undefined,
4924
+ askPrice: prop.contract.askPrice !== undefined ? prop.contract.askPrice : undefined,
4925
+ midPrice: prop.contract.midPrice !== undefined ? prop.contract.midPrice : undefined,
4091
4926
  bidSize: prop.contract.bidSize !== undefined ? prop.contract.bidSize : undefined,
4092
4927
  askSize: prop.contract.askSize !== undefined ? prop.contract.askSize : undefined,
4093
4928
  volume: prop.contract.volume !== undefined ? prop.contract.volume : undefined,
4094
4929
  openInterest: prop.contract.openInterest !== undefined ? prop.contract.openInterest : undefined,
4930
+ impliedVolatility: prop.contract.impliedVolatility !== undefined ? prop.contract.impliedVolatility : undefined,
4931
+ delta: prop.contract.delta !== undefined ? prop.contract.delta : undefined,
4932
+ gamma: prop.contract.gamma !== undefined ? prop.contract.gamma : undefined,
4933
+ theta: prop.contract.theta !== undefined ? prop.contract.theta : undefined,
4934
+ vega: prop.contract.vega !== undefined ? prop.contract.vega : undefined,
4935
+ rho: prop.contract.rho !== undefined ? prop.contract.rho : undefined,
4095
4936
  inTheMoney: prop.contract.inTheMoney !== undefined ? prop.contract.inTheMoney : undefined,
4937
+ intrinsicValue: prop.contract.intrinsicValue !== undefined ? prop.contract.intrinsicValue : undefined,
4938
+ extrinsicValue: prop.contract.extrinsicValue !== undefined ? prop.contract.extrinsicValue : undefined,
4939
+ theoreticalPrice: prop.contract.theoreticalPrice !== undefined ? prop.contract.theoreticalPrice : undefined,
4940
+ underlyingPrice: prop.contract.underlyingPrice !== undefined ? prop.contract.underlyingPrice : undefined,
4096
4941
  metadata: prop.contract.metadata !== undefined ? prop.contract.metadata : undefined,
4097
4942
  dataTimestamp: prop.contract.dataTimestamp !== undefined ? prop.contract.dataTimestamp : undefined,
4098
4943
  greeksHistory: prop.contract.greeksHistory ?
@@ -4110,9 +4955,21 @@ export const OptionsPosition = {
4110
4955
  },
4111
4956
  create: {
4112
4957
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
4958
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
4959
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
4960
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
4961
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
4962
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
4963
+ delta: item.delta !== undefined ? item.delta : undefined,
4964
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
4965
+ theta: item.theta !== undefined ? item.theta : undefined,
4966
+ vega: item.vega !== undefined ? item.vega : undefined,
4967
+ rho: item.rho !== undefined ? item.rho : undefined,
4113
4968
  volume: item.volume !== undefined ? item.volume : undefined,
4114
4969
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
4115
4970
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
4971
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
4972
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
4116
4973
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4117
4974
  },
4118
4975
  }))
@@ -4144,10 +5001,23 @@ export const OptionsPosition = {
4144
5001
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
4145
5002
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
4146
5003
  quantity: item.quantity !== undefined ? item.quantity : undefined,
5004
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
5005
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
5006
+ fees: item.fees !== undefined ? item.fees : undefined,
4147
5007
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
5008
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
5009
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
5010
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
5011
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
5012
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
5013
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
5014
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
4148
5015
  orderType: item.orderType !== undefined ? item.orderType : undefined,
5016
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
5017
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
4149
5018
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
4150
5019
  venue: item.venue !== undefined ? item.venue : undefined,
5020
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
4151
5021
  notes: item.notes !== undefined ? item.notes : undefined,
4152
5022
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4153
5023
  position: item.position ?
@@ -4174,8 +5044,25 @@ export const OptionsPosition = {
4174
5044
  status: item.position.status !== undefined ? item.position.status : undefined,
4175
5045
  openingSide: item.position.openingSide !== undefined ? item.position.openingSide : undefined,
4176
5046
  quantity: item.position.quantity !== undefined ? item.position.quantity : undefined,
5047
+ entryPrice: item.position.entryPrice !== undefined ? item.position.entryPrice : undefined,
5048
+ entryCost: item.position.entryCost !== undefined ? item.position.entryCost : undefined,
4177
5049
  entryTime: item.position.entryTime !== undefined ? item.position.entryTime : undefined,
5050
+ exitPrice: item.position.exitPrice !== undefined ? item.position.exitPrice : undefined,
5051
+ exitValue: item.position.exitValue !== undefined ? item.position.exitValue : undefined,
4178
5052
  exitTime: item.position.exitTime !== undefined ? item.position.exitTime : undefined,
5053
+ currentPrice: item.position.currentPrice !== undefined ? item.position.currentPrice : undefined,
5054
+ currentValue: item.position.currentValue !== undefined ? item.position.currentValue : undefined,
5055
+ unrealizedPnL: item.position.unrealizedPnL !== undefined ? item.position.unrealizedPnL : undefined,
5056
+ unrealizedPnLPercent: item.position.unrealizedPnLPercent !== undefined ? item.position.unrealizedPnLPercent : undefined,
5057
+ realizedPnL: item.position.realizedPnL !== undefined ? item.position.realizedPnL : undefined,
5058
+ realizedPnLPercent: item.position.realizedPnLPercent !== undefined ? item.position.realizedPnLPercent : undefined,
5059
+ totalFees: item.position.totalFees !== undefined ? item.position.totalFees : undefined,
5060
+ currentDelta: item.position.currentDelta !== undefined ? item.position.currentDelta : undefined,
5061
+ currentGamma: item.position.currentGamma !== undefined ? item.position.currentGamma : undefined,
5062
+ currentTheta: item.position.currentTheta !== undefined ? item.position.currentTheta : undefined,
5063
+ currentVega: item.position.currentVega !== undefined ? item.position.currentVega : undefined,
5064
+ currentRho: item.position.currentRho !== undefined ? item.position.currentRho : undefined,
5065
+ currentImpliedVolatility: item.position.currentImpliedVolatility !== undefined ? item.position.currentImpliedVolatility : undefined,
4179
5066
  daysHeld: item.position.daysHeld !== undefined ? item.position.daysHeld : undefined,
4180
5067
  exitReason: item.position.exitReason !== undefined ? item.position.exitReason : undefined,
4181
5068
  strategyType: item.position.strategyType !== undefined ? item.position.strategyType : undefined,
@@ -4499,8 +5386,25 @@ export const OptionsPosition = {
4499
5386
  status: item.status !== undefined ? item.status : undefined,
4500
5387
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
4501
5388
  quantity: item.quantity !== undefined ? item.quantity : undefined,
5389
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
5390
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
4502
5391
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
5392
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
5393
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
4503
5394
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
5395
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
5396
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
5397
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
5398
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
5399
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
5400
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
5401
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
5402
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
5403
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
5404
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
5405
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
5406
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
5407
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
4504
5408
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
4505
5409
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
4506
5410
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -4579,9 +5483,21 @@ export const OptionsPosition = {
4579
5483
  },
4580
5484
  create: {
4581
5485
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
5486
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
5487
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
5488
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
5489
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
5490
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
5491
+ delta: item.delta !== undefined ? item.delta : undefined,
5492
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
5493
+ theta: item.theta !== undefined ? item.theta : undefined,
5494
+ vega: item.vega !== undefined ? item.vega : undefined,
5495
+ rho: item.rho !== undefined ? item.rho : undefined,
4582
5496
  volume: item.volume !== undefined ? item.volume : undefined,
4583
5497
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
4584
5498
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
5499
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
5500
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
4585
5501
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4586
5502
  },
4587
5503
  }))
@@ -4591,13 +5507,28 @@ export const OptionsPosition = {
4591
5507
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
4592
5508
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
4593
5509
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
5510
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
4594
5511
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
4595
5512
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
5513
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
5514
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
5515
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
5516
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
4596
5517
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
4597
5518
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
4598
5519
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
4599
5520
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
5521
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
5522
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
5523
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
5524
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
5525
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
5526
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
4600
5527
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
5528
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
5529
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
5530
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
5531
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
4601
5532
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
4602
5533
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
4603
5534
  positions: item.contract.positions ?
@@ -4624,8 +5555,25 @@ export const OptionsPosition = {
4624
5555
  status: item.status !== undefined ? item.status : undefined,
4625
5556
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
4626
5557
  quantity: item.quantity !== undefined ? item.quantity : undefined,
5558
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
5559
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
4627
5560
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
5561
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
5562
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
4628
5563
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
5564
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
5565
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
5566
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
5567
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
5568
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
5569
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
5570
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
5571
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
5572
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
5573
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
5574
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
5575
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
5576
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
4629
5577
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
4630
5578
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
4631
5579
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -4649,9 +5597,21 @@ export const OptionsPosition = {
4649
5597
  },
4650
5598
  create: {
4651
5599
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
5600
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
5601
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
5602
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
5603
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
5604
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
5605
+ delta: item.delta !== undefined ? item.delta : undefined,
5606
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
5607
+ theta: item.theta !== undefined ? item.theta : undefined,
5608
+ vega: item.vega !== undefined ? item.vega : undefined,
5609
+ rho: item.rho !== undefined ? item.rho : undefined,
4652
5610
  volume: item.volume !== undefined ? item.volume : undefined,
4653
5611
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
4654
5612
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
5613
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
5614
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
4655
5615
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4656
5616
  },
4657
5617
  }))
@@ -4665,10 +5625,23 @@ export const OptionsPosition = {
4665
5625
  brokerOrderId: item.brokerOrderId !== undefined ? item.brokerOrderId : undefined,
4666
5626
  executionSide: item.executionSide !== undefined ? item.executionSide : undefined,
4667
5627
  quantity: item.quantity !== undefined ? item.quantity : undefined,
5628
+ executionPrice: item.executionPrice !== undefined ? item.executionPrice : undefined,
5629
+ executionValue: item.executionValue !== undefined ? item.executionValue : undefined,
5630
+ fees: item.fees !== undefined ? item.fees : undefined,
4668
5631
  executionTime: item.executionTime !== undefined ? item.executionTime : undefined,
5632
+ underlyingPriceAtExecution: item.underlyingPriceAtExecution !== undefined ? item.underlyingPriceAtExecution : undefined,
5633
+ deltaAtExecution: item.deltaAtExecution !== undefined ? item.deltaAtExecution : undefined,
5634
+ gammaAtExecution: item.gammaAtExecution !== undefined ? item.gammaAtExecution : undefined,
5635
+ thetaAtExecution: item.thetaAtExecution !== undefined ? item.thetaAtExecution : undefined,
5636
+ vegaAtExecution: item.vegaAtExecution !== undefined ? item.vegaAtExecution : undefined,
5637
+ rhoAtExecution: item.rhoAtExecution !== undefined ? item.rhoAtExecution : undefined,
5638
+ impliedVolatilityAtExecution: item.impliedVolatilityAtExecution !== undefined ? item.impliedVolatilityAtExecution : undefined,
4669
5639
  orderType: item.orderType !== undefined ? item.orderType : undefined,
5640
+ limitPrice: item.limitPrice !== undefined ? item.limitPrice : undefined,
5641
+ stopPrice: item.stopPrice !== undefined ? item.stopPrice : undefined,
4670
5642
  timeInForce: item.timeInForce !== undefined ? item.timeInForce : undefined,
4671
5643
  venue: item.venue !== undefined ? item.venue : undefined,
5644
+ slippage: item.slippage !== undefined ? item.slippage : undefined,
4672
5645
  notes: item.notes !== undefined ? item.notes : undefined,
4673
5646
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4674
5647
  contract: item.contract ?
@@ -4688,13 +5661,28 @@ export const OptionsPosition = {
4688
5661
  symbol: item.contract.symbol !== undefined ? item.contract.symbol : undefined,
4689
5662
  contractSymbol: item.contract.contractSymbol !== undefined ? item.contract.contractSymbol : undefined,
4690
5663
  optionType: item.contract.optionType !== undefined ? item.contract.optionType : undefined,
5664
+ strikePrice: item.contract.strikePrice !== undefined ? item.contract.strikePrice : undefined,
4691
5665
  expirationDate: item.contract.expirationDate !== undefined ? item.contract.expirationDate : undefined,
4692
5666
  daysToExpiration: item.contract.daysToExpiration !== undefined ? item.contract.daysToExpiration : undefined,
5667
+ lastPrice: item.contract.lastPrice !== undefined ? item.contract.lastPrice : undefined,
5668
+ bidPrice: item.contract.bidPrice !== undefined ? item.contract.bidPrice : undefined,
5669
+ askPrice: item.contract.askPrice !== undefined ? item.contract.askPrice : undefined,
5670
+ midPrice: item.contract.midPrice !== undefined ? item.contract.midPrice : undefined,
4693
5671
  bidSize: item.contract.bidSize !== undefined ? item.contract.bidSize : undefined,
4694
5672
  askSize: item.contract.askSize !== undefined ? item.contract.askSize : undefined,
4695
5673
  volume: item.contract.volume !== undefined ? item.contract.volume : undefined,
4696
5674
  openInterest: item.contract.openInterest !== undefined ? item.contract.openInterest : undefined,
5675
+ impliedVolatility: item.contract.impliedVolatility !== undefined ? item.contract.impliedVolatility : undefined,
5676
+ delta: item.contract.delta !== undefined ? item.contract.delta : undefined,
5677
+ gamma: item.contract.gamma !== undefined ? item.contract.gamma : undefined,
5678
+ theta: item.contract.theta !== undefined ? item.contract.theta : undefined,
5679
+ vega: item.contract.vega !== undefined ? item.contract.vega : undefined,
5680
+ rho: item.contract.rho !== undefined ? item.contract.rho : undefined,
4697
5681
  inTheMoney: item.contract.inTheMoney !== undefined ? item.contract.inTheMoney : undefined,
5682
+ intrinsicValue: item.contract.intrinsicValue !== undefined ? item.contract.intrinsicValue : undefined,
5683
+ extrinsicValue: item.contract.extrinsicValue !== undefined ? item.contract.extrinsicValue : undefined,
5684
+ theoreticalPrice: item.contract.theoreticalPrice !== undefined ? item.contract.theoreticalPrice : undefined,
5685
+ underlyingPrice: item.contract.underlyingPrice !== undefined ? item.contract.underlyingPrice : undefined,
4698
5686
  metadata: item.contract.metadata !== undefined ? item.contract.metadata : undefined,
4699
5687
  dataTimestamp: item.contract.dataTimestamp !== undefined ? item.contract.dataTimestamp : undefined,
4700
5688
  positions: item.contract.positions ?
@@ -4721,8 +5709,25 @@ export const OptionsPosition = {
4721
5709
  status: item.status !== undefined ? item.status : undefined,
4722
5710
  openingSide: item.openingSide !== undefined ? item.openingSide : undefined,
4723
5711
  quantity: item.quantity !== undefined ? item.quantity : undefined,
5712
+ entryPrice: item.entryPrice !== undefined ? item.entryPrice : undefined,
5713
+ entryCost: item.entryCost !== undefined ? item.entryCost : undefined,
4724
5714
  entryTime: item.entryTime !== undefined ? item.entryTime : undefined,
5715
+ exitPrice: item.exitPrice !== undefined ? item.exitPrice : undefined,
5716
+ exitValue: item.exitValue !== undefined ? item.exitValue : undefined,
4725
5717
  exitTime: item.exitTime !== undefined ? item.exitTime : undefined,
5718
+ currentPrice: item.currentPrice !== undefined ? item.currentPrice : undefined,
5719
+ currentValue: item.currentValue !== undefined ? item.currentValue : undefined,
5720
+ unrealizedPnL: item.unrealizedPnL !== undefined ? item.unrealizedPnL : undefined,
5721
+ unrealizedPnLPercent: item.unrealizedPnLPercent !== undefined ? item.unrealizedPnLPercent : undefined,
5722
+ realizedPnL: item.realizedPnL !== undefined ? item.realizedPnL : undefined,
5723
+ realizedPnLPercent: item.realizedPnLPercent !== undefined ? item.realizedPnLPercent : undefined,
5724
+ totalFees: item.totalFees !== undefined ? item.totalFees : undefined,
5725
+ currentDelta: item.currentDelta !== undefined ? item.currentDelta : undefined,
5726
+ currentGamma: item.currentGamma !== undefined ? item.currentGamma : undefined,
5727
+ currentTheta: item.currentTheta !== undefined ? item.currentTheta : undefined,
5728
+ currentVega: item.currentVega !== undefined ? item.currentVega : undefined,
5729
+ currentRho: item.currentRho !== undefined ? item.currentRho : undefined,
5730
+ currentImpliedVolatility: item.currentImpliedVolatility !== undefined ? item.currentImpliedVolatility : undefined,
4726
5731
  daysHeld: item.daysHeld !== undefined ? item.daysHeld : undefined,
4727
5732
  exitReason: item.exitReason !== undefined ? item.exitReason : undefined,
4728
5733
  strategyType: item.strategyType !== undefined ? item.strategyType : undefined,
@@ -4746,9 +5751,21 @@ export const OptionsPosition = {
4746
5751
  },
4747
5752
  create: {
4748
5753
  timestamp: item.timestamp !== undefined ? item.timestamp : undefined,
5754
+ underlyingPrice: item.underlyingPrice !== undefined ? item.underlyingPrice : undefined,
5755
+ optionPrice: item.optionPrice !== undefined ? item.optionPrice : undefined,
5756
+ bidPrice: item.bidPrice !== undefined ? item.bidPrice : undefined,
5757
+ askPrice: item.askPrice !== undefined ? item.askPrice : undefined,
5758
+ impliedVolatility: item.impliedVolatility !== undefined ? item.impliedVolatility : undefined,
5759
+ delta: item.delta !== undefined ? item.delta : undefined,
5760
+ gamma: item.gamma !== undefined ? item.gamma : undefined,
5761
+ theta: item.theta !== undefined ? item.theta : undefined,
5762
+ vega: item.vega !== undefined ? item.vega : undefined,
5763
+ rho: item.rho !== undefined ? item.rho : undefined,
4749
5764
  volume: item.volume !== undefined ? item.volume : undefined,
4750
5765
  openInterest: item.openInterest !== undefined ? item.openInterest : undefined,
4751
5766
  daysToExpiration: item.daysToExpiration !== undefined ? item.daysToExpiration : undefined,
5767
+ intrinsicValue: item.intrinsicValue !== undefined ? item.intrinsicValue : undefined,
5768
+ extrinsicValue: item.extrinsicValue !== undefined ? item.extrinsicValue : undefined,
4752
5769
  metadata: item.metadata !== undefined ? item.metadata : undefined,
4753
5770
  },
4754
5771
  }))