{"action":"created","issue":{"url":"https://api.github.com/repos/pilwon/node-yahoo-finance/issues/18","labels_url":"https://api.github.com/repos/pilwon/node-yahoo-finance/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/pilwon/node-yahoo-finance/issues/18/comments","events_url":"https://api.github.com/repos/pilwon/node-yahoo-finance/issues/18/events","html_url":"https://github.com/pilwon/node-yahoo-finance/issues/18","id":116610755,"number":18,"title":"j2 - not available","user":{"login":"brianrising","id":9672006,"avatar_url":"https://avatars.githubusercontent.com/u/9672006?v=3","gravatar_id":"","url":"https://api.github.com/users/brianrising","html_url":"https://github.com/brianrising","followers_url":"https://api.github.com/users/brianrising/followers","following_url":"https://api.github.com/users/brianrising/following{/other_user}","gists_url":"https://api.github.com/users/brianrising/gists{/gist_id}","starred_url":"https://api.github.com/users/brianrising/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianrising/subscriptions","organizations_url":"https://api.github.com/users/brianrising/orgs","repos_url":"https://api.github.com/users/brianrising/repos","events_url":"https://api.github.com/users/brianrising/events{/privacy}","received_events_url":"https://api.github.com/users/brianrising/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T18:28:31Z","updated_at":"2015-11-13T11:20:15Z","closed_at":null,"body":"Using the snapshot sample, when I enter j2 (shares outstanding) as a field \"N/A\" is returned. When I download the csv independently it's there. Tried to find a solution but a bit new to node/javascript and finding debugging difficult. Any help would be appreciated.\r\n\r\nBrian\r\n\r\nHere's the call.\r\n\r\nvar yahooFinance = require('yahoo-finance');\r\nvar SYMBOL = 'SWKS';\r\nvar util = require('util');\r\n\r\n yahooFinance.snapshot({\r\n    symbol: SYMBOL,\r\n    fields: ['s', 'x', 'n', 'j1', 'j2']\r\n\r\n}, function (err, snapshot) {\r\n    //...\r\n    if (err) { throw err; }\r\n    console.log(util.format('=== %s ===', SYMBOL).cyan);\r\n    console.log(JSON.stringify(snapshot, null, 2));\r\n\r\n});\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pilwon/node-yahoo-finance/issues/comments/156401643","html_url":"https://github.com/pilwon/node-yahoo-finance/issues/18#issuecomment-156401643","issue_url":"https://api.github.com/repos/pilwon/node-yahoo-finance/issues/18","id":156401643,"user":{"login":"brianrising","id":9672006,"avatar_url":"https://avatars.githubusercontent.com/u/9672006?v=3","gravatar_id":"","url":"https://api.github.com/users/brianrising","html_url":"https://github.com/brianrising","followers_url":"https://api.github.com/users/brianrising/followers","following_url":"https://api.github.com/users/brianrising/following{/other_user}","gists_url":"https://api.github.com/users/brianrising/gists{/gist_id}","starred_url":"https://api.github.com/users/brianrising/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianrising/subscriptions","organizations_url":"https://api.github.com/users/brianrising/orgs","repos_url":"https://api.github.com/users/brianrising/repos","events_url":"https://api.github.com/users/brianrising/events{/privacy}","received_events_url":"https://api.github.com/users/brianrising/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T11:20:15Z","updated_at":"2015-11-13T11:20:15Z","body":"Hi,\r\n\r\nI found 'j2' appearing sanitizeSnapshotOptions (index.js) and removed it.\r\n\r\n // Avoid CSV column result mis-alignment (000,000,000).\r\n  options.fields = _.without(options.fields, 't6', 'f6', 'a5', 'b6', 'k3', 's6');\r\n\r\na few tests with companies that have comma's in the name (can cause misalignment in the CSV) and it's behaving itself.\r\n\r\n{\r\n  \"symbol\": \"SAN\",\r\n  \"sharesOutstanding\": \"15272727000\",\r\n  \"name\": \"Banco Santander, S.A. Sponsored\",\r\n  \"marketCapitalization\": \"81.56B\",\r\n  \"stockExchange\": \"NYQ\",\r\n  \"bid\": 5.39\r\n}\r\n\r\nSo far so good."}}