UNPKG

@bcswaper/apis

Version:

bcswaper apis

24 lines (23 loc) 537 B
import { IsoString } from "../context"; export declare class TradesHandler { private symbol; private trades; constructor(symbol: string); initialize(obj: any): Promise<void>; update(obj: any): Promise<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 {};