Log in to see Cloud of Tags

Wealth-Lab Wiki

StockTwits API

RSS

Warning: a Cloudflare captcha may prevent from accessing the StockTwits API (depends on country).



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.

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.


ScrewTurn Wiki. Some of the icons created by FamFamFam.