Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers Pending Deletion PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos Visualizers
RSS

Navigation


Quick Search
»
Advanced Search »


StockTwits API

RSS

Syntax


public static List<string> StockTwitsClient.GetStockTwits(string symbol)
public static List<Tuple<DateTime, string>> GetStockTwitsWithDate(string symbol)

Parameter Description

symbolA valid ticker accepted by StockTwits

Description

Downloads, parses and returns a collection of 30 latest twits for a tradable symbol as a List. The service is powered by StockTwits. The symbol must be valid and accepted by StockTwits.

The AlchemyAPI client in Community Components is the natural companion to this service, providing sentiment analysis of stock twits.

Example


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { List<string> lst = StockTwitsClient.GetStockTwits( Bars.Symbol ); foreach( string s in lst ) PrintDebug( s );

List<Tuple<DateTime, string>> lst2 = StockTwitsClient.GetStockTwitsWithDate( Bars.Symbol ); foreach( var t in lst2 ) PrintDebug( t ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki. Some of the icons created by FamFamFam.