Set properties to retrieve Stock tickers.
dbQP Abbr: st
Version: EP, Gold
Namespace:
TornadoVersion: EP, Gold
Assembly: Tornado (in Tornado.dll) Version: 12.6.0.9 (1.0.0.0)
Syntax
| C# |
|---|
public string dbStockTicker { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property dbStockTicker As String |
Field Value
Obj.dbStockTicker = Symbol | TagIndex | Format | Caption"| Keyword | Description |
|---|---|
| Symbol | Stock Symbols delimitedr by '+' e.g. GM+AAPL+CSCO or AAPL+QAAJN.X (QAAJO.X is the AAPL Oct06 75 Call Option). Get the Option symbols from the Yahoo Options Quote Page. |
| Format | Return format of stock tickers.
0=Default csv string delimited by /r/n. 1=csv string delimited by <br> 99=Use template defined by dbStockTickerTemplate to format the returned csv string. All the EOL markers and double quote wrappers will be ignored and ticker values will replace the macros [[S]] in a row manner. |
| Caption | User defined header text of ticker table delimited by ',' - SYM,LAST,CHANGE,VOL. This text will be inserted at the beginning of the returned csv text. |
| TagIndex | Index number delimited by ',' to specify the ticker fields to retrieve. See the TagIndex list below. Default value is - 68,42,16,70 which is (Symbol)(Last Trade)(Change)(Volume) |
TagIndex and Ticker Description
- 1 yr Target Price
- 200-day Moving Average
- 50-day Moving Average
- 52-week High
- 52-week Low
- 52-week Range
- After Hours Change (Real-time)
- Ask
- Ask (Real-time)
- Ask Size
- Average Daily Volume
- Bid
- Bid (Real-time)
- Bid Size
- Book Value
- Change
- Change & Percent Change
- Change (Real-time)
- Change From 200-day Moving Average
- Change From 50-day Moving Average
- Change From 52-week High
- Change From 52-week Low
- Change in Percent
- Change Percent (Real-time)
- Day High
- Day Low
- Day Range
- Day Range (Real-time)
- Day Value Change
- Day Value Change (Real-time)
- Dividend Pay Date
- Dividend Yield
- Dividend/Share
- Earnings/Share
- EBITDA
- EPS Estimate Current Year
- EPS Estimate Next Quarter
- EPS Estimate Next Year
- Error Indication (returned for symbol changed / invalid)
- Ex-Dividend Date
- High Limit
- Last Trade (Price Only)
- Last Trade (Real-time) With Time
- Last Trade (With Time)
- Last Trade Date
- Last Trade Size
- Last Trade Time
- Low Limit
- Market Cap (Real-time)
- Market Capitalization
- Name
- Open
- Order Book (Real-time)
- P/E Ratio
- P/E Ratio (Real-time)
- PEG Ratio
- Percebt Change From 52-week High
- Percent Change From 200-day Moving Average
- Percent Change From 50-day Moving Average
- Percent Change From 52-week Low
- Previous Close
- Price/Book
- Price/EPS Estimate Current Year
- Price/EPS Estimate Next Year
- Price/Sales
- Short Ratio
- Stock Exchange
- Symbol
- Ticker Trend
- Volume
Remarks
Both Stock and Option are supported. Get Option symbols (ends with .X) from YAHOO stock option pages.
Examples
This example displays all the tickers.
CopyVB.NET
CopyVB.NET
This example shows how to embed the function in your web page.
CopyVB.NET
Obj.dbStockTicker = Symbol=GM+AAPL+CSCO | Tag = 68,42,16,70| format=1 |cap=SYM,LAST,CHANGE,VOL"
Dim Rm As New Tornado.z Rm.dbUnit = 8 Rm.dbStockTicker = "Symbol=GM | format=1 |Tag=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70" Response.Write(Rm.ASPdbGetStockTicker())
<script language="vb" runat="server"> Public Price, Vol as string Sub Page_Load(Source as Object, E as EventArgs) Dim Rm As New Tornado.z Rm.dbQP = "U=8| Nh=t" Rm.dbStockTicker = "Symbol=GM | Tag=42,70| cap=none| Format=99" Rm.dbStockTickerTemplate = "[[S:##0.000]] [[S]]" '...you can format here - space is the delimiter Dim ret2() As String = Split(Rm.ASPdbGetStockTicker()) price = ret2(0) If IsNumeric(ret2(1)) Then Vol = Format(CInt(ret2(1)), "###,###") '...or format here YAHOO returns N/A or 0.00 Else Vol = ret2(1) End if End Sub </script> <html> <body> My Web Page ubder My control with My CSS and My settings<P> GM Stock Price = <%= Price %> <br> GM Stock Volume = <%= Vol %> </body> </html>