import { Instrument, UnixTimestamp, Address, PairId, AssetId } from "../interfaces"; import { ContractAmount, InstrumentAmount, MarketPrice } from "../tools"; import { OrderFees } from "./order"; export type Pair = { base: Instrument; quote: Instrument; }; export type PairInfo = Pair & { lastPrice: MarketPrice; priceQuantum: MarketPrice; amountQuantum: InstrumentAmount; minTrade: InstrumentAmount; maxTrade: InstrumentAmount; externalId: string; fees: OrderFees; }; export type PairInfoId = PairInfo & { pairId: PairId; }; export type PairPrices = { pairId: PairId; period: number; prevPrice: MarketPrice; prevPriceOn: UnixTimestamp; lastPrice: MarketPrice; lastPriceOn: UnixTimestamp; minPrice: MarketPrice; maxPrice: MarketPrice; baseVolume: InstrumentAmount; quoteVolume: InstrumentAmount; }; export type UsersHealth = { positiveHealth: bigint; negativeHealth: bigint; }; export type OrderBasicAmount = { sell: InstrumentAmount; buy: InstrumentAmount; }; export type GroupSettings = { count?: number; priceGrouping?: string; }; export type OrderGroupEntry = { price: MarketPrice; volume: InstrumentAmount; }; export type OrderGroup = { buys: OrderGroupEntry[]; sells: OrderGroupEntry[]; }; export type LiquidationRequest = { liquidator: Address; user: Address; liabilities: Map; collaterals: Map; }; export type PairPriceRecord = { timestamp: number; open: string; close: string; high: string; low: string; baseVolume: string; quoteVolume: string; }; //# sourceMappingURL=types.d.ts.map