Getting asks-bids using the logtool analyzer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Getting asks-bids using the logtool analyzer

Porag
Hello everyone

I am trying to get all the bids and asks in an orderbook from the state log file. What I have seen, in the state log file, all those information are written in this way:  

34203:org.powertac.common.Orderbook::6658::new::365::22.055436647562928::2009-10-25T01:00:00.000Z
34203:org.powertac.common.OrderbookOrder::6659::new::6.171591523623604::-29.709230244811923
34203:org.powertac.common.Orderbook::6658::addBid::6659
34203:org.powertac.common.OrderbookOrder::6660::new::10795.050816323173::-0.046317521659458155
34203:org.powertac.common.Orderbook::6658::addBid::6660
34203:org.powertac.common.OrderbookOrder::6661::new::-6.783750783826345::31.56235644147169
34203:org.powertac.common.Orderbook::6658::addAsk::6661
34203:org.powertac.common.OrderbookOrder::6662::new::-5.903651781917711::43.56966833281585
34203:org.powertac.common.Orderbook::6658::addAsk::6662
34203:org.powertac.common.OrderbookOrder::6663::new::-5.2850222622187255::55.626112304649546
34203:org.powertac.common.Orderbook::6658::addAsk::6663
34203:org.powertac.common.OrderbookOrder::6664::new::-4.828721492602982::67.64225509763901
34203:org.powertac.common.Orderbook::6658::addAsk::6664

When I get an orderbook object in the logtool, I can get orderbook.getClearingPrice();

But I am unable to get the uncleared asks and bids for the orderbook i.e. orderbook.getBids() orderbook.getAsks() these thing returns null. Is there any way I can get those bids and asks for a corresponding orderbook?

Eagerly waiting for your reply
Thanks in advance
Porag Chowdhury
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Getting asks-bids using the logtool analyzer

grampajohn
Administrator
Porag wrote
Hello everyone

I am trying to get all the bids and asks in an orderbook from the state log file. ...

When I get an orderbook object in the logtool, I can get orderbook.getClearingPrice();

But I am unable to get the uncleared asks and bids for the orderbook i.e. orderbook.getBids() orderbook.getAsks() these thing returns null. Is there any way I can get those bids and asks for a corresponding orderbook?
This is probably because of Issue #646. I haven't looked at it recently, but it probably would not be too hard to fix. Unless someone else wants to tackle it, I might have time to look at it toward the end of next week.

Cheers -

John
Loading...