@@ -277,7 +277,7 @@ export class PacificaAdapter {
}
});
- if (json.cancelled && !json.cancelled.map(entry => String(entry)).includes(orderId)) {
+ if (json.cancelled && !json.cancelled.map(entry => String(entry)).includes(String(orderId))) {
throw new PacificaApiError("Order cancel not acknowledged", {
status: 200,
payload: json
@@ -160,7 +160,6 @@ export class PacificaWsOrderGateway {
...payload
};
-
private formatNumeric(value: string | number): string {
if (typeof value === "string") return value;
if (!Number.isFinite(value)) {