Endpoint Parameters
-
Request parameters
Name Type Origin Description AccountKey AccountKey Body Account key AdditionalTransactionCosts Decimal Body Additional Transaction Costs. Amount Decimal Body Trade size. DealCapture DealCapture Body Deal capture information, only applicable for DealCapture trades. ExchangeFee Decimal Body Exchange Fee. PositionId String Body Position id of existing trade for the purpose of trade corrections. Price Decimal Body Price. StampDuty Decimal Body Stamp Duty. TraderId String Body Trader Id, Used only if the application is configured for supporting it with length of 2-16 chars. -
Response Parameters
View Response CodesName Type Description ErrorInfo ErrorResponse Contains error info when trade correction failed. PositionId String Id of position representing corrected trade. -
Request Example
Request URL
POST trade/v1/trades
Request Body
{ "AccountKey": "01b64edf-da03-4145-bf33-ae21527d4c86", "AdditionalTransactionCosts": 10.0, "Amount": 10.0, "DealCapture": { "AccruedInterest": 10.0, "Commission": 10.0, "CounterBookingAccountKey": "01b64edf-da03-4145-bf33-ae21527d4c86", "CurrencyConversionRate": 10.0, "ExternalOrderId": "stringValue", "MarketCounterPartyId": "stringValue", "TradeDate": "2021-05-21", "TradingVenue": "stringValue", "ValueDate": "2021-05-21" }, "ExchangeFee": 10.0, "PositionId": "stringValue", "Price": 10.0, "StampDuty": 10.0, "TraderId": "stringValue" }
-
Response Example
Response body
{ "ErrorInfo": { "ErrorCode": "stringValue", "Message": "stringValue" }, "PositionId": "stringValue" }