From 5195aa15da96d7c2dca5183ce358515a98af7cd0 Mon Sep 17 00:00:00 2001 From: "alex v." <24814046+aguycalled@users.noreply.github.com> Date: Fri, 25 Apr 2025 22:28:54 +0700 Subject: [PATCH] Update info.ts Add nSigFigs and mantissa to getL2Book --- src/rest/info.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/info.ts b/src/rest/info.ts index ffde5f7..3f8080b 100644 --- a/src/rest/info.ts +++ b/src/rest/info.ts @@ -125,9 +125,9 @@ export class InfoAPI { return this.generalAPI.getOrderStatus(user, oid, rawResponse); } - async getL2Book(coin: string, rawResponse: boolean = false): Promise { + async getL2Book(coin: string, rawResponse: boolean = false, nSigFigs: number = 5, mantissa: number = undefined): Promise { await this.parent.ensureInitialized(); - return this.generalAPI.getL2Book(coin, rawResponse); + return this.generalAPI.getL2Book(coin, rawResponse, nSigFigs, mantissa); } async getCandleSnapshot(