sdk-utils
Version:
TEST TEST
195 lines (194 loc) • 4.06 kB
TypeScript
/**
* 拿投资列表
* @returns
*/
export declare function getinvestList(): Promise<{
data: any;
} | {
data: never[];
}>;
/**
* 获取池子信息
* @returns
*/
export declare function getPositionInfo(poolAddress: string): Promise<{
data: {
poolInfo: any;
ethPriceUSD: any;
ticks: any;
};
}>;
/**
* 填写pool地址
* @param poolAddress
* @returns
*/
export declare function getPositionInfo2(poolAddress: string): Promise<{
poolInfo: any;
ethPriceUSD: any;
}>;
export declare function getSingleStrategy(sid: string): Promise<{
data: any;
}>;
/**
* 获取strategy
* @returns
*/
export declare function strategyEntities(account: string): Promise<any>;
/**
* 快速版
* @param account
* @returns
*/
export declare function strategyEntities2(account: string): Promise<any>;
/**
* 拿fee列表
* @param userAddress
* @returns
*/
export declare function getFeeList(userAddress: string): Promise<{
feeList: any[];
}>;
export declare function calculatetoken0token1(tickLower: number, tickCurrent: number, tickUpper: number, lp: number, sqrtPrice: number, token0Price: number): {
token0amount: number;
token1amount: number;
totalvalue: number;
token0Ratio: number;
token1Ratio: number;
sumLiquidity: number;
};
/**
* token列表
* @returns
*/
export declare function getTokenList(): Promise<void | []>;
/**
*
* @returns
*/
export declare function getPoolPrice(): Promise<any>;
/**
* 获取池子的tvl 24h
* @returns
*/
export declare function getDayTvl(): Promise<{
data: {
tvlUSD: number;
volumeUSD: number;
};
}>;
/**
* 风险图表
* @param sid
* @returns
*/
export declare function riskManagement(sid: string): Promise<{
data: {
lastHedgeAmount0: any;
lastHedgeAmount1: any;
switchEntities: any;
};
}>;
/**
* 拿performance图表数据
* @param sid
* @returns
*/
export declare function performance(sid: string): Promise<{
data: {
creattimestamp: any;
collectEntities: any;
};
}>;
/**
* 池子价格变化
* @returns
*/
export declare function getPoolHourPrices(poolAddress: string, timestame: string): Promise<{
poolHourDatas: any;
}>;
/**
* 建仓时间
* @param sid
* @returns
*/
export declare function getCreatStrategyinfo(sid: string): Promise<{
switchingdetail: any;
}>;
/**
* 分析report图表数据
* @param sid
*/
export declare function report(poolAddress: string, sid: string): Promise<{
data: {
day24hswitchcount: number;
totalswitchcount: number;
result: any;
};
}>;
/**
* 获取排行榜
* @returns
*/
export declare function getGPRankList(): Promise<{
data: {
selfIndex: number;
ranklist: any;
selfinfo: any;
};
}>;
/**
* 水龙头
* @returns
*/
export declare function faucet(address: string): Promise<{
data: {
faucet: any;
};
}>;
/**
* 检查水龙头
* @returns
*/
export declare function checkFaucet(address: string): Promise<{
data: {
faucet: any;
};
}>;
/**
* 波动率
* @param start_date 开始时间
* @param end_date 截止时间
* @param type
* @returns
*/
export declare function getVolatility(start_date: number, end_date: number, type: "daily_1" | "weekly_2"): Promise<{
data: {
volatility: any;
poolDayDatas: {};
};
}>;
/**
* 只拿最新的波动率
* @returns
*/
export declare function getSingleVolatility(): Promise<{
dayVolatility: any;
weekVolatility: any;
}>;
/**
* 获取每日价格
* @param startTime
* @returns
*/
export declare function getdateDayDates(startTime: number): Promise<{
poolDayDatas: any;
}>;
/**
* position图表
* @param poolAddress
* @returns
*/
export declare function getLpRange(poolAddress: string): Promise<{
LpRange: any;
}>;