Determine cBot channel programmatically

Created at 11 Mar 2024, 11:20
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!
NC

ncel01

Joined 19.03.2020

Determine cBot channel programmatically
11 Mar 2024, 11:20


Hello,

Is it possible to programmatically determine what is the applicable cBot channel (cTrader, console, etc.) ?

Thanks.


@ncel01
Replies

PanagiotisCharalampous
11 Mar 2024, 13:24

Hi ncel01,

No, all trades coming from cBots come from the cBot cTrader channel.

Best regards,

Panagiotis


@PanagiotisCharalampous

ncel01
11 Mar 2024, 14:26

RE: Determine cBot channel programmatically

PanagiotisCharalampous said: 

Hi ncel01,

No, all trades coming from cBots come from the cBot cTrader channel.

Best regards,

Panagiotis

Hi Panagiotis,

Isn't there a distinction between cTrader and console? In the position details I can see that “cBot console” is mentioned for the channel (cBot is running though the CLI).

Isn't it possible to programmatically identify if a cBot is running through cTrader or the CLI? I'd like to apply some conditionals based on this.

Thanks.


@ncel01

PanagiotisCharalampous
12 Mar 2024, 06:10

RE: RE: Determine cBot channel programmatically

ncel01 said: 

PanagiotisCharalampous said: 

Hi ncel01,

No, all trades coming from cBots come from the cBot cTrader channel.

Best regards,

Panagiotis

Hi Panagiotis,

Isn't there a distinction between cTrader and console? In the position details I can see that “cBot console” is mentioned for the channel (cBot is running though the CLI).

Isn't it possible to programmatically identify if a cBot is running through cTrader or the CLI? I'd like to apply some conditionals based on this.

Thanks.

Hi ncel01,

Unfortunately there is no such option at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

ncel01
12 Mar 2024, 08:53

RE: RE: RE: Determine cBot channel programmatically

PanagiotisCharalampous said: 

ncel01 said: 

PanagiotisCharalampous said: 

Hi ncel01,

No, all trades coming from cBots come from the cBot cTrader channel.

Best regards,

Panagiotis

Hi Panagiotis,

Isn't there a distinction between cTrader and console? In the position details I can see that “cBot console” is mentioned for the channel (cBot is running though the CLI).

Isn't it possible to programmatically identify if a cBot is running through cTrader or the CLI? I'd like to apply some conditionals based on this.

Thanks.

Hi ncel01,

Unfortunately there is no such option at the moment.

Best regards,

Panagiotis

Thanks for confirming this.

Do you think there is a need to suggest for this or, will it be added in the future anyway?

Thanks.


@ncel01

PanagiotisCharalampous
13 Mar 2024, 07:00

RE: RE: RE: RE: Determine cBot channel programmatically

ncel01 said: 

PanagiotisCharalampous said: 

ncel01 said: 

PanagiotisCharalampous said: 

Hi ncel01,

No, all trades coming from cBots come from the cBot cTrader channel.

Best regards,

Panagiotis

Hi Panagiotis,

Isn't there a distinction between cTrader and console? In the position details I can see that “cBot console” is mentioned for the channel (cBot is running though the CLI).

Isn't it possible to programmatically identify if a cBot is running through cTrader or the CLI? I'd like to apply some conditionals based on this.

Thanks.

Hi ncel01,

Unfortunately there is no such option at the moment.

Best regards,

Panagiotis

Thanks for confirming this.

Do you think there is a need to suggest for this or, will it be added in the future anyway?

Thanks.

Hi ncel01,

We do not have such plans at the moment, therefore feel free to suggest it.

Best regards,

Panagiotis


@PanagiotisCharalampous