New Data Feeds #1

Tuesday, October 3rd, 2006 at 11:31 AM by: Lawrence Linden

We 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:

These feeds include timestamps for each value. 

Additionally, there is now a LindeX data feed available at:

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…

15 Responses to “New Data Feeds #1”

  1. 1 Corona Lime Says:

    ANy chance of getting the Lindex feed in standard XML?

    Great work BTW

  2. 2 Alpha Zaius Says:

    my goodness, thanks so much for these. Although, I did just finish a lindex parser yesterday >(

    But good job :D

  3. 3 Alpha Zaius Says:

    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.

  4. 4 Iron Perth Says:

    Awesome. :)

  5. 5 Metaverse Territories Says:

    [...] 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) [...]

  6. 6 Corona Lime Says:

    I agree with alfa zaius on the grid status. :D

  7. 7 Damek Tretiak’s Virtual Searches » slxmlhttp.rb - Ruby API for the Second Life Web Services Says:

    [...] 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. [...]

  8. 8 odysseus654 Says:

    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…

  9. 9 Sue Baskerville Says:

    Eventful.com has some form of access to event data. Is this access limited to eventful.com?

  10. 10 Cenji Neutra Says:

    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.

  11. 11 Natsakis Konstantinos Says:

    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

  12. 12 Shirley Marquez Says:

    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.

  13. 13 Sue Baskerville (SuezanneCB) Says:

    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.

  14. 14 John Says:

    gn7gEq 3v3445vtt075nvn0g8d0nb

  15. 15 Turby Says:

    how can i use that news feeds on my site? Some help?