POST api/trades/booking
Unbook single or grouped trade lines with same security code.
Request Information
URI Parameters
None.
Body Parameters
BookingRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| TradeID |
Trade ID |
integer |
Required Range: inclusive between 1 and 2147483647 |
| OrderID |
Order ID |
integer |
Required Range: inclusive between 1 and 2147483647 |
| Quantity |
Quantity to book an order. If quantity is negative, it means a reverse process of unbook trade from an order. |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"TradeID": 60001035,
"OrderID": 11449,
"Quantity": 1000
}
application/xml, text/xml
Sample:
<BookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.B2B.Webservices2.Contract.Trade"> <OrderID>11449</OrderID> <Quantity>1000</Quantity> <TradeID>60001035</TradeID> </BookingRequest>
Response Information
Resource Description
StatusCodeResult| Name | Description | Type | Additional information |
|---|---|---|---|
| StatusCode | HttpStatusCode |
None. |
|
| Request | HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.
Error Response Information
Resource Description
stringError Response Formats
application/json, text/json
Sample:
"sample string 1"