how to determine min quantity for Symbol

Created at 16 Nov 2021, 21:18
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BL

blockchainTrader1

Joined 16.11.2021

how to determine min quantity for Symbol
16 Nov 2021, 21:18


Is there a way for cBOT to determine the minimum quantity required for a purchase of specific Symbol.

 

This way when I run the bot on stock vs. commodity vs etf etc it can automatically update the min quantity for buy orders without me having to set it manually in code.


@blockchainTrader1
Replies

amusleh
17 Nov 2021, 07:46

Hi,

Each symbol has a minimum and maximum volume properties that you can use for checking the symbol minimum and maximum allowed trading volume.

The properties are in in volume units not lots, you can use the symbol VolumeInUnitsToQuantity method to change the volume units to lots.


@amusleh