Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update default stake on trade parameter upon account switch #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shafin-deriv
Copy link
Contributor

This pull request includes changes to the trade_definition_tradeoptions block in the src/external/bot-skeleton/scratch/blocks/Binary/Trade Definition/trade_definition_tradeoptions.js file. The changes add checks for unsupported trade types and ensure that the minimum stake value is set correctly for certain currency blocks.

Key changes:

  • Added a check to exclude unsupported trade types 'multiplier' and 'accumulator' from processing.
  • Introduced additional checks to ensure that currency_block and currency_child_block exist before proceeding.
  • Set the value of currency_child_block to the minimum stake when both currency_block and currency_child_block are present.

Copy link

Preview Link: https://shafin-BOT-2621-fix1.bot-65f.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant