Skip to content

Commit

Permalink
chore(): remove any cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Sep 13, 2024
1 parent 8c60a03 commit d7cf0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CBAdvancedTradeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class CBAdvancedTradeClient extends BaseRestClient {
closePosition(
params: CloseAdvTradePositionRequest,
): Promise<AdvTradeClosePositionResponse> {
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,
});
Expand Down

0 comments on commit d7cf0b6

Please sign in to comment.