Trading APIs

Trade Information

Purpose

This API is used to Fetch Trade Information for a set of orders placed by a Client.

Request URL https://Openapi.5paisa.com/VendorsAPI/Service1.svc/TradeInformation

Request Method POST
Request format: JSON

Request Header Content-Type:application/json

Request Body

Header

Field Name Description Data Type (max length) Validation Sample Value
appName App Name provided at the time of registration String Cannot be empty. APPTRIAL
appVer Developer App Version String Cannot be empty. 1.0
key UserKey generated at the time of registration String Cannot be empty. ue73jHVeEzBswG5ss9ugyrAasdasdyKYxg
osName Channel of order String Cannot be Empty WEB, Android, iOS
requestCode Request Code of the API called String Cannot be Empty 5PTrdInfo
userId User ID generated at the time of registration String Cannot be empty. asdue73jHVeE
password Password generated at the time of registration String Cannot be empty. 9ugyrAasdasdy
Field Name Description Data Type (max length) Validation Mandatory List of values Sample Value
ClientCode Pass the registered client code of the user. String(10) Cannot be empty. Yes - 12345678
TradeInformationList List Of TradeInformationList List Of TradeInformationList - - - -

TradeInformationList

Field Name Description Data Type (max length) Validation Mandatory List of values
Exch Exchange in which order has been placed. N- NSE, B- BSE ,M-MCX Char Cannot be empty. Yes N
B
M
ExchType Exchange segment. C-Cash, D-Derivative, U – Currency Char Cannot be empty. Yes C
D
U
ScripCode Scrip Code of the requested order. Long Cannot be empty. Yes -
RemoteOrderID This will be unique ID for each order which was sent at the time of placing the order. String Cannot be empty. Yes 112313

Sample Request

{
    "head": {
        "appName": "APPTRIAL",
        "appVer": "1.0",
        "key": "ue73jH6AKVXeEz123AFEABswG5ss9ugyrAyKYxg",
        "osName": "Android",
        "requestCode": "5PTrdInfo",
        "userId": "s9RzKCjdLVFEH9N",
        "password": "nznS4f34zSDFXw"
        },
    "body": {
        "ClientCode": "12345678",
        "TradeDetailList": [
            {
                "Exch": "N",
                "ExchType": "C",
                "ScripCode": 11536,
                "RemoteOrderID": "5712977609111312242"
            },
            {
                "Exch": "N",
                "ExchType": "C",
                "ScripCode": 842,
                "RemoteOrderID": "C14135409140114001"
            },
            {
            "Exch": "N",
            "ExchType": "C",
            "ScripCode": 18011,
            "RemoteOrderID": "5712977613105215123"
            },
            {
            "Exch": "N",
            "ExchType": "C",
            "ScripCode": 10440,
            "RemoteOrderID": "5712977613114258355"
            },
            {
            "Exch": "N",
            "ExchType": "C",
            "ScripCode": 18011,
            "RemoteOrderID": "5712977613123434003"
            }
         ]
       }
}

Sample Response

{
    "body": {
                                "Message": "",
                                "Status": 0,
                                "TradeDetail": []
    },
    "head": {
                                "responseCode": "5PTrdInfo",
                                "status": "0",
                                "statusDescription": "Success"
    }
}