@opiumteam/opium-sdk-v2
Version:
one-stop-shop SDK to interact with the Opium-v2 protocol contracts, subgraphs and APIs
63 lines (62 loc) • 1.41 kB
TypeScript
import { TAddress } from '.';
export declare type THolderPositionsQueryResponse = {
holderPositions: {
longBalance: string;
shortBalance: string;
ticker: {
id: string;
margin: string;
endTime: string;
params: string[];
oracleId: TAddress;
token: TAddress;
syntheticId: TAddress;
longPosition: {
id: TAddress;
};
shortPosition: {
id: string;
};
};
}[];
};
export declare type TTickerQueryData = {
id: string;
margin: string;
endTime: string;
params: string[];
oracleId: string;
token: string;
syntheticId: string;
longPosition: {
id: string;
totalSupply: string;
};
shortPosition: {
id: string;
totalSupply: string;
};
};
export declare type TTickersQueryResponse = {
tickers: TTickerQueryData[];
};
export declare type TAllTickersTicker = {
id: string;
margin: string;
endTime: string;
params: string[];
syntheticId: string;
token: string;
oracleId: string;
longPosition: {
id: string;
totalSupply: string;
};
shortPosition: {
id: string;
totalSupply: string;
};
};
export declare type TAllTickersQueryResponse = {
tickers: TAllTickersTicker[];
};