UNPKG

@ango-ya/ccxt

Version:

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges

41 lines (40 loc) 1.51 kB
import { Str, Int } from './types'; declare class Precise { decimals: number; integer: bigint; base: any; constructor(number: any, decimals?: Int); mul(other: any): Precise; div(other: any, precision?: number): Precise; add(other: any): Precise; mod(other: any): Precise; sub(other: any): Precise; abs(): Precise; neg(): Precise; min(other: any): any; max(other: any): any; gt(other: any): boolean; ge(other: any): boolean; lt(other: any): any; le(other: any): any; reduce(): this; equals(other: any): boolean; toString(): string; static stringMul(string1: Str, string2: Str): string; static stringDiv(string1: any, string2: any, precision?: number): string; static stringAdd(string1: Str, string2: Str): string; static stringSub(string1: Str, string2: Str): string; static stringAbs(string: any): string; static stringNeg(string: any): string; static stringMod(string1: Str, string2: Str): string; static stringEquals(string1: Str, string2: Str): boolean; static stringEq(string1: Str, string2: Str): boolean; static stringMin(string1: Str, string2: Str): any; static stringMax(string1: Str, string2: Str): any; static stringGt(string1: Str, string2: Str): boolean; static stringGe(string1: Str, string2: Str): boolean; static stringLt(string1: Str, string2: Str): any; static stringLe(string1: Str, string2: Str): any; } export default Precise; export { Precise };