StockTwits API

Modified on 2017/12/04 10:08 by Eugene — Categorized as: Community Components


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


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.


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using Community.Components; /*** Requires installation of Community.Components Extension from > 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 ); } } }