# Messages in FX Sales

**❗ IMPORTANT**\
This documentation is for FX Sales 1.16 and below. From version 1.17 (27 Jan 2017), FX Sales requires backend adapters to implement the FX Integration API 3. For documentation on trade models and messages in FX Integration API 3, see [FX Integration API,window="_blank"](../../fx-integration-api/index.md).

Various message specifications are used across the FX Sales Motif. Each message contains fields and values required to successfully perform a specific action using the Motif. See [Messages and fields](st-the-fx-integration-api.md#messagesandfields) for more information.

You will find a full list of all message specifications in the links at the [very bottom of this page](#messagespecificationlist). Although each message specification is necessarily different, there are common field terminologies and conventions used across all of them:

## Field naming conventions

Fields in messages are named according to the following conventions:

* Fields that relate to a trade leg are prefixed by **L&lt;leg number>_**. For example, **L1_Amount** represents the amount on the first leg of a trade.
* There is no leg zero, therefore no field will start with the prefix **L0_**.
* A trade always has at least one leg.
* Some fields relate to a trade as a whole rather than any individual leg, and these fields have no prefix. For example, CurrencyPair and TradingType.
* Fields that relate only to forwards begin with **Fwd**, for example **L1_FwdBidPips**.
* Fields that relate only to swaps begin with **Swap**, for example **SwapBidPips**.
* The term **rate** always denotes a field containing an FX rate, for example 1.52312.
* The term **points** always denotes a field containing forward points **specified as a decimal number**. For example, if there are 6.5 forward points on a GBP/USD rate then the value of the **L1_FwdBidPoints** field would contain the value 0.00065. This is because 0.00065 added to a spot rate such as 1.50000 would give a forward rate of 1.50065, which is a 6.5 points higher than the spot rate. Note that this field is typically not useful for display to the client.
* The term pips always denotes a field containing forward points **specified as pips**. For example, if there are 6.5 forward points on a GBP/USD rate then the value of the **L1_FwdBidPips** field would contain the value 6.5. This is typically the field you want to display to the client for forwards and swaps.
* The term **price** is deprecated and should no longer be used in any field names due to its ambiguous nature.

## Subjects in FX Sales

Assuming a typical back-end system has the following [integration adapters](st-the-fx-integration-api.md#novodescription): Rates, Trading, Calendar. The following table denotes what is requested:

| Item | Data Type | Adapters Providing | Route | Unmapped Subject | Mapped Subject |
| --- | --- | --- | --- | --- | --- |
| Global streaming rates | Record | Rates | Direct | /FX/USDJPY/&lt;Tenor>/&lt;DealtCurrency>/&lt;Amount> | /FX/USDJPY/&lt;Tenor>/&lt;DealtCurrency>/&lt;Amount>/&lt;MarginBand> |
| RFS trade channel | Record | Trading | Direct | /PRIVATE/TRADE/FX%1 | /PRIVATE/%U/TRADE/FX%1 |
| Execution Blotter | Container | Trading, Historic | via [Transformer,window="_blank"](../../caplin-platform/transformer/index.md) | /PRIVATE/FX/SALES/BLOTTER/EXECUTION | /PRIVATE/%u/FX/SALES/BLOTTER/EXECUTION |
| Execution blotter items | Record | Trading, Historic | via [Transformer,window="_blank"](../../caplin-platform/transformer/index.md) | /PRIVATE/FX/SALES/BLOTTER/EXECUTION/%u | /PRIVATE/%u/FX/BLOTTER/ITEM/%1 |
| Tenor Dates | Record | Calendar | Direct | /CALENDAR/TENORDATES/&lt;CurrencyPair> | No mapping |
| Settlement Dates | Record | Calendar | Direct | /CALENDAR/SETTLEMENTDATE/&lt;CurrencyPair>/&lt;Year>/&lt;Month> | No mapping |
| Client search | Record | Client search | Direct | /PRIVATE/CLIENTSEARCH/QUERY/&lt;clientQueryString> | /PRIVATE/%u/CLIENTSEARCH/QUERY/&lt;clientQueryString> |
| Querying | Container | Client search | Direct | /PRIVATE/USERSEARCH/QUERY/user=&lt;userQueryString>&client=&lt;clientQueryString> | /PRIVATE/&lt;USERNAME>/USERSEARCH/QUERY/user=&lt;userQueryString>&client=&lt;clientQueryString> |
| User search | Record | Client search | Direct | /PRIVATE/&lt;SALES_USERNAME>/USERSEARCH/USERS/&lt;USERNAME> | No mapping |

For explanations on data types ([records,window="_blank"](../../caplin-platform/datasource/datasource-records.md) and [containers,window="_blank"](../../caplin-platform/datasource/datasource-containers.md)) see [here,window="_blank"](../../caplin-platform/datasource/datasource-data-types.md).

A _Direct_ route implies a request for data sent directly through a [Liberator,window="_blank"](../../caplin-platform/liberator/index.md) and not via a Transformer

---

**<a name="messagespecificationlist"></a>See also:**

* [Sales RFS Trade Messages](st-rfs-trade-messages.md)
* [Client Search: Containers and Records](st-client-search-messages.md)
* [Sales Order Detail Records](st-order-detail-messages.md)
* [Sales Order Submision Messages](st-sales-order-submission-messages.md)
