UNPKG

ccxt

Version:

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

32 lines (31 loc) 1.01 kB
import { Int } from '../types.js'; interface CustomArray extends Array<any> { hashmap: object; } declare class BaseCache extends Array { constructor(maxSize?: Int); clear(): void; } declare class ArrayCache extends BaseCache implements CustomArray { hashmap: object; constructor(maxSize?: Int); getLimit(symbol: any, limit: any): any; append(item: any): void; } declare class ArrayCacheByTimestamp extends BaseCache { constructor(maxSize?: Int); getLimit(symbol: any, limit: any): any; append(item: any): void; } declare class ArrayCacheBySymbolById extends ArrayCache { constructor(maxSize?: Int); append(item: any): void; } declare class ArrayCacheByOutcomeById extends ArrayCacheBySymbolById { constructor(maxSize?: Int); } declare class ArrayCacheBySymbolBySide extends ArrayCache { constructor(); append(item: any): void; } export { ArrayCache, ArrayCacheByTimestamp, ArrayCacheBySymbolById, ArrayCacheByOutcomeById, ArrayCacheBySymbolBySide, };