@startsimpli/api 0.5.16 → 0.5.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startsimpli/api",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "Type-safe Django REST API client for StartSimpli apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -224,6 +224,7 @@ export type {
224
224
  EarningsCalendarResponse,
225
225
  PairConsensus,
226
226
  CommitteeVotes,
227
+ PairMember,
227
228
  PairSnapshot,
228
229
  AlpacaPosition,
229
230
  AlpacaSnapshot,
@@ -188,27 +188,39 @@ export interface EarningsCalendarResponse {
188
188
  export type PairConsensus = 'BULL' | 'BEAR' | 'FLAT';
189
189
 
190
190
  export interface CommitteeVotes {
191
- bull: number;
192
- bear: number;
193
- flat: number;
191
+ BULL: number;
192
+ BEAR: number;
193
+ FLAT: number;
194
+ }
195
+
196
+ export interface PairMember {
197
+ modelName: string;
198
+ features: string[];
199
+ thresholds: [number, number];
200
+ scoreToday: number;
201
+ signalToday: number;
202
+ endValueFull?: number | null;
194
203
  }
195
204
 
196
205
  export interface PairSnapshot {
197
- topScore?: number | null;
198
- consensus?: PairConsensus | null;
199
- committeeVotes?: CommitteeVotes | null;
200
- topConfig?: string | null;
201
- thresholds?: { long?: number | null; short?: number | null } | null;
206
+ consensus: PairConsensus;
207
+ topScore: number;
208
+ topSignal: number;
209
+ targetSymbol: string;
210
+ committeeN: number;
211
+ committeeVotes: CommitteeVotes;
212
+ committeeMeanScore: number;
213
+ topConfigName: string;
214
+ members: PairMember[];
202
215
  [key: string]: unknown;
203
216
  }
204
217
 
205
218
  export interface AlpacaPosition {
206
219
  symbol: string;
207
220
  qty: number;
208
- side?: 'long' | 'short';
209
- marketValue?: number | null;
210
- avgEntryPrice?: number | null;
211
- unrealizedPl?: number | null;
221
+ marketValue: number;
222
+ costBasis: number;
223
+ unrealizedPl: number;
212
224
  [key: string]: unknown;
213
225
  }
214
226