Jump to content

We have moved to Discord. Please click here to join us in the Trading Terminal Discord server.



These forums are read-only.

Alastair

Enhanced News Feed access for Symbol with DAS HotKey/Button

Recommended Posts

Alastair

Another Traders Tech Tool produced by BBT Community for the BBT Community...........

 

Following on the development of the "Enhanced Finviz Fundamentals HotKey/Button" we can take the same principles and apply to this project.  Essentially having a hotkey / hotbutton to get and present NEWS info for a specific symbol/ticker in a streamlined manner for the traders workflow.

Utilizing the the provided DAS command SHELL, pop up all the latest news for the symbol which is in the active montage while you are analyzing the charts using the previously created form factor, windows, browsers etc.

 

The major decision here is which is be the best source of the news being presented.  The options are :

1. BBT Benzinga News Feed - kept behind a "paywall" accessed by BBT members only, with the challenge of seamlessly being authorized to access via standalone browser, Opera.

2. Finviz - easily accessible but may require mods to previous dev project eliminating any conflicts as News data is on same web page as Fundamental data

3. Others - Open to suggestions......

 

I personally feel we should tend toward the News service provided by the BBT community website, BENZINGA, but we will need to overcome the challenges of passing through the authentication in another browser, Opera, possible while already signed into to the BBT website with the traders default browser.

 

@KyleK29Do u see an issue with accessing BBT Benzinga News page, passing the SYMBOL and session ID info, which I assume will give a trader access to the BENZINGA news search page ? 

What are the differences in this situation as we have at least one extra step ?

What could be the integration issues with protradingroom.com ?

Thank you

 

Share this post


Link to post
Share on other sites
Alastair

@Paul aka Aurbano if u have time and want to collaborate with @KyleK29 and myself on this Teach Tool for Traders, we would welcome ur skills and thought/feedback.

  • Thanks 1

Share this post


Link to post
Share on other sites
Paul aka Aurbano

TTT sounds good to me too ! i am all-in with it hehehe I think that tech is important step in the traders life and it must work for you, not the other way around... Also I'd love to spread the kindness of TWS which is a very powerful and suitable trading platform for lot of traders not interested in scalping.... So, short answer: count on me ! surely we can develop some cool tools all together @Alastair @KyleK29

  • Like 1

Share this post


Link to post
Share on other sites
Paul aka Aurbano

gettings the news headers from the finviz page based on the ticker symbol is easyly achivable using the same webscrap technology I coded for the ticker information .... you can setup a hotkey with DAS and call the python script on a command-line window .... that is very easy, however, since bezinga news is super powerful and updated frequently, I see no benefits on getting the news straight from FinViz..... More over, TWS has a powerful news subsystem backed up with bezinga and reuters. The chart will print a yellow horizontal triangle inside the 1m candle that the news was publicly released, meaning, real-time news on chart. You sincerely cannot top that 😅

  • Like 1

Share this post


Link to post
Share on other sites
Alastair

I submitted an edit/mod request to DAS for EVENTS / NEWS icon on the chart. To display pre-planned Earnings,  Conference Calls, General market moving news, so not sure if and when they would do that and how much extra they might charge. (TWS has edge on DAS for that and the 10 sec charts, which I want so bad 🤤)

However, in the mean time if we could create a hotbutton for news of selected symbol in montage, it would be more efficient for traders when prepping in the mornings.

 

Testing it I did the following:

- Configure Opera to open with last set of TABS.

- Logged into bearbulltraders.com on Opera

- Opened protrading.com Chat Room

- Tested BENZINGA Link, which worked

 

Then I setup DAS HotButton :

FocusWindow MONTAGEMAIN;  Shell BenzingaX01.bat  %SYMB%  ;

 

Calling the above  .BAT file had following lines

echo off
set SYMB=%1
start c:\Opera\DAS_Trader_Pro\launcher.exe https://protradingroom.com/public/bz/index.html?t=%SYMB%

 

(tried a number permutations e.g. "= %SYMB%", ...html, %SYMB% etc.)

 

And they all produced the below image:

Screenshot 2021-02-21 111427 BenzingaLoading.png

 

So it seems we need to talk to protradingroom.com via Andrew / Kyle ?  OR can we bend the code to our will to display Benzinga News for a symbol without any adjustments on the protradingroom.com side ?

Edited by Alastair

Share this post


Link to post
Share on other sites
Justin

Unfortunately I don't think you're going to get very far with this approach. Access to Benzinga is controlled through a token that you get when you log into the chatroom. You're skipping that with your direct link.

If you think of a way to retrieve that token first (It's simply in the URL when you click on it from the chat room) then you might be able to work it.

  • Thanks 1

Share this post


Link to post
Share on other sites
Paul aka Aurbano

I still have troubles to find an use all this works arounds... Isn't it easy enough to open 1 tab and type the ticker?

Share this post


Link to post
Share on other sites
Alastair
1 hour ago, Justin said:

Unfortunately I don't think you're going to get very far with this approach. Access to Benzinga is controlled through a token that you get when you log into the chatroom. You're skipping that with your direct link.

If you think of a way to retrieve that token first (It's simply in the URL when you click on it from the chat room) then you might be able to work it.

Thank you for the guidance. @Justin. Will definitely  use/consider in dev. thks

 

1 hour ago, Paul aka Aurbano said:

I still have troubles to find an use all this works arounds... Isn't it easy enough to open 1 tab and type the ticker?

I find one-click / one button much easier than multiple clicks plus typing, its more streamlined process.  I tend to automate any task that is repetitive,. Let the expensive computer you have in front of u do the boring stuff, keep brain for analyzing more complex charts. (Then again they will soon be doing the complex stuff too.)

I have DAS custom buttons, see below, to do repetitive stuff. Draw diff fibs, lines, boxes screen grabs etc.  Kyle has a StreamDeck XL with multiple pages of buttons. I tried with StreamDeck MobilePhone,  but the number of button was over loading my small brain, 😬  so just enough to get my process done in a streamed lined manner.  @Paul aka Aurbano I believe ur are a very fast thinker naturally, based on  how quick u provided solutions and answers, while I am a planner, detailed, long term analysis. Jus  an observation ......I could be wrong...... 🤨  thks.

 

 

 

Screenshot 2021-02-22 181545 CustomHotButtons.png

Share this post


Link to post
Share on other sites
Paul aka Aurbano

@Alastair if that helps you, here is the code for it getting the news from FinViz ...

Please, before first execution install the library :

pip install tabulate

Then you can set up a button in DAS that will link to the script this way:

python finviznews.py $TICKER1 [$TICKER2] ...

You will get a nice table with all the header news like this :

20210223-073755.thumb.jpg.c18b2c6e1e1eda3706f1e9031c7af1f1.jpg

As usual, upload limitations force to rename the file with the extension .TXT ..... do not forget to rename the file with the extension .PY after download.

Enjoy!

Paul

finviznews.txt

Edited by Paul aka Aurbano
  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
Alastair

Thks, will check it out after market close.

Share this post


Link to post
Share on other sites
Justin
11 hours ago, Paul aka Aurbano said:

@Alastair if that helps you, here is the code for it getting the news from FinViz ...

Just tried this out - this is so cool @Paul aka Aurbano!

What are the chances of making it work for... say... some of the technical data.... 😇

Like ATR, Short Float, Volume, etc.

Share this post


Link to post
Share on other sites
Paul aka Aurbano
1 hour ago, Justin said:

Just tried this out - this is so cool @Paul aka Aurbano!

What are the chances of making it work for... say... some of the technical data.... 😇

Like ATR, Short Float, Volume, etc.

Hi @Justin
do you mean something like this:

We touched that topic last week and the code is already developed, checked and posted.... Give it a try and let us know how does work in your workflow!

P.

  • Thanks 1

Share this post


Link to post
Share on other sites
Alastair

Hey @Paul aka Aurbano

That python code is great, awesome scraping.  With the scraping unfortunately we lose a couple of things:

          a) Links to underlining article

          b) Consistent interface, i.e. the opera browser,  losing some of the sleekness of Opera as the tool (TTT) from the  previous project.

How about we consider the following steps incorporating  @Justin  suggestion

The simplified steps are:

          1. DAS using the SHELL command calls .BAT file which calls python code passing %SYMB%....OR......it calls directly to python code.

          2. Python code opens "cookie" file or other token file in Opera in the ...../profile directory.  Searching for relevant protradingroom.com data fields (I believe its called Content.....) with URL link info (Opera can be installed in different directories).

          3. Python code then opens Opera with a new TAB with above info/URL plus %SYMB%

         4. We get opera, as in Image A below.

         5. Trader can then see and click on latest new article for the %SYMB%, see Image B.

 

NOTE:  I am already logged into BBT chat room (See tabs in image) which exposes BENZINGA logo at top. Not sure if this will always be required before hotkey is pressed.

 

What do u think about the above steps, possible ?

Image a

Screenshot 2021-02-24 171539 News Tool Image A.png

 

Image BScreenshot 2021-02-24 171633 News Tool Image B.png

 

Image CScreenshot 2021-02-24 171901 Opera Settings.png

Edited by Alastair

Share this post


Link to post
Share on other sites
Paul aka Aurbano

so, basicly, you want a "bezinga news" over the original bezinga news website ?? am I missing the point ??

Share this post


Link to post
Share on other sites
Justin
1 hour ago, Paul aka Aurbano said:

so, basicly, you want a "bezinga news" over the original bezinga news website ?? am I missing the point ??

Not quite, he's basically wanting to be able to fill in the Benzinga search box with the symbol that is in his montage. So if he's looking at AAPL in DAS, hits his hotkey, it'll open Benzinga and fill in the search box for AAPL.

The problem is that access to Benzinga is controlled through a token that you get when you log in through the chatroom. You can't just direct link to https://protradingroom.com/public/bz/index.html?t=%SYMB%

Either way, I mentioned that if you think of a way to retrieve that token first (It's simply in the URL when you click through from the chat room) then he might be able to get it to work.

Share this post


Link to post
Share on other sites

[[Template core/front/global/mobileNavigation is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.