Market Depth

Prem
Prem edited November 2016 in API clients
Hi @sujith, Hi @vivek , Hi @Kailash ,

I have some confusion and I want to discuss:

Suppose I have tope 5 Bid/Ask Price below-

Buy
Qty Price
100 10
200 9.50
100 9.00
250 8.50
150 8.00

Sell
Qty Price
50 10.50
50 11.00
100 11.50
250 12.00
150 12.50

As per above Bid/Ask, I want to buy 300 Hundred quantities then I have to go with price 12.00 because my 300 quantities not filled by the top 3 Offers. SO, how my order will be filled:

A) 50(10.50) + 50(11.00) + 100(11.50) + 100(12.00) = 300(3425) Average price(3425/300) is 11.42

Or

B ) 250(12) and 50 Quantity will be pending?

How my order gets filled? as per A) with average Price 11.42 or as per B ) with Price 12 and 50 Orders get Pending? Its in both term when I want to either buy or sell.

Kindly reply
This discussion has been closed.