Order Entry

Allows clients to place new orders in the trading system. Requires comprehensive details such as client identification, order specifications (product, quantity, price, type), exchange and market parameters, and validity period.

Endpoint

Base URL
https://connects.torusdigital.com/api/v1/order/entry

Header Parameters

NameValue

Content-Type

application/json

Authorization

Bearer <token>

FieldValueDescription

source

M

The source of the transaction.

txn_type

B

The type of transaction, where "B" typically stands for Buy and "S" stands for SELL.

exchange

NSE

The exchange where the transaction on takes place, it can be NSE/BSE.

segment

E

The market segment, where "E" might stand for "Equity".

product

I

The product type.

security_id

14366

The unique identifier for the security being traded.

quantity

1

The number of units to be traded.

price

0.00

The price at which the transaction is to be executed. "0.00" indicates a market order.

validity

DAY

The validity of the order, indicating it is valid for the day.

order_type

MKT

The type of order, where "MKT" stands for a market order.

disc_quantity

0

The disclosed quantity of the order.

trigger_price

0.00

The price at which a stop order is triggered. "0.00" indicates no stop price.

off_mkt_flag

false

Indicates whether the order is off-market.

remarks

502929

Additional remarks or reference number for the transaction.

mkt_type

NL

Default value is NL

settlor

X

The settlor's identifier, possibly indicating the person or entity settling the transaction.

group_id

1

The group identifier for the transaction.

Request

cURL
curl --location 'https://connects.torusdigital.com/api/v1/order/entry' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
  "source": "M",
  "data": {
    "txn_type": "B",
    "exchange": "NSE",
    "segment": "E",
    "product": "I",
    "security_id": "14366",
    "quantity": "1",
    "price": "0.00",
    "validity": "DAY",
    "order_type": "MKT",
    "disc_quantity": "0",
    "trigger_price": "0.00",
    "off_mkt_flag": "false",
    "remarks": "502929",
    "mkt_type": "NL",
    "settlor": "X",
    "group_id": "1"
  }
}'

Response

{
    "status": "success",
    "message": "Order submitted successfully. Your Order Ref No. 1122031117658",
    "data": [
        {
            "order_no": "1122031117658"
        }
    ]
}

NameDescription

status

The status of the response.

message

The message associated with the response.

data

An object containing the details of the order.

order_no

Order specific identification number

Last updated