equation-sdk
Version:
🛠An SDK for building applications on top of Equation.
48 lines (47 loc) • 1.82 kB
TypeScript
import { IPositionsParams } from '../types';
/**
* Represents a module for fetching market data.
*/
export declare abstract class Markets {
private constructor();
/**
* Fetches the gas configuration.
* @returns The gas configuration data.
*/
static fetchGasConfig(): Promise<any>;
/**
* Fetches the price of market tokens for the given addresses.
* @param addresses - An array of token addresses.
* @returns A Promise that resolves to the overviews of the token prices.
*/
static fetchMarketTokensPrice(addresses: string[]): Promise<any>;
/**
* Fetches market prices for multiple tokens.
* @param addresses - An array of token addresses.
* @returns A promise that resolves to the market prices data.
*/
static fetchMarketMultiTokens(addresses: string[]): Promise<any>;
/**
* Fetches the list of markets.
* @returns {Promise<any[]>} A promise that resolves to an array of market data.
*/
static fetchMarketList(): Promise<any[]>;
/**
* Fetches market information for a given address.
* @param address - The address of the market.
* @returns The market information.
*/
static fetchMarketInfo(address: string): Promise<any>;
/**
* Fetches positions based on the provided parameters.
* @param params - The parameters for fetching positions.
* @returns A promise that resolves to an array of positions.
*/
static fetchPositions(params: IPositionsParams): Promise<any[]>;
/**
* Fetches positions requests by hashes.
* @param params - The positions parameters.
* @returns The positions requests by hashes.
*/
static fetchPositionsRequestsByHashes(params: IPositionsParams): Promise<any>;
}