Log in to see Cloud of Tags

Wealth-Lab Wiki

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() ); } } }

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.