Created
May 29, 2014 19:55
-
-
Save sandalsoft/ad6325ec7612a37450d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Ticker = DS.Model.extend({ | |
| symbol: DS.attr('string'), | |
| options: DS.hasMany('option', {embedded: 'always'}), | |
| Ask: DS.attr('string'), | |
| AverageDailyVolume: DS.attr('string'), | |
| Bid: DS.attr('string'), | |
| AskRealtime: DS.attr('string'), | |
| BidRealtime: DS.attr('string'), | |
| BookValue: DS.attr('string'), | |
| Change_PercentChange: DS.attr('string'), | |
| Change: DS.attr('string'), | |
| Commission: DS.attr('string'), | |
| ChangeRealtime: DS.attr('string'), | |
| AfterHoursChangeRealtime: DS.attr('string'), | |
| DividendShare: DS.attr('string'), | |
| LastTradeDate: DS.attr('string'), | |
| TradeDate: DS.attr('string'), | |
| EarningsShare: DS.attr('string'), | |
| ErrorIndicationreturnedforsymbolchangedinvalid: DS.attr('string'), | |
| EPSEstimateCurrentYear: DS.attr('string'), | |
| EPSEstimateNextYear: DS.attr('string'), | |
| EPSEstimateNextQuarter: DS.attr('string'), | |
| DaysLow: DS.attr('string'), | |
| DaysHigh: DS.attr('string'), | |
| YearLow: DS.attr('string'), | |
| YearHigh: DS.attr('string'), | |
| HoldingsGainPercent: DS.attr('string'), | |
| AnnualizedGain: DS.attr('string'), | |
| HoldingsGain: DS.attr('string'), | |
| HoldingsGainPercentRealtime: DS.attr('string'), | |
| HoldingsGainRealtime: DS.attr('string'), | |
| MoreInfo: DS.attr('string'), | |
| OrderBookRealtime: DS.attr('string'), | |
| MarketCapitalization: DS.attr('string'), | |
| MarketCapRealtime: DS.attr('string'), | |
| EBITDA: DS.attr('string'), | |
| ChangeFromYearLow: DS.attr('string'), | |
| PercentChangeFromYearLow: DS.attr('string'), | |
| LastTradeRealtimeWithTime: DS.attr('string'), | |
| ChangePercentRealtime: DS.attr('string'), | |
| ChangeFromYearHigh: DS.attr('string'), | |
| PercebtChangeFromYearHigh: DS.attr('string'), | |
| LastTradeWithTime: DS.attr('string'), | |
| LastTradePriceOnly: DS.attr('string'), | |
| HighLimit: DS.attr('string'), | |
| LowLimit: DS.attr('string'), | |
| DaysRange: DS.attr('string'), | |
| DaysRangeRealtime: DS.attr('string'), | |
| FiftydayMovingAverage: DS.attr('string'), | |
| TwoHundreddayMovingAverage: DS.attr('string'), | |
| ChangeFromTwoHundreddayMovingAverage: DS.attr('string'), | |
| PercentChangeFromTwoHundreddayMovingAverage: DS.attr('string'), | |
| ChangeFromFiftydayMovingAverage: DS.attr('string'), | |
| PercentChangeFromFiftydayMovingAverage: DS.attr('string'), | |
| Name: DS.attr('string'), | |
| Notes: DS.attr('string'), | |
| Open: DS.attr('string'), | |
| PreviousClose: DS.attr('string'), | |
| PricePaid: DS.attr('string'), | |
| ChangeinPercent: DS.attr('string'), | |
| PriceSales: DS.attr('string'), | |
| PriceBook: DS.attr('string'), | |
| ExDividendDate: DS.attr('string'), | |
| PERatio: DS.attr('string'), | |
| DividendPayDate: DS.attr('string'), | |
| PERatioRealtime: DS.attr('string'), | |
| PEGRatio: DS.attr('string'), | |
| PriceEPSEstimateCurrentYear: DS.attr('string'), | |
| PriceEPSEstimateNextYear: DS.attr('string'), | |
| Symbol: DS.attr('string'), | |
| SharesOwned: DS.attr('string'), | |
| ShortRatio: DS.attr('string'), | |
| LastTradeTime: DS.attr('string'), | |
| TickerTrend: DS.attr('string'), | |
| OneyrTargetPrice: DS.attr('string'), | |
| Volume: DS.attr('string'), | |
| HoldingsValue: DS.attr('string'), | |
| HoldingsValueRealtime: DS.attr('string'), | |
| YearRange: DS.attr('string'), | |
| DaysValueChange: DS.attr('string'), | |
| DaysValueChangeRealtime: DS.attr('string'), | |
| StockExchange: DS.attr('string'), | |
| DividendYield: DS.attr('string'), | |
| PercentChange: DS.attr('string') | |
| }); | |
| Ticker.reopenClass({ | |
| FIXTURES: [{ | |
| "id": 0, | |
| "symbol": "AMZN", | |
| "Ask": "298.14", | |
| "AverageDailyVolume": "4719470", | |
| "Bid": "298.00", | |
| "AskRealtime": "298.14", | |
| "BidRealtime": "298.00", | |
| "BookValue": "22.452", | |
| "Change_PercentChange": "+2.51 - +0.85%", | |
| "Change": "+2.51", | |
| "Commission": null, | |
| "ChangeRealtime": "+2.51", | |
| "AfterHoursChangeRealtime": "N/A - N/A", | |
| "DividendShare": "0.00", | |
| "LastTradeDate": "5/16/2014", | |
| "TradeDate": null, | |
| "EarningsShare": "0.641", | |
| "ErrorIndicationreturnedforsymbolchangedinvalid": null, | |
| "EPSEstimateCurrentYear": "1.10", | |
| "EPSEstimateNextYear": "3.31", | |
| "EPSEstimateNextQuarter": "-0.05", | |
| "DaysLow": "291.55", | |
| "DaysHigh": "298.88", | |
| "YearLow": "258.34", | |
| "YearHigh": "408.06", | |
| "HoldingsGainPercent": "- - -", | |
| "AnnualizedGain": null, | |
| "HoldingsGain": null, | |
| "HoldingsGainPercentRealtime": "N/A - N/A", | |
| "HoldingsGainRealtime": null, | |
| "MoreInfo": "cnsprmiIed", | |
| "OrderBookRealtime": null, | |
| "MarketCapitalization": "137.0B", | |
| "MarketCapRealtime": null, | |
| "EBITDA": "3.790B", | |
| "ChangeFromYearLow": "+39.36", | |
| "PercentChangeFromYearLow": "+15.24%", | |
| "LastTradeRealtimeWithTime": "N/A - <b>297.70</b>", | |
| "ChangePercentRealtime": "N/A - +0.85%", | |
| "ChangeFromYearHigh": "-110.36", | |
| "PercebtChangeFromYearHigh": "-27.05%", | |
| "LastTradeWithTime": "May 16 - <b>297.70</b>", | |
| "LastTradePriceOnly": "297.70", | |
| "HighLimit": null, | |
| "LowLimit": null, | |
| "DaysRange": "291.55 - 298.88", | |
| "DaysRangeRealtime": "N/A - N/A", | |
| "FiftydayMovingAverage": "314.964", | |
| "TwoHundreddayMovingAverage": "359.382", | |
| "ChangeFromTwoHundreddayMovingAverage": "-61.682", | |
| "PercentChangeFromTwoHundreddayMovingAverage": "-17.16%", | |
| "ChangeFromFiftydayMovingAverage": "-17.264", | |
| "PercentChangeFromFiftydayMovingAverage": "-5.48%", | |
| "Name": "Amazon.com, Inc.", | |
| "Notes": null, | |
| "Open": "292.80", | |
| "PreviousClose": "295.19", | |
| "PricePaid": null, | |
| "ChangeinPercent": "+0.85%", | |
| "PriceSales": "1.74", | |
| "PriceBook": "13.15", | |
| "ExDividendDate": null, | |
| "PERatio": "460.51", | |
| "DividendPayDate": null, | |
| "PERatioRealtime": null, | |
| "PEGRatio": "5.81", | |
| "PriceEPSEstimateCurrentYear": "268.35", | |
| "PriceEPSEstimateNextYear": "89.18", | |
| "Symbol": "AMZN", | |
| "SharesOwned": null, | |
| "ShortRatio": "1.10", | |
| "LastTradeTime": "4:00pm", | |
| "TickerTrend": " +-==== ", | |
| "OneyrTargetPrice": "419.33", | |
| "Volume": "3637649", | |
| "HoldingsValue": null, | |
| "HoldingsValueRealtime": null, | |
| "YearRange": "258.34 - 408.06", | |
| "DaysValueChange": "- - +0.85%", | |
| "DaysValueChangeRealtime": "N/A - N/A", | |
| "StockExchange": "NasdaqNM", | |
| "DividendYield": null, | |
| "PercentChange": "+0.85%" | |
| }] | |
| }); | |
| export | |
| default Ticker; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment