OptionalauthorizeOptionalavailableorder intents for the prepared instrument
OptionalbuildIf defined, a detailed cost estimation can be retrieved using the token generated by this function, using the getDetailedCostEstimationTable of the session.
OptionalclearingIf set, the user must select the clearing account to use. The order must have clearingAccountNo set in that case.
OptionalestimateEstimate the order costs. If it is set, can be called
If maySkipCostEstimation is true and the user has decided to skip it, it should not be called.
All available exchanges with their order creation capabilities.
OptionalgetGet an OTC quote.
Matched instrument, as defined by the external instruments dependency.
OptionalinstrumentIf given, an info icon will be shown next to the instrument selection button.
OptionalmayIf this is true, frontends are not allowed to set an exchange default. Users must select an exchange explicitly.
OptionalperformIf true, it is not allowed to create the order (= call authorizedOrder.perform()) before presenting the costs to the user.
This means, while the costs are loading, frontends should disable the perform order button.
OptionalpxFor PX: may set pxExpertDisclosure flag.
OptionalquoteIf true, "calculate costs" is only available if a quote is ready to be accepted (i.e. it has been successfully requested using getQuote)
OptionalriskOptionaldefaultStartValue?: stringDefault value suggestion (if instrument is already in portfolio, may be the current units) for the size form field.
The label for the size field.
OptionalstepSize?: stringSuggestion for size field +/- button step size to use.
OptionalsizeThis may restrict the number of decimals that users should be allowed to provide for a sizeUnit.
E.g., if this is { XXX: 2, EUR: 5 }, the UI should allow the user to enter 2 decimals for sizeUnit XXX and 5 decimals for sizeUnit EUR.
If it is not set or the selected sizeUnit is not defined in the map, frontends should not restrict the number
of decimals the user can enter.
OptionalsizeThe default size unit for the instrument. Note that getSizeUnits may reveal more options, if it is implemented
for the broker.
If is not though, this must be used (if set).
Optionalsizesizeunits per cash account and their label/unit e.g. { 123456789: { XXX: {label:'Stück', unit: 'Stück', EUR: {label: 'Nominalwert in EUR', unit: 'EUR' }}
OptionalstrikingIf set, a striking hint that is visible at all times in the order mask, informing about special attributes of the instrument must be displayed.
OptionaltradingIf true, trades for this security must be sent to the external crypto trading service.
This must be indicated in the frontend as well (sending the request to the external service is handled inside of bg-trading).
OptionalcreateSubscribe to the available order intents.
OptionalcreateOnly available for JFD: compute the StopLoss value by pip distance
the order to calculate the stop loss value for
OptionalcreateOnly available for JFD: compute the TakeProfit value by pip distance
the order to calculate the stop loss value for
OptionalcreateCalculate values for the given order.
the order to calculate values for
OptionalcreateOptionalgetOptionalgetDetermine which sizeUnits and their labels are available for the given order values. Whenever
one of the values clearingAccountNo, orderModel or direction is set, this function must be
called by the UI to populate the list of selectable sizeUnits (and the according labels).
Example return value:
[
{ sizeUnit: 'XXX', sizeLabel: 'Stück', unitLabel: 'Stück' },
{ sizeUnit: 'EUR', sizeLabel: 'Nominalwert in EUR', unitLabel: 'EUR' },
]
If this function is not implemented, it is possible that sizeUnit is always the same for this instrument. In this
case the only possible value is defined in sizeUnit.
currently selected values that sizeUnits depend on
Check whether it is possible to provide a stopLoss value for the given order parameter
combination.
currently selected order values
Check whether it is possible to provide a takeProfit value for the given order parameter
combination.
currently selected order values
authorize an order (e.g. request a mobile TAN).