perp-cli 0.4.12 → 0.5.2

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.
@@ -1,3 +1,47 @@
1
1
  import { Command } from "commander";
2
2
  import type { ExchangeAdapter } from "../exchanges/interface.js";
3
3
  export declare function registerArbCommands(program: Command, isJson: () => boolean, getAdapterForExchange?: (exchange: string) => Promise<ExchangeAdapter>): void;
4
+ export interface PriceSnapshot {
5
+ symbol: string;
6
+ pacPrice: number | null;
7
+ hlPrice: number | null;
8
+ ltPrice: number | null;
9
+ maxGap: number;
10
+ maxGapPct: number;
11
+ cheapest: string;
12
+ expensive: string;
13
+ }
14
+ export declare function fetchAllPrices(): Promise<PriceSnapshot[]>;
15
+ export declare function formatGapPrice(p: number): string;
16
+ export declare function printGapTable(snapshots: PriceSnapshot[], minGap: number): void;
17
+ export declare function printTrackSummary(symbol: string, samples: {
18
+ time: string;
19
+ gap: number;
20
+ gapPct: number;
21
+ direction: string;
22
+ }[]): void;
23
+ export declare function handleRates(isJson: () => boolean, opts: {
24
+ symbol?: string;
25
+ symbols?: string;
26
+ all?: boolean;
27
+ minSpread: string;
28
+ }): Promise<void>;
29
+ export declare function handleBasisScan(isJson: () => boolean, opts: {
30
+ minBasis: string;
31
+ symbol?: string;
32
+ }): Promise<void>;
33
+ export declare function handleDexScan(isJson: () => boolean, opts: {
34
+ minSpread: string;
35
+ maxGap: string;
36
+ includeNative: boolean;
37
+ top: string;
38
+ }): Promise<void>;
39
+ export declare function handleCompare(isJson: () => boolean, symbol: string): Promise<void>;
40
+ export declare function handleFundingHistory(isJson: () => boolean, opts: {
41
+ symbol: string;
42
+ hours: string;
43
+ exchange?: string;
44
+ }): Promise<void>;
45
+ export declare function handleFundingPositions(isJson: () => boolean, getAdapterForExchange: (exchange: string) => Promise<ExchangeAdapter>, opts: {
46
+ exchanges?: string;
47
+ }): Promise<void>;