Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 2.5 KB

File metadata and controls

46 lines (39 loc) · 2.5 KB

Price Tracker App

A real-time price tracker built using Flutter, BLoC (Business Logic Component) architecture, and WebSocket connection to monitor prices in Deriv markets.

Features

  • Select from a variety of markets available in Deriv.
  • Based on market selection, choose from a list of available symbols.
  • Display the current price of the selected symbol with color-coded text:
    • Grey: Default color, indicating an unchanged price.
    • Red: Indicates a price decrease.
    • Green: Indicates a price increase.
  • Real-time updates through WebSocket connection for accurate and timely price information.
  • Efficiently manage state and business logic using BLoC architecture.
  • Smooth user experience with loading indicators during symbol fetching and price updates.

App Flow

  • The application starts with a loading indicator in the center while fetching active symbols using WebSocket connection.
  • After selecting a market and a symbol, a loading indicator is shown in place of the symbol price while the new price stream is fetching through the WebSocket connection.
  • The price text color dynamically changes to reflect price fluctuations in real-time, providing immediate insights to users.
  • Users can easily switch symbols, and the app will repeat the process mentioned in the previous step to display updated prices with loading indicators.

Instructions

Prerequisites

Ensure you have Flutter installed on your machine. Follow the Flutter installation guide here.

Running the App

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Connect your mobile device or start an emulator.
  4. Run the following command to install dependencies:
  5. flutter pub get
  6. Run the app on your device/emulator:
  7. flutter run

Deriv WebSocket API Documentation

For more information about the Deriv WebSocket API, please refer to the official documentation here.

Enhance your trading experience with this user-friendly Price Tracker app that leverages Flutter, BLoC architecture, and WebSocket connection for real-time price monitoring.