User Config API reference
This page is a reference to the configuration options found on the User Config classes.
Config
Config
describes application and account settings for the logged-in user.
Function | Description |
---|---|
Configure client applications for the user. |
|
|
Configure accounts that belong to the user. |
Configure accounts the user can trade on behalf of. |
|
Configure the logged-in user. |
new Config()
.application(new Application()
.pro(new Pro()
.workspace(new ProWorkspace()
.allowEditing(true)
.defaultLayouts(ImmutableList.of("Layout1", "Layout2"))
)
)
)
.defaultAccounts(Collections.singletonMap(
"ExampleAccount",
new Account().description("ExampleAccount")
))
.tobo(new TOBO().entities(ImmutableMap.of(
"E1", new Entity()
.description("Entity 1")
.accounts(ImmutableMap.of(
"Acc1", new Account().description("Account 1"),
"Acc2", new Account().description("Account 2")
))
.users(ImmutableMap.of(
"user1@caplin.com",
new User().description("Caplin - User 1 Caplin")
))
)))
.userInfo(new UserInfo().displayName("Demo User"));
FXConfig
FXConfig
describes FX feature permissions for a user, and for sales users acting on their behalf. It may be requested directly by FX Professional for the logged-in user, or by FX Sales when a sales user selects a user to trade on behalf of.
Currencies
This section lists the configuration options for currency pair permissions.
You can supply permission overrides for any ESP and RFS at a currency pair granularity level. See the example at the end of this section for how to do this.
Function | Description |
---|---|
|
A list of individual currencies the user has permission to trade with. Individual currencies configured with matching permissions will be combined into currency pairs. If |
|
A list of currency pairs the user has permission to trade with. Takes precedence over |
new FXConfig()
.fx(
new FX()
.currencyPairs(new HashMap<String, FXCurrencyPair>() {{
put("GBPUSD", new FXCurrencyPair()
.overrides(new FXCurrencyPairOverrides()
.rfs(
new FXRfs()
.defaultDeliverableType(DELIVERABLE)
.single(new FXRfsSingle()
.deliverable(new FXRfsSingleDeliverable()
.outright(new FXRfsSingleDeliverableOutright()
.enabled(true)
)
.timeOption(new FXRfsSingleDeliverableTimeOption()
.enabled(true)
)
)
.nonDeliverable(new FXRfsSingleNonDeliverable()
.outright(new FXRfsSingleNonDeliverableOutright()
.enabled(true)
)
)
)
.block(new FXRfsBlock()
.deliverable(new FXRfsBlockDeliverable()
.outright(new FXRfsBlockDeliverableOutright()
.enabled(true)
)
)
)
)
.esp(
new FXEsp()
.defaultDeliverableType(DELIVERABLE)
.single(new FXEspSingle()
.deliverable(new FXEspSingleDeliverable()
.outright(new FXEspSingleDeliverableOutright()
.enabled(true)
)
)
.nonDeliverable(new FXEspSingleNonDeliverable()
.outright(new FXEspSingleNonDeliverableOutright()
.enabled(true)
)
)
)
)
)
);
}}
)
);
Charts
These are the configuration options for the Charts feature, configurable via FXFeaturesCharts
.
Function | Description |
---|---|
Set to |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.charts(
new FXFeaturesCharts()
.enabled(true)
)
)
);
Cover Trade
These are the configuration options for the Cover Trade feature, configurable via FXFeaturesCoverTrade
.
Function |
Description |
Set to |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.coverTrade(
new FXFeaturesCoverTrade()
.enabled(true)
)
)
);
ESP (Executable Streaming Price)
These are the configuration options for the ESP feature, configurable via FXEsp
.
Function | Description |
---|---|
|
Set the deliverable type that is selected by default in the FX Tile. Available options are: |
Provide an |
|
|
Provide a list of actions users can choose to occur when they click on an FX Tile. Available options are:
|
|
Set to |
Set to |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.esp(
new FXEsp()
.defaultDeliverableType(DeliverableType.DELIVERABLE)
.submitActions(ImmutableList.of(EXECUTE))
.submitActionSwitchEnabled(true)
.twoWayEnabled(true)
.single(new FXEspSingle()
.deliverable(new FXEspSingleDeliverable()
.outright(new FXEspSingleDeliverableOutright()
.enabled(true)
)
)
.nonDeliverable(new FXEspSingleNonDeliverable()
.outright(new FXEspSingleNonDeliverableOutright()
.enabled(true)
)
)
)
)
)
);
Historic Search
These are the configuration options for the Historic Search feature, configurable via HistoricSearch
.
Function | Description |
---|---|
|
Provide a list of fields a user can search by. |
|
Set the search mode to be used by Historic Search. Available options are:
|
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.historicSearch(
new HistoricSearch()
.searchFields(ImmutableList.of(new Field()))
.searchMode(HistoricSearchSearchMode.STREAM)
)
)
);
Order Strategies
These are the configuration options for the Order Strategies feature, configurable via FXStrategy
.
Function | Description |
---|---|
|
Set to |
For two-leg orders. If the first leg is filled, the second leg is activated. Provide an enabled |
|
For three-leg orders. If the first leg is filled, a loop between the second and third legs is activated. Provide an enabled |
|
For three-leg orders. If the first leg is filled, the second and third legs are activated. If either the second or third leg is filled, the other is cancelled. Provide an enabled |
|
For two-leg orders. A filled leg triggers the next leg in a loop until cancelled. Provide an enabled |
|
For two-leg orders. If the first leg is filled, the second leg is cancelled. Provide an enabled |
|
For single-leg orders. Provide an enabled |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.orderStrategies(
new FXStrategy()
.activationDateEnabled(true)
.ifDone(new OrderStrategy())
.ifDoneLoop(new OrderStrategy())
.ifDoneOCO(new OrderStrategy())
.loop(new OrderStrategy())
.oco(new OrderStrategy())
.single(new OrderStrategy())
)
)
);
Post-Trade Allocation
These are the configuration options for the Post-Trade Allocation feature, configurable via FXFeaturesPostAllocation
.
Function | Description |
---|---|
Set to |
|
|
Set to |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.postAllocation(
new FXFeaturesPostAllocation()
.enabled(true)
.toboSelectionDisplayEntity(true)
)
)
);
RFS (Request For Stream)
These are the configuration options for the RFS (Request For Stream) feature, configurable via FXRfs
.
Function | Description |
---|---|
Supply an |
|
|
Set the default deliverable type that is selected by default in the FX Ticket. Available options are: |
Supply an |
|
Supply an |
|
Supply an |
|
Set to |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.rfs(
new FXRfs()
.defaultDeliverableType(DeliverableType.DELIVERABLE)
.twoWayEnabled(true)
.single(new FXRfsSingle()
.deliverable(new FXRfsSingleDeliverable()
.outright(new FXRfsSingleDeliverableOutright()
.enabled(true)
)
.timeOption(new FXRfsSingleDeliverableTimeOption()
.enabled(true)
)
)
.nonDeliverable(new FXRfsSingleNonDeliverable()
.outright(new FXRfsSingleNonDeliverableOutright()
.enabled(true)
)
)
)
.swap(new FXRfsSwap()
.deliverable(new FXRfsSwapDeliverable()
.outright(new FXRfsSwapDeliverableOutright()
.enabled(true)
)
)
.nonDeliverable(new FXRfsSwapNonDeliverable()
.outright(new FXRfsSwapNonDeliverableOutright()
.enabled(true)
)
)
)
.block(new FXRfsBlock()
.perLegClientSelectionEnabled(true)
.toboSelectionDisplayEntity(true)
.deliverable(new FXRfsBlockDeliverable()
.outright(new FXRfsBlockDeliverableOutright()
.enabled(true)
)
.timeOption(new FXRfsBlockDeliverableTimeOption()
.enabled(true)
)
)
.nonDeliverable(new FXRfsBlockNonDeliverable()
.outright(new FXRfsBlockNonDeliverableOutright()
.enabled(false)
)
)
)
)
)
);
Settlement Instructions
These are the configuration options for the Settlement Instructions feature, configurable via FXFeaturesSettlementInstructions
.
Function | Description |
---|---|
|
Set to true to allow users to add ad-hoc Settlement Instructions to trades. |
|
Set to true to allow users to create new Settlement Instructions. |
|
Set to true to allow users to add Settlement Instructions pre-trade. |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.settlementInstructions(
new FXFeaturesSettlementInstructions()
.adHocEnabled(true)
.createEnabled(true)
.preTradeEnabled(true)
)
)
);
Watch Lists
These are the configuration options for the Watch Lists feature, configurable via FXFeaturesWatchLists
.
Function | Description |
---|---|
Set to |
new FXConfig()
.fx(
new FX()
.features(
new FXFeatures()
.watchLists(
new FXFeaturesWatchLists()
.enabled(true)
)
)
);
FXSalesConfig
FXSalesConfig
describes FX feature permissions for a sales user. It may only be requested by FX Sales for the logged-in user.
Currencies
This section lists the configuration options for currency pair permissions.
Function | Description |
---|---|
|
Set a list of currency pairs the user has permission to trade with. |
new FXSalesConfig()
.fx(
new FX()
.currencyPairs(ImmutableList.of("GBPUSD", "USDJPY"))
);
Historic Search
These are the configuration options for the Historic Search feature, configurable via HistoricSearch
.
Function | Description |
---|---|
|
Provide a list of fields a user can use to search by. |
|
Set the search mode to be used by Historic Search. Available options are:
|
new FXSalesConfig()
.fx(
new FX()
.features(
new FXFeatures()
.historicSearch(
new HistoricSearch()
.searchFields(ImmutableList.of(new Field()))
.searchMode(HistoricSearchSearchMode.STREAM)
)
)
);
Sales Intervention
These are the configuration options for the Sales Intervention feature, configurable via FXFeaturesIntervention
.
Function | Description |
---|---|
Set to |
new FXSalesConfig()
.fx(
new FX()
.features(
new FXFeatures()
.intervention(
new FXFeaturesIntervention()
.enabled(true)
)
)
);
Order Strategies
These are the configuration options for the Order Strategies feature, configurable via FXFeaturesOrderStrategies
.
Function | Description |
---|---|
|
Set to |
new FXSalesConfig()
.fx(
new FX()
.features(
new FXFeatures()
.orderStrategies(
new FXFeaturesOrderStrategies()
.enabled(true)
)
)
);
Post-Trade Allocation
These are the configuration options for the Post-Trade Allocation feature, configurable via FXFeaturesPostAllocation
.
Function | Description |
---|---|
Set to |
|
|
Specify from which source the Post-Trade Allocation entity dropdown options are populated.
|
new FXSalesConfig()
.fx(
new FX()
.features(
new FXFeatures()
.postAllocation(
new FXFeaturesPostAllocation()
.enabled(true)
.toboSelection(TOBOSelection.USER_CONFIG)
)
)
);
RFS (Request For Stream)
These are the configuration options for the RFS feature, configurable via FXFeaturesRfs
.
Function | Description |
---|---|
|
Supply an |
new FXSalesConfig()
.fx(
new FX()
.features(
new FXFeatures()
.rfs(
new FXFeaturesRfs()
.blockTrading(new FXFeaturesRfsBlockTrading())
)
)
);
MMConfig
MMConfig
describes MM (Money Markets) feature permissions for a user, and for sales users acting on their behalf. It may be requested directly by FX Professional for the logged-in user, or by FX Sales when a sales user selects a user to trade on behalf of.
Currencies
This section lists the configuration options for currency permissions.
Function | Description |
---|---|
|
Set a list of currency pairs the user has permission to trade with. |
new MMConfig()
.mm(
new MM()
.currencies(ImmutableMap.of("GBP", new MoneyMarketsCurrency()))
);
Historic Search
These are the configuration options for the Historic Search feature, configurable via HistoricSearch
.
Function | Description |
---|---|
|
Provide a list of fields a user can use to search by. |
|
Set the search mode to be used by Historic Search. Available options are:
|
new MMConfig()
.mm(
new MM()
.features(
new MMFeatures()
.historicSearch(
new HistoricSearch()
.searchFields(ImmutableList.of(new Field()))
.searchMode(HistoricSearchSearchMode.STREAM)
)
)
);
RFS (Request For Stream)
These are the configuration options for the RFS feature, configurable via MMRfs
.
Function | Description |
---|---|
Supply an |
|
Supply an |
|
Set to |
|
|
Supply an |
Supply an |
|
Supply an |
|
|
Supply an |
Supply an |
|
Supply an |
new MMConfig()
.mm(
new MM()
.features(
new MMFeatures()
.rfs(
new MMRfs()
.callDeposit(new MMRfsCallDeposit())
.deposit(new MMRfsDeposit())
.enabled(true)
.flexiNoticeDeposit(new MMRfsFlexiNoticeDeposit())
.governmentBond(new MMRfsGovernmentBond())
.loan(new MMRfsLoan())
.paymentFrequency(new MMRfsPaymentFrequency())
.termDeposit(new MMRfsTermDeposit())
.treasuryBill(new MMRfsTreasuryBill())
)
)
);
MMSalesConfig
MMSalesConfig
describes MM feature permissions for a sales user. It may only be requested by FX Sales for the logged-in user.
Sales Intervention
These are the configuration options for the Sales Intervention feature, configurable via MMFeaturesIntervention
.
Function | Description |
---|---|
Set to |
new MMSalesConfig()
.mm(
new MM()
.features(
new MMFeatures()
.intervention(
new MMFeaturesIntervention()
.enabled(true)
)
)
);
CommoditiesConfig
CommoditiesConfig
describes Commodities feature permissions for a user, and for sales users acting on their behalf. It may be requested directly by FX Professional for the logged-in user, or by FX Sales when a sales user selects a user to trade on behalf of.
See also: