flutter_alpha_vantage_package 0.0.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new47

flutter_alpha_vantage_package

A new Flutter package for using alpha vantage api.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

Usage

Add the following import statement where you need to use this package libraries: import 'package:flutter_alpha_vantage_package/flutter_alpha_vantage_package.dart';

There are four libraries to use to call Alpha Vantage rest api: TimeSeries.dart, SectorPerformances.dart, ForeignExchange.dart, CryptoCurrencies.dart, and TechnicalIndicators.dart.

Example:

import 'package:flutter_alpha_vantage_package/flutter_alpha_vantage_package.dart';
import 'package:test/test.dart';

void main() async {


  test('Intraday', () async {
    final timeSeries = new TimeSeries("YourAlphaVantageAPIKey");
    JSONObject json = await timeSeries.getIntraday("MSFT");

    // Use get method to search entire json for key for stock
    expect(json.get("2. Symbol"), "MSFT");

    // Use map to find stock symbol
    expect(json.getJSONMap()["Meta Data"]["2. Symbol"], "MSFT");
    print(json.getJSONMap());
  });

  test('Intraday', () async {
    final technicalIndicator = new TechnicalIndicators("YourAlphaVantageAPIKey");
    JSONObject json = await technicalIndicator.getSMA("MSFT");

    // Use get method to search entire json for key for stock
    expect(json.get("1: Symbol"), "MSFT");

    // Use map to find stock symbol
    expect(json.getJSONMap()["Meta Data"]["1: Symbol"], "MSFT");
    print(json.getJSONMap());
  });
}

[0.0.1]

  • Inital Release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_alpha_vantage_package: "^0.0.1"

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:flutter_alpha_vantage_package/flutter_alpha_vantage_package.dart';
  
Version Uploaded Documentation Archive
0.0.1 Jul 14, 2018 Go to the documentation of flutter_alpha_vantage_package 0.0.1 Download flutter_alpha_vantage_package 0.0.1 archive

Analysis

We analyzed this package on Jul 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3
  • Flutter: 0.5.4

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90 / 100
Overall score:
Weighted score of the above. [more]
47
Learn more about scoring.

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Suggestions

  • Homepage does not exists.

    We were unable to access https://github.com/jcmelend/flutter_alpha_vantage_api/tree/master at the time of the analysis.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 9 hints.

    Run flutter format to format lib/flutter_alpha_vantage_package.dart.

    Run flutter format to format lib/src/BaseAPI.dart.

    Similar analysis of the following files failed:

    • lib/src/CryptoCurrencies.dart (hint)
    • lib/src/ForeignExchange.dart (hint)
    • lib/src/JSONObject.dart (hint)
    • lib/src/SectorPerformances.dart (hint)
    • lib/src/TechnicalIndicators.dart (hint)
    • lib/src/TimeSeries.dart (hint)
    • lib/src/alpha_vantage_client.dart (hint)
  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use flutter_alpha_vantage_package.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <2.0.0
flutter 0.0.0
http ^0.11.3+16 0.11.3+16 0.11.3+17
test ^0.12.37 0.12.42 1.2.0
Transitive dependencies
analyzer 0.32.3
args 1.4.3
async 2.0.7
boolean_selector 1.0.4
charcode 1.1.2
collection 1.14.6 1.14.10
convert 2.0.1
crypto 2.0.6
csslib 0.14.4
front_end 0.1.3
glob 1.1.6
html 0.13.3+1
http_multi_server 2.0.5
http_parser 3.1.2
io 0.3.3
js 0.6.1
json_rpc_2 2.0.8
kernel 0.3.3
logging 0.11.3+1
matcher 0.12.3
meta 1.1.5
mime 0.9.6+1
multi_server_socket 1.0.1
node_preamble 1.4.3
package_config 1.0.3
package_resolver 1.0.3
path 1.6.0 1.6.1
plugin 0.2.0+2
pool 1.3.5
pub_semver 1.4.1
shelf 0.7.3+1 0.7.3+2
shelf_packages_handler 1.0.3
shelf_static 0.2.7+1 0.2.8
shelf_web_socket 0.2.2+2
sky_engine 0.0.99
source_map_stack_trace 1.1.4
source_maps 0.10.6
source_span 1.4.0
stack_trace 1.9.2
stream_channel 1.6.7+1
string_scanner 1.0.2
term_glyph 1.0.0
typed_data 1.1.5
utf 0.9.0+4
vector_math 2.0.6 2.0.7
vm_service_client 0.2.5
watcher 0.9.7+8 0.9.7+9
web_socket_channel 1.0.8
yaml 2.1.14
Dev dependencies
flutter_test