diff --git a/src/CBAdvancedTradeClient.ts b/src/CBAdvancedTradeClient.ts index 8c77ce1..918f2b9 100644 --- a/src/CBAdvancedTradeClient.ts +++ b/src/CBAdvancedTradeClient.ts @@ -335,7 +335,7 @@ export class CBAdvancedTradeClient extends BaseRestClient { closePosition( params: CloseAdvTradePositionRequest, ): Promise { - this.validateOrderId(params as any, 'client_order_id'); + this.validateOrderId(params, 'client_order_id'); return this.postPrivate(`/api/v3/brokerage/orders/close_position`, { body: params, });