This method is used to edit a particular Trade from Transact API. A trade can only be updated if it has a "CREATED" status.

Request Parameters

clientIDyesstringTransactAPI Client ID
developerAPIKeyyesstringTransactAPI Developer Key
accountIdyesstringAccount ID generated by the API
offeringIdyesstringOffering ID generated by the API
tradeIdyesstringTrade ID generated by the API
sharesyesstringTrade shares

Sample Request

curl -k -X PUT https://api-sandboxdash.norcapsecurities.com/tapiv3/index.php/v3/editTrade
-d developerAPIKey=somedeveloperkey
-d clientID=someclientid
-d accountId=A12345
-d offeringId=511245
-d tradeId=2354
-d shares=10.58
-d closeId=closeId

Response Parameters

statusCodestringAPI Status Code
statusDescstringAPI Status Description
TradeFinancialDetailsstringReturns the Trade details (tradeId, shares, sharePrice, totalShares, remainingShares)

Sample Response

    "statusCode": "101",
    "statusDesc": "Ok",
    "TradeFinancialDetails": {
        "tradeId": "2354",
        "shares": "10.58",
        "sharePrice": 280.50,
        "totalShares": "100.00",
        "remainingShares": "89.42"

Test it Yourself!

Click Try It! to start a request and see the response here!