longbridgelongbridge
  • Platform Features
    Features
    Investment ProductsPrivate Wealth ManagementTrading ToolsMarket Data ServicesAnalysis ToolsNews ServicesFor Developers
    Account Types
    For IndividualsFor Institutions
  • Café
longbridge
© 2026 Longbridge|Terms of ServicePrivacy Policy
乐
乐某Micron Tech Return RateApple Gain Hunter

2 days ago, 06:19 AM

I built an iOS US stock workstation using Longbridge and AI

I built an iOS US stock workstation using Longbridge and AI

LongbridgeAII'm LongbridgeAI, I can summarize articles.
Build An Agent To Work

I recently rewrote my ongoing "US Stock Compass" project into a native iOS app. It's a read-only personal US stock research tool designed to solve one core problem: consolidating pre-market analysis, intraday tracking, and post-market review information into a single place.

The app currently reads watchlist categories from your Longbridge account and integrates data sources like the Longbridge Open Platform, FRED, and the U.S. Treasury to display market environment, macro events, sector rotation, individual stock technicals, fundamentals, and options structure.

Fig 1: US Stock Compass Home Screen

Home screen: Market overview first

The home screen only displays content impacting the broader US market. The top section shows the latest prices for $SPDR S&P 500(SPY.US), $Invesco QQQ Trust(QQQ.US), $SPDR Djia(DIA.US), and $iShares Russell 2000(IWM.US), clearly marking whether they are in night, pre-, intra-, or post-market sessions. Price changes are calculated relative to the most recent regular session close. Below that, you'll find VIX, 10-year Treasury yields, high-yield credit spreads, financial conditions indices, and upcoming key events likely to move markets.

I want the app to answer practical questions immediately upon opening: What's today's risk appetite? Have rates or credit conditions shifted? Are there any data releases or Fed meetings to avoid? Individual stocks don't appear on the home screen to prevent distraction when you first open the app.

Fig 2: Macro Data & Key Events

The macro page groups upcoming events with recently released data. Each entry retains publication time, data period, consensus forecast, prior value, and actual result. Directional assessments include original rationale, as the same economic data can imply different things for equities versus rates.

Fig 3: Sector Rotation

Sector rotation uses sector ETFs for horizontal comparison across the same trading day and window. Strength metrics for 1-day, 5-day, and 20-day periods are displayed on one page, helping determine if daily gains stem from broad risk-on sentiment or leadership by a few sectors.

Individual stock details: Technicals + Fundamentals

Watchlists directly mirror groupings from your Longbridge account. The list view shows only latest price, current trading session, change %, and volume status; tapping enters detailed views.

Fig 4: ORCL Technicals ·$Oracle(ORCL.US)

Technical analysis includes 5-day full-session charts alongside daily, weekly, monthly, 3-month, and 6-month periodicity views. The 5-day full chart combines night, pre-, intra-, and post-market data into a single view, marking current price, support/resistance levels, and key volume nodes. Charts support zooming and panning.

Indicators like RSI, MACD, volume-price relationships, overbought/oversold conditions, tops/bottoms divergences, and stalling signals only appear when calculation conditions are met. Gaps remain empty rather than forcing conclusions with insufficient data.

Fig 5: ORCL Fundamentals

The fundamentals page focuses on revenue, profit, margins, ROE, quarterly trends, earnings vs. consensus expectations, and analyst target prices. YoY comparisons use comparable reporting periods; companies transitioning from loss to profit aren't forced into distorted percentage calculations.

Options page: Focus on open interest structure

Fig 6: ORCL Options Overview

The options page aggregates total open interest (OI) for all expiration dates' Calls and Puts, then loads the full standard option chain for selected expirations. It displays Call OI peaks, Put OI peaks, Put/Call OI ratios, max pain, and distance from current price to both walls.

Fig 7: ORCL Options Strike Distribution

Strike distribution charts allow zooming and horizontal scrolling to avoid cluttering dozens of strikes together. This uses OI, not volume. The interface avoids declaring bullish/bearish bias solely based on high OI at a specific strike, since such conclusions fail without knowing trade direction, spread structures, or market maker net positions.

What AI Did in This Project

In developing this app, AI acted more like a continuous collaborative dev partner. I defined trading scenarios, evaluated data utility, and validated financial logic; AI helped 查阅 API docs, write SwiftUI code, organize data models, implement indicator calculations, debug crashes/network issues, and rapidly iterate UI based on usage feedback.

For example, early versions crammed too much onto the home screen, requiring all APIs to return before loading. I'd point out wasted space or unreliable assumptions, and AI would restructure pages, optimize caching, and implement progressive loading. The options module underwent multiple revisions: distinguishing volume from OI, completing option chains, verifying max pain algorithms, and displaying data timestamps/completeness.

AI accelerated iteration, but data definitions and trading implications still require human oversight. Rapidly generating a working version doesn't guarantee the first iteration's product logic or financial conclusions are correct.

Why Does ORCL Max Pain Show Both 145 and 150?

During development, I cross-referenced ORCL data for the same expiration against ChartExchange. My app calculated max pain at 150, while theirs showed 145. Initial suspicion was a formula error, but strike-by-strike verification revealed inconsistent OI snapshots between platforms, with notable discrepancies in certain contracts.

Max pain is derived from the entire option chain. Differences in OI snapshot timing, contract filtering, or missing data handling can shift results from 145 to 150. While Longbridge provides per-contract OI quotes, it doesn't simultaneously supply a clear OI snapshot date, so the app cannot treat quote time as OI timestamp.

This highlights that tools aren't infallible. A precisely displayed number doesn't guarantee consistent input methodology. I now label data sources, expirations, contract coverage, read timestamps, and whether suppliers provide OI snapshot dates. For critical trading decisions, cross-verification against option chains or other data sources remains essential.

Why Build This Tool?

The reason is simple. I didn't want to toggle repeatedly between market feeds, macro calendars, financial data sites, and options platforms, nor did I want to see a conclusion and then hunt back for its underlying data and timing.

I wanted the app to instantly reveal current market context, highlight noteworthy stock movements, clarify price positioning, and verify analytical completeness. Currently used primarily by myself, it will continue adding data sources, optimizing caching, and explicitly leaving unverified data blank.

If you have suggestions regarding UI, data methodology, or Longbridge Open Platform usage, feel free to share.

This article documents personal tool development and usage only; it does not constitute investment advice. Market, macro, financial, and options data may suffer delays, revisions, or vendor discrepancies. Please verify original data before trading.

@LongbridgeAI

Oracle

Oracle

USORCL

SPDR Djia

SPDR Djia

USDIA

SPDR S&P 500

SPDR S&P 500

USSPY

Invesco QQQ Trust

Invesco QQQ Trust

USQQQ

Proshares UltraPro Short QQQ ETF

Proshares UltraPro Short QQQ ETF

USSQQQ

iShares Russell 2000

iShares Russell 2000

USIWM

ProShares Shrt QQQ

ProShares Shrt QQQ

USPSQ

ORACLE CORP DEPOSITARY SH REP 1/2000TH PFD SER D

ORACLE CORP DEPOSITARY SH REP 1/2000TH PFD SER D

USORCL-D

The copyright of this article belongs to the original author/organization.

The views expressed herein are solely those of the author and do not reflect the stance of the platform. The content is intended for investment reference purposes only and shall not be considered as investment advice. Please contact us if you have any questions or suggestions regarding the content services provided by the platform.

LongbridgeAI