POST fxo/Margin/MarginDeal

Request Information

URI Parameters

None.

Body Parameters

CreateMarginDeal
NameDescriptionTypeAdditional information
deal

IdValuePair

None.

value_date

string

Required

currency

IdValuePair

None.

amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "deal": {
    "value": "sample string 1",
    "id": 2
  },
  "value_date": "sample string 1",
  "currency": {
    "value": "sample string 1",
    "id": 2
  },
  "amount": 2.0
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateMarginDeal'.

application/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot access a closed Stream.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot access a closed Stream.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.