@polymarbot/shared 0.3.4 → 0.3.5
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/markets/types.cjs +2 -2
- package/markets/types.d.cts +3 -3
- package/markets/types.d.ts +3 -3
- package/markets/types.js +1 -1
- package/markets/utils.cjs +2 -2
- package/markets/utils.js +1 -1
- package/package.json +1 -1
- package/trade-strategy/types.d.cts +10 -2
- package/trade-strategy/types.d.ts +10 -2
- package/{chunk-S6EEUHHX.js → chunk-DF467RX7.js} +2 -2
package/markets/types.cjs
CHANGED
|
@@ -25,10 +25,10 @@ __export(types_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(types_exports);
|
|
27
27
|
var SupportedSymbol = /* @__PURE__ */ ((SupportedSymbol2) => {
|
|
28
|
-
SupportedSymbol2["ETH"] = "eth";
|
|
29
28
|
SupportedSymbol2["BTC"] = "btc";
|
|
30
|
-
SupportedSymbol2["
|
|
29
|
+
SupportedSymbol2["ETH"] = "eth";
|
|
31
30
|
SupportedSymbol2["XRP"] = "xrp";
|
|
31
|
+
SupportedSymbol2["SOL"] = "sol";
|
|
32
32
|
return SupportedSymbol2;
|
|
33
33
|
})(SupportedSymbol || {});
|
|
34
34
|
var SupportedInterval = /* @__PURE__ */ ((SupportedInterval2) => {
|
package/markets/types.d.cts
CHANGED
package/markets/types.d.ts
CHANGED
package/markets/types.js
CHANGED
package/markets/utils.cjs
CHANGED
|
@@ -616,10 +616,10 @@ var dayjs_default = import_dayjs.default;
|
|
|
616
616
|
|
|
617
617
|
// src/utils/markets/types.ts
|
|
618
618
|
var SupportedSymbol = /* @__PURE__ */ ((SupportedSymbol2) => {
|
|
619
|
-
SupportedSymbol2["ETH"] = "eth";
|
|
620
619
|
SupportedSymbol2["BTC"] = "btc";
|
|
621
|
-
SupportedSymbol2["
|
|
620
|
+
SupportedSymbol2["ETH"] = "eth";
|
|
622
621
|
SupportedSymbol2["XRP"] = "xrp";
|
|
622
|
+
SupportedSymbol2["SOL"] = "sol";
|
|
623
623
|
return SupportedSymbol2;
|
|
624
624
|
})(SupportedSymbol || {});
|
|
625
625
|
|
package/markets/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -80,14 +80,22 @@ interface TokenTradeStepOrder {
|
|
|
80
80
|
size: number;
|
|
81
81
|
status: string;
|
|
82
82
|
updatedAt: number;
|
|
83
|
+
expiresAt?: number;
|
|
83
84
|
keep?: boolean;
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
interface TokenTradeRecordData {
|
|
88
|
+
|
|
89
|
+
positionSize: number;
|
|
90
|
+
|
|
91
|
+
orders: TokenTradeStepOrder[];
|
|
92
|
+
}
|
|
93
|
+
|
|
86
94
|
interface MarketTradeRecord {
|
|
87
95
|
marketId: string;
|
|
88
96
|
strategyJson: string;
|
|
89
97
|
tokens: {
|
|
90
|
-
[tokenId: string]:
|
|
98
|
+
[tokenId: string]: TokenTradeRecordData;
|
|
91
99
|
};
|
|
92
100
|
}
|
|
93
101
|
|
|
@@ -117,4 +125,4 @@ interface MarketTokenData extends MarketToken {
|
|
|
117
125
|
|
|
118
126
|
type MarketTokenContext = Record<string, MarketTokenData>;
|
|
119
127
|
|
|
120
|
-
export { type MarketTokenContext, type MarketTokenData, type MarketTradeContext, type MarketTradeRecord, OrderStatus, type StrategyCallback, type StrategyCondition, type StrategyConfig, type StrategyErrorCallback, type StrategyExecQueue, type StrategyFn, type TokenTradeStepOrder, TradeSide, type TradeStep, type TradeStepBuy, type TradeStepSell };
|
|
128
|
+
export { type MarketTokenContext, type MarketTokenData, type MarketTradeContext, type MarketTradeRecord, OrderStatus, type StrategyCallback, type StrategyCondition, type StrategyConfig, type StrategyErrorCallback, type StrategyExecQueue, type StrategyFn, type TokenTradeRecordData, type TokenTradeStepOrder, TradeSide, type TradeStep, type TradeStepBuy, type TradeStepSell };
|
|
@@ -80,14 +80,22 @@ interface TokenTradeStepOrder {
|
|
|
80
80
|
size: number;
|
|
81
81
|
status: string;
|
|
82
82
|
updatedAt: number;
|
|
83
|
+
expiresAt?: number;
|
|
83
84
|
keep?: boolean;
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
interface TokenTradeRecordData {
|
|
88
|
+
|
|
89
|
+
positionSize: number;
|
|
90
|
+
|
|
91
|
+
orders: TokenTradeStepOrder[];
|
|
92
|
+
}
|
|
93
|
+
|
|
86
94
|
interface MarketTradeRecord {
|
|
87
95
|
marketId: string;
|
|
88
96
|
strategyJson: string;
|
|
89
97
|
tokens: {
|
|
90
|
-
[tokenId: string]:
|
|
98
|
+
[tokenId: string]: TokenTradeRecordData;
|
|
91
99
|
};
|
|
92
100
|
}
|
|
93
101
|
|
|
@@ -117,4 +125,4 @@ interface MarketTokenData extends MarketToken {
|
|
|
117
125
|
|
|
118
126
|
type MarketTokenContext = Record<string, MarketTokenData>;
|
|
119
127
|
|
|
120
|
-
export { type MarketTokenContext, type MarketTokenData, type MarketTradeContext, type MarketTradeRecord, OrderStatus, type StrategyCallback, type StrategyCondition, type StrategyConfig, type StrategyErrorCallback, type StrategyExecQueue, type StrategyFn, type TokenTradeStepOrder, TradeSide, type TradeStep, type TradeStepBuy, type TradeStepSell };
|
|
128
|
+
export { type MarketTokenContext, type MarketTokenData, type MarketTradeContext, type MarketTradeRecord, OrderStatus, type StrategyCallback, type StrategyCondition, type StrategyConfig, type StrategyErrorCallback, type StrategyExecQueue, type StrategyFn, type TokenTradeRecordData, type TokenTradeStepOrder, TradeSide, type TradeStep, type TradeStepBuy, type TradeStepSell };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/utils/markets/types.ts
|
|
2
2
|
var SupportedSymbol = /* @__PURE__ */ ((SupportedSymbol2) => {
|
|
3
|
-
SupportedSymbol2["ETH"] = "eth";
|
|
4
3
|
SupportedSymbol2["BTC"] = "btc";
|
|
5
|
-
SupportedSymbol2["
|
|
4
|
+
SupportedSymbol2["ETH"] = "eth";
|
|
6
5
|
SupportedSymbol2["XRP"] = "xrp";
|
|
6
|
+
SupportedSymbol2["SOL"] = "sol";
|
|
7
7
|
return SupportedSymbol2;
|
|
8
8
|
})(SupportedSymbol || {});
|
|
9
9
|
var SupportedInterval = /* @__PURE__ */ ((SupportedInterval2) => {
|