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");