javascript - Stocktwits Symbols filter flag throwing errors -
i'm trying integrate stocktwits symbols multicall api website. using ajax jsonp, can indeed working , throw flags such limit, whenever try use filter flag receive 500 error. strange can use said filter on single symbol call api , works fine. point me in right direction?
like said before, can symbols multicall work, it's not authentication, it's filter flag. below working examples followed code not working. running on localhost
single call works:
stocktwitsjsons = $.ajax({ url: "https://api.stocktwits.com/api/2/streams/symbol/aapl.json?callback=?", datatype: 'json', data:{ limit:8, filter: 'top' }, success: function(data) { if (data) { callback(data, tickerlist, assetids); }} });
multi-call works:
stocktwitsjsons = $.ajax({ url: "https://api.stocktwits.com/api/2/streams/symbols.json?callback=?", datatype: 'json', data:{ access_token: token, symbols: symbols, limit:8 }, success: function(data) { if (data) { console.log(data); callback(data, tickerlist, assetids); }} });
multi call not work:
stocktwitsjsons = $.ajax({ url: "https://api.stocktwits.com/api/2/streams/symbols.json?callback=?", datatype: 'json', data:{ access_token: token, symbols: symbols, limit:8, filter:'top' }, success: function(data) { if (data) { console.log(data); callback(data, tickerlist, assetids); }} });
we correct documentation error. not allow filtering on multisymbol endpoint. on roadmap add. sorry why not working you.
Comments
Post a Comment