post https://api-sandboxdash.norcapsecurities.com/tapiv3/index.php/v3/deleteTrade
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 Parameters
Parameter | Required | Type | Description |
---|---|---|---|
clientID | yes | string | TransactAPI Client ID |
developerAPIKey | yes | string | TransactAPI Developer Key |
accountId | yes | string | Account ID generated by the TAPI |
tradeId | yes | integer | Trade ID generated by the TAPI |
errDesc | no | string | If any error caused |
Sample Request
curl -k -X POST https://api-sandboxdash.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"
}
]
}