pocketful logo light
pocketful logo light

Scrip Info

The Scrip Info API is designed to provide users with detailed information about a specific financial instrument based on the exchange and instrument token provided as inputs. Upon receiving the exchange and instrument token as parameters, the API searches its database to retrieve relevant data about the corresponding scrip. By utilizing this API, users can efficiently retrieve comprehensive information about a particular scrip, enabling them to make well-informed investment decisions and stay updated on the latest market developments.

Endpoint: api/v1/contract/:exchange
Method-Type: GET

Query Params

{
    "info": "scrip",
    "token": "10666"
}

Parameters

Field NameData TypeDescription
ExchangeStringName of the exchange where the order is being placed. Possible values include NSEBSENFOMCX.
Instrument TokenIntegerUnique identifier assigned to each financial instrument within the exchange.

Example Code

response = pocket.getScripInfo('NSE', 11915)

Response

{
  "error": {
    "code": 0,
    "message": ""
  },
  "result": {
    "alternate_exchange": "BSE",
    "alternate_token": 532648,
    "alternate_trading_symbol": "YESBANK-A",
    "asm": "-1",
    "asset_code": "",
    "board_lot_quantity": 1,
    "book_closure_end_date": "12-Jun-2019",
    "book_closure_start_date": "6-Jun-2019",
    "change_in_oi": 0,
    "circuit_rating": "",
    "close_price": "22.85",
    "comments": "AGM/DIV-RS 2 PER SH",
    "company_name": "YES BANK LIMITED",
    "delivery_end_date": "",
    "delivery_start_date": "",
    "delivery_unit_factor": 0,
    "delivery_units": "",
    "display_name": "YESBANK",
    "dpr": "18.3000 - 27.4000",
    "exchange": 1,
    "execution": "NA",
    "expiry": 0,
    "expiry_string": "",
    "exposure": "5.000000",
    "face_value": 2,
    "fin_instrm_pdct_tp_cd": "",
    "freeze": 0,
    "general_denominator": "",
    "gsm": "-1",
    "have_futures": false,
    "have_options": false,
    "higher_circuit_limit": 27.4,
    "instrument_name": "EQ",
    "instrument_token": 11915,
    "instrument_type": "0",
    "is_index": false,
    "is_mtf_eligible": false,
    "isin": "INE528G01035",
    "issue_maturity_date": 0,
    "issue_rate": 0,
    "issue_start_date": "12-Jul-2005",
    "last_trade_vol": "",
    "last_trading_date": "",
    "list_date": "12-Jul-2005",
    "local_update_time": "",
    "lower_circuit_limit": 18.3,
    "market_type": "",
    "max_order_size": 0,
    "max_single_qty": 0,
    "month_identifier": 0,
    "mtf_margin": 0,
    "multiplier": 1,
    "no_delivery_date_end": "0",
    "no_delivery_date_start": "0",
    "open_interest": 0,
    "option_type": "",
    "partition_id": 0,
    "precision": 2,
    "price_denominator": 0,
    "price_numerator": 0,
    "price_quotation": 0,
    "price_units": "",
    "product_category": "",
    "product_id": 0,
    "raw_expiry": 0,
    "raw_tender_period_end_date": "",
    "raw_tender_period_start_date": "",
    "raw_tick_size": 5,
    "re_admission_date": "0",
    "record_date": "0",
    "series": "EQ",
    "short_code": "",
    "span": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ],
    "special_preopen": 0,
    "strike": 0,
    "surveillance_indicator": 0,
    "symbol": "YESBANK",
    "symbol2": "",
    "tag": "",
    "tender_period_end_date": "",
    "tender_period_start_date": "",
    "tick_size": 0.05,
    "tradable": true,
    "trade_to_trade": false,
    "trading_symbol": "YESBANK-EQ",
    "trading_unit_factor": 0,
    "trading_units": "",
    "underlying_token": 11915,
    "var": "23.08",
    "warning": "1",
    "yearly_high_price": "32.85",
    "yearly_low_price": "14.40"
  }
}
KeyDescription
alternate_exchangeThe alternate exchange where the asset is traded.
alternate_tokenThe alternate token or identifier of the asset.
alternate_trading_symbolThe alternate trading symbol of the asset.
asmThe adhoc margin for the asset.
asset_codeThe code associated with the asset.
board_lot_quantityThe quantity of the asset in a board lot.
book_closure_end_dateThe end date of the book closure period.
book_closure_start_dateThe start date of the book closure period.
change_in_oiThe change in open interest for the asset.
circuit_ratingThe circuit rating of the asset.
close_priceThe closing price of the asset.
commentsAny additional comments or notes related to the asset.
company_nameThe name of the company associated with the asset.
delivery_end_dateThe end date for delivery of the asset.
delivery_start_dateThe start date for delivery of the asset.
delivery_unit_factorThe factor for the delivery unit of the asset.
delivery_unitsThe units for delivery of the asset.
display_nameThe display name of the asset.
dprThe daily price range of the asset.
exchangeThe exchange where the asset is traded.
executionThe execution status of the asset.
expiryThe expiry date of the asset.
expiry_stringThe string representation of the expiry date.
exposureThe exposure of the asset.
face_valueThe face value of the asset.
fin_instrm_pdct_tp_cdThe product type code of the financial instrument.
freezeIndicates if the asset is frozen.
general_denominatorThe general denominator of the asset.
gsmThe GSM (graded surveillance mechanism) status of the asset.
have_futuresIndicates if the asset has futures contracts.
have_optionsIndicates if the asset has options contracts.
higher_circuit_limitThe higher circuit limit of the asset.
instrument_nameThe name of the instrument.
instrument_tokenThe token or identifier of the instrument.
instrument_typeThe type of the instrument.
is_indexIndicates if the asset is an index.
is_mtf_eligibleIndicates if the asset is eligible for MTF (market to franchise) trading.
isinThe ISIN (International Securities Identification Number) of the asset.
issue_maturity_dateThe maturity date of the issued asset.
issue_rateThe rate at which the asset was issued.
issue_start_dateThe start date of the issuance of the asset.
last_trade_volThe volume of the last trade of the asset.
last_trading_dateThe date of the last trading of the asset.
list_dateThe date when the asset was listed.
local_update_timeThe local update time of the asset.
lower_circuit_limitThe lower circuit limit of the asset.
market_typeThe market type of the asset.
max_order_sizeThe maximum order size of the asset.
max_single_qtyThe maximum single quantity of the asset.
month_identifierThe month identifier of the asset.
mtf_marginThe margin for MTF trading of the asset.
multiplierThe multiplier of the asset.
no_delivery_date_endThe end date for no delivery of the asset.
no_delivery_date_startThe start date for no delivery of the asset.
open_interestThe open interest of the asset.
option_typeThe type of the option.
partition_idThe partition ID of the asset.
precisionThe precision of the asset.
price_denominatorThe denominator of the price of the asset.
price_numeratorThe numerator of the price of the asset.
price_quotationThe quotation of the price of the asset.
price_unitsThe units of the price of the asset.
product_categoryThe category of the product.
product_idThe ID of the product.
raw_expiryThe raw expiry timestamp of the asset.
raw_tender_period_end_dateThe raw end date of the tender period of the asset.
raw_tender_period_start_dateThe raw start date of the tender period of the asset.
raw_tick_sizeThe raw tick size of the asset.
re_admission_dateThe readmission date of the asset.
record_dateThe record date of the asset.
seriesThe series of the asset.
short_codeThe short code of the asset.
spanThe SPAN (Standard Portfolio Analysis of Risk)

Error Response

{
    "error":{
        "code": 404,
        "message": "Resource Not Found"
    },
    "result": ""
}