Skip to content

Quotes

Quotes The Quotes API provided the quote details based on the exchangeSegment and exchangeInstrumentID provided along with the publishFormat that the user has sent in the request body. The Possible values of publish Format are binary and JSON.

Method: POST

{{SERVER_URL}}/api/V2/marketData/getQuotes

Headers

Content-Type Value
Authorization {{MARKET_AUTH_TOKEN}}

Request Body: JSON

{
    "eventCode": 1502,
    "instruments": [
        {
            "exchangeSegment": 1,
            "exchangeInstrumentID": 22
        }
    ],
    "publishFormat":"JSON"
}

Response: 200

{
    "code": 200,
    "description": "Get quotes successfully",
    "result": {
        "listQuotes": [
            {
                "MessageCode": 1502,
                "ExchangeInstrumentID": 22,
                "ExchangeSegment": 1,
                "LastTradedQunatity": 5,
                "TotalBuyQuantity": 100410,
                "TotalSellQuantity": 72815,
                "TotalTradedQuantity": 381743,
                "LastTradedTime": 1689000259,
                "LastUpdateTime": 1689000261,
                "Open": 1792,
                "High": 1806,
                "Low": 1775.6,
                "Close": 1791.5,
                "LastTradedPrice": 1796.15,
                "AverageTradedPrice": 1790.77,
                "AskInfo": {
                    "AskPrice": 0,
                    "AskQty": 0,
                    "AvgAskPrice": 0,
                    "NoOfAskQty": 0
                },
                "BidInfo": {
                    "BidPrice": 0,
                    "BidQty": 0,
                    "AvgBidPrice": 0,
                    "NoOfBids": 0
                },
                "Asks": [
                    {
                        "AskPrice": 0,
                        "AskQty": 0,
                        "AvgAskPrice": 0,
                        "NoOfAskQty": 0
                    },
                    {
                        "AskPrice": 0,
                        "AskQty": 0,
                        "AvgAskPrice": 0,
                        "NoOfAskQty": 0
                    },
                    {
                        "AskPrice": 0,
                        "AskQty": 0,
                        "AvgAskPrice": 0,
                        "NoOfAskQty": 0
                    },
                    {
                        "AskPrice": 0,
                        "AskQty": 0,
                        "AvgAskPrice": 0,
                        "NoOfAskQty": 0
                    },
                    {
                        "AskPrice": 0,
                        "AskQty": 0,
                        "AvgAskPrice": 0,
                        "NoOfAskQty": 0
                    }
                ],
                "Bids": [
                    {
                        "BidPrice": 0,
                        "BidQty": 0,
                        "AvgBidPrice": 0,
                        "NoOfBids": 0
                    },
                    {
                        "BidPrice": 0,
                        "BidQty": 0,
                        "AvgBidPrice": 0,
                        "NoOfBids": 0
                    },
                    {
                        "BidPrice": 0,
                        "BidQty": 0,
                        "AvgBidPrice": 0,
                        "NoOfBids": 0
                    },
                    {
                        "BidPrice": 0,
                        "BidQty": 0,
                        "AvgBidPrice": 0,
                        "NoOfBids": 0
                    },
                    {
                        "BidPrice": 0,
                        "BidQty": 0,
                        "AvgBidPrice": 0,
                        "NoOfBids": 0
                    }
                ]
            }
        ],
        "mdp": 1502,
        "quoteList": [
            {
                "exchangeSegment": 1,
                "exchangeInstrumentID": 22
            }
        ]
    },
    "type": "Success"
}