Skip to content

sarimk80/psx_sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

71 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ PSX β€” Pakistan Stock Exchange

Real-time stock tracking for iOS, built with SwiftUI.

Swift iOS License: MIT PRs Welcome

Features Β· Demo Β· Screenshots Β· Getting Started Β· Tech Stack Β· Contributing


✨ Features

Feature Description
πŸ“‘ Live Ticker Real-time price updates streamed via WebSocket
πŸ“Š Interactive Charts Visualize market movements with live, touch-friendly graphs
🏒 Company Fundamentals Detailed financials, ratios, and full dividend history
πŸ’Ό Portfolio Tracker Add, track, and monitor your personal holdings
🏦 ETF Browser Browse and explore Exchange Traded Funds listed on PSX
🎨 Modern UI Clean, fast, and native iOS experience built in SwiftUI

πŸ“½οΈ Demo

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-02-03.at.10.47.25.mov

πŸ“± Screenshots


πŸš€ Getting Started

Prerequisites

  • macOS with Xcode 15+ installed
  • iOS 13.0+ device or simulator
  • Swift Package Manager (bundled with Xcode)
  • Active internet connection

Installation

# 1. Clone the repository
git clone https://github.com/sarimk80/psx_sockets.git
cd psx_sockets

# 2. Open in Xcode
open PSX.xcodeproj
  1. Xcode will automatically resolve Swift Package Manager dependencies on first launch.
  2. Select your target device or simulator, then press β–Ά Run.

Note: The app connects to psx-terminal for live data. Ensure the backend is reachable before running.


πŸ“¦ Usage

  • Launch the app to view real-time stock data from the Pakistan Stock Exchange.
  • Search for any ticker to see its price, charts, and company fundamentals.
  • Add to Portfolio to track your personal holdings and monitor performance.
  • Browse ETFs by category with fund size, market cap, and holdings breakdown.
  • Tap any chart to interact with historical price data across multiple timeframes.

🧩 Tech Stack

Layer Technology
UI SwiftUI
Language Swift 5.9
Real-Time Data WebSocket
REST API URLSession + Async/Await
Reactive Combine
Local Storage Core Data
Backend psx-terminal

🀝 Contributing

Contributions, issues, and feature requests are welcome!

# 1. Fork the repo and create your branch
git checkout -b feature/your-feature

# 2. Commit your changes
git commit -am 'feat: add your feature'

# 3. Push and open a Pull Request
git push origin feature/your-feature

Please read CONTRIBUTING.md for our code of conduct and PR guidelines.


πŸ“‘ License

Distributed under the MIT License β€” see LICENSE for details.


πŸ™‹β€β™‚οΈ Author

Sarim Khan β€” @sarimk80

LinkedIn Email


⭐ Acknowledgements

  • mumtazkahn/psx-terminal β€” backend API and WebSocket data provider
  • Pakistan Stock Exchange for making market data accessible

If this project is useful to you, consider giving it a ⭐ β€” it helps others find it!

About

An iOS application for tracking the Pakistan Stock Exchange (PSX)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages