Skip to content

Commit

Permalink
feat: add types for dtrader tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu-deriv committed Oct 30, 2024
1 parent 48af902 commit 3dfb3ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ type ContractsSetupForm = {
action: 'run_contract'
switcher_duration_mode_name?: string
switcher_stakepayout_mode_name?: string
market_name?: string
trade_name?: string
contract_id?: number
}
)
type TradersHubOnboardingFormAction = {
Expand Down Expand Up @@ -385,7 +388,7 @@ type TCashierDepositOnboardingFormAction = {
login_id?: string
}

type TNewDtraderTradeForm = {
type TDtraderTradeForm = {
action?: 'open' | 'select_trade_type' | 'select_market_type' | 'open_guide' | 'run_contract' | 'close_contract'
trade_name?: string
market_name?: string
Expand Down Expand Up @@ -420,5 +423,5 @@ export type TEvents = {
ce_wallets_homepage_form: WalletsHomepageFormAction
ce_notification_form: TNotificationsTrayForm
ce_cashier_deposit_onboarding_form: TCashierDepositOnboardingFormAction
ce_new_dtrader_trade_form: TNewDtraderTradeForm
ce_dtrader_trade_form: TDtraderTradeForm
}

0 comments on commit 3dfb3ce

Please sign in to comment.