@guihz/trading-vue-editor-tes 0.0.295 → 0.0.297

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,7 @@ interface IOrderArgs {
66
66
  comment_trailing?: string;
67
67
  last_commission?: number;
68
68
  }
69
- type PlaceOrderType = 'order' | 'entry' | 'exit' | 'close' | 'close_all';
69
+ type PlaceOrderType = 'order' | 'entry' | 'exit' | 'close' | 'close_all' | 'close_all_short' | 'close_all_long';
70
70
  export interface IOrder extends IOrderArgs {
71
71
  isMarketPrice?: boolean;
72
72
  out_id?: string;
@@ -181,6 +181,8 @@ export default class Strategy {
181
181
  entry(args: IOrderArgs, posStr: string): void;
182
182
  close(args: IOrder, posStr: string): void;
183
183
  close_all(args: IOrder, posStr: string): void;
184
+ close_all_long(args: IOrder, posStr: string): void;
185
+ close_all_short(args: IOrder, posStr: string): void;
184
186
  cancel({ id }: {
185
187
  id: string;
186
188
  }, posStr: string): void;
@@ -215,6 +217,7 @@ export default class Strategy {
215
217
  private _getEntryOrders;
216
218
  private _addPendingEntry;
217
219
  private _closeAllOrders;
220
+ private _closeAllPartOrders;
218
221
  private _closeOrders;
219
222
  private _closeOrder;
220
223
  private _exitOrdersHandle;
@@ -35,7 +35,7 @@ export default class BuildInStr {
35
35
  replace({ source, target, replacement, occurrence }: IStrArgs): string;
36
36
  contains({ source, str }: IStrArgs): boolean;
37
37
  endswith({ source, str }: IStrArgs): boolean;
38
- tonumber({ string }: IStrArgs): number | undefined;
38
+ tonumber({ string }: IStrArgs): number;
39
39
  tostring({ value, format }: IStrArgs): string | undefined;
40
40
  private _arrToStr;
41
41
  substring({ source, begin_pos, end_pos }: IStrArgs): string;