Interceptor of the trade events

Custom indicators, trading strategies, data export and recording and more...
hesaid
Posts: 21
Joined: Tue Sep 01, 2020 12:34 pm
Has thanked: 1 time
Been thanked: 1 time

Interceptor of the trade events

Post by hesaid » Sat Sep 12, 2020 5:25 pm

Hi,
I'd like to intercept events when I make a trade within DOM or CHART using right/left click of the mouse. I couldn't find a clear sample of this operation. Please advise.

Thanks
Last edited by hesaid on Sun Sep 13, 2020 11:50 am, edited 1 time in total.

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

Re: Interceptor of the trade events

Post by Svyatoslav » Sun Sep 13, 2020 11:22 am

Hi. If you want to rewrite downstream events (from UI to provider) - take a look at this:
https://github.com/BookmapAPI/DemoStrat ... ilter.java
It just blocks large orders, but you could do something else.

If you want to intercept mouse clicks (not the order submissions) - that's unfortunately not possible currently, but it is in the list of things we want to eventually implement.

hesaid
Posts: 21
Joined: Tue Sep 01, 2020 12:34 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Interceptor of the trade events

Post by hesaid » Tue Sep 15, 2020 6:33 pm

It's working fine.
Small tip: don't forget to compile jar with Java 8.

Thank you Andrey, Svyatoslav for the prompt response!
The thread can be closed now

Post Reply