POST api/Trade/HedgeAllOpenPositions

Request Information

URI Parameters

None.

Body Parameters

TradingAccounts
NameDescriptionTypeAdditional information
AccountID

integer

None.

HedgePrices

Collection of PriceModel

None.

ClosePrices

Collection of ClosePriceModel

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "HedgePrices": [
    {
      "TradeId": 1,
      "Price": 2.0
    },
    {
      "TradeId": 1,
      "Price": 2.0
    }
  ],
  "ClosePrices": [
    {
      "TradeId": 1,
      "Price": 2.0,
      "Profit": 3.0
    },
    {
      "TradeId": 1,
      "Price": 2.0,
      "Profit": 3.0
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.