POST api/Trade/CloseProfitablePositions

Request Information

URI Parameters

None.

Body Parameters

TradingAccounts
NameDescriptionTypeAdditional information
AccountID

integer

None.

HedgePrices

Collection of PriceModel

None.

ClosePrices

Collection of ClosePriceModel

None.

DeviceName

string

None.

IPAddress

string

None.

Latitude

decimal number

None.

Longitude

decimal number

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
    }
  ],
  "DeviceName": "sample string 2",
  "IPAddress": "sample string 3",
  "Latitude": 1.0,
  "Longitude": 1.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.