Solved

live tickers of main commodities prices/quotes?

Posted on 2014-03-01
3
1,451 Views
Last Modified: 2014-03-06
Where can I find some live ticker of the prices/quotes of following commodities?

1) Energy: petrol, ethanol, natural gas, naphtha, petroleum.
2) Diamonds: (nothing)
3) Metals: aluminium, silver, nickel, gold, palladium, platinum, copper, zinc.
4) Agriculture: subdivided in wheat, corn, soybean oil, cocoa, coffee, tobacco, sugar.

I'm searching for a script for live sliding texts/numbers to put in my own website...
0
Comment
Question by:lucavilla
  • 2
3 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39897102
Is your question about where to find data or how to display it in a ticker form?  One thing to be aware of is there will be restrictions on how you can use 3rd party data.  For instance yahoo http://developer.yahoo.com/finance/company.html has an api but it is only for non commercial.

Diamond prices are online here http://www.idexonline.com/Diamond_Index_Drivers.asp but copy protected.
0
 

Author Comment

by:lucavilla
ID: 39898387
Scott thanks for the interesting info about licenses.

I'm mostly interested in "where to find data"...
and if possible, where to find a licensed script to put in my non-commercial page...
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39898470
You will need to piece together the data you want from different end points and perhaps api's.  The 2nd part is going to place this into a ticker.  I think you need to break out this question onto those 2 parts.

For the first part you can use yahoo finance as I pointed out already.  If you use the console you can search for what you need http://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys for instance

Metals http://finance.yahoo.com/futures?t=metals will be
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20uob.preciousmetals%20where%20metal%20in%20(%27PAMP%20GOLD%20BARS%27%2C%27UBS%20GOLD%20KINEBARS%27)&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=

You can also use http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22CH14.CBT,HGH14.CMX%22)&env=store://datatables.org/alltableswithkeys

Add to this portion 22CH14.CBT,HGH14.CMX by looking up symbols
http://finance.yahoo.com/futures?t=energy
http://finance.yahoo.com/futures?t=metals
http://finance.yahoo.com/futures?t=grains
http://finance.yahoo.com/futures?t=softs
Example, by looking up the softs tab, coffee is KCH14.NYB

To speed things up, I would suggest grabbing the data you need, saving to a text file on your server.  Perhaps create a cron job/scheduled event to run every 15 minutes that will update the data.

For the 2nd part, there are a lot of tickers to choose from. It is just a matter of feeding it the data you put together.

http://aamirafridi.com/jquery/jquery-marquee-plugin
http://www.aakashweb.com/demos/jquery-easy-ticker/
http://jonmifsud.com/open-source/jquery/jquery-webticker/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now