GetExchange

Modified on 2018/03/31 06:53 by Eugene — Categorized as: Community Components

Syntax

public static string GetExchange(this string symbol)

public string GetExchange( string symbol )


Parameter Description

symbol The symbol (ticker) you want to determine exchange where it's traded at

Description

In some cases you would like to find out the exchange (e.g. NYSE, NASDAQ, CBOE, XETRA...) where a given symbol is traded at. Returns the exchange where the given symbol is traded at, according to Yahoo! Finance

Example

Example using C# extension methods:

using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators;

namespace WealthLab.Strategies { public class ExchangeDemo : WealthScript { protected override void Execute() { PrintDebug( Bars.Symbol.GetExchange() ); } } }