New Data Feeds #1
Tuesday, October 3rd, 2006 at 11:31 AM by: Lawrence LindenWe just added some new data feeds to the website that are accessible by in-world objects.
Some of you may be aware of the existing homepage stats feed
http://secondlife.com/xmlhttp/secondlife.php
It returns:
- signups (in # of accounts): number of Resident accounts that are open and in good standing; updated daily
- logged_in_last_60 (in # of accounts): number of Resident accounts that have logged in in the past 60 days; updated daily
- transactions (in US$): amount of resident-to-resident L$ transactions for past 24 hours divided by the average LindeX exchange rate for past 24 hours; updated every 30 minutes
- inworld (in # of accounts): number of Resident accounts currently logged in; updated every 3 minutes
There are now two other ways to get that data:
- http://secondlife.com/xmlhttp/homepage.php in LLSD formatted XML
- http://secondlife.com/httprequest/homepage.php in newline separated key-value pairs; this can be read via llHTTPRequest()
These feeds include timestamps for each value.
Additionally, there is now a LindeX data feed available at:
- http://secondlife.com/xmlhttp/lindex.php in LLSD formatted XML
- http://secondlife.com/httprequest/lindex.php in newline separated key-value pairs; this can be read via llHTTPRequest()
The LindeX feeds are updated every 15 minutes and include one set of timestamps.
They contain five major groupings of information:
limit_buy and limit_sell
These two groups contain data about a subset of the limit orders on the market. They show the L$ quantity wanted/available and the exchange rate range of best ten percent of limit orders.
Notably absent is any information about fills on limit buy or limit sell orders. That is because that information can be derived from the data contained in the other three groups. Please see below.
limit_buy_to_limit_sell, market_buy, and market_sell
These three groups contain cummulative data for given intervals. The current list of intervals is:
- 1_hour – the past 60 minutes
- 1_day – the past 24 hours
- today – everything since the previous midnight SLT
Within these intervals is the following data:
- min_rate – numerically smallest rate of exchange
- max_rate – numerically largest rate of exchange
- l$_volume – number of L$ exchanged
- us$_volume – number of US$ exchanged (before fees)
From these groupings of data you can calculate the following groupings by summing the volume data for both L$ and US$, and finding the smallest min_rate and largest max_rate:
- total - use limit_buy_to_limit_sell, market_buy, and market_sell
- limit_buy – use limit_buy_to_limit_sell and market_sell
- limit_sell – use limit_buy_to_limit_sell and market_buy
Average exchange rates can be calculated by dividing l$_volume by us$_volume.
For example, to calculate today’s average exchange rate you can use this formula:
(limit_buy_to_limit_sell:today:l$_volume + market_buy:today:l$_volume + market_sell:today:l$_volume) / (limit_buy_to_limit_sell:today:us$_volume + market_buy:today:us$_volume + market_sell:today:us$_volume)
Running out of room in this blog post, script examples to follow…


October 3rd, 2006 at 12:21 PM
ANy chance of getting the Lindex feed in standard XML?
Great work BTW
October 3rd, 2006 at 1:42 PM
my goodness, thanks so much for these. Although, I did just finish a lindex parser yesterday >(
But good job
October 3rd, 2006 at 1:57 PM
Sorry for the double post, but is it possible to also add onto the homepage feed (or make a new one ;p) grid_status (with 1 or 0) – this can be helpful for my online shopping network Im working on so I can disable the websites marketplace in case of downtime.
October 3rd, 2006 at 3:11 PM
Awesome.
October 4th, 2006 at 9:24 AM
[...] New Data Feeds Official Linden Blog » data feeds to the website that are accessible by in-world objects. (tags: secondlife rss feeds data datacloud inworld) [...]
October 4th, 2006 at 12:19 PM
I agree with alfa zaius on the grid status.
October 6th, 2006 at 8:35 AM
[...] I saw this blog entry the other day on the Second Life Blog concerning homepage and Lindex stats, so I went about creating a small Ruby API for retrieving that data. I’ll probably be adding these stats to the SLQuery.com site at some point. [...]
October 8th, 2006 at 8:07 PM
Is there any way that event XML could be made available in-world? Right now I have a process regularly scraping the website for info, but it could be a lot easier if an xml entrypoint were provided. Mature event scanning from the website is especially cumbersome…
October 26th, 2006 at 5:55 AM
Eventful.com has some form of access to event data. Is this access limited to eventful.com?
November 18th, 2006 at 10:52 PM
Any chance we could have a grid status feed too?
Like logins on/off, grid up/down/lindens-only, that sort of thing?
Right now I’l detecting status by a bunch of devices spread around the grid I regularly XMLRPC into. If some number (above a threashold) are not contactable, I assume the grid is down and suspend comms that changes state in all in-world objects. However, I find that can’t detect when the grid is up but closed. Sometimes sims get rolled back when you’re deploying updates in that situation and I can loose object state I’ve just updated remotely (e.g. in vendors and that sort of thing).
I’m planning to start parsing the status HTML page, but a definitive feed would be nice.
Thanks.
January 18th, 2007 at 12:59 PM
Hi all,
I have written a bunch of perl scripts that scrap off data from the LindeX data feed, using XML::XPath, and storing everything in a Round Robin Database (using rrdtool).
I thought they may be of interested to some of the residents.
Perl scripts:
http://aleph-0.net/wordpress/?page_id=11
Generated graphs:
http://aleph-0.net/wordpress/?page_id=12
April 20th, 2007 at 8:24 AM
I thought the single biggest piece of news in these statistics is the increasing internationalization of Second Life.
In March, US residents were under 27% of the active residents. Germany is a big growth area with 13.5%. Asia still remains weak, with no country there cracking the top 10; lots of potential for future expansion there. SL is popular in Brazil, but not in the rest of Latin America. Africa remains an invisible continent in-world.
July 23rd, 2007 at 7:03 PM
If you click on Jerry, the author of comment 13, you go to a Penis Enlargement web site. I think that comment might be a bit of spam that should be deleted.
That, however, is not why I came to this thread, I asked earlier if eventful.com has some kind of exclusive arrangement with LL regarding access to the event data. This shouldn’t be a difficult question to answer, should it?
Eventful.com takes the information about Second Life events and stuffs it into a form designed for real world events. It doesn’t quite work right. The result is greatly less than optimal for event holders, prospective attendees, and for that matter, eventful.com itself, which loses return traffic owing to the poor fit between it’s interface and data it is displaying.
November 21st, 2007 at 3:56 PM
gn7gEq 3v3445vtt075nvn0g8d0nb
March 5th, 2008 at 3:43 AM
how can i use that news feeds on my site? Some help?