UNPKG

@volare.finance/volare.js

Version:
22 lines (21 loc) 652 B
/** * @file collateral.ts * @author astra <astra@volare.finance> * @date 2022 */ import { Address, IFilter, IPrices, Sym } from '@volare.finance/utils.js'; import { Axios } from 'axios'; import { ICollateral } from './interfaces'; export declare class Collateral { instance: Axios; constructor(instance: Axios); collaterals(owner?: Address, filter?: IFilter): Promise<{ collaterals: Array<ICollateral>; prices: IPrices; }>; lineChart(owner: Address, symbol: Sym, interval?: string, // only support 24h right now filter?: IFilter): Promise<{ timestamps: number[]; samples: number[]; }>; }