@anrmk/str-package 0.1.6 → 0.1.8

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.
@@ -21,22 +21,6 @@ type TChallengeClosedPnl = {
21
21
  updatedTime: string;
22
22
  updatedAt: string;
23
23
  };
24
- type TChallengeClosedPnlStatistics = {
25
- totalClosedTradesCount: number;
26
- totalClosedTrades: number;
27
- totalLongTrades: number;
28
- totalLongTradesCount: number;
29
- totalLongWins: number;
30
- totalShortTrades: number;
31
- totalShortTradesCount: number;
32
- totalShortWins: number;
33
- totalWins: number;
34
- totalLosses: number;
35
- winRate: number;
36
- loosesRate: number;
37
- totalCumEntryValue: number;
38
- totalCumExitValue: number;
39
- };
40
24
 
41
25
  type TChallengeWalletBalance = {
42
26
  challengeId: string;
@@ -75,4 +59,4 @@ type TChallengeProgress = {
75
59
  dailyMinUpdatedAt: string;
76
60
  };
77
61
 
78
- export type { TChallengeClosedPnl as T, TChallengeClosedPnlStatistics as a, TChallengeProgress as b, TChallengeWalletBalance as c };
62
+ export type { TChallengeClosedPnl as T, TChallengeProgress as a, TChallengeWalletBalance as b };
@@ -21,22 +21,6 @@ type TChallengeClosedPnl = {
21
21
  updatedTime: string;
22
22
  updatedAt: string;
23
23
  };
24
- type TChallengeClosedPnlStatistics = {
25
- totalClosedTradesCount: number;
26
- totalClosedTrades: number;
27
- totalLongTrades: number;
28
- totalLongTradesCount: number;
29
- totalLongWins: number;
30
- totalShortTrades: number;
31
- totalShortTradesCount: number;
32
- totalShortWins: number;
33
- totalWins: number;
34
- totalLosses: number;
35
- winRate: number;
36
- loosesRate: number;
37
- totalCumEntryValue: number;
38
- totalCumExitValue: number;
39
- };
40
24
 
41
25
  type TChallengeWalletBalance = {
42
26
  challengeId: string;
@@ -75,4 +59,4 @@ type TChallengeProgress = {
75
59
  dailyMinUpdatedAt: string;
76
60
  };
77
61
 
78
- export type { TChallengeClosedPnl as T, TChallengeClosedPnlStatistics as a, TChallengeProgress as b, TChallengeWalletBalance as c };
62
+ export type { TChallengeClosedPnl as T, TChallengeProgress as a, TChallengeWalletBalance as b };
package/dist/index.d.cts CHANGED
@@ -5,5 +5,5 @@ export { isSameUtcDay, parseNumber, toIsoDate } from './utils/helper.cjs';
5
5
  export { TSyncResponse } from './types/index.cjs';
6
6
  export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitClosedPnlResponse, IBybitCoinBalance, IBybitCredentials, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyPayload, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse, IBybitPositionInfo, IBybitWalletAccount, IBybitWalletResponse } from './types/bybit/index.cjs';
7
7
  export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeStatistics, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
8
- export { T as TChallengeClosedPnl, a as TChallengeClosedPnlStatistics, b as TChallengeProgress, c as TChallengeWalletBalance } from './TChallengeProgress-hdTUsqAj.cjs';
8
+ export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-C_DBsbUa.cjs';
9
9
  export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums--bdw39rp.cjs';
package/dist/index.d.ts CHANGED
@@ -5,5 +5,5 @@ export { isSameUtcDay, parseNumber, toIsoDate } from './utils/helper.js';
5
5
  export { TSyncResponse } from './types/index.js';
6
6
  export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitClosedPnlResponse, IBybitCoinBalance, IBybitCredentials, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyPayload, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse, IBybitPositionInfo, IBybitWalletAccount, IBybitWalletResponse } from './types/bybit/index.js';
7
7
  export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeStatistics, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.js';
8
- export { T as TChallengeClosedPnl, a as TChallengeClosedPnlStatistics, b as TChallengeProgress, c as TChallengeWalletBalance } from './TChallengeProgress-CFlK7XnZ.js';
8
+ export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-UmIOnrHy.js';
9
9
  export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums--bdw39rp.js';
@@ -1,6 +1,6 @@
1
1
  import { a as IBybitApiKeyVipLevel } from '../../enums--bdw39rp.cjs';
2
- import { b as TChallengeProgress, c as TChallengeWalletBalance } from '../../TChallengeProgress-hdTUsqAj.cjs';
3
- export { T as TChallengeClosedPnl, a as TChallengeClosedPnlStatistics } from '../../TChallengeProgress-hdTUsqAj.cjs';
2
+ import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-C_DBsbUa.cjs';
3
+ export { T as TChallengeClosedPnl } from '../../TChallengeProgress-C_DBsbUa.cjs';
4
4
  export { TSyncResponse } from '../index.cjs';
5
5
 
6
6
  type TChallengeType = "ONE_STEP" | "TWO_STEPS";
@@ -104,7 +104,7 @@ type TChallengeItem = {
104
104
  hasCredentials: boolean;
105
105
  apiKeyHint?: string;
106
106
  apiKeyInfo?: TChallengeApiKeyInfo;
107
- stats?: TChallengeStatistics;
107
+ statistics?: TChallengeStatistics;
108
108
  progress?: TChallengeProgress;
109
109
  rule?: TChallengeRule;
110
110
  wallet?: TChallengeWalletBalance;
@@ -123,18 +123,30 @@ type TChallengeListItem = {
123
123
  daysRemaining: number | null;
124
124
  apiKeyHint?: string;
125
125
  hasCredentials: boolean;
126
- stats?: TChallengeStatistics | null;
126
+ statistics?: TChallengeStatistics | null;
127
127
  progress?: TChallengeProgress | null;
128
128
  rule?: TChallengeRule | null;
129
129
  wallet?: TChallengeWalletBalance | null;
130
130
  };
131
131
 
132
132
  type TChallengeStatistics = {
133
- equity: number;
134
- balance: number;
135
- dailyDrawdown: number;
136
- maxDrawdown: number;
137
- currency?: string;
133
+ readonly id: string | null;
134
+ readonly challengeId: string;
135
+ totalClosedTradesCount: number;
136
+ totalClosedTrades: number;
137
+ totalLongTradesCount: number;
138
+ totalShortTradesCount: number;
139
+ totalWins: number;
140
+ totalLosses: number;
141
+ winRate: number;
142
+ totalLongTrades: number;
143
+ totalLongWins: number;
144
+ totalShortTrades: number;
145
+ totalShortWins: number;
146
+ readonly updatedAt: string;
147
+ loosesRate?: number;
148
+ totalCumEntryValue?: number;
149
+ totalCumExitValue?: number;
138
150
  };
139
151
 
140
152
  export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeStatistics, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
@@ -1,6 +1,6 @@
1
1
  import { a as IBybitApiKeyVipLevel } from '../../enums--bdw39rp.js';
2
- import { b as TChallengeProgress, c as TChallengeWalletBalance } from '../../TChallengeProgress-CFlK7XnZ.js';
3
- export { T as TChallengeClosedPnl, a as TChallengeClosedPnlStatistics } from '../../TChallengeProgress-CFlK7XnZ.js';
2
+ import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-UmIOnrHy.js';
3
+ export { T as TChallengeClosedPnl } from '../../TChallengeProgress-UmIOnrHy.js';
4
4
  export { TSyncResponse } from '../index.js';
5
5
 
6
6
  type TChallengeType = "ONE_STEP" | "TWO_STEPS";
@@ -104,7 +104,7 @@ type TChallengeItem = {
104
104
  hasCredentials: boolean;
105
105
  apiKeyHint?: string;
106
106
  apiKeyInfo?: TChallengeApiKeyInfo;
107
- stats?: TChallengeStatistics;
107
+ statistics?: TChallengeStatistics;
108
108
  progress?: TChallengeProgress;
109
109
  rule?: TChallengeRule;
110
110
  wallet?: TChallengeWalletBalance;
@@ -123,18 +123,30 @@ type TChallengeListItem = {
123
123
  daysRemaining: number | null;
124
124
  apiKeyHint?: string;
125
125
  hasCredentials: boolean;
126
- stats?: TChallengeStatistics | null;
126
+ statistics?: TChallengeStatistics | null;
127
127
  progress?: TChallengeProgress | null;
128
128
  rule?: TChallengeRule | null;
129
129
  wallet?: TChallengeWalletBalance | null;
130
130
  };
131
131
 
132
132
  type TChallengeStatistics = {
133
- equity: number;
134
- balance: number;
135
- dailyDrawdown: number;
136
- maxDrawdown: number;
137
- currency?: string;
133
+ readonly id: string | null;
134
+ readonly challengeId: string;
135
+ totalClosedTradesCount: number;
136
+ totalClosedTrades: number;
137
+ totalLongTradesCount: number;
138
+ totalShortTradesCount: number;
139
+ totalWins: number;
140
+ totalLosses: number;
141
+ winRate: number;
142
+ totalLongTrades: number;
143
+ totalLongWins: number;
144
+ totalShortTrades: number;
145
+ totalShortWins: number;
146
+ readonly updatedAt: string;
147
+ loosesRate?: number;
148
+ totalCumEntryValue?: number;
149
+ totalCumExitValue?: number;
138
150
  };
139
151
 
140
152
  export { type TChallengeAccountInfo, type TChallengeApiKeyInfo, type TChallengeCapital, type TChallengeItem, type TChallengeListItem, type TChallengeMode, type TChallengePositionInfo, TChallengeProgress, type TChallengeProvider, type TChallengeRule, type TChallengeStatistics, type TChallengeType, TChallengeWalletBalance, type TDrawdownType, type TTradingType };
@@ -1,4 +1,4 @@
1
- import { b as TChallengeProgress, c as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-hdTUsqAj.cjs';
1
+ import { a as TChallengeProgress, b as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-C_DBsbUa.cjs';
2
2
  import '../enums--bdw39rp.cjs';
3
3
 
4
4
  declare const createDefaultWallet: (challengeId?: string, capital?: number) => TChallengeWalletBalance;
@@ -1,4 +1,4 @@
1
- import { b as TChallengeProgress, c as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-CFlK7XnZ.js';
1
+ import { a as TChallengeProgress, b as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-UmIOnrHy.js';
2
2
  import '../enums--bdw39rp.js';
3
3
 
4
4
  declare const createDefaultWallet: (challengeId?: string, capital?: number) => TChallengeWalletBalance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anrmk/str-package",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Shared providers, types, and utils for STR services",
5
5
  "license": "MIT",
6
6
  "type": "module",