Skip to content

Basket Order

Type API Details
POST basketorder/create  Create basket order
GET basketorder/get   Get basket order
POST basketorder/rename Rename basket order
Delete basketorder/delete/scrips delete basket order
POST basketorder/add/scrips add basket order scrips
GET basketorder/get/scrips Retrieve basket order scrips
POST basketorder/delete/scrips  Delete basket order scrips

Create Basket

Request Structure

{
    "userId": "888232",
    "basketName": "vf",
    "createdBy": "888232"
}

Input parameters

Field Type Description
userId String
basketName String
createdBy String

Response Structure

{
    "status": "Ok",
    "message": "Success",
    "result": [
        {
            "basketId": 145858,
            "basketName": "chb",
            "createdOn": "2023-10-25 12:02:16",
            "isExecuted": "1",
            "scripCount": 3
        },
        {
            "basketId": 149377,
            "basketName": "sdwq",
            "createdOn": "2023-11-06 07:26:19",
            "isExecuted": "0",
            "scripCount": 0
        }
    ]
}
Parameters

Field Type Description
basketId Int Order specific identification generated by nidhi
basketName String
isExecuted String
createdOn String
scripCount Int

Get Basket Order

Response Structure

{
    "status": "Ok",
    "message": "Success",
    "result": [
         {
            "basketId": 9180,
            "basketName": "nifty",
            "isExecuted": "0",
            "createdOn": "2023-08-28 10:06:01",
            "scripCount": 1
        },
        {
            "basketId": 19998,
            "basketName": "BANKNIFTY_28SEP23_2709",
            "isExecuted": "0",
            "createdOn": "2023-09-27 13:56:19",
            "scripCount": 0
        }
    ]
}
Parameters

Field Type Description
basketId String Order specific identification generated by nidhi
basketName String
isExecuted String
createdOn String
scripCount Int

Rename Basket

Request Structure

{
    "basketId" :20,
    "basketName" : "bank1",
}

Input parameters

Field Type Description
basketId String
basketName String

Response Structure

{
    "status": "Ok",
    "message": "Success",
    "result": [] 
}

Add Script To Basket

Request Structure

{
    "basketId": 149377,
    "scrips": {
        "exchange": "NSE",
        "token": "13",
        "tradingSymbol": "ABB-EQ",
        "qty": "1",
        "price": "4254.05",
        "product": "MIS",
        "priceType": "L",
        "transType": "B",
        "orderType": "Regular",
        "ret": "DAY",
        "triggerPrice": "",
        "disclosedQty": "",
        "mktProtection": "",
        "target": "",
        "stopLoss": "",
        "trailingStopLoss": "",
        "source": "WEB",
        "lotSize": "1"
    }
}

Input parameters

Field Type Description
exchange String
token String
tradingSymbol String
qty String
price String
product String
priceType String
transType String
orderType String
ret String
triggerPrice String
disclosedQty String
mktProtection String
target String
stopLoss String
trailingStopLoss String
source String
lotSize String

Response Structure

{
    "status": "Ok",
    "message": "Success",
    "result": [
        {
            "id": 136084,
            "basketId": 149377,
            "sortOrder": null,
            "exchange": "NSE",
            "token": "13",
            "tradingSymbol": "ABB-EQ",
            "qty": "1",
            "price": "4254.05",
            "expiry": null,
            "product": "MIS",
            "transType": "B",
            "priceType": "L",
            "orderType": "Regular",
            "ret": "DAY",
            "triggerPrice": "",
            "disClosedQty": null,
            "mktProtection": "",
            "target": "",
            "stopLoss": "",
            "trailingStopLoss": "",
            "formattedInsName": "ABB-EQ",
            "weekTag": null,
            "lotSize": "1"
        }
    ]
}
Parameters

Field Type Description
id String
basketId String
sortOrder String
exchange String
token String
tradingSymbol String
qty String
price String
expiry String
product String
transType String
priceType String
orderType String
ret String
triggerPrice String
disClosedQty String
mktProtection String
target String
stopLoss String
trailingStopLoss String
formattedInsName String
weekTag String
lotSize String

Get Retrive Scrips

Response Structure

{
    "status": "Ok" 
    "message": "Success",
    "result": [
        {
            "basketId": 145858,
            "disClosedQty": null,
            "exchange": "BSE",
            "expiry": null,
            "formattedInsName": "ABB",
            "id": 134645,
            "lotSize": "1",
            "mktProtection": "",
            "orderType": "Regular",
            "price": "4206.10",
            "priceType": "L",
            "product": "MIS",
            "qty": "1",
            "ret": "DAY",
            "sortOrder": null,
            "stopLoss": "",
            "target": "",
            "token": "500002",
            "tradingSymbol": "ABB",
            "trailingStopLoss": "",
            "transType": "B",
            "triggerPrice": "",
            "weekTag": null
        },
        {
            "basketId": 145858,
            "disClosedQty": null,
            "exchange": "CDS",
            "expiry": "2023-12-26T18:30:00.000+00:00",
            "formattedInsName": "EURINR DEC FUT",
            "id": 115418,
            "lotSize": "1",
            "mktProtection": "",
            "orderType": "Regular",
            "price": "88.1500",
            "priceType": "SL",
            "product": "MIS",
            "qty": "1",
            "ret": "DAY",
            "sortOrder": null,
            "stopLoss": "0",
            "target": "0",
            "token": "1093",
            "tradingSymbol": "EURINR27DEC23F",
            "trailingStopLoss": "0",
            "transType": "B",
            "triggerPrice": "88.1500",
            "weekTag": "M"
        }
    ]
}
Parameters

Field Type Description
basketId String
disClosedQty String
exchange String
expiry String
formattedInsName String
id String
lotSize String
mktProtection String
OrderType String
price String
priceType String
product String
qty String
ret String
sortOrder String
stopLoss String
target String
token String
tradingSymbol String
trailingStopLoss String
transType String
triggerPrice String
weekTag String

Delete Scrip in Basket

Request Structure

{
    "basketId": 150159,
    "scripsId": [
        134652
    ]
}

Input parameters

Field Type Description
userId String
basketId Int
scripsId List

Response Structure

{
    "status": "Ok",
    "message": "Success",
    "result": [
        {
            "id": 27188,
            "basketId": 9180,
            "sortOrder": null,
            "exchange": "NSE",
            "token": "2885",
            "tradingSymbol": "RELIANCE-EQ",
            "qty": "1",
            "price": "0",
            "expiry": null,
            "product": "MIS",
            "transType": "B",
            "priceType": "MKT",
            "orderType": "Regular",
            "ret": "DAY",
            "triggerPrice": "",
            "disClosedQty": null,
            "mktProtection": "",
            "target": "",
            "stopLoss": "",
            "trailingStopLoss": "",
            "formattedInsName": "RELIANCE-EQ",
            "weekTag": null,
            "lotSize": "1"
        }
    ]
}
Parameters

Field Type Description
id String
basketId Int
sortOrder String
exchange String
token String
tradingSymbol String
qty String
price String
expiry String
product String
tranType String
priceType String
orderType String
ret String
triggerPrice String
disclosedQty String
MktProtection String
target String
stopLoss String
trailingStopLoss String
formattedInsName String
"weekTag String
"lotSize String