POST api/Quotes/Weekend

Place a Weekend Quote sourced from tbl_rate_weekend (Friday closing rates). Available on Saturday and Sunday only, or any day when WEEKEND_RATE_TEST_MODE = 'TRUE' in tbl_settings (for development / testing). A rate is returned only when a record for the preceding Friday exists in tbl_rate_weekend, except in WEEKEND_RATE_TEST_MODE where the latest available rate for the pair is used regardless of its date (since the job runs daily and may not have a record for the exact preceding Friday).

Request Information

URI Parameters

None.

Body Parameters

QuoteParam
NameDescriptionTypeAdditional information
currency_sell

string

None.

currency_buy

string

None.

value_date

string

None.

sell_amount

decimal number

None.

buy_amount

decimal number

None.

quote_id

integer

None.

client_ref

string

None.

force_value_date

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "currency_sell": "sample string 1",
  "currency_buy": "sample string 2",
  "value_date": "sample string 3",
  "sell_amount": 1.1,
  "buy_amount": 1.1,
  "quote_id": 1,
  "client_ref": "sample string 4",
  "force_value_date": true
}

application/xml, text/xml

Sample:
<QuoteParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FXOPS_API.Controllers">
  <buy_amount>1.1</buy_amount>
  <client_ref>sample string 4</client_ref>
  <currency_buy>sample string 2</currency_buy>
  <currency_sell>sample string 1</currency_sell>
  <force_value_date>true</force_value_date>
  <quote_id>1</quote_id>
  <sell_amount>1.1</sell_amount>
  <value_date>sample string 3</value_date>
</QuoteParam>

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

Response Information

Resource Description

A Quote Result identical to the standard quote response

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.