Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/trade/tradeDialog.es6
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,14 @@ function init_state(available,root, dialog, symbol, contracts_for_spot){
if (state.categories.value.contract_category === 'digits') {
request.barrier = state.digits.value + '';
}
if (state.categories.value.contract_category === 'lookback') {
if (state.basis.amount > 1000) {
state.proposal.error = 'Maximum multiplier of 1000.'.i18n();
state.proposal.message = '';
state.proposal.loading = false;
return;
}
}
if (state.date_start.value !== 'now') {
request.date_start = state.date_start.value * 1;
}
Expand Down