Skip to content

API Reference


API Reference / Constants / GlobalStocks

Variable: GlobalStocks ​

const GlobalStocks: object

Defined in: src/constants.ts:247

Global Stocks (US equities) enumerations, served under /v2/globalstocks/*. These orders carry no exchange segment, product type or validity, so the domestic ProductType/ValidityEnum enums do not apply.

Type Declaration ​

EXCHANGE_SEGMENT ​

readonly EXCHANGE_SEGMENT: "INX_EQ" = ExchangeSegment.INX_EQ

EXCHANGE_SEGMENT_CODE ​

readonly EXCHANGE_SEGMENT_CODE: 14 = 14

MAX_INSTRUMENTS_PER_REQUEST ​

readonly MAX_INSTRUMENTS_PER_REQUEST: 100 = 100

MAX_SUBSCRIPTIONS_PER_CONNECTION ​

readonly MAX_SUBSCRIPTIONS_PER_CONNECTION: 5000 = 5000

MAX_CONNECTIONS_PER_CLIENT ​

readonly MAX_CONNECTIONS_PER_CLIENT: 5 = 5

OrderType ​

readonly OrderType: object

OrderType.MARKET ​

readonly MARKET: "MARKET" = "MARKET"

OrderType.LIMIT ​

readonly LIMIT: "LIMIT" = "LIMIT"

OrderType.STOP_LOSS ​

readonly STOP_LOSS: "STOP_LOSS" = "STOP_LOSS"

OrderType.STOP_LOSS_MARKET ​

readonly STOP_LOSS_MARKET: "STOP_LOSS_MARKET" = "STOP_LOSS_MARKET"

OrderType.AMOUNT ​

readonly AMOUNT: "AMOUNT" = "AMOUNT"

Notional / dollar-value orders — quantity is replaced by amount.

LegName ​

readonly LegName: object

Leg names accepted when modifying a Global Stocks super order.

LegName.ENTRY_LEG ​

readonly ENTRY_LEG: "ENTRY_LEG" = "ENTRY_LEG"

LegName.STOP_LOSS_LEG ​

readonly STOP_LOSS_LEG: "STOP_LOSS_LEG" = "STOP_LOSS_LEG"

LegName.TARGET_LEG ​

readonly TARGET_LEG: "TARGET_LEG" = "TARGET_LEG"

LegName.NA ​

readonly NA: "NA" = "NA"

MarketStatus ​

readonly MarketStatus: object

MarketStatus.OPEN ​

readonly OPEN: "open" = "open"

MarketStatus.CLOSED ​

readonly CLOSED: "closed" = "closed"

MsgCode ​

readonly MsgCode: object

MsgCode.TRADE ​

readonly TRADE: 1 = 1

MsgCode.PREV_CLOSE ​

readonly PREV_CLOSE: 32 = 32

MsgCode.CIRCUIT_LIMIT ​

readonly CIRCUIT_LIMIT: 33 = 33

MsgCode.FIFTY_TWO_WEEK ​

readonly FIFTY_TWO_WEEK: 36 = 36

Community project — not affiliated with Dhan. MIT License.