Search packages, repositories and app categories

Package detailsv0.1.2

finance_quote

A multi-platform API to retrieve quote information and prices for stocks (e.g. Amazon, Google), commodities (e.g. Gold, Oil) and crypto-currencies (e.g. Bitcoin, Ethereum).

30-day downloads
43
Likes
29
Pub points
40

Install package

flutter pub add finance_quote

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A multi-platform Flutter package that provides access to real-time and historical financial data for stocks, commodities, and cryptocurrencies. It enables developers to fetch quote information and current prices from various assets like Amazon, Google, Gold, Oil, Bitcoin, and Ethereum. Designed for integration into finance-related applications, it supports cross-platform use with a simple API. The package is ideal for building investment trackers, portfolio dashboards, or trading tools. It relies on external APIs for data and requires proper configuration for authentication and rate limiting.

Use cases

  • Stock price tracking
  • Cryptocurrency market monitoring
  • Commodity price updates
  • Portfolio value calculation
  • Financial dashboard development

Key features

  • Supports stocks, crypto, and commodities
  • Real-time and historical data
  • Cross-platform compatibility
  • Simple API interface
  • Extensible data retrieval

Suitable for

  • Finance app developers
  • Investment tracking tools
  • Trading platform integrations
  • Educational finance apps
  • Personal budgeting applications

Considerations

  • Requires API key setup
  • Dependent on third-party data providers
  • Rate limits may apply
  • Data accuracy depends on source
  • Network connectivity required

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

A Dart plugin for retrieving financial quote prices.

pub package Build Status

This package provides a set of high-level functions and classes that make it easy to retrieve financial quote information and prices for stocks (Amazon, Google, ...), commodities (Gold, Oil, ...) and crypto-currencies (Bitcoin, Ethereum, ...). It's platform-independent, supports iOS and Android.

Using

The easiest way to use this library is via the top-level functions. They allow you to make quote price requests with minimal hassle:

  final Map<String, Map<String, String>> quotePrice =
      await FinanceQuote.getPrice(
          quoteProvider: QuoteProvider.yahoo, symbols: <String>['KO']);

  print('Number of quotes retrieved: ${quotePrice.keys.length}.');
  print('Number of attributes retrieved for KO: ${quotePrice['KO'].keys.length}.');
  print('Current market price for KO: ${quotePrice['KO']['price']}.');

If you're making multiple quote requests to the same server, you can request all of them in a single function call:

  final Map<String, Map<String, String>> quotePrice =
      await FinanceQuote.getPrice(
          quoteProvider: QuoteProvider.yahoo, symbols: <String>['KO', 'GOOG']);

  print('Number of quotes retrieved: ${quotePrice.keys.length}.');
  print('Number of attributes retrieved for KO: ${quotePrice['KO'].keys.length}.');
  print('Current market price for KO: ${quotePrice['KO']['price']}.');
  print('Number of attributes retrieved for GOOG : ${quotePrice['GOOG'].keys.length}.');
  print('Current market price for KO: ${quotePrice['GOOG']['price']}.');

If you want all available quote data from the selected provider, you can request it with the function call:

  final Map<String, Map<String, dynamic>> cryptoQuoteRaw =
      await FinanceQuote.getRawData(
          quoteProvider: QuoteProvider.coincap, symbols: <String>['bitcoin', 'ethereum']);

  print('Number of quotes retrieved: ${cryptoQuoteRaw.keys.length}.');
  print('Number of attributes retrieved for bitcoin : ${cryptoQuoteRaw['bitcoin'].keys.length}.');
  print('Current market price for bitcoin: ${cryptoQuoteRaw['bitcoin']['priceUsd']}.');
  print('Number of attributes retrieved for ethereum: ${cryptoQuoteRaw['ethereum'].keys.length}.');
  print('Current market price for ethereum: ${cryptoQuoteRaw['ethereum']['priceUsd']}.');

Supported providers

  • Yahoo
  • Morningstar
  • Coinmarketcap
  • Coincap
  • Binance

TERMS & CONDITIONS

Quote information fetched through this module is bound by the quote providers terms and conditions.

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package

No data available yet.