@exagent/agent 0.1.39 → 0.1.40
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/chunk-47FQBTKE.mjs +9394 -0
- package/dist/chunk-6VSAJQU7.mjs +9394 -0
- package/dist/chunk-MVUE6EPJ.mjs +8634 -0
- package/dist/chunk-NNIBSMJQ.mjs +9333 -0
- package/dist/chunk-OBESLXRL.mjs +8634 -0
- package/dist/chunk-TE3P727T.mjs +8634 -0
- package/dist/cli.js +2604 -223
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1051 -6
- package/dist/index.d.ts +1051 -6
- package/dist/index.js +2619 -188
- package/dist/index.mjs +27 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
HyperliquidWebSocket,
|
|
15
15
|
LLMConfigSchema,
|
|
16
16
|
LLMProviderSchema,
|
|
17
|
+
MARKET_CATEGORIES,
|
|
18
|
+
MarketBrowser,
|
|
17
19
|
MarketDataService,
|
|
18
20
|
MistralAdapter,
|
|
19
21
|
OllamaAdapter,
|
|
@@ -22,8 +24,14 @@ import {
|
|
|
22
24
|
PerpConfigSchema,
|
|
23
25
|
PerpOnboarding,
|
|
24
26
|
PerpTradeRecorder,
|
|
27
|
+
PolymarketClient,
|
|
25
28
|
PositionManager,
|
|
26
29
|
PositionTracker,
|
|
30
|
+
PredictionConfigSchema,
|
|
31
|
+
PredictionFunding,
|
|
32
|
+
PredictionOrderManager,
|
|
33
|
+
PredictionPositionManager,
|
|
34
|
+
PredictionTradeRecorder,
|
|
27
35
|
RelayClient,
|
|
28
36
|
RelayConfigSchema,
|
|
29
37
|
RiskManager,
|
|
@@ -35,9 +43,12 @@ import {
|
|
|
35
43
|
VaultConfigSchema,
|
|
36
44
|
VaultManager,
|
|
37
45
|
VaultPolicySchema,
|
|
46
|
+
calculatePredictionFee,
|
|
38
47
|
createLLMAdapter,
|
|
39
48
|
createSampleConfig,
|
|
49
|
+
decodePredictionInstrument,
|
|
40
50
|
decryptEnvFile,
|
|
51
|
+
encodePredictionInstrument,
|
|
41
52
|
encryptEnvFile,
|
|
42
53
|
fillHashToBytes32,
|
|
43
54
|
fillOidToBytes32,
|
|
@@ -47,9 +58,11 @@ import {
|
|
|
47
58
|
loadConfig,
|
|
48
59
|
loadSecureEnv,
|
|
49
60
|
loadStrategy,
|
|
61
|
+
orderIdToBytes32,
|
|
62
|
+
tradeIdToBytes32,
|
|
50
63
|
validateConfig,
|
|
51
64
|
validateStrategy
|
|
52
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-6VSAJQU7.mjs";
|
|
53
66
|
export {
|
|
54
67
|
AGENT_VERSION,
|
|
55
68
|
AgentConfigSchema,
|
|
@@ -66,6 +79,8 @@ export {
|
|
|
66
79
|
HyperliquidWebSocket,
|
|
67
80
|
LLMConfigSchema,
|
|
68
81
|
LLMProviderSchema,
|
|
82
|
+
MARKET_CATEGORIES,
|
|
83
|
+
MarketBrowser,
|
|
69
84
|
MarketDataService,
|
|
70
85
|
MistralAdapter,
|
|
71
86
|
OllamaAdapter,
|
|
@@ -74,8 +89,14 @@ export {
|
|
|
74
89
|
PerpConfigSchema,
|
|
75
90
|
PerpOnboarding,
|
|
76
91
|
PerpTradeRecorder,
|
|
92
|
+
PolymarketClient,
|
|
77
93
|
PositionManager,
|
|
78
94
|
PositionTracker,
|
|
95
|
+
PredictionConfigSchema,
|
|
96
|
+
PredictionFunding,
|
|
97
|
+
PredictionOrderManager,
|
|
98
|
+
PredictionPositionManager,
|
|
99
|
+
PredictionTradeRecorder,
|
|
79
100
|
RelayClient,
|
|
80
101
|
RelayConfigSchema,
|
|
81
102
|
RiskManager,
|
|
@@ -87,9 +108,12 @@ export {
|
|
|
87
108
|
VaultConfigSchema,
|
|
88
109
|
VaultManager,
|
|
89
110
|
VaultPolicySchema,
|
|
111
|
+
calculatePredictionFee,
|
|
90
112
|
createLLMAdapter,
|
|
91
113
|
createSampleConfig,
|
|
114
|
+
decodePredictionInstrument,
|
|
92
115
|
decryptEnvFile,
|
|
116
|
+
encodePredictionInstrument,
|
|
93
117
|
encryptEnvFile,
|
|
94
118
|
fillHashToBytes32,
|
|
95
119
|
fillOidToBytes32,
|
|
@@ -99,6 +123,8 @@ export {
|
|
|
99
123
|
loadConfig,
|
|
100
124
|
loadSecureEnv,
|
|
101
125
|
loadStrategy,
|
|
126
|
+
orderIdToBytes32,
|
|
127
|
+
tradeIdToBytes32,
|
|
102
128
|
validateConfig,
|
|
103
129
|
validateStrategy
|
|
104
130
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exagent/agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "Autonomous trading agent runtime for Exagent",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@exagent/sdk": "^0.1.16",
|
|
33
33
|
"@nktkas/hyperliquid": "^0.31.0",
|
|
34
|
+
"@polymarket/clob-client": "^4.0.0",
|
|
34
35
|
"chalk": "^5.3.0",
|
|
36
|
+
"ethers": "^5.7.0",
|
|
35
37
|
"commander": "^12.0.0",
|
|
36
38
|
"dotenv": "^16.4.0",
|
|
37
39
|
"openai": "^4.0.0",
|