POST api/Trade/CloseLossPositions
Request Information
URI Parameters
None.
Body Parameters
TradingAccounts| Name | Description | Type | Additional 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
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.