bot is running via GUI or CLI

Created at 05 Jul 2024, 15:56
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!
EY

eynt

Joined 08.05.2020

bot is running via GUI or CLI
05 Jul 2024, 15:56


Is there a way to know from code if my bot is running via GUI or CLI?

 

Thanks


@eynt
Replies

firemyst
07 Jul 2024, 12:52 ( Updated at: 07 Jul 2024, 16:00 )

 

Out of curiosity, why do you want to know whether a bot is running from the CLI or GUI??

 

 


@firemyst

ncel01
07 Jul 2024, 22:04 ( Updated at: 08 Jul 2024, 04:51 )

Hi There,

I've also raised this question months ago.
At the time there was no way to know this.
https://ctrader.com/forum/ctrader-algo/43133#post-108124

I'd like to get this info programmatically to bypass any message boxes when CLI is applicable (otherwise it won't work).
While this option is not available, I am adding this info manually as an input.

 


@ncel01

PanagiotisCharalampous
08 Jul 2024, 05:01

Hi there,

No there is no such info provided at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous