OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 import "dart:math"; | 5 import "dart:math"; |
6 | 6 |
7 // Snapshot from http://www.nasdaq.com/screening/company-list.aspx | 7 // Snapshot from http://www.nasdaq.com/screening/company-list.aspx |
8 // Fetched 2/23/2014. | 8 // Fetched 2/23/2014. |
9 // "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary
Quote", | 9 // "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary
Quote", |
10 final List<List<String>> _kCompanyList = [ | 10 final List<List<String>> _kCompanyList = [ |
(...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3009 Stock lookupBySymbol(String symbol) { | 3009 Stock lookupBySymbol(String symbol) { |
3010 this.stocks.forEach((stock) { | 3010 this.stocks.forEach((stock) { |
3011 if (stock.symbol == symbol) | 3011 if (stock.symbol == symbol) |
3012 return stock; | 3012 return stock; |
3013 }); | 3013 }); |
3014 return null; | 3014 return null; |
3015 } | 3015 } |
3016 } | 3016 } |
3017 | 3017 |
3018 final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList); | 3018 final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList); |
OLD | NEW |