Skip to content

Commit

Permalink
fix(exchanges): fix Limit order placement in PaperExchange
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Dec 17, 2024
1 parent c29806e commit e9b3835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/exchanges/src/exchanges/ccxt/paper-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class PaperExchange extends CCXTExchange {
}

async placeOrder(params: IPlaceOrderRequest): Promise<IPlaceOrderResponse> {
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");

Expand Down

0 comments on commit e9b3835

Please sign in to comment.