Post
Topic
Board Project Development
Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux]
by
mojBitcoin.si
on 04/09/2014, 11:13:55 UTC
Hi IGHOR!
Again: Thank you for all your efforts.

I'm trying to get values for AsksPrice and AsksVolume, but they return 0. It is the same for the BidsPrice and BidsVolume.

Code:
function checkOrderbook() {

var lastPrice = trader.get("LastPrice");
var asksPrice = trader.get("AsksPrice",500);
var asksVolume = trader.get("AsksVolume", 500); // at lastPrice 476

trader.log("lastPrice: ", lastPrice); // returns 476
trader.log("asksPrice: ", asksPrice); // returns 0
trader.log("asksVolume: ", asksVolume); // returns 0

}

My orderbook is set to 1000 rows so the requested orders are visible.

some thoughts, nice to have:
- trader.get("10MinBuyDivSell") changed to trader.get("BuyToSell", minutes) so we can define timeframe we are interested in. Same for 10MinVolume.
- trader.get("NoOfTrades", minutes) - number of transactions in last x minutes.
- a way to access LastTrades: trader.get("LastTrades", minutes) - to retrieve all trades in last X minutes.
- a way to access orderbook: trader.get("Orderbook", fromPrice, toPrice) - to retrieve all orders from orderbook between specified price range.
- buy and sell commands should return ID, so we can later check / cancel specific order


That's all for now i think, i'll play around some more.

thnx,
Tomi


Thanks for suggestions and bug report.
Check private build with fixes: https://dl.dropboxusercontent.com/u/860231/QtBitcoinTrader.exe

Thnx for quick reply. Unfortunately I'm on mac. I can wait, no problem. If you need quick feedback, I can setup pc and try.

Tomi