Page 1 of 1

Price Display setting in plugins

Posted: Thu Feb 16, 2023 8:05 am
by zcsoka
Greetings, 

In the General Configuration there is a setting Price Display in ticks. How can I get this setting in a plugin? It seems not to be in the InstrumentInfo.

Many thanks in advance

Re: Price Display setting in plugins

Posted: Thu Feb 16, 2023 10:19 am
by Svyatoslav
It's purely a visual setting affecting how frequent the prices will be on the price scale. It can be changed at any point and does not affect the instrument, thus it's not exposed through API.

Could you provide a use case where you need it?

Re: Price Display setting in plugins

Posted: Sun Feb 19, 2023 4:15 pm
by zcsoka
Hi Svyatoslav,

For my P&L plugin a client has asked if I could aggregate price levels as it is configured in the Bookmap configuration. I was not sure if it was available for the plugins, apparently it is not. 

Many thanks for the information!

Re: Price Display setting in plugins

Posted: Mon Feb 20, 2023 11:51 am
by Svyatoslav
Ah, got you... Unfortunately this information is not currently available. It's not something we can put into InstrumentInfo  since it changes on the fly, so to expose it we'd need some separate interface. Not sure how important having this in API is...

Re: Price Display setting in plugins

Posted: Mon Feb 20, 2023 12:45 pm
by zcsoka
It is not important, I can put an accumulation tick size parameter in my code as well. Thanks for the info.