UNPKG

@bcswaper/apis

Version:

bcswaper apis

24 lines (23 loc) 526 B
import { IsoString } from "../../swapContext"; export declare class TradesHandler { private symbol; private trades; constructor(symbol: string); initialize(obj: any): void; update(obj: any): void; getTrades(): TradeContent[]; } interface TradeContent { id: string; size: string; price: string; side: string; createdAt: IsoString; type: TradeType; } export declare enum TradeType { LIMIT = "LIMIT", LIQUIDATED = "LIQUIDATED", DELEVERAGED = "DELEVERAGED" } export {};