'book' API not limiting entries or type

47 views
Skip to first unread message

JeffM

unread,
Jan 4, 2009, 7:09:58 PM1/4/09
to iPredict Developers
https://www.ipredict.co.nz/api.php?action=book&stock=GM.BAILOUT&entries=5&type=buy

When I try limit the xml result to "buy only" with the above command I
get both buy and sell results, yet now the "sell" results do not
include the type.

ie
<entry>
<type>sell</type>
<quantity>15</quantity>
<price>0.9907</price>
</entry>

changes to
<entry>
<quantity>15</quantity>
<price>0.9907</price>
</entry>


Also the above command returns all results and does not limit the
entries to the top 5 this happens whether or not the type has been
specified .

Do others have this issue or am I doing something wrong?

Richard Clark

unread,
Jan 7, 2009, 5:41:55 PM1/7/09
to iPredict Developers
I see the same result as you from clicking on that link, interestingly
if you limit to "sell", the problem doesn't occur.

On Jan 5, 1:09 pm, JeffM <jeffkmor...@gmail.com> wrote:
> https://www.ipredict.co.nz/api.php?action=book&stock=GM.BAILOUT&entri...

Method

unread,
Feb 2, 2009, 5:48:22 PM2/2/09
to iPredict Developers
I just got back from vacation, so I have just looked into this.

I have fixed this on our development environment, and will get rolled
out asap.

Cheers for the heads up!

Richard Clark

unread,
Feb 2, 2009, 11:20:55 PM2/2/09
to iPredict Developers
Will this update also fix the XML format issues discussed earlier?

Method

unread,
Feb 3, 2009, 12:37:14 AM2/3/09
to ipredict-...@googlegroups.com
Yes! I'm sorry I have not been around to keep everyone up2date

The mentioned changes, and the schema changes should go live at some point tomorrow (wed feb 4)

The next batch of features for the API are in planning ATM, so input now will be more advantageous then later :)

Although we have recently launched some forums for the live site, I'm going to make a sticky post in the general forum referring any API discussions to make its way over here..

If any of you have some example codes or anything using the API, I would recommend making a new thread, and mentioning them. If we like, we could potentially give some exposure in the weekly emails for any good stuff.

I don't personally have any code examples that use the API, but I think in the near future here, I may do a post or two on how to get it all nicely working in flash, since I reckon you folks may do a fine job for other languages :)

Method
Reply all
Reply to author
Forward
0 new messages