lpsignal 0.8.0 → 0.9.0

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/client.d.ts CHANGED
@@ -170,7 +170,7 @@ export declare class LPSignal {
170
170
  deleteRule(id: string): Promise<void>;
171
171
  /**
172
172
  * The kinds of global signal pushed to you on Telegram, webhook and WebSocket (core events by default; add 'burst'
173
- * for short-term opportunities). Custom-rule matches always arrive.
173
+ * for short-term opportunities, 'hot_pool' for high-yield pools). Custom-rule matches always arrive.
174
174
  */
175
175
  setSubscriptions(kinds: SignalKind[]): Promise<{
176
176
  subscriptions: SignalKind[];
package/dist/client.js CHANGED
@@ -226,7 +226,7 @@ export class LPSignal {
226
226
  }
227
227
  /**
228
228
  * The kinds of global signal pushed to you on Telegram, webhook and WebSocket (core events by default; add 'burst'
229
- * for short-term opportunities). Custom-rule matches always arrive.
229
+ * for short-term opportunities, 'hot_pool' for high-yield pools). Custom-rule matches always arrive.
230
230
  */
231
231
  setSubscriptions(kinds) {
232
232
  return this.request('PUT', '/v1/me/subscriptions', { body: { kinds } });
package/dist/types.d.ts CHANGED
@@ -13,7 +13,7 @@ export type Chain = 'ethereum' | 'bsc' | 'base' | 'arbitrum' | 'optimism' | 'pol
13
13
  export type PairClass = 'stable' | 'correlated' | 'volatile';
14
14
  export type WindowHours = 1 | 24 | 168 | 720;
15
15
  export type Tier = 'free' | 'basic' | 'pro';
16
- export type SignalKind = 'net_apr' | 'burst' | 'tvl_outflow' | 'depeg' | 'smart_lp';
16
+ export type SignalKind = 'net_apr' | 'burst' | 'hot_pool' | 'tvl_outflow' | 'depeg' | 'smart_lp';
17
17
  export interface Health {
18
18
  ok: boolean;
19
19
  }
@@ -226,6 +226,24 @@ export interface BurstSignal extends SignalBase {
226
226
  net7d: number | null;
227
227
  stakedEmissionApr?: number;
228
228
  }
229
+ /**
230
+ * High yield, high risk: a big pool (TVL $500k+) whose pool-level 24h fee APR — estimated 24h fees / TVL x 365, as DEX
231
+ * sites show it — reached 50%+ and at least twice its own 7-day average. A pool-level figure, not a recommended
232
+ * position (`tickLower`/`tickUpper` are 0), never scored (`outcome` stays null). Impermanent loss can exceed the fees:
233
+ * `bestNet24h` is what the best range netted over the same day (fees − IL; `bestRangeBp` says which), null without a
234
+ * 24h backtest. Pushed only to accounts subscribed to `hot_pool`.
235
+ */
236
+ export interface HotPoolSignal extends SignalBase {
237
+ kind: 'hot_pool';
238
+ tvlUsd: number;
239
+ poolApr24h: number;
240
+ poolApr7d: number;
241
+ volume24hUsd: number;
242
+ fees24hUsd: number;
243
+ bestNet24h: number | null;
244
+ bestRangeBp: number | null;
245
+ risk: 'high';
246
+ }
229
247
  /** Liquidity fell by `drop` within `windowHours`, valued at current prices. */
230
248
  export interface TvlOutflowSignal extends SignalBase {
231
249
  kind: 'tvl_outflow';
@@ -256,7 +274,7 @@ export interface SmartLpSignal extends SignalBase {
256
274
  returnPct: number;
257
275
  } | null;
258
276
  }
259
- export type Signal = NetAprSignal | BurstSignal | TvlOutflowSignal | DepegSignal | SmartLpSignal;
277
+ export type Signal = NetAprSignal | BurstSignal | HotPoolSignal | TvlOutflowSignal | DepegSignal | SmartLpSignal;
260
278
  export interface SignalsPage {
261
279
  signals: Signal[];
262
280
  /** pass as `before` for the next (older) page; null on the last page (and always when sorted) */
@@ -351,7 +369,7 @@ export interface Me {
351
369
  hasApiKey: boolean;
352
370
  /**
353
371
  * kinds of global signal pushed to this account (Telegram, webhook, WebSocket without `kinds`): the core events
354
- * net_apr, tvl_outflow, depeg, smart_lp by default; burst only when added. Custom-rule matches always arrive.
372
+ * net_apr, tvl_outflow, depeg, smart_lp by default; burst and hot_pool only when added. Custom-rule matches always arrive.
355
373
  */
356
374
  subscriptions: SignalKind[];
357
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lpsignal",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Official LPSignal SDK: net-of-IL APR signals for concentrated-liquidity pools, a WebSocket stream that never misses a signal, webhook verification and the REST API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",