Developer APIs

Trade Information API Download

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) Sample Value
appName App Name provided at the time of registration String APPTRIAL
appVer Developer App Version String 1.0
key UserKey generated at the time of registration String ue73jHVeEzBswG5ss9ugyrAasdasdyKYxg
osName Channel of order String WEB, Android, iOS
requestCode Request Code of the API called String 5PTrdInfo
userId User ID generated at the time of registration String asdue73jHVeE
password Password generated at the time of registration String 9ugyrAasdasdy

*Note:- All fields are mandatory (cannot be empty)

Field Name Description Data Type (max length) List of values Sample Value
ClientCode Pass the registered client code of the user. String(10) - 12345678
TradeInformationList List Of TradeInformationList List Of TradeInformationList - -

*Note:- All fields are mandatory (cannot be empty)

TRADE INFORMATION LIST

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

*Note:- All fields are mandatory (cannot be empty)

Sample Request

{
    "head": {
        "appName": "APPTRIAL",
        "appVer": "1.0",
        "key": "ue73jH6AKVXeEz123AFEABswG5ss9ugyrAyKYxg",
        "osName": "Android",
        "requestCode": "5PTrdInfo",
        "userId": "s9RzKCjdLVFEH9N",
        "password": "nznS4f34zSDFXw"
    },
    "body": {
            "ClientCode": "12345678",
            "TradeInformationList": [
        {
            "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"
    }
}