PUT fxo/Deal/SwapDeal

Request Information

URI Parameters

None.

Body Parameters

UpdateSwapDeal
NameDescriptionTypeAdditional information
deal_swap

UpdateSwap

None.

near_deal

NearDeal

None.

far_deal

FarDeal

None.

Request Formats

application/json, text/json

Sample:
{
  "deal_swap": {
    "record": {
      "value": "sample string 1",
      "id": 2
    },
    "client": {
      "value": "sample string 1",
      "id": 2
    },
    "entry_date": "sample string 1",
    "remarks": "sample string 2"
  },
  "near_deal": {
    "buy_currency": {
      "value": "sample string 1",
      "id": 2
    },
    "sell_currency": {
      "value": "sample string 1",
      "id": 2
    },
    "exchange_rate": 1.0,
    "value_date": "sample string 2",
    "buy_amount": 3.0,
    "sell_amount": 4.0,
    "market_rate": 5.0,
    "actual_market_rate": 6.0,
    "near_spot_rate": 7.0,
    "near_forward_points": 8.0
  },
  "far_deal": {
    "buy_currency": {
      "value": "sample string 1",
      "id": 2
    },
    "sell_currency": {
      "value": "sample string 1",
      "id": 2
    },
    "exchange_rate": 1.0,
    "value_date": "sample string 2",
    "buy_amount": 3.0,
    "sell_amount": 4.0,
    "market_rate": 5.0,
    "actual_market_rate": 6.0,
    "far_spot_rate": 7.0,
    "far_forward_points": 8.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 'UpdateSwapDeal'.

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

DSOutput
NameDescriptionTypeAdditional information
status

boolean

None.

data

Object

None.

code

integer

None.

message

string

None.

error

Error

None.

paging

Paging

None.

additional_codes

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "data": {},
  "code": 0,
  "message": "sample string 3",
  "error": {
    "code": 0,
    "message": "sample string 1",
    "target": "sample string 2",
    "details": [
      {
        "code": 0,
        "target": "sample string 1",
        "message": "sample string 2"
      },
      {
        "code": 0,
        "target": "sample string 1",
        "message": "sample string 2"
      }
    ]
  },
  "paging": {
    "page_number": 1,
    "page_size": 2,
    "page_from": 3,
    "page_to": 4,
    "record_count": 5
  },
  "additional_codes": "sample string 4"
}

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.