Price Display setting in plugins

Market data, Trading, Technical support, Features requests, etc
zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Price Display setting in plugins

Post by zcsoka » Thu Feb 16, 2023 8:05 am

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

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Price Display setting in plugins

Post by Svyatoslav » Thu Feb 16, 2023 10:19 am

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?

zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Re: Price Display setting in plugins

Post by zcsoka » Sun Feb 19, 2023 4:15 pm

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!

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: Price Display setting in plugins

Post by Svyatoslav » Mon Feb 20, 2023 11:51 am

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...

zcsoka
Posts: 290
Joined: Thu Dec 19, 2019 7:50 pm
Has thanked: 2 times
Been thanked: 28 times

Re: Price Display setting in plugins

Post by zcsoka » Mon Feb 20, 2023 12:45 pm

It is not important, I can put an accumulation tick size parameter in my code as well. Thanks for the info.

Post Reply