POST api/trades/bookingTrades

Unbook single or grouped trade lines with same security code.

Request Information

URI Parameters

None.

Body Parameters

Collection of BookingRequest
NameDescriptionTypeAdditional 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": 1,
    "OrderID": 2,
    "Quantity": 3
  },
  {
    "TradeID": 1,
    "OrderID": 2,
    "Quantity": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfBookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.B2B.Webservices2.Contract.Trade">
  <BookingRequest>
    <OrderID>2</OrderID>
    <Quantity>3</Quantity>
    <TradeID>1</TradeID>
  </BookingRequest>
  <BookingRequest>
    <OrderID>2</OrderID>
    <Quantity>3</Quantity>
    <TradeID>1</TradeID>
  </BookingRequest>
</ArrayOfBookingRequest>

Response Information

Resource Description

StatusCodeResult
NameDescriptionTypeAdditional information
StatusCode

HttpStatusCode

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.

Error Response Information

Resource Description

string

Error Response Formats

application/json, text/json

Sample:
"sample string 1"