Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Adjusted API values to include the '?'
Browse files Browse the repository at this point in the history
  • Loading branch information
coltoneshaw committed Apr 29, 2022
1 parent 0a9d0da commit 04324ba
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main/3Commas/api.ts
Expand Up @@ -310,14 +310,20 @@ async function deals(offset: number, type: string, profileData: Type_Profile) {
active_safety_orders_count: deal.active_safety_orders_count,
created_at: deal.created_at,
updated_at: deal.updated_at,
closed_at: deal?.closed_at,
closed_at,
closed_at_iso_string: (activeDeal) ? null : new Date(closed_at).getTime(),
finished: deal?.finished,

//@ts-ignore
finished: deal['finished?'],
current_active_safety_orders_count: deal.current_active_safety_orders_count,
current_active_safety_orders: deal.current_active_safety_orders,
completed_safety_orders_count: deal.completed_safety_orders_count,
cancellable: deal?.cancellable,
panic_sellable: deal?.panic_sellable,

//@ts-ignore
cancellable: deal['cancellable?'],

//@ts-ignore
panic_sellable: deal['panic_sellable?'],
trailing_enabled: deal?.trailing_enabled,
tsl_enabled: deal?.tsl_enabled,
stop_loss_timeout_enabled: deal?.stop_loss_timeout_enabled,
Expand Down

0 comments on commit 04324ba

Please sign in to comment.