@anrmk/str-package 0.2.5 → 0.2.7
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/dist/{TChallengeProgress-C_DBsbUa.d.cts → TChallengeProgress-Mn8KAQZD.d.cts} +1 -1
- package/dist/{TChallengeProgress-UmIOnrHy.d.ts → TChallengeProgress-fzrL5fPE.d.ts} +1 -1
- package/dist/{chunk-2KHIGJJV.js → chunk-AV3OIAHZ.js} +2 -2
- package/dist/{chunk-2KHIGJJV.js.map → chunk-AV3OIAHZ.js.map} +1 -1
- package/dist/clients/index.d.cts +1 -1
- package/dist/clients/index.d.ts +1 -1
- package/dist/{enums--bdw39rp.d.ts → enums-Dmg2vIi2.d.cts} +6 -1
- package/dist/{enums--bdw39rp.d.cts → enums-Dmg2vIi2.d.ts} +6 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/providers/bybit/index.d.cts +1 -1
- package/dist/providers/bybit/index.d.ts +1 -1
- package/dist/types/bybit/index.cjs.map +1 -1
- package/dist/types/bybit/index.d.cts +12 -15
- package/dist/types/bybit/index.d.ts +12 -15
- package/dist/types/bybit/index.js +1 -1
- package/dist/types/challenge/index.d.cts +27 -14
- package/dist/types/challenge/index.d.ts +27 -14
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -22,5 +22,5 @@ var IBybitApiKeyVipLevel = /* @__PURE__ */ ((IBybitApiKeyVipLevel2) => {
|
|
|
22
22
|
})(IBybitApiKeyVipLevel || {});
|
|
23
23
|
|
|
24
24
|
export { IBybitAccountType, IBybitApiKeyVipLevel, IBybitCoinType };
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-AV3OIAHZ.js.map
|
|
26
|
+
//# sourceMappingURL=chunk-AV3OIAHZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/bybit/enums.ts"],"names":["IBybitAccountType","IBybitCoinType","IBybitApiKeyVipLevel"],"mappings":";AAAO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACL,EAAAA,mBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAFG,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAKL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACL,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AAJG,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AANE,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/types/bybit/enums.ts"],"names":["IBybitAccountType","IBybitCoinType","IBybitApiKeyVipLevel"],"mappings":";AAAO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACL,EAAAA,mBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAFG,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAKL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACL,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AAJG,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AANE,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA","file":"chunk-AV3OIAHZ.js","sourcesContent":["export enum IBybitAccountType {\n UNIFIED = \"UNIFIED\",\n FUND = \"FUND\",\n}\n\nexport enum IBybitCoinType {\n BTC = \"BTC\",\n ETH = \"ETH\",\n USDT = \"USDT\",\n USDC = \"USDC\",\n}\n\nexport enum IBybitOrderType {\n MARKET = \"Market\",\n LIMIT = \"Limit\",\n}\n\nexport enum IBybitUnifiedMarginStatus {\n CLASSIC_ACCOUNT = 1,\n UNIFIED_TRADING_ACCOUNT_1_0 = 3,\n UNIFIED_TRADING_ACCOUNT_1_0_PRO = 4,\n UNIFIED_TRADING_ACCOUNT_2_0 = 5,\n UNIFIED_TRADING_ACCOUNT_2_0_PRO = 6,\n}\n\nexport enum IBybitApiKeyVipLevel {\n NO_VIP = \"No VIP\",\n VIP_1 = \"VIP 1\",\n VIP_2 = \"VIP 2\",\n VIP_3 = \"VIP 3\",\n VIP_4 = \"VIP 4\",\n VIP_5 = \"VIP 5\",\n}\n\n// Position side. Buy: long, Sell: short\n// return an empty string \"\" for an empty position\nexport enum IBybitPositionSide {\n SELL = \"Sell\",\n BUY = \"Buy\",\n EMPTY = \"\",\n}"]}
|
package/dist/clients/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBybitCredentials, IBybitDemoApplyMoneyRequest, IBybitApiResponse, IBybitDemoApplyMoneyResponse as IBybitDemoApplyMoney, IBybitAccountInfo, IBybitApiKeyInfo, IBybitClosedPnlRequest, IBybitApiResponseList, IBybitClosedPnl, IBybitWalletAccount, IBybitPositionInfoRequest, IBybitPositionInfo } from '../types/bybit/index.cjs';
|
|
2
|
-
import '../enums
|
|
2
|
+
import '../enums-Dmg2vIi2.cjs';
|
|
3
3
|
|
|
4
4
|
declare class BybitClient {
|
|
5
5
|
private timeOffset;
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBybitCredentials, IBybitDemoApplyMoneyRequest, IBybitApiResponse, IBybitDemoApplyMoneyResponse as IBybitDemoApplyMoney, IBybitAccountInfo, IBybitApiKeyInfo, IBybitClosedPnlRequest, IBybitApiResponseList, IBybitClosedPnl, IBybitWalletAccount, IBybitPositionInfoRequest, IBybitPositionInfo } from '../types/bybit/index.js';
|
|
2
|
-
import '../enums
|
|
2
|
+
import '../enums-Dmg2vIi2.js';
|
|
3
3
|
|
|
4
4
|
declare class BybitClient {
|
|
5
5
|
private timeOffset;
|
|
@@ -23,5 +23,10 @@ declare enum IBybitApiKeyVipLevel {
|
|
|
23
23
|
VIP_4 = "VIP 4",
|
|
24
24
|
VIP_5 = "VIP 5"
|
|
25
25
|
}
|
|
26
|
+
declare enum IBybitPositionSide {
|
|
27
|
+
SELL = "Sell",
|
|
28
|
+
BUY = "Buy",
|
|
29
|
+
EMPTY = ""
|
|
30
|
+
}
|
|
26
31
|
|
|
27
|
-
export { IBybitAccountType as I, IBybitApiKeyVipLevel as a, IBybitCoinType as b,
|
|
32
|
+
export { IBybitAccountType as I, IBybitApiKeyVipLevel as a, IBybitCoinType as b, IBybitPositionSide as c, IBybitUnifiedMarginStatus as d };
|
|
@@ -23,5 +23,10 @@ declare enum IBybitApiKeyVipLevel {
|
|
|
23
23
|
VIP_4 = "VIP 4",
|
|
24
24
|
VIP_5 = "VIP 5"
|
|
25
25
|
}
|
|
26
|
+
declare enum IBybitPositionSide {
|
|
27
|
+
SELL = "Sell",
|
|
28
|
+
BUY = "Buy",
|
|
29
|
+
EMPTY = ""
|
|
30
|
+
}
|
|
26
31
|
|
|
27
|
-
export { IBybitAccountType as I, IBybitApiKeyVipLevel as a, IBybitCoinType as b,
|
|
32
|
+
export { IBybitAccountType as I, IBybitApiKeyVipLevel as a, IBybitCoinType as b, IBybitPositionSide as c, IBybitUnifiedMarginStatus as d };
|
package/dist/index.d.cts
CHANGED
|
@@ -4,5 +4,5 @@ export { createDefaultProgress, createDefaultWallet, currentDailyEquity, getBybi
|
|
|
4
4
|
export { TSyncResponse } from './types/index.cjs';
|
|
5
5
|
export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitClosedPnlResponse, IBybitCoinBalance, IBybitCredentials, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyPayload, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse, IBybitPositionInfo, IBybitPositionInfoRequest, IBybitPositionInfoResponse, IBybitServerTime, IBybitSignRequest, IBybitWalletAccount, IBybitWalletResponse } from './types/bybit/index.cjs';
|
|
6
6
|
export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.cjs';
|
|
7
|
-
export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-
|
|
8
|
-
export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums
|
|
7
|
+
export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-Mn8KAQZD.cjs';
|
|
8
|
+
export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums-Dmg2vIi2.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export { createDefaultProgress, createDefaultWallet, currentDailyEquity, getBybi
|
|
|
4
4
|
export { TSyncResponse } from './types/index.js';
|
|
5
5
|
export { IBybitAccountInfo, IBybitApiKeyInfo, IBybitApiResponse, IBybitApiResponseList, IBybitClosedPnl, IBybitClosedPnlRequest, IBybitClosedPnlResponse, IBybitCoinBalance, IBybitCredentials, IBybitDemoApplyMoneyItem, IBybitDemoApplyMoneyPayload, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse, IBybitPositionInfo, IBybitPositionInfoRequest, IBybitPositionInfoResponse, IBybitServerTime, IBybitSignRequest, IBybitWalletAccount, IBybitWalletResponse } from './types/bybit/index.js';
|
|
6
6
|
export { TChallengeAccountInfo, TChallengeApiKeyInfo, TChallengeCapital, TChallengeItem, TChallengeListItem, TChallengeMode, TChallengePositionInfo, TChallengeProvider, TChallengeRule, TChallengeRuleGroup, TChallengeStatistics, TChallengeStatus, TChallengeTier, TChallengeType, TDrawdownType, TTradingType } from './types/challenge/index.js';
|
|
7
|
-
export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-
|
|
8
|
-
export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums
|
|
7
|
+
export { T as TChallengeClosedPnl, a as TChallengeProgress, b as TChallengeWalletBalance } from './TChallengeProgress-fzrL5fPE.js';
|
|
8
|
+
export { I as IBybitAccountType, a as IBybitApiKeyVipLevel, b as IBybitCoinType } from './enums-Dmg2vIi2.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createDefaultProgress, createDefaultWallet, currentDailyEquity, isSameUtcDay, parseNumber, toIsoDate, tradingDaysCountCalculation } from './chunk-6R5UUXX4.js';
|
|
2
|
-
import './chunk-
|
|
2
|
+
import './chunk-AV3OIAHZ.js';
|
|
3
3
|
export { BybitClient } from './chunk-XQ2QVRTS.js';
|
|
4
4
|
export { applyDemoMoney, getAccountInfo, getApiKeyInfo, getBybitTimestamp, getClosedPnl, getPositionInfo, getServerTime, getWalletBalance, signBybitRequest, syncBybitServerTime } from './chunk-RCBZPNGG.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBybitCredentials, IBybitApiResponse, IBybitApiKeyInfo, IBybitAccountInfo, IBybitWalletAccount, IBybitClosedPnlRequest, IBybitApiResponseList, IBybitClosedPnl, IBybitPositionInfoRequest, IBybitPositionInfo, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse as IBybitDemoApplyMoney, IBybitServerTime } from '../../types/bybit/index.cjs';
|
|
2
|
-
import '../../enums
|
|
2
|
+
import '../../enums-Dmg2vIi2.cjs';
|
|
3
3
|
|
|
4
4
|
declare function getApiKeyInfo(credentials: IBybitCredentials, timeOffset?: number): Promise<IBybitApiResponse<IBybitApiKeyInfo>>;
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBybitCredentials, IBybitApiResponse, IBybitApiKeyInfo, IBybitAccountInfo, IBybitWalletAccount, IBybitClosedPnlRequest, IBybitApiResponseList, IBybitClosedPnl, IBybitPositionInfoRequest, IBybitPositionInfo, IBybitDemoApplyMoneyRequest, IBybitDemoApplyMoneyResponse as IBybitDemoApplyMoney, IBybitServerTime } from '../../types/bybit/index.js';
|
|
2
|
-
import '../../enums
|
|
2
|
+
import '../../enums-Dmg2vIi2.js';
|
|
3
3
|
|
|
4
4
|
declare function getApiKeyInfo(credentials: IBybitCredentials, timeOffset?: number): Promise<IBybitApiResponse<IBybitApiKeyInfo>>;
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/types/bybit/enums.ts"],"names":["IBybitAccountType","IBybitCoinType","IBybitApiKeyVipLevel"],"mappings":";;;AAAO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACL,EAAAA,mBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAFG,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAKL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACL,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AAJG,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AANE,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA","file":"index.cjs","sourcesContent":["export enum IBybitAccountType {\n UNIFIED = \"UNIFIED\",\n FUND = \"FUND\",\n}\n\nexport enum IBybitCoinType {\n BTC = \"BTC\",\n ETH = \"ETH\",\n USDT = \"USDT\",\n USDC = \"USDC\",\n}\n\nexport enum IBybitOrderType {\n MARKET = \"Market\",\n LIMIT = \"Limit\",\n}\n\nexport enum IBybitUnifiedMarginStatus {\n CLASSIC_ACCOUNT = 1,\n UNIFIED_TRADING_ACCOUNT_1_0 = 3,\n UNIFIED_TRADING_ACCOUNT_1_0_PRO = 4,\n UNIFIED_TRADING_ACCOUNT_2_0 = 5,\n UNIFIED_TRADING_ACCOUNT_2_0_PRO = 6,\n}\n\nexport enum IBybitApiKeyVipLevel {\n NO_VIP = \"No VIP\",\n VIP_1 = \"VIP 1\",\n VIP_2 = \"VIP 2\",\n VIP_3 = \"VIP 3\",\n VIP_4 = \"VIP 4\",\n VIP_5 = \"VIP 5\",\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/types/bybit/enums.ts"],"names":["IBybitAccountType","IBybitCoinType","IBybitApiKeyVipLevel"],"mappings":";;;AAAO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACL,EAAAA,mBAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AAFG,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAKL,IAAK,cAAA,qBAAAC,eAAAA,KAAL;AACL,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,KAAA,CAAA,GAAM,KAAA;AACN,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,gBAAA,MAAA,CAAA,GAAO,MAAA;AAJG,EAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA;AAoBL,IAAK,oBAAA,qBAAAC,qBAAAA,KAAL;AACL,EAAAA,sBAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,sBAAA,OAAA,CAAA,GAAQ,OAAA;AANE,EAAA,OAAAA,qBAAAA;AAAA,CAAA,EAAA,oBAAA,IAAA,EAAA","file":"index.cjs","sourcesContent":["export enum IBybitAccountType {\n UNIFIED = \"UNIFIED\",\n FUND = \"FUND\",\n}\n\nexport enum IBybitCoinType {\n BTC = \"BTC\",\n ETH = \"ETH\",\n USDT = \"USDT\",\n USDC = \"USDC\",\n}\n\nexport enum IBybitOrderType {\n MARKET = \"Market\",\n LIMIT = \"Limit\",\n}\n\nexport enum IBybitUnifiedMarginStatus {\n CLASSIC_ACCOUNT = 1,\n UNIFIED_TRADING_ACCOUNT_1_0 = 3,\n UNIFIED_TRADING_ACCOUNT_1_0_PRO = 4,\n UNIFIED_TRADING_ACCOUNT_2_0 = 5,\n UNIFIED_TRADING_ACCOUNT_2_0_PRO = 6,\n}\n\nexport enum IBybitApiKeyVipLevel {\n NO_VIP = \"No VIP\",\n VIP_1 = \"VIP 1\",\n VIP_2 = \"VIP 2\",\n VIP_3 = \"VIP 3\",\n VIP_4 = \"VIP 4\",\n VIP_5 = \"VIP 5\",\n}\n\n// Position side. Buy: long, Sell: short\n// return an empty string \"\" for an empty position\nexport enum IBybitPositionSide {\n SELL = \"Sell\",\n BUY = \"Buy\",\n EMPTY = \"\",\n}"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IBybitAccountType, a as IBybitApiKeyVipLevel,
|
|
1
|
+
import { I as IBybitAccountType, c as IBybitPositionSide, a as IBybitApiKeyVipLevel, d as IBybitUnifiedMarginStatus, b as IBybitCoinType } from '../../enums-Dmg2vIi2.cjs';
|
|
2
2
|
|
|
3
3
|
type IBybitWalletAccount = {
|
|
4
4
|
accountIMRate: string;
|
|
@@ -68,40 +68,39 @@ type IBybitCredentials = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
type IBybitPositionInfo = {
|
|
71
|
-
challengeId: string;
|
|
72
71
|
positionIdx: number;
|
|
73
72
|
riskId: number;
|
|
74
73
|
riskLimitValue: string;
|
|
75
74
|
symbol: string;
|
|
76
|
-
side:
|
|
75
|
+
side: IBybitPositionSide;
|
|
77
76
|
size: string;
|
|
78
77
|
avgPrice: string;
|
|
79
78
|
positionValue: string;
|
|
80
|
-
tradeMode: number;
|
|
81
|
-
positionStatus: string;
|
|
82
79
|
autoAddMargin: number;
|
|
83
|
-
|
|
80
|
+
positionStatus: string;
|
|
84
81
|
leverage: string;
|
|
85
|
-
|
|
82
|
+
breakEvenPrice: string;
|
|
86
83
|
markPrice: string;
|
|
87
84
|
liqPrice: string;
|
|
88
|
-
bustPrice: string;
|
|
89
|
-
positionMM: string;
|
|
90
85
|
positionIM: string;
|
|
91
|
-
|
|
86
|
+
positionIMByMp: string;
|
|
87
|
+
positionMM: string;
|
|
88
|
+
positionMMByMp: string;
|
|
92
89
|
takeProfit: string;
|
|
93
90
|
stopLoss: string;
|
|
94
91
|
trailingStop: string;
|
|
92
|
+
sessionAvgPrice: string;
|
|
95
93
|
unrealisedPnl: string;
|
|
96
94
|
curRealisedPnl: string;
|
|
97
95
|
cumRealisedPnl: string;
|
|
96
|
+
adlRankIndicator: number;
|
|
97
|
+
createdTime: string;
|
|
98
|
+
updatedTime: string;
|
|
99
|
+
openTime: number;
|
|
98
100
|
seq: number;
|
|
99
101
|
isReduceOnly: boolean;
|
|
100
102
|
mmrSysUpdatedTime: string;
|
|
101
103
|
leverageSysUpdatedTime: string;
|
|
102
|
-
sessionAvgPrice: string;
|
|
103
|
-
createdTime: string;
|
|
104
|
-
updatedTime: string;
|
|
105
104
|
};
|
|
106
105
|
|
|
107
106
|
type IBybitApiKeyInfo = {
|
|
@@ -199,7 +198,6 @@ type IBybitWalletResponse = IBybitResponse & {
|
|
|
199
198
|
list?: IBybitWalletAccount[];
|
|
200
199
|
};
|
|
201
200
|
type IBybitClosedPnlRequest = {
|
|
202
|
-
credentials: IBybitCredentials;
|
|
203
201
|
category: string;
|
|
204
202
|
symbol?: string;
|
|
205
203
|
startTime?: number;
|
|
@@ -219,7 +217,6 @@ type IBybitSignRequest = {
|
|
|
219
217
|
timeOffset?: number;
|
|
220
218
|
};
|
|
221
219
|
type IBybitPositionInfoRequest = {
|
|
222
|
-
credentials: IBybitCredentials;
|
|
223
220
|
category?: string;
|
|
224
221
|
symbol?: string;
|
|
225
222
|
settleCoin?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IBybitAccountType, a as IBybitApiKeyVipLevel,
|
|
1
|
+
import { I as IBybitAccountType, c as IBybitPositionSide, a as IBybitApiKeyVipLevel, d as IBybitUnifiedMarginStatus, b as IBybitCoinType } from '../../enums-Dmg2vIi2.js';
|
|
2
2
|
|
|
3
3
|
type IBybitWalletAccount = {
|
|
4
4
|
accountIMRate: string;
|
|
@@ -68,40 +68,39 @@ type IBybitCredentials = {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
type IBybitPositionInfo = {
|
|
71
|
-
challengeId: string;
|
|
72
71
|
positionIdx: number;
|
|
73
72
|
riskId: number;
|
|
74
73
|
riskLimitValue: string;
|
|
75
74
|
symbol: string;
|
|
76
|
-
side:
|
|
75
|
+
side: IBybitPositionSide;
|
|
77
76
|
size: string;
|
|
78
77
|
avgPrice: string;
|
|
79
78
|
positionValue: string;
|
|
80
|
-
tradeMode: number;
|
|
81
|
-
positionStatus: string;
|
|
82
79
|
autoAddMargin: number;
|
|
83
|
-
|
|
80
|
+
positionStatus: string;
|
|
84
81
|
leverage: string;
|
|
85
|
-
|
|
82
|
+
breakEvenPrice: string;
|
|
86
83
|
markPrice: string;
|
|
87
84
|
liqPrice: string;
|
|
88
|
-
bustPrice: string;
|
|
89
|
-
positionMM: string;
|
|
90
85
|
positionIM: string;
|
|
91
|
-
|
|
86
|
+
positionIMByMp: string;
|
|
87
|
+
positionMM: string;
|
|
88
|
+
positionMMByMp: string;
|
|
92
89
|
takeProfit: string;
|
|
93
90
|
stopLoss: string;
|
|
94
91
|
trailingStop: string;
|
|
92
|
+
sessionAvgPrice: string;
|
|
95
93
|
unrealisedPnl: string;
|
|
96
94
|
curRealisedPnl: string;
|
|
97
95
|
cumRealisedPnl: string;
|
|
96
|
+
adlRankIndicator: number;
|
|
97
|
+
createdTime: string;
|
|
98
|
+
updatedTime: string;
|
|
99
|
+
openTime: number;
|
|
98
100
|
seq: number;
|
|
99
101
|
isReduceOnly: boolean;
|
|
100
102
|
mmrSysUpdatedTime: string;
|
|
101
103
|
leverageSysUpdatedTime: string;
|
|
102
|
-
sessionAvgPrice: string;
|
|
103
|
-
createdTime: string;
|
|
104
|
-
updatedTime: string;
|
|
105
104
|
};
|
|
106
105
|
|
|
107
106
|
type IBybitApiKeyInfo = {
|
|
@@ -199,7 +198,6 @@ type IBybitWalletResponse = IBybitResponse & {
|
|
|
199
198
|
list?: IBybitWalletAccount[];
|
|
200
199
|
};
|
|
201
200
|
type IBybitClosedPnlRequest = {
|
|
202
|
-
credentials: IBybitCredentials;
|
|
203
201
|
category: string;
|
|
204
202
|
symbol?: string;
|
|
205
203
|
startTime?: number;
|
|
@@ -219,7 +217,6 @@ type IBybitSignRequest = {
|
|
|
219
217
|
timeOffset?: number;
|
|
220
218
|
};
|
|
221
219
|
type IBybitPositionInfoRequest = {
|
|
222
|
-
credentials: IBybitCredentials;
|
|
223
220
|
category?: string;
|
|
224
221
|
symbol?: string;
|
|
225
222
|
settleCoin?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as IBybitApiKeyVipLevel, b as IBybitCoinType } from '../../enums
|
|
2
|
-
import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-
|
|
3
|
-
export { T as TChallengeClosedPnl } from '../../TChallengeProgress-
|
|
1
|
+
import { a as IBybitApiKeyVipLevel, b as IBybitCoinType } from '../../enums-Dmg2vIi2.cjs';
|
|
2
|
+
import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-Mn8KAQZD.cjs';
|
|
3
|
+
export { T as TChallengeClosedPnl } from '../../TChallengeProgress-Mn8KAQZD.cjs';
|
|
4
4
|
export { TSyncResponse } from '../index.cjs';
|
|
5
5
|
|
|
6
6
|
type TChallengeType = "ONE_STEP" | "TWO_STEPS" | "THREE_STEPS";
|
|
@@ -73,28 +73,41 @@ type TChallengeApiKeyInfo = {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
type TChallengePositionInfo = {
|
|
76
|
-
|
|
76
|
+
challengeId: string;
|
|
77
77
|
positionIdx: number;
|
|
78
|
+
riskId: number;
|
|
79
|
+
riskLimitValue: number;
|
|
80
|
+
symbol: string;
|
|
78
81
|
side: string;
|
|
79
82
|
size: number;
|
|
80
83
|
avgPrice: number;
|
|
81
84
|
positionValue: number;
|
|
82
|
-
|
|
85
|
+
autoAddMargin: boolean;
|
|
86
|
+
positionStatus: string;
|
|
87
|
+
leverage: number | null;
|
|
88
|
+
breakEvenPrice: number | null;
|
|
83
89
|
markPrice: number;
|
|
84
|
-
liqPrice: number;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
positionMm: number;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
liqPrice: number | null;
|
|
91
|
+
positionIm: number | null;
|
|
92
|
+
positionImByMp: number | null;
|
|
93
|
+
positionMm: number | null;
|
|
94
|
+
positionMmByMp: number | null;
|
|
95
|
+
takeProfit: number | null;
|
|
96
|
+
stopLoss: number | null;
|
|
97
|
+
trailingStop: number | null;
|
|
98
|
+
sessionAvgPrice: number | null;
|
|
90
99
|
unrealisedPnl: number;
|
|
91
|
-
cumRealisedPnl: number;
|
|
92
100
|
curRealisedPnl: number;
|
|
101
|
+
cumRealisedPnl: number;
|
|
93
102
|
adlRankIndicator: number;
|
|
94
|
-
positionStatus: string;
|
|
95
103
|
createdTime: string;
|
|
96
104
|
updatedTime: string;
|
|
97
|
-
|
|
105
|
+
openTime: string;
|
|
106
|
+
seq: number;
|
|
107
|
+
isReduceOnly: boolean;
|
|
108
|
+
mmrSysUpdatedTime: string | null;
|
|
109
|
+
leverageSysUpdatedTime: string | null;
|
|
110
|
+
updatedAt: string;
|
|
98
111
|
};
|
|
99
112
|
|
|
100
113
|
type TChallengeItem = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as IBybitApiKeyVipLevel, b as IBybitCoinType } from '../../enums
|
|
2
|
-
import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-
|
|
3
|
-
export { T as TChallengeClosedPnl } from '../../TChallengeProgress-
|
|
1
|
+
import { a as IBybitApiKeyVipLevel, b as IBybitCoinType } from '../../enums-Dmg2vIi2.js';
|
|
2
|
+
import { a as TChallengeProgress, b as TChallengeWalletBalance } from '../../TChallengeProgress-fzrL5fPE.js';
|
|
3
|
+
export { T as TChallengeClosedPnl } from '../../TChallengeProgress-fzrL5fPE.js';
|
|
4
4
|
export { TSyncResponse } from '../index.js';
|
|
5
5
|
|
|
6
6
|
type TChallengeType = "ONE_STEP" | "TWO_STEPS" | "THREE_STEPS";
|
|
@@ -73,28 +73,41 @@ type TChallengeApiKeyInfo = {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
type TChallengePositionInfo = {
|
|
76
|
-
|
|
76
|
+
challengeId: string;
|
|
77
77
|
positionIdx: number;
|
|
78
|
+
riskId: number;
|
|
79
|
+
riskLimitValue: number;
|
|
80
|
+
symbol: string;
|
|
78
81
|
side: string;
|
|
79
82
|
size: number;
|
|
80
83
|
avgPrice: number;
|
|
81
84
|
positionValue: number;
|
|
82
|
-
|
|
85
|
+
autoAddMargin: boolean;
|
|
86
|
+
positionStatus: string;
|
|
87
|
+
leverage: number | null;
|
|
88
|
+
breakEvenPrice: number | null;
|
|
83
89
|
markPrice: number;
|
|
84
|
-
liqPrice: number;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
positionMm: number;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
liqPrice: number | null;
|
|
91
|
+
positionIm: number | null;
|
|
92
|
+
positionImByMp: number | null;
|
|
93
|
+
positionMm: number | null;
|
|
94
|
+
positionMmByMp: number | null;
|
|
95
|
+
takeProfit: number | null;
|
|
96
|
+
stopLoss: number | null;
|
|
97
|
+
trailingStop: number | null;
|
|
98
|
+
sessionAvgPrice: number | null;
|
|
90
99
|
unrealisedPnl: number;
|
|
91
|
-
cumRealisedPnl: number;
|
|
92
100
|
curRealisedPnl: number;
|
|
101
|
+
cumRealisedPnl: number;
|
|
93
102
|
adlRankIndicator: number;
|
|
94
|
-
positionStatus: string;
|
|
95
103
|
createdTime: string;
|
|
96
104
|
updatedTime: string;
|
|
97
|
-
|
|
105
|
+
openTime: string;
|
|
106
|
+
seq: number;
|
|
107
|
+
isReduceOnly: boolean;
|
|
108
|
+
mmrSysUpdatedTime: string | null;
|
|
109
|
+
leverageSysUpdatedTime: string | null;
|
|
110
|
+
updatedAt: string;
|
|
98
111
|
};
|
|
99
112
|
|
|
100
113
|
type TChallengeItem = {
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBybitSignRequest } from '../types/bybit/index.cjs';
|
|
2
|
-
import { a as TChallengeProgress, b as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-
|
|
3
|
-
import '../enums
|
|
2
|
+
import { a as TChallengeProgress, b as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-Mn8KAQZD.cjs';
|
|
3
|
+
import '../enums-Dmg2vIi2.cjs';
|
|
4
4
|
|
|
5
5
|
declare function signBybitRequest(request: IBybitSignRequest): {
|
|
6
6
|
signature: string;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IBybitSignRequest } from '../types/bybit/index.js';
|
|
2
|
-
import { a as TChallengeProgress, b as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-
|
|
3
|
-
import '../enums
|
|
2
|
+
import { a as TChallengeProgress, b as TChallengeWalletBalance, T as TChallengeClosedPnl } from '../TChallengeProgress-fzrL5fPE.js';
|
|
3
|
+
import '../enums-Dmg2vIi2.js';
|
|
4
4
|
|
|
5
5
|
declare function signBybitRequest(request: IBybitSignRequest): {
|
|
6
6
|
signature: string;
|
package/dist/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createDefaultProgress, createDefaultWallet, currentDailyEquity, isSameUtcDay, parseNumber, toIsoDate, tradingDaysCountCalculation } from '../chunk-6R5UUXX4.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-AV3OIAHZ.js';
|
|
3
3
|
export { getBybitTimestamp, signBybitRequest, syncBybitServerTime } from '../chunk-RCBZPNGG.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|