Create JSON Payload for Basket

imshor
How to automatically create Basket JSON Payload from Holdings and Order Objects
What is the field mapping.

Example of json object from a basket.
[
{
"id": 254140690,
"instrument": {
"tradingsymbol": "INFY",
"scripCode": "",
"type": "EQ",
"symbol": "INFY",
"segment": "NSE",
"exchange": "NSE",
"tickSize": 0.05,
"lotSize": 1,
"company": "INFOSYS",
"tradable": true,
"precision": 2,
"fullName": "INFY",
"niceName": "INFY",
"niceNameHTML": "INFY",
"stockWidget": true,
"exchangeToken": 1594,
"instrumentToken": 408065,
"isin": "",
"related": [
{
"tradingsymbol": "INFY",
"scripCode": "",
"type": "EQ",
"symbol": "INFY",
"segment": "BSE",
"exchange": "BSE",
"tickSize": 0.05,
"lotSize": 1,
"company": "INFOSYS",
"tradable": true,
"precision": 2,
"fullName": "INFY (INFY)",
"niceName": "INFY",
"niceNameHTML": "INFY",
"stockWidget": true,
"exchangeToken": 500209,
"instrumentToken": 128053508,
"isin": "",
"related": [],
"underlying": null,
"auctionNumber": null,
"isEquity": true,
"isWeekly": false
}
],
"underlying": null,
"auctionNumber": null,
"isEquity": true,
"isWeekly": false,
"isFound": true
},
"weight": 0,
"params": {
"transactionType": "BUY",
"product": "CNC",
"orderType": "MARKET",
"validity": "DAY",
"validityTTL": 1,
"quantity": 1,
"price": 0,
"triggerPrice": 0,
"disclosedQuantity": 0,
"variety": "regular",
"gtt": null,
"tags": []
}
}
]
  • sujith
    Baskets feature is not available on Kite Connect API. You will have to create and maintain it at your end.
Sign In or Register to comment.