Endpoint Parameters
-
Request parameters
Name Type Origin Description AccountKey AccountKey Body Account key AdditionalTransactionCosts Number Body Additional Transaction Costs. Amount Number Body Trade size. DealCapture DealCapture Body Deal capture information, only applicable for DealCapture trades. ExchangeFee Number Body Exchange Fee. PositionId String Body Position id of existing trade for the purpose of trade corrections. Price Number Body Price. StampDuty Number 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 StringErrorResponse 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", "PositionId": "stringValue", "Amount": 10, "Price": 10, "ExchangeFee": 10, "StampDuty": 10, "AdditionalTransactionCosts": 10, "TraderId": "stringValue", "DealCapture": { "CounterBookingAccountKey": "01b64edf-da03-4145-bf33-ae21527d4c86", "ExternalOrderId": "stringValue", "MarketCounterPartyId": "stringValue", "TradingVenue": "stringValue", "Commission": 10, "ValueDate": "2021-05-21T00:00:00Z", "CurrencyConversionRate": 10, "AccruedInterest": 10, "TradeDate": "2021-05-21T00:00:00Z" } }
-
Response Example
Response body
{ "PositionId": "stringValue", "ErrorInfo": { "ErrorCode": "stringValue", "Message": "stringValue", "PreTradeDisclaimers": { "DisclaimerContext": "stringValue", "DisclaimerTokens": [ "stringValue" ] } } }