It looks like you're new here. If you want to get involved, click one of these buttons!
If we use getQuote function; and refer the buy/sell value under the depth value.
You will only get bid and ask price on market depth in live market Websocket API.
Is this the alternative Bid & Ask value? If yes then how can we use these value as bid & ask.
Please confirm.
[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
)
)
)