Delete Trade

This method is used to delete (status is changed to "Canceled") a particular Trade from Transact API. The delete is a virtual delete. You will need to specify the Trade ID as a request parameter to cancel the trade. If there is a pending ACH transfer relating to the trade, the trade will not be canceled.

Request Method : POST

Request Parameters

Parameter Required Type Description
clientID yes string Transact API Client ID
developerAPIKey yes string Transact API Developer API Key
accountId yes string Account ID generated by TransactAPI
tradeId yes integer Trade ID generated by TransactAPI
errDesc no string If any error caused

Sample Request

curl -k -X POST https://api.norcapsecurities.com/tapiv3/index.php/v3/deleteTrade
-d developerAPIKey=somedeveloperkey
-d clientID=someclientid
-d accountId=A77654
-d tradeId=2354
-d errDesc=test

Response Parameters

Parameter Type Description
statusCode string API Status Code
statusDesc string API Status Description
tradeDetails string Array of trade details ( partyId, offeringId, orderStatus )

Sample Response

{
    "statusCode": "101",
    "statusDesc": "Ok",
    "tradeDetails": [
        {
            "partyId": "P00197",
            "offeringId": "32957",
            "orderStatus": "CANCELED"
        }
    ]
}
Click on the "Test it yourself" button to see how it works
Click on the "Error Codes" button to see list of error codes

Custodial Account