@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 +1 -1
- package/src/index.ts +1 -0
- package/src/lib/markets-api.ts +24 -12
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/lib/markets-api.ts
CHANGED
|
@@ -188,27 +188,39 @@ export interface EarningsCalendarResponse {
|
|
|
188
188
|
export type PairConsensus = 'BULL' | 'BEAR' | 'FLAT';
|
|
189
189
|
|
|
190
190
|
export interface CommitteeVotes {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
unrealizedPl?: number | null;
|
|
221
|
+
marketValue: number;
|
|
222
|
+
costBasis: number;
|
|
223
|
+
unrealizedPl: number;
|
|
212
224
|
[key: string]: unknown;
|
|
213
225
|
}
|
|
214
226
|
|