onDepth not fired for US stocks instrument using DXFEED

Custom indicators, trading strategies, data export and recording and more...
kahwai
Posts: 9
Joined: Fri Dec 07, 2018 12:55 am
Been thanked: 1 time

onDepth not fired for US stocks instrument using DXFEED

Post by kahwai » Tue Dec 11, 2018 3:10 pm

Bookmap did not fire onDepth function for dxFeed instrument, it works fine for cryptocurrency using gdax.

Here is my modification on Layer1ApiHelperChaseStrategy.java :

@Override
public void onDepth(String alias, boolean isBid, int price, int size) {
super.onDepth(alias, isBid, price, size);
Log.info("### onDepth " + alias);
}

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

Re: onDepth not fired for US stocks instrument using DXFEED

Post by Svyatoslav » Tue Dec 11, 2018 4:13 pm

Hi, that's happening because strategies/indicators are blocked with DxFeed due to exchange restrictions. I think we are missing a proper warning message, ideally it should inform you that it's blocked - I assume currently it does not.

kahwai
Posts: 9
Joined: Fri Dec 07, 2018 12:55 am
Been thanked: 1 time

Re: onDepth not fired for US stocks instrument using DXFEED

Post by kahwai » Tue Dec 11, 2018 5:20 pm

Noted, thank you

Post Reply