ImageHow to configure the StockQuote ?

Note : This tip is only valid for StockQuotes for Mambo v4.5.0 !

Well, first of all you just need to install the module as any Mambo Module.

Then edit the freshly installed module and add some of the following Mammeters (module parameters) to tweak a bit the display of the module.

Mammeters :

Quotes=code1,code2 List of quote symbols you want to retrieve.
(Default : quotes=^DJI,^IXIC)
quotes=HPQ,DELL,IBM,SUNW
Names=name1,name2 List of associated names for quotes (pair).
(Default : names=Dow Jown,Nasdaq)
names=HPQ,DELL,IBM,SUN
Borders=yes|no Add a line between each quote.
(Default : borders=no)
borders=no
AltRow=color|no Specify the color of the alternate row "No" for no color.
(Default : altrow=no)
altrow=F5F5F5
ShowLink=yes|no Display the Info logo "i" to open the detailled page from Yahoo Finance (Graphic and more quote details).
(Default : showlink=yes)
showlink=yes
ShowSymbol=yes|no Display the Quote Symbol on the right of the Quote name.
(Default : showsymbol=yes)
showsymbol=no
ShowDetails=yes|no Display the details of the Quote (change, open, highest, lowest, volume).
(Default : showdetails=no)
showdetails=no
ShowChange=yes|no Display the price change since the opening (ex. +1.05).
(Default : showchange=yes)
showchange=yes
ShowTrend=yes|no Display the arrow to indicate the rate (up, same, down).
(Default showtrend=yes
showtrend=yes
ShowSearch=yes|no Display the Quote search box.
(Default : showsearch=yes)
showsearch=yes
SearchSize=yes|no Set the size of the input box of the search Quote.
(Default : searchsize=15)
searchsize=17
ShowYahoo=yes|no Display the info logo "i" to open the Finance.Yahoo.com website for more information.
(Default : showyahoo=yes)
showyahoo=yes
ShowDate=yes|no Display the date of current rate.
(Default showdate=yes)
showdate=no
ShowTime=yes|no Display the time of current rate
(Default showtime=yes)
showtime=yes

 

Mammeters Example:

quotes=HPQ,DELL,IBM,SUNW,AAPL,^DJI,^IXIC
names=HPQ,DELL,IBM,SUN,Apple,Dow Jown,Nasdaq
borders=no
altrow=F5F5F5
showlink=yes
showsymbol=yes
showdetails=no
showchange=yes
showtime=yes
showtrend=yes
showsearch=yes
searchsize=17
showyahoo=yes
showdate=no


finance.yahoo.com

WebSite :
URL : <http://finance.yahoo.com/>

Get info for the symbol "IBM" :
URL : <http://finance.yahoo.com/q?s=IBM>

CSV file for symbols "IBM,HPQ,DELL" :
URL : <http://finance.yahoo.com/d/quotes.csv?s=IBM,HPQ,DELL&f=sl1d1t1c1ohgv&e=.txt>

CSV : (Format - "f=sl1d1t1c1ohgv")
0: Symbol - sl1
1: Current rate - d1
2: Rate date - t1
3: Rate time - t1
4: Change from open rate - c1
5: Open rate - o
6: Highest rate - h
7: Lowest rate - g
8: Volume - v

Warning : the last entry (volume) is followed by CR+LF chars marking the end of CSV record... Do not forget to remove them when processig the record line or "volume" content will be erroneous...

CSV Result :
"IBM",87.13,"5/21/2004","4:01pm",-0.29,87.59,88.18,86.91,5130100
"HPQ",20.82,"5/21/2004","4:01pm",+0.09,20.89,20.99,20.58,8820100
"DELL",34.62,"5/21/2004","4:00pm",+0.43,34.35,34.64,34.21,13216830