The guys at Quiet Speculation mentioned a self-updating stock ticker for Magic card prices as another cool feature they would like to see. In the spirit of BLP's stock-like price graphs, I thought the feature was a great fit.
http://blacklotusproject.com/json/ and returns today's top cards, their prices, and their changes from the previous day.
The interface supports JSONP through the
jsonp attribute. A request to
http://blacklotusproject.com/json/?jsonp=callback would return the data wrapped in a call to
The ticker can be embedded in any web page using this code. It supports a few basic options right now.
- The number of pixels the content is scrolled at each interval. Default is
- The time in milliseconds between each interval. Default is
- Whether to hide the three-letter expansion code after the name of each card. Default is
Tickers only have a single function:
draw. It takes the ID of the element that the ticker should use.