lpsignal 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +9 -7
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  /** Chains scanned today. The API may add more, so any string is accepted. */
12
12
  export type Chain = 'ethereum' | 'bsc' | 'base' | 'arbitrum' | 'optimism' | 'polygon' | (string & {});
13
13
  export type PairClass = 'stable' | 'correlated' | 'volatile';
14
- export type WindowHours = 3 | 24 | 168 | 720;
14
+ export type WindowHours = 1 | 24 | 168 | 720;
15
15
  export type Tier = 'free' | 'basic' | 'pro';
16
16
  export type SignalKind = 'net_apr' | 'burst' | 'tvl_outflow' | 'depeg' | 'smart_lp';
17
17
  export interface Health {
@@ -190,17 +190,19 @@ export interface NetAprSignal extends SignalBase {
190
190
  stakedEmissionApr?: number;
191
191
  }
192
192
  /**
193
- * A short-term opportunity: a very high net APR over the last `windowHours` (3) that is still earning in the latest
194
- * hour. Noisier than `net_apr`; scored on the 24 hours after it fires. Pushed only to accounts subscribed to `burst`.
193
+ * A short-term opportunity: a very high net APR over the last `windowHours` (1) on real trading (`swaps` in the window).
194
+ * Noisier than `net_apr`; scored on the 24 hours after it fires. Pushed only to accounts subscribed to `burst`.
195
+ * The figures are for the window, whatever its length.
195
196
  */
196
197
  export interface BurstSignal extends SignalBase {
197
198
  kind: 'burst';
198
199
  tvlUsd: number;
199
200
  windowHours: number;
200
- net3h: number;
201
- fee3h: number;
202
- il3h: number;
203
- inRange3h: number;
201
+ swaps: number;
202
+ netApr: number;
203
+ feeApr: number;
204
+ ilApr: number;
205
+ inRangeRatio: number;
204
206
  /** context, exact values only (null when not exact) */
205
207
  net24h: number | null;
206
208
  net7d: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lpsignal",
3
- "version": "0.3.0",
3
+ "version": "0.4.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",