From e9b3835eaf1d81ee1405284203ebc22b2b465b81 Mon Sep 17 00:00:00 2001 From: bludnic Date: Tue, 17 Dec 2024 01:17:34 +0000 Subject: [PATCH] fix(exchanges): fix Limit order placement in PaperExchange --- packages/exchanges/src/exchanges/ccxt/paper-exchange.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/exchanges/src/exchanges/ccxt/paper-exchange.ts b/packages/exchanges/src/exchanges/ccxt/paper-exchange.ts index 58626e74..6859dbfc 100644 --- a/packages/exchanges/src/exchanges/ccxt/paper-exchange.ts +++ b/packages/exchanges/src/exchanges/ccxt/paper-exchange.ts @@ -209,7 +209,7 @@ export class PaperExchange extends CCXTExchange { } async placeOrder(params: IPlaceOrderRequest): Promise { - if (params.type === OrderType.Market) { + if (params.type === OrderType.Limit) { const price = params.price; if (price === undefined) throw new Error("PaperExchange: Limit orders require a price param");