@candledottv/agent-sdk 0.6.1 → 0.6.3
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/README.md +8 -0
- package/dist/client.d.ts +393 -15
- package/dist/client.d.ts.map +1 -1
- package/dist/hyperliquid-manage.d.ts +137 -0
- package/dist/hyperliquid-manage.d.ts.map +1 -0
- package/dist/hyperliquid-markets.d.ts +179 -0
- package/dist/hyperliquid-markets.d.ts.map +1 -0
- package/dist/hyperliquid-risk.d.ts +425 -0
- package/dist/hyperliquid-risk.d.ts.map +1 -0
- package/dist/hyperliquid-withdraw.d.ts +172 -0
- package/dist/hyperliquid-withdraw.d.ts.map +1 -0
- package/dist/hyperliquid.d.ts +207 -7
- package/dist/hyperliquid.d.ts.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3145 -84
- package/dist/perps-history.d.ts +126 -0
- package/dist/perps-history.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/hyperliquid.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export type HyperliquidNetwork = "mainnet" | "testnet";
|
|
2
2
|
/** The L1 action types a Candle build may carry. Anything else is refused before signing. */
|
|
3
|
-
export declare const HYPERLIQUID_ALLOWED_ACTION_TYPES: readonly ["order", "cancel", "modify", "updateLeverage", "updateIsolatedMargin"];
|
|
3
|
+
export declare const HYPERLIQUID_ALLOWED_ACTION_TYPES: readonly ["order", "cancel", "modify", "updateLeverage", "updateIsolatedMargin", "scheduleCancel"];
|
|
4
4
|
/** Hyperliquid's `/exchange` endpoint per network. The client never takes this from the server. */
|
|
5
5
|
export declare const HYPERLIQUID_EXCHANGE_URLS: Readonly<Record<HyperliquidNetwork, string>>;
|
|
6
6
|
/** Hyperliquid's public `/info` endpoint per network. */
|
|
7
7
|
export declare const HYPERLIQUID_INFO_URLS: Readonly<Record<HyperliquidNetwork, string>>;
|
|
8
8
|
/**
|
|
9
|
-
* Candle's builder
|
|
10
|
-
*
|
|
9
|
+
* Candle's public builder, confirmed by Andrew on BE-1583 on 2026-10-17 (decision 6a).
|
|
10
|
+
* Rotation requires a reviewed client release; the API cannot replace this trust anchor.
|
|
11
11
|
*/
|
|
12
|
-
export declare const CANDLE_HYPERLIQUID_BUILDER_ADDRESS
|
|
12
|
+
export declare const CANDLE_HYPERLIQUID_BUILDER_ADDRESS = "0xc43ff1f6ad9f93fc94558e07c2071b8458e7470b";
|
|
13
|
+
/** Resolve only local trust anchors. An explicit invalid override never falls back to the pin. */
|
|
14
|
+
export declare function resolveHyperliquidBuilder(override?: string, releasePin?: string | null): string;
|
|
13
15
|
/** The builder fee Candle charges at most, in tenths of a basis point (0.1%), and as setup signs it. */
|
|
14
16
|
export declare const HYPERLIQUID_MAX_BUILDER_FEE_TENTHS_BPS = 100;
|
|
15
17
|
export declare const HYPERLIQUID_MAX_BUILDER_FEE_RATE = "0.1%";
|
|
@@ -59,6 +61,49 @@ export interface VerifyPerpsBuildOptions {
|
|
|
59
61
|
isBuy: boolean;
|
|
60
62
|
size: string;
|
|
61
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Phase 1 D (spec 2026-10-17 D, section 4): the venue order a targeted cancel must name, read from
|
|
66
|
+
* Hyperliquid by this client (`hyperliquidCancelTarget`).
|
|
67
|
+
*/
|
|
68
|
+
cancelTarget?: {
|
|
69
|
+
asset: number;
|
|
70
|
+
oid: number;
|
|
71
|
+
};
|
|
72
|
+
/** Phase 1 D: the held position a take-profit / stop-loss attach protects, read from Hyperliquid. */
|
|
73
|
+
tpslTarget?: {
|
|
74
|
+
asset: number;
|
|
75
|
+
isBuy: boolean;
|
|
76
|
+
size: string;
|
|
77
|
+
markPx: string;
|
|
78
|
+
};
|
|
79
|
+
/** Phase 1 D: an isolated top-up's market, where Hyperliquid shows an isolated position. */
|
|
80
|
+
marginTarget?: {
|
|
81
|
+
asset: number;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Phase 1 D: a leverage or margin-mode change's market and the account's setting there, read from
|
|
85
|
+
* Hyperliquid. `flat`: no position and no resting order in the coin, which a mode change needs.
|
|
86
|
+
*/
|
|
87
|
+
leverageTarget?: {
|
|
88
|
+
asset: number;
|
|
89
|
+
leverage: number;
|
|
90
|
+
mode: "cross" | "isolated";
|
|
91
|
+
flat: boolean;
|
|
92
|
+
};
|
|
93
|
+
/** Phase 1 D: this client's clock, for a scheduled cancel's time. */
|
|
94
|
+
clock?: {
|
|
95
|
+
now: number;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Phase 1 D, section 9: the key's reduce-only setting as Candle reports it. True refuses any build
|
|
99
|
+
* that is not reducing, whatever the server checked; it is never a substitute for that check.
|
|
100
|
+
*/
|
|
101
|
+
keyReduceOnly?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Set only by `verifyPerpsBuildAgainstVenue`'s first pass: a fact only the venue can supply (the
|
|
104
|
+
* current leverage an omitted `leverage` keeps) is left to its second pass. Never set it alone.
|
|
105
|
+
*/
|
|
106
|
+
awaitingVenue?: boolean;
|
|
62
107
|
/**
|
|
63
108
|
* The market an open or modify names, as Hyperliquid's own `/info` reports it
|
|
64
109
|
* (`hyperliquidOrderMarket`), never as the build does. With it, every order leg must carry this
|
|
@@ -68,10 +113,12 @@ export interface VerifyPerpsBuildOptions {
|
|
|
68
113
|
market?: HyperliquidOrderMarket;
|
|
69
114
|
/** Bind the plaintext action to the method and arguments the caller actually requested. */
|
|
70
115
|
intent?: {
|
|
71
|
-
method:
|
|
116
|
+
method: PerpsIntentMethod;
|
|
72
117
|
params: Record<string, unknown>;
|
|
73
118
|
};
|
|
74
119
|
}
|
|
120
|
+
/** What a build may be bound to. `tpsl` attaches one leg; `scheduleCancel` sets or clears the timer. */
|
|
121
|
+
export type PerpsIntentMethod = "setup" | "open" | "close" | "cancel" | "modify" | "leverage" | "margin" | "tpsl" | "scheduleCancel";
|
|
75
122
|
export type PerpsBuildCheck = {
|
|
76
123
|
ok: true;
|
|
77
124
|
kind: "l1" | "approveBuilderFee";
|
|
@@ -79,8 +126,49 @@ export type PerpsBuildCheck = {
|
|
|
79
126
|
ok: false;
|
|
80
127
|
reason: string;
|
|
81
128
|
};
|
|
129
|
+
/** A Hyperliquid cloid, lowercase: `0x` and 32 hex digits. Also the shape of a caller's client order id. */
|
|
130
|
+
export declare const HYPERLIQUID_CLOID_RE: RegExp;
|
|
131
|
+
/**
|
|
132
|
+
* The account modes Candle builds for: Hyperliquid's standard mode (`default`, or `disabled` for an
|
|
133
|
+
* account that never chose one). `unifiedAccount`, `portfolioMargin`, `dexAbstraction` and any
|
|
134
|
+
* unknown string are not standard (spec 2026-10-17 C, section 5).
|
|
135
|
+
*/
|
|
136
|
+
export declare const HYPERLIQUID_STANDARD_ACCOUNT_MODES: readonly string[];
|
|
137
|
+
/**
|
|
138
|
+
* The account's mode, read directly from the pinned venue's `userAbstraction` before setup is
|
|
139
|
+
* requested, so a server cannot report a mode the venue does not. Throws when it cannot be read.
|
|
140
|
+
*/
|
|
141
|
+
export declare function hyperliquidAccountMode(fetcher: (url: string, init?: RequestInit) => Promise<{
|
|
142
|
+
ok: boolean;
|
|
143
|
+
text(): Promise<string>;
|
|
144
|
+
}>, network: HyperliquidNetwork, address: string): Promise<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Why a setup response must not be trusted, or null. Runs on every setup answer, the no-action
|
|
147
|
+
* `ready: true` one included (it carries no action for `verifyPerpsBuild` to check): the wallet,
|
|
148
|
+
* network and builder must be this client's, and the mode the one this client read from the venue,
|
|
149
|
+
* which must be standard.
|
|
150
|
+
*/
|
|
151
|
+
export declare function perpsSetupStatusProblem(status: Record<string, unknown>, expect: {
|
|
152
|
+
network: HyperliquidNetwork;
|
|
153
|
+
address: string;
|
|
154
|
+
builder: string;
|
|
155
|
+
mode: string;
|
|
156
|
+
}): string | null;
|
|
157
|
+
/**
|
|
158
|
+
* A close percentage (spec D, section 8): a decimal above 0 and at most 100 with at most four
|
|
159
|
+
* decimals, as millionths of the position (`"25"` is 250000). Null when it is not one.
|
|
160
|
+
*/
|
|
161
|
+
export declare function hyperliquidClosePct(value: unknown): bigint | null;
|
|
162
|
+
/**
|
|
163
|
+
* `floor(held * pct / 100)` at the market's size precision, as a wire decimal; 100% is the held size
|
|
164
|
+
* itself. Never rounds up: a percentage too small for one size step is "0", which callers refuse.
|
|
165
|
+
*/
|
|
166
|
+
export declare function hyperliquidPctSize(held: string, pct: bigint, szDecimals: number): string;
|
|
167
|
+
/** A non-negative decimal rounded down to `szDecimals` decimals, as a wire decimal. */
|
|
168
|
+
export declare function hyperliquidFloorSize(value: string, szDecimals: number): string;
|
|
82
169
|
/** Read the position directly from the pinned venue before signing a close. The request
|
|
83
|
-
* names no side and can omit size, so neither may be inferred from the build's preview.
|
|
170
|
+
* names no side and can omit size, so neither may be inferred from the build's preview. A `pct`
|
|
171
|
+
* request is sized here from that position, independently of the server (spec D, section 8).
|
|
84
172
|
*/
|
|
85
173
|
export declare function hyperliquidCloseOrder(fetcher: (url: string, init?: RequestInit) => Promise<{
|
|
86
174
|
ok: boolean;
|
|
@@ -102,16 +190,31 @@ export declare const HYPERLIQUID_DEFAULT_SLIPPAGE_BPS = 100;
|
|
|
102
190
|
* while still refusing a price far from the venue's (a buy at twice the mid, a sell at half).
|
|
103
191
|
*/
|
|
104
192
|
export declare const HYPERLIQUID_MID_DRIFT_BPS = 100;
|
|
193
|
+
/**
|
|
194
|
+
* The slippage a take-profit or stop-loss leg's limit price may carry past its trigger, before
|
|
195
|
+
* `HYPERLIQUID_MID_DRIFT_BPS` is added for rounding. The API prices those legs at its
|
|
196
|
+
* `maxSlippageBps` from the trigger, whatever the request's slippage: 500 unless
|
|
197
|
+
* `HYPERLIQUID_MAX_SLIPPAGE_BPS` says otherwise (`apps/api/src/lib/perps-gate.ts`). A deployment
|
|
198
|
+
* that raises it has its TP/SL legs refused here until this release follows.
|
|
199
|
+
*/
|
|
200
|
+
export declare const HYPERLIQUID_TPSL_SLIPPAGE_BPS = 500;
|
|
105
201
|
/** What Hyperliquid's own `/info` says about the market an open or modify names. */
|
|
106
202
|
export interface HyperliquidOrderMarket {
|
|
107
203
|
/** The coin's index in Hyperliquid's main perp universe. */
|
|
108
204
|
asset: number;
|
|
109
205
|
/** Hyperliquid's mid for the coin (its mark price when the book has no mid). */
|
|
110
206
|
midPx: string;
|
|
111
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* For a modify: the resting order it replaces, read from the venue by its cloid. Everything the
|
|
209
|
+
* replacement keeps (spec D, section 5) is checked against this, never against the build.
|
|
210
|
+
*/
|
|
112
211
|
order?: {
|
|
113
212
|
isBuy: boolean;
|
|
114
213
|
limitPx: string;
|
|
214
|
+
size?: string;
|
|
215
|
+
reduceOnly?: boolean;
|
|
216
|
+
tif?: string;
|
|
217
|
+
oid?: number;
|
|
115
218
|
};
|
|
116
219
|
}
|
|
117
220
|
/**
|
|
@@ -130,6 +233,102 @@ export declare function hyperliquidOrderMarket(fetcher: (url: string, init?: Req
|
|
|
130
233
|
* fully checked until it passes with `market` read from Hyperliquid (`hyperliquidOrderMarket`).
|
|
131
234
|
*/
|
|
132
235
|
export declare function verifyPerpsBuild(build: PerpsBuildToVerify, opts: VerifyPerpsBuildOptions): PerpsBuildCheck;
|
|
236
|
+
/** Hyperliquid refuses a scheduled cancel less than five seconds ahead; so does this client. */
|
|
237
|
+
export declare const HYPERLIQUID_SCHEDULE_CANCEL_MIN_LEAD_MS = 5000;
|
|
238
|
+
/**
|
|
239
|
+
* How far a scheduled cancel's fixed time may sit from this client's `now + seconds`: the build
|
|
240
|
+
* fixed it a moment earlier, from Candle's clock.
|
|
241
|
+
*/
|
|
242
|
+
export declare const HYPERLIQUID_SCHEDULE_CANCEL_DRIFT_MS = 60000;
|
|
243
|
+
/** A venue read older than this is stale for a management decision (slice A's freshness ceiling). */
|
|
244
|
+
export declare const HYPERLIQUID_SNAPSHOT_MAX_AGE_MS = 30000;
|
|
245
|
+
type InfoFetcher = (url: string, init?: RequestInit) => Promise<{
|
|
246
|
+
ok: boolean;
|
|
247
|
+
status?: number;
|
|
248
|
+
text(): Promise<string>;
|
|
249
|
+
}>;
|
|
250
|
+
/** One open order on the main perp exchange, as this client read it from `frontendOpenOrders`. */
|
|
251
|
+
export interface HyperliquidSnapshotOrder {
|
|
252
|
+
coin: string;
|
|
253
|
+
asset: number;
|
|
254
|
+
oid: number;
|
|
255
|
+
cloid: string | null;
|
|
256
|
+
isBuy: boolean;
|
|
257
|
+
sz: string;
|
|
258
|
+
limitPx: string;
|
|
259
|
+
reduceOnly: boolean;
|
|
260
|
+
isTrigger: boolean;
|
|
261
|
+
triggerPx: string | null;
|
|
262
|
+
/** `tp` or `sl` for a take-profit or stop-loss trigger, null for any other order. */
|
|
263
|
+
tpsl: "tp" | "sl" | null;
|
|
264
|
+
}
|
|
265
|
+
/** One main-perp position, as this client read it from `clearinghouseState`. */
|
|
266
|
+
export interface HyperliquidSnapshotPosition {
|
|
267
|
+
coin: string;
|
|
268
|
+
asset: number;
|
|
269
|
+
szi: string;
|
|
270
|
+
leverage: {
|
|
271
|
+
type: "cross" | "isolated";
|
|
272
|
+
value: number;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* The wallet's main-perp state, read directly from Hyperliquid in one moment: the universe (with
|
|
277
|
+
* each market's size precision), marks, positions and every open order including triggers.
|
|
278
|
+
* `unsupported` names any row outside the main perp universe or that could not be classified;
|
|
279
|
+
* flatten refuses on one rather than silently skip it (spec D, section 8). Throws on a failed or
|
|
280
|
+
* malformed read: that is an error, never permission to trust a server's preview.
|
|
281
|
+
*/
|
|
282
|
+
export interface HyperliquidWalletSnapshot {
|
|
283
|
+
readAt: number;
|
|
284
|
+
universe: {
|
|
285
|
+
name: string;
|
|
286
|
+
szDecimals: number;
|
|
287
|
+
maxLeverage: number;
|
|
288
|
+
onlyIsolated: boolean;
|
|
289
|
+
}[];
|
|
290
|
+
/** Mark price per asset index, null when the venue gave none. */
|
|
291
|
+
marks: (string | null)[];
|
|
292
|
+
positions: HyperliquidSnapshotPosition[];
|
|
293
|
+
orders: HyperliquidSnapshotOrder[];
|
|
294
|
+
unsupported: string[];
|
|
295
|
+
}
|
|
296
|
+
export declare function hyperliquidWalletSnapshot(fetcher: InfoFetcher, network: HyperliquidNetwork, address: string, now?: () => number): Promise<HyperliquidWalletSnapshot>;
|
|
297
|
+
/** The snapshot's position in `coin` (case-insensitive), or null. */
|
|
298
|
+
export declare function snapshotPosition(snapshot: HyperliquidWalletSnapshot, coin: string): HyperliquidSnapshotPosition | null;
|
|
299
|
+
/** The size a take-profit / stop-loss attach protects: the held size, at the market's precision. */
|
|
300
|
+
export declare function hyperliquidTpslTarget(snapshot: HyperliquidWalletSnapshot, coin: string): NonNullable<VerifyPerpsBuildOptions["tpslTarget"]>;
|
|
301
|
+
/**
|
|
302
|
+
* `verifyPerpsBuild`, then the same check again against what this client reads from Hyperliquid
|
|
303
|
+
* itself for the request (the market, the position, the resting order, the account's leverage, the
|
|
304
|
+
* clock). Every Candle surface calls this one function before it asks the relay to sign, so the
|
|
305
|
+
* rules cannot fork between the SDK, the CLI and the MCP server. Never throws: a venue that could
|
|
306
|
+
* not be read is a refusal.
|
|
307
|
+
*/
|
|
308
|
+
export declare function verifyPerpsBuildAgainstVenue(build: PerpsBuildToVerify, opts: VerifyPerpsBuildOptions & {
|
|
309
|
+
intent: NonNullable<VerifyPerpsBuildOptions["intent"]>;
|
|
310
|
+
address: string;
|
|
311
|
+
fetcher: InfoFetcher;
|
|
312
|
+
now?: () => number;
|
|
313
|
+
}): Promise<PerpsBuildCheck>;
|
|
314
|
+
/**
|
|
315
|
+
* Hyperliquid's answer to one submitted action, per leg (spec D, section 3: "HTTP 200 alone is not
|
|
316
|
+
* confirmation"). `confirmed` only when the venue said `ok` and no leg carries an error; `rejected`
|
|
317
|
+
* when it said `err` or any leg did; `unknown` for anything else, which callers must reconcile
|
|
318
|
+
* before acting again.
|
|
319
|
+
*/
|
|
320
|
+
export type HyperliquidSubmitOutcome = {
|
|
321
|
+
status: "confirmed";
|
|
322
|
+
legs: unknown[];
|
|
323
|
+
} | {
|
|
324
|
+
status: "rejected";
|
|
325
|
+
error: string;
|
|
326
|
+
legs: unknown[];
|
|
327
|
+
} | {
|
|
328
|
+
status: "unknown";
|
|
329
|
+
error: string;
|
|
330
|
+
};
|
|
331
|
+
export declare function hyperliquidExchangeOutcome(exchange: unknown): HyperliquidSubmitOutcome;
|
|
133
332
|
/** A 65-byte `0x` signature split the way `/exchange` takes it. */
|
|
134
333
|
export declare function hyperliquidSplitSignature(signature: string): {
|
|
135
334
|
r: string;
|
|
@@ -155,4 +354,5 @@ export declare function hyperliquidRelayBody(typedData: HyperliquidTypedData): {
|
|
|
155
354
|
typed_data: HyperliquidTypedData;
|
|
156
355
|
};
|
|
157
356
|
};
|
|
357
|
+
export {};
|
|
158
358
|
//# sourceMappingURL=hyperliquid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hyperliquid.d.ts","sourceRoot":"","sources":["../src/hyperliquid.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEtD,6FAA6F;AAC7F,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"hyperliquid.d.ts","sourceRoot":"","sources":["../src/hyperliquid.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAA;AAEtD,6FAA6F;AAC7F,eAAO,MAAM,gCAAgC,oGASnC,CAAA;AAEV,mGAAmG;AACnG,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAGlF,CAAA;AAED,yDAAyD;AACzD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAG9E,CAAA;AAED;;;G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gentFeeAmount, AgentFeeClaimOptions, AgentFeeClaimResult, AgentFeeIncome, AgentFeeReason, AgentFeesOptions, AgentFeesPage, AgentFeeToken, AgentHoldingOrigin, AgentLeaderboardEntry, AgentPost, AgentPostsPage, AgentPostToken, AgentPostTokenRef, AgentProfile, AgentPublicHolding, AgentPublicRecord, AgentRecordTotals, AgentRewardClaim, AgentTierInfo, AtomicBundleLegRole, AtomicBundleLegSigner, AtomicBundleResponseLeg, AtomicFirstBuyRequest, AtomicLaunchPayer, BaseAssetKey, BuildAtomicLaunchRequest, BuildAtomicLaunchResult, BuildSelfLaunchHoodResult, BuildSelfLaunchRequest, BuildSelfLaunchResult, BuildSelfLaunchSolanaResult, BuildTradeBuiltResult, BuildTradeRequest, BuildTradeResult, CandleClientOptions, CandleFees, CandleWallets, Chain, CloseEmptyAccountsBatch, CloseEmptyAccountsFailure, CloseEmptyAccountsJob, CloseEmptyAccountsPreview, CloseEmptyAccountsRequest, CloseEmptyAccountsResult, ConfirmSelfLaunchRequest, ConfirmSelfLaunchResult, ConfirmTradeRequest, ConfirmTradeResult, CreateAgentPostRequest, CurveTerms, DryRunResult, EmptyTokenAccount, EmptyTokenAccountSkipReason, EvmSignTransactionParams, ExecutedTradeResult, FeedBucket, FeedResult, FeedToken, HoodTradeArtifacts, ImportWalletResult, LaunchAtomicFirstBuyRequest, LaunchAtomicPayer, LaunchAtomicRequest, LaunchAtomicResult, LaunchJob, LaunchPreset, LaunchRequest, LaunchResult, LaunchTier, LinkedSwapRequest, LinkedSwapResult, LinkedWalletRow, ListAgentPostsOptions, ListAgentsOptions, ListWalletsResult, MarketState, MigrationStatus, OwnAgentProfile, OwnAgentProfilePatch, PerpsAccountStatus, PerpsActionResult, PerpsBuild, PerpsCancelParams, PerpsCloseParams, PerpsConfig, PerpsDepositBuild, PerpsDepositParams, PerpsDepositResult, PerpsLeverageParams, PerpsMarginParams, PerpsModifyParams, PerpsOpenParams, PerpsOrderRecord, PerpsOrders, PerpsPositions, PerpsSetupResult, PerpsSide, PerpsWalletRef, PortfolioHoodSection, PortfolioHoodTeeWallet, PortfolioHoodToken, PortfolioHoodWallet, PortfolioPrice, PortfolioResult, PortfolioSolanaTeeWallet, PortfolioSolanaToken, PortfolioSolanaWallet, PortfolioUnpricedReason, PresetsPayload, PreviewCloseEmptyAccountsRequest, ProfileBoardPnl, ProfileChainPnl, ProfileClosedPosition, ProfileClosedSummary, ProfileOpenPosition, ProfilePnlEngineFields, ProfilePnlResult, ProfilePnlSummaryRow, ProfileTradeRow, ProfileTradesOptions, ProfileTradesResult, ProfileWalletPnl, ProfileWalletRow, ProfileWalletScope, ProfileWalletsResult, QuoteBreakdown, QuotePair, QuotePairsPayload, QuoteResult, SelfBalancesOptions, SelfBalancesResult, SelfLaunchDryRunResult, SelfLaunchRequest, SelfWallet, SelfWalletBalance, SignLinkedTransactionParams, SignLinkedTransactionResult, SkippedEmptyTokenAccount, SolanaTradeArtifacts, SpendLimit, SpendLimitsResult, SubmitAtomicLaunchRequest, SubmitAtomicLaunchResult, SubmitTradeRequest, SwapRequest, SwapResult, SwapSettlement, SwapSettlementLeg, SwapSettlementState, TradeFee, TradeJob, TradePayer, TradeRace, TradeRequest, TradeRoute, TradeRouteHop, TradeSide, VerifyResult, WalletKind, } from "./client";
|
|
1
|
+
export type { AcceptedJob, AgentDirectoryEntry, AgentDirectoryPage, AgentDirectorySort, AgentFeeAmount, AgentFeeClaimOptions, AgentFeeClaimResult, AgentFeeIncome, AgentFeeReason, AgentFeesOptions, AgentFeesPage, AgentFeeToken, AgentHoldingOrigin, AgentLeaderboardEntry, AgentPost, AgentPostsPage, AgentPostToken, AgentPostTokenRef, AgentProfile, AgentPublicHolding, AgentPublicRecord, AgentRecordTotals, AgentRewardClaim, AgentTierInfo, AtomicBundleLegRole, AtomicBundleLegSigner, AtomicBundleResponseLeg, AtomicFirstBuyRequest, AtomicLaunchPayer, BaseAssetKey, BuildAtomicLaunchRequest, BuildAtomicLaunchResult, BuildSelfLaunchHoodResult, BuildSelfLaunchRequest, BuildSelfLaunchResult, BuildSelfLaunchSolanaResult, BuildTradeBuiltResult, BuildTradeRequest, BuildTradeResult, CandleClientOptions, CandleFees, CandlePerps, CandlePerpsWithdraw, CandleWallets, Chain, CloseEmptyAccountsBatch, CloseEmptyAccountsFailure, CloseEmptyAccountsJob, CloseEmptyAccountsPreview, CloseEmptyAccountsRequest, CloseEmptyAccountsResult, ConfirmSelfLaunchRequest, ConfirmSelfLaunchResult, ConfirmTradeRequest, ConfirmTradeResult, CreateAgentPostRequest, CurveTerms, DryRunResult, EmptyTokenAccount, EmptyTokenAccountSkipReason, EvmSignTransactionParams, ExecutedTradeResult, FeedBucket, FeedResult, FeedToken, HoodTradeArtifacts, ImportWalletResult, LaunchAtomicFirstBuyRequest, LaunchAtomicPayer, LaunchAtomicRequest, LaunchAtomicResult, LaunchJob, LaunchPreset, LaunchRequest, LaunchResult, LaunchTier, LinkedSwapRequest, LinkedSwapResult, LinkedWalletRow, ListAgentPostsOptions, ListAgentsOptions, ListWalletsResult, MarketState, MigrationStatus, OwnAgentProfile, OwnAgentProfilePatch, PerpsAccountStatus, PerpsActionResult, PerpsBuild, PerpsCancelParams, PerpsCloseParams, PerpsConfig, PerpsDepositBuild, PerpsDepositParams, PerpsDepositResult, PerpsLeverageParams, PerpsMarginParams, PerpsModifyParams, PerpsOpenParams, PerpsOrderRecord, PerpsOrders, PerpsPositions, PerpsReduceOnlyResult, PerpsReplay, PerpsReplayResult, PerpsRiskSettingsResult, PerpsRiskWrite, PerpsRiskWriteResult, PerpsScheduleCancelParams, PerpsSetupResult, PerpsSide, PerpsWalletRef, PerpsWithdrawBuildRequest, PerpsWithdrawParams, PerpsWithdrawResult, PerpsWithdrawStatus, PortfolioHoodSection, PortfolioHoodTeeWallet, PortfolioHoodToken, PortfolioHoodWallet, PortfolioPrice, PortfolioResult, PortfolioSolanaTeeWallet, PortfolioSolanaToken, PortfolioSolanaWallet, PortfolioUnpricedReason, PresetsPayload, PreviewCloseEmptyAccountsRequest, ProfileBoardPnl, ProfileChainPnl, ProfileClosedPosition, ProfileClosedSummary, ProfileOpenPosition, ProfilePnlEngineFields, ProfilePnlResult, ProfilePnlSummaryRow, ProfileTradeRow, ProfileTradesOptions, ProfileTradesResult, ProfileWalletPnl, ProfileWalletRow, ProfileWalletScope, ProfileWalletsResult, QuoteBreakdown, QuotePair, QuotePairsPayload, QuoteResult, SelfBalancesOptions, SelfBalancesResult, SelfLaunchDryRunResult, SelfLaunchRequest, SelfWallet, SelfWalletBalance, SignLinkedTransactionParams, SignLinkedTransactionResult, SkippedEmptyTokenAccount, SolanaTradeArtifacts, SpendLimit, SpendLimitsResult, SubmitAtomicLaunchRequest, SubmitAtomicLaunchResult, SubmitTradeRequest, SwapRequest, SwapResult, SwapSettlement, SwapSettlementLeg, SwapSettlementState, TradeFee, TradeJob, TradePayer, TradeRace, TradeRequest, TradeRoute, TradeRouteHop, TradeSide, VerifyResult, WalletKind, } from "./client";
|
|
2
2
|
export { CandleClient, CrossOriginRedirectError, perpsDepositProblem } from "./client";
|
|
3
3
|
export type { BridgeErrorCode, CandleErrorPayload, CandleRoutingDetail, OperationIds, SelfLaunchFeeOutcome, SelfLaunchOutcomeErrorArgs, SolanaRpcErrorData, } from "./errors";
|
|
4
4
|
export { BRIDGE_ERROR_CODES, CandleApiError, CandleOperationError, isSolanaRpcErrorData, JsonRpcError, operationIds, SelfLaunchOutcomeError, type SignedTradeLeg, TradeLandedFeeLegError, TradeLandedUnconfirmedError, TradeLegOutcomeError, } from "./errors";
|
|
5
|
-
export { CANDLE_HYPERLIQUID_BUILDER_ADDRESS, HYPERLIQUID_ALLOWED_ACTION_TYPES, HYPERLIQUID_EXCHANGE_URLS, type HyperliquidNetwork, type HyperliquidOrderMarket, type HyperliquidTypedData, hyperliquidActionHash, hyperliquidOrderMarket, type PerpsBuildCheck, type PerpsBuildToVerify, type VerifyPerpsBuildOptions, verifyPerpsBuild, } from "./hyperliquid";
|
|
5
|
+
export { CANDLE_HYPERLIQUID_BUILDER_ADDRESS, HYPERLIQUID_ALLOWED_ACTION_TYPES, HYPERLIQUID_EXCHANGE_URLS, HYPERLIQUID_STANDARD_ACCOUNT_MODES, type HyperliquidNetwork, type HyperliquidOrderMarket, type HyperliquidSubmitOutcome, type HyperliquidTypedData, type HyperliquidWalletSnapshot, hyperliquidAccountMode, hyperliquidActionHash, hyperliquidExchangeOutcome, hyperliquidOrderMarket, hyperliquidWalletSnapshot, type PerpsBuildCheck, type PerpsBuildToVerify, perpsSetupStatusProblem, type VerifyPerpsBuildOptions, verifyPerpsBuild, verifyPerpsBuildAgainstVenue, } from "./hyperliquid";
|
|
6
|
+
export { PERPS_FLATTEN_MAX_STEPS, type PerpsStepStatus, type PerpsTpslParams, PerpsWorkflowError, type PerpsWorkflowResult, type PerpsWorkflowStep, } from "./hyperliquid-manage";
|
|
7
|
+
export * from "./hyperliquid-markets";
|
|
6
8
|
export type { HyperliquidPnlFigures, HyperliquidPnlSection, HyperliquidWalletPnl } from "./hyperliquid-pnl";
|
|
9
|
+
export { effectivePerpsRisk, HYPERLIQUID_RISK_DEFAULTS, type HyperliquidInfoFetcher, HyperliquidReadError, hyperliquidRiskReport, type PerpsAccountLine, type PerpsAccountReport, type PerpsPortfolioAccount, type PerpsPortfolioSection, type PerpsPositionRow, type PerpsRecentFigures, type PerpsRiskDriver, type PerpsRiskLevel, type PerpsRiskReport, type PerpsRiskSettings, type PerpsRiskThresholds, type PerpsRiskThresholdsReport, type PerpsWatchEvent, perpsPortfolioSection, perpsRiskExitCode, perpsRiskStep, readPerpsRisk, watchPerpsRisk, } from "./hyperliquid-risk";
|
|
10
|
+
export { CANDLE_PERPS_WITHDRAW_PINS, type PerpsWithdrawAuthorization, type PerpsWithdrawBuild, type PerpsWithdrawPins, parseSendAssetAmount, parseWithdrawAmount, relayRecipientProblem, verifyWithdrawMapping, verifyWithdrawSendAsset, type WithdrawCheck, } from "./hyperliquid-withdraw";
|
|
7
11
|
export { KeychainSecretStore } from "./keychain-secret-store";
|
|
12
|
+
export { PERPS_HISTORY_DEFAULT_LIMIT, PERPS_HISTORY_MAX_LIMIT, type PerpsFillRow, type PerpsFillsPage, type PerpsFundingPage, type PerpsFundingRow, PerpsHistoryError, type PerpsHistoryOptions, type PerpsHistoryWarning, readPerpsHistoryPage, } from "./perps-history";
|
|
8
13
|
export { type AgentPlansResult, formatPlanBps, PLAN_CAPABILITY_LABELS, PLAN_CAPABILITY_NOTE, type PlanCapabilities, type PlanLimits, type PlanName, type PlanPrice, type PlanTable, type PlanTableEntry, planLabel, planPromotionLine, planTableMarkdown, planTableRows, } from "./plans";
|
|
9
14
|
export type { SecretStore } from "./secret-store";
|
|
10
15
|
export { EncryptedFileSecretStore, InMemorySecretStore } from "./secret-store";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,KAAK,EACL,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACz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,EACjB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,GACX,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACtF,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,KAAK,cAAc,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,GACrB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,kCAAkC,EAClC,gCAAgC,EAChC,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,SAAS,EACT,cAA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