Skip to content
Tolinku
Tolinku
Sign In Start Free
Use Cases · · 5 min read

Stock Trading Deep Links: Direct to Trade

By Tolinku Staff
|
Tolinku e commerce deep linking dashboard screenshot for use cases blog posts

Stock trading is time-sensitive. A price alert needs to open the ticker page while the price is still relevant. An earnings notification needs to open the stock detail before the market moves. A portfolio rebalancing reminder needs to open the trade screen with the right positions. Deep links make every notification actionable by connecting it to the exact screen in the trading app.

This guide covers deep linking patterns for stock trading and investment apps. For investment apps broadly, see deep links for investment and trading apps. For product page deep links, see product page deep links: drive direct conversions.

Route Patterns

/stocks/{ticker}                       → Stock detail page
/stocks/{ticker}/buy                   → Buy order for stock
/stocks/{ticker}/sell                  → Sell order for stock
/stocks/{ticker}/options               → Options chain
/stocks/{ticker}/earnings              → Earnings data
/stocks/{ticker}/news                  → News for stock
/portfolio                             → Portfolio overview
/portfolio/performance                 → Performance chart
/portfolio/positions                   → All positions
/orders                                → Order history
/orders/{order-id}                     → Order detail
/watchlist                             → Watchlist
/watchlist/{list-id}                   → Specific watchlist
/screener                              → Stock screener
/discover                              → Discovery/explore

Target Price Hit

{
  "title": "AAPL hit your target: $195.00",
  "body": "Apple Inc. reached $195.00 (+2.3% today)",
  "deep_link": "https://links.tradeapp.com/stocks/AAPL",
  "category": "price_alert",
  "priority": "high"
}

Significant Move

{
  "title": "TSLA down 8% today",
  "body": "Tesla Inc. at $178.50. Tap to see details.",
  "deep_link": "https://links.tradeapp.com/stocks/TSLA",
  "category": "price_move",
  "priority": "high"
}

52-Week High/Low

{
  "title": "MSFT at 52-week high",
  "body": "Microsoft Corp. reached $420.00, a new 52-week high",
  "deep_link": "https://links.tradeapp.com/stocks/MSFT",
  "category": "milestone"
}

Quick Buy

A notification with a direct deep link to the buy screen:

{
  "title": "NVDA dipped 5%",
  "body": "NVIDIA Corp. at $850.00. Your alert triggered.",
  "deep_link": "https://links.tradeapp.com/stocks/NVDA/buy",
  "category": "buy_opportunity"
}

Sell Opportunity

{
  "title": "Your AAPL position is up 25%",
  "body": "Apple Inc. You bought at $156, now at $195. Consider taking profits.",
  "deep_link": "https://links.tradeapp.com/stocks/AAPL/sell",
  "category": "sell_opportunity"
}

Order Filled

{
  "title": "Order filled: AAPL",
  "body": "Bought 10 shares of AAPL at $195.00",
  "deep_link": "https://links.tradeapp.com/orders/ORD-789",
  "category": "order_filled"
}

Order Not Filled

{
  "title": "Limit order expired",
  "body": "Your limit order to buy TSLA at $170.00 expired. Current price: $178.50.",
  "deep_link": "https://links.tradeapp.com/stocks/TSLA/buy",
  "category": "order_expired"
}

Earnings Report

{
  "title": "AAPL earnings after market close",
  "body": "Apple reports Q3 2026 earnings today. See estimates and your position.",
  "deep_link": "https://links.tradeapp.com/stocks/AAPL/earnings",
  "category": "earnings"
}

Breaking News

{
  "title": "Breaking: FDA approval",
  "body": "Drug XYZ approved by FDA. Your watchlist stock PHARMA up 15% after hours.",
  "deep_link": "https://links.tradeapp.com/stocks/PHARMA/news",
  "category": "news",
  "priority": "high"
}

Daily Summary

{
  "title": "Portfolio: +$340 today",
  "body": "Your portfolio gained 1.2% today. S&P 500: +0.8%.",
  "deep_link": "https://links.tradeapp.com/portfolio/performance",
  "category": "portfolio_summary"
}

Dividend Received

{
  "title": "Dividend: $42.50 from VTI",
  "body": "Quarterly dividend deposited to your account",
  "deep_link": "https://links.tradeapp.com/portfolio",
  "category": "dividend"
}

Rebalancing Reminder

{
  "title": "Portfolio drift detected",
  "body": "Your tech allocation is 5% above target. Consider rebalancing.",
  "deep_link": "https://links.tradeapp.com/portfolio/positions",
  "category": "rebalance"
}

Implementation

func handleTradingDeepLink(_ url: URL) {
    guard authManager.isAuthenticated else {
        pendingDeepLink = url
        showBiometricLogin()
        return
    }

    let segments = url.pathComponents

    switch segments[safe: 1] {
    case "stocks":
        guard let ticker = segments[safe: 2] else {
            showDiscover()
            return
        }

        let action = segments[safe: 3]

        switch action {
        case "buy":
            showBuyOrder(ticker: ticker)
        case "sell":
            // Verify user has a position
            if portfolioManager.hasPosition(ticker) {
                showSellOrder(ticker: ticker)
            } else {
                showStockDetail(ticker: ticker)
            }
        case "options":
            showOptionsChain(ticker: ticker)
        case "earnings":
            showEarningsDetail(ticker: ticker)
        case "news":
            showStockNews(ticker: ticker)
        default:
            showStockDetail(ticker: ticker)
        }

    case "portfolio":
        let subpage = segments[safe: 2]
        switch subpage {
        case "performance":
            showPerformanceChart()
        case "positions":
            showPositions()
        default:
            showPortfolioOverview()
        }

    case "orders":
        if let orderId = segments[safe: 2] {
            showOrderDetail(orderId)
        } else {
            showOrderHistory()
        }

    case "watchlist":
        if let listId = segments[safe: 2] {
            showWatchlist(listId)
        } else {
            showDefaultWatchlist()
        }

    default:
        showHome()
    }
}

Market Hours Considerations

Trading deep links behave differently during and outside market hours:

Market State Buy/Sell Deep Link Behavior
Pre-market (4:00-9:30 ET) Show extended hours order form (if supported)
Market open (9:30-16:00 ET) Show standard order form with live quotes
After-hours (16:00-20:00 ET) Show extended hours order form
Market closed Show stock detail with "Set Alert" or "Place Order for Next Open"
func showBuyOrder(ticker: String) {
    let marketState = marketManager.currentState

    switch marketState {
    case .open:
        showOrderForm(ticker: ticker, type: .market)
    case .preMarket, .afterHours:
        if userAccount.hasExtendedHoursAccess {
            showOrderForm(ticker: ticker, type: .extendedHours)
        } else {
            showStockDetail(ticker: ticker)
        }
    case .closed:
        showStockDetail(ticker: ticker)
    }
}

Regulatory Notes

Stock trading notifications and deep links must comply with SEC and FINRA regulations:

  • No investment advice. Notifications like "NVDA dipped 5%" are informational. Phrasing like "Buy NVDA now" could be considered investment advice.
  • Balanced presentation. If a notification highlights gains, it should not systematically ignore losses.
  • Risk disclosure. Trading notifications should remind users that investing involves risk, particularly for options and leveraged products.
  • Suitability. Deep links to complex products (options, margin trading) should verify the user is approved for those products.

Tolinku for Trading Apps

Tolinku supports the route patterns trading apps need. Define routes for tickers, order forms, portfolio views, and watchlists in the Tolinku dashboard. Deferred deep linking ensures that users who install the app from a shared stock link (e.g., social media) land on the correct ticker page.

For investment apps, see deep links for investment and trading apps. For fintech deep linking broadly, see deep linking for fintech and banking apps.

Get deep linking tips in your inbox

One email per week. No spam.

Ready to add deep linking to your app?

Set up Universal Links, App Links, deferred deep linking, and analytics in minutes. Free to start.