From ab8936b543b41294097193290deb9cef5ce58b15 Mon Sep 17 00:00:00 2001 From: kaitsu Date: Wed, 2 Feb 2022 14:17:24 +0100 Subject: [PATCH] reduce_only, close_on_trigger and position_idx are required parameters --- src/linear-client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/linear-client.ts b/src/linear-client.ts index f482afb..c6c2f48 100644 --- a/src/linear-client.ts +++ b/src/linear-client.ts @@ -82,9 +82,10 @@ export class LinearClient extends SharedEndpoints { stop_loss?: number; tp_trigger_by?: string; sl_trigger_by?: string; - reduce_only?: boolean; - close_on_trigger?: boolean; + reduce_only: boolean; + close_on_trigger: boolean; order_link_id?: string; + position_idx: number; }): GenericAPIResponse { return this.requestWrapper.post('private/linear/order/create', params); }