API Developed Indicator into Notes

Custom indicators, trading strategies, data export and recording and more...
blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

Re: API Developed Indicator into Notes

Post by blk » Wed Nov 13, 2019 7:52 pm

Hi Andrey,

Thanks for the update, I guess 1 second will do for now.

The idea was to push data only when we have an alert instead of keep pulling the URL - I understand this will be added in the future.

Thanks again,
blk

kb_trader
Posts: 30
Joined: Wed Oct 09, 2019 10:49 pm
Been thanked: 13 times

Re: API Developed Indicator into Notes

Post by kb_trader » Sat Nov 16, 2019 3:36 pm

Once a second would be useful indeed.

Thank you!

kb_trader
Posts: 30
Joined: Wed Oct 09, 2019 10:49 pm
Been thanked: 13 times

Re: API Developed Indicator into Notes

Post by kb_trader » Wed Jan 22, 2020 1:13 am

What happened with this finally...noticed this in 7.1.0 build 27...but there are no details.

 2822  Changed  Enhancement  The functionality for the "Cloud notes" column was updated.

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: API Developed Indicator into Notes

Post by Andry API support » Wed Jan 22, 2020 11:24 am

Hi kb_trader,
Some minor Cloud Notes issues have been fixed for the latest build.
Custom Cloud Notes update interval is being tested at the moment and expected for the next release.

information123
Posts: 4
Joined: Sun Dec 13, 2020 2:24 pm

Re: API Developed Indicator into Notes

Post by information123 » Tue Jan 05, 2021 10:09 pm

Any resolution to this reducing cloud notes time getting set down to 1 second?  As this was about a year ago.

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

Re: API Developed Indicator into Notes

Post by Svyatoslav » Wed Jan 06, 2021 8:31 am

Hi. Not sure if this was announced/documented properly, but for a while now you can add 'X-Bookmap-Cloud-Notes-Refresh-Delay-Millis' Header to what your notes HTTP(S) url returns and that will determine when next notes reload happens.

E.g. if you will return a response containing
X-Bookmap-Cloud-Notes-Refresh-Delay-Millis: 5000
Bookmap is supposed to refresh these notes in 5 seconds.
You can go as low as 100ms, but that usually isn't necessary. Please be mindful about CPU load that it generates - parsing notes is not very efficient currently, so if you parse huge file every 100ms - that's going to be noticeable.

information123
Posts: 4
Joined: Sun Dec 13, 2020 2:24 pm

Re: API Developed Indicator into Notes

Post by information123 » Wed Jan 06, 2021 7:06 pm

Okay so currently I am running off a local file path file:///C:\FILEPATH\file.csv .  Where in the syntax there am I inputting that code?

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

Re: API Developed Indicator into Notes

Post by Svyatoslav » Wed Jan 06, 2021 7:10 pm

Hi. Unfortunately you can't do that with a local file, only with actual server that serves files via HTTP. You can use any server, for example such as the one built into PHP: https://www.php.net/manual/en/features. ... server.php and then make it return this header as part of response (in case of PHP you'll have to write a few lines in PHP to achieve that)

Post Reply