Skip to main content

Market Connect

Get Multi Quotes LTP

Our market quotes APIs provide you with access to up-to-date market data for various instruments. These data snapshots are collected directly from the exchanges in real-time, ensuring the accuracy of the information at the time of your request. For real-time streaming market quotes, we recommend utilizing our WebSocket API.

Method: POST

https://connect.thefirstock.com/api/V4/getMultiQuotes/ltp

Request details

API Parameters
Parameter Description Example
userId
string
Identifier for the user upon login, unique to each user in the system. AA0013
exchange
string
Exchange on which the order is placed (e.g., NSE, BSE, NFO, BFO) BSE
tradingSymbol
string
Encoded trading symbol of the security ITC-EQ
jKey
string
Authentication token obtained from the login API d4180daa72ea70885ab0d

Libraries and SDKs

Tabbed Interface
from thefirstock import thefirstock

mQ = thefirstock.firstock_getMultiQuoteLTP(
    userId="{{userId"}},
    dataToken=[
        {
            "exchange": "NSE",
            "tradingSymbol": "Nifty 50"
        },
        {
            "exchange": "NSE",
            "tradingSymbol": "Nifty Bank"
        }
    ]
)
curl --location --request POST 'https://connect.thefirstock.com/api/V4/getMultiQuotes/ltp' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId": "{{userID}}",
    "jKey": "{{jKey}}",
    "data": [
        {
            "exchange": "NSE",
            "tradingSymbol": "Nifty 50"
        },
        {
            "exchange": "NSE",
            "tradingSymbol": "Nifty Bank"
        }
    ]
}'
const Firstock = require("thefirstock");

const firstock = new Firstock(userId: {{userId}});

firstock.getMultiQuotesltp(
  {
    data: [
      { exchange: "NSE", token: "26000" },
      { exchange: "NFO", token: "55101" },
    ],
  },
  (err, result) => {
    console.log("getMultiQuotesltp Error, ", err);
    console.log("getMultiQuotesltp Result: ", result);
  }
);
using thefirstock;

class Program
{
    public static void Main()
    {
        Firstock firstock = new Firstock(userId: {{userId}});
        var result = firstock.getMultiQuotesltp(data: new List() {

                new MultiQuotesltpsObject{
                   exchange="NSE",
                    token="26000"
                }
                }
            );
    }
}

Success response details

API Parameters
Parameter Description Example
status
String
Indicates the status of the API request. success
data.requestTime
String
Time at which the response was received,
present only on successful response.
12:29:12 18-03-2023
data.companyName
String
Name of the company associated with
the data.
NIFTY INDEX
data.exchange
String
Exchange segment like NSE, BSE,
NFO, BFO.
NSE
data.token
String
Token identifier for the company
or contract.
26000
data.lastTradedPrice
String
Last traded price of the stock,
or contract.
17438.65
{
    "status": "success",
    "data": [
        {
            "token": "26000",
            "result": {
                "requestTime": "12:29:12 18-03-2023",
                "companyName": "NIFTY INDEX",
                "exchange": "NSE",
                "token": "26000",
                "lastTradedPrice": "17438.65"
            }
        }
    ]
}

Failure response details

API Parameters
Parameter Description Example
status
String
Indicates the result status of the API operation failed
code
String
HTTP status code associated with the error 400
name
String
Specifies the type or category
of the error encountered
EXCHANGE/TOKEN
error.field
String
Field in the request that triggered
the error
exchange/token
error.message
String
Detailed message describing the error Invalid Exchange/Token
{
    "status": "success",
    "data": [
        {
            "status": "Failed",
            "code": "400",
            "name": "EXCHANGE/TOKEN",
            "error": {
                "field": "exchange/token",
                "message": "Invalid Exchange/Token"
            }
        }
    ]
}