POST web/Rate/Recalculate

Request Information

URI Parameters

None.

Body Parameters

RecalculateQuotes
NameDescriptionTypeAdditional information
entity_id

integer

None.

rates

Collection of RecalculateQuote

Required

Request Formats

application/json, text/json

Sample:
{
  "entity_id": 1,
  "rates": [
    {
      "rate": {
        "actual_market_rate": 1.1,
        "market_rate": 2.1,
        "exchange_rate": 3.1,
        "spread": 4.1,
        "spread_buffer": 5.1,
        "treasury_spread": 6.1,
        "treasury_spread_buffer": 7.1,
        "treasury_spread_type": 8.1,
        "spread_rate": 9.1,
        "fix_price_output": "sample string 10",
        "fix_quote_id": "sample string 11",
        "provider": "sample string 12",
        "inverse_rate": 13.1,
        "currency_price_rounding": 14,
        "sell_amount": 15.1,
        "buy_amount": 16.1,
        "buy_cur_id": 17,
        "sell_cur_id": 18,
        "inv_cur_id": 19,
        "fx_cur_id": 20,
        "spread_percentage": 21.1,
        "spread_profit": 22.1,
        "spread_points": 23.1,
        "value_date": "2025-12-31T19:09:19.5588784-05:00",
        "cross_rate": 25.1,
        "spread_fx": 26.1,
        "is_buy": true
      },
      "input": {
        "market_rate": 1.1,
        "exchange_rate": 1.1,
        "spread_profit": 1.1,
        "spread_percentage": 1.1
      }
    },
    {
      "rate": {
        "actual_market_rate": 1.1,
        "market_rate": 2.1,
        "exchange_rate": 3.1,
        "spread": 4.1,
        "spread_buffer": 5.1,
        "treasury_spread": 6.1,
        "treasury_spread_buffer": 7.1,
        "treasury_spread_type": 8.1,
        "spread_rate": 9.1,
        "fix_price_output": "sample string 10",
        "fix_quote_id": "sample string 11",
        "provider": "sample string 12",
        "inverse_rate": 13.1,
        "currency_price_rounding": 14,
        "sell_amount": 15.1,
        "buy_amount": 16.1,
        "buy_cur_id": 17,
        "sell_cur_id": 18,
        "inv_cur_id": 19,
        "fx_cur_id": 20,
        "spread_percentage": 21.1,
        "spread_profit": 22.1,
        "spread_points": 23.1,
        "value_date": "2025-12-31T19:09:19.5588784-05:00",
        "cross_rate": 25.1,
        "spread_fx": 26.1,
        "is_buy": true
      },
      "input": {
        "market_rate": 1.1,
        "exchange_rate": 1.1,
        "spread_profit": 1.1,
        "spread_percentage": 1.1
      }
    }
  ]
}

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 'RecalculateQuotes'.

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.