MarketData for MCX commodity

supu1403
How do i get the market data for GOLD, SILVER etc MCX commodity using api?
  • supu1403
    sujith @Kailash @Vivek @rakeshr Can you guys please inform this ?
    Because on using the websocket & subscribing to GOLD instrument the data is very less compared to shares.
    Can you send the response structure for commodity market & why is it dofferent ?
  • sujith
    Can you share the instrument token with which you are trying? There are three modes supported by Kite Ticker. You can check out the documentation to know more.
  • supu1403
    subscribe =
    Jason.encode!(%{
    "a" => "mode",
    "v" => ["full", [273417, 884737]]
    })
  • supu1403
    @sujith I tried above subscription and for 884737(TATAMOTORS) I receive expected response of 184 packet size.
    but for 273417(GOLD) i get 32 packet size
  • sujith
    You can go through documentation as mentioned above to know more about the Websocket API.
  • supu1403
    @sujith I have checked the documentation .It doesnt say anything about 32byte packet size..
    I have completely followed the documentation so confused why the packets differ for different instruments
  • sujith
    32 byte packet is for index instruments. You might be using a wrong instrument token. You can fetch instruments master file and check the correct instrument token.
Sign In or Register to comment.