How to get the Ask & Bid Price

sachinstlko09
Hi,
I have subscribed historical data api for Kite.
How to get ask & bid price? Please suggest.
  • sujith
    We only provide candle data on historical data.
    You will only get bid and ask price on market depth in live market Websocket API.
  • sachinstlko09
    If we use getQuote function; and refer the buy/sell value under the depth value.
    Is this the alternative Bid & Ask value? If yes then how can we use these value as bid & ask.

    Please confirm.
  • rakeshr
    If we use getQuote function; and refer the buy/sell value under the depth value.
    Yes, that's the same as websocket stream market depth.
  • sachinstlko09
    @rakeshr What will be the value of ask & bid price from depth value of buy & sell.

    [depth] => stdClass Object
    (
    [buy] => Array
    (
    [0] => stdClass Object
    (
    [price] => 575.8
    [quantity] => 1061
    [orders] => 4
    )

    [1] => stdClass Object
    (
    [price] => 575.75
    [quantity] => 2085
    [orders] => 10
    )

    [2] => stdClass Object
    (
    [price] => 575.7
    [quantity] => 2938
    [orders] => 16
    )

    [3] => stdClass Object
    (
    [price] => 575.65
    [quantity] => 4128
    [orders] => 16
    )

    [4] => stdClass Object
    (
    [price] => 575.6
    [quantity] => 2246
    [orders] => 8
    )

    )

    [sell] => Array
    (
    [0] => stdClass Object
    (
    [price] => 576
    [quantity] => 1234
    [orders] => 6
    )

    [1] => stdClass Object
    (
    [price] => 576.05
    [quantity] => 232
    [orders] => 7
    )

    [2] => stdClass Object
    (
    [price] => 576.1
    [quantity] => 5105
    [orders] => 9
    )

    [3] => stdClass Object
    (
    [price] => 576.15
    [quantity] => 449
    [orders] => 6
    )

    [4] => stdClass Object
    (
    [price] => 576.2
    [quantity] => 6773
    [orders] => 24
    )

    )

    )
  • sachinstlko09
    @rakeshr @sujith waiting for your response.
  • sujith
    Kite Connect is purely an execution platform. We don't provide coding support.
Sign In or Register to comment.