STONKS is a Flutter app designed to provide real-time stock information. It integrates with a stock API to allow users to search for stocks, view their quotes, and manage a watchlist.
- Search for Stocks: Users can search for stocks by symbol and view relevant information.
- Stock Quote Display: Displays stock information including symbol, current price, change (amount and percentage), and optionally the company name.
- Watchlist Management:
- Add stocks to the watchlist.
- View real-time prices and percentage change between low and high prices.
- Remove stocks from the watchlist.
- Refresh watchlist data.
-
Clone the Repository:
git clone https://github.com/NAVEENRAJ2004/STOCK-QUOTE-APP
-
Navigate to the Project Directory:
cd stonks
-
Install Dependencies: Ensure you have Flutter installed and run:
flutter pub get
-
Add API Key: Replace
'YOUR_API_KEY'
in thehome_page.dart
file with your actual API key from Finnhub. -
Run the App:
flutter run
-
Search for Stocks:
- Enter a stock symbol in the search bar to view real-time data and add it to the watchlist.
-
Add to Watchlist:
- Click "Add to Watchlist" to add the stock to your watchlist.
-
View Watchlist:
- The watchlist shows real-time prices, changes, low/high prices, and the percentage change between low and high.
4Delete from Watchlist: - Use the delete button next to a stock in the watchlist to remove it.
lib/main.dart
: Entry point of the Flutter application.lib/home_page.dart
: Contains the main functionality including search and watchlist features.-
lib/watchlist_page.dart
: Project dependencies and metadata.
pubspec.yaml
: Project dependencies and metadata.
-
flutter
: ^2.0.0 (or latest) -
http
: ^0.13.3 (or latest) -
flutter_typeahead
: ^3.1.0 (or latest) -
shared_preferences
: ^2.0.7 (or latest) -
intl
: ^0.17.0## Acknowledgements -
Finnhub API for providing stock market data.
-
Flutter community for their support and resources.