NexusFi: Find Your Edge


Home Menu

 





Native/API support for L2 data


Discussion in Platforms and Indicators

Updated
      Top Posters
    1. looks_one Jasonnator with 4 posts (0 thanks)
    2. looks_two binaryduke with 2 posts (1 thanks)
    3. looks_3 rleplae with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,872 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

Native/API support for L2 data

  #1 (permalink)
 
Jasonnator's Avatar
 Jasonnator 
Denver, Colorado United States
 
Experience: Intermediate
Platform: NT8 + Custom
Broker: NT Brokerage, Kinetick, IQFeed, Interactive Brokers
Trading: ES
Posts: 159 since Dec 2014
Thanks Given: 40
Thanks Received: 166

Background:
I am trying to compile a list of platforms which support access to level 2 data via their API. I am developing an indicator (or standalone app/plugin) which will analyze full order book data upon which automated strategies will be built. Therefore, I need access to any order book update as it happens (event driven). Each instrument could have hundreds (or even thousands) of updates per second so polling is out of the question due to that approach not being able to scale to hundreds of instruments.

Since I know NinjaTrader's API very well I will use them as an example of native support via their API. NT8 supports it by exposing the override below. However, MultiCharts .NET only allows access to level 1 data via their API using the StartCalc() method which would require polling to get an order book snapshot.


 
Code
protected override void OnMarketDepth(MarketDepthEventArgs args)
{
   // arg.MarketDataType
   // arg.Volume
}
Any help from those familiar with the platforms below would be greatly appreciated.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
 
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


It is possible from nearly any package to also connect (socket tcp/ip) directly into IQfeed and do the things you want to do. IQ feed has a special L2 socket where all date is streamed.

You would need to procure a developer license on IQfeed

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 binaryduke 
London UK
 
Experience: Advanced
Platform: Sierra Chart, NinjaTrader
Trading: ES, CL, GC, ZB
Posts: 34 since Jun 2015

Sierra Chart can get to all the liquidity info in the book but you will need to poll the levels to assess changes - you won't receive event notifications of changes. Your study will be called at a user-defined chart update interval. Alternatively you could use Sierra Chart's DTC server as a way of accessing the liquidity data and keep your routine away from the charting platform. Feel free to drop me a PM if you'd like further discussions with a commercially-published developer with expertise in this space.

Follow me on Twitter Reply With Quote
  #5 (permalink)
 
Jasonnator's Avatar
 Jasonnator 
Denver, Colorado United States
 
Experience: Intermediate
Platform: NT8 + Custom
Broker: NT Brokerage, Kinetick, IQFeed, Interactive Brokers
Trading: ES
Posts: 159 since Dec 2014
Thanks Given: 40
Thanks Received: 166


rleplae View Post
It is possible from nearly any package to also connect (socket tcp/ip) directly into IQfeed and do the things you want to do. IQ feed has a special L2 socket where all date is streamed.

You would need to procure a developer license on IQfeed

Yes you are spot on correct with respect to IQFeed (they're awesome from a dev point of view). Maybe I should have mentioned this, I am trying to shy away from writing connectors to data providers. Instead, I am wanting to integrate this indicator into each platform.

Started this thread Reply With Quote
  #6 (permalink)
 
Jasonnator's Avatar
 Jasonnator 
Denver, Colorado United States
 
Experience: Intermediate
Platform: NT8 + Custom
Broker: NT Brokerage, Kinetick, IQFeed, Interactive Brokers
Trading: ES
Posts: 159 since Dec 2014
Thanks Given: 40
Thanks Received: 166


binaryduke View Post
Sierra Chart can get to all the liquidity info in the book but you will need to poll the levels to assess changes - you won't receive event notifications of changes. Your study will be called at a user-defined chart update interval. Alternatively you could use Sierra Chart's DTC server as a way of accessing the liquidity data and keep your routine away from the charting platform. Feel free to drop me a PM if you'd like further discussions with a commercially-published developer with expertise in this space.

I started looking at the DTC, specifically MARKET_DEPTH_REQUEST. My question is about DTC. Does DTC relay data to which Sierra Chart is connected? Example being Sierra Chart is getting data from IQFeed/IB/Rithmic, does DTC translate and send those data event through its protocol? If so, I could simply subscribe to DTC and let any data SC received be piped into my application.

Started this thread Reply With Quote
  #7 (permalink)
 binaryduke 
London UK
 
Experience: Advanced
Platform: Sierra Chart, NinjaTrader
Trading: ES, CL, GC, ZB
Posts: 34 since Jun 2015


Jasonnator View Post
I started looking at the DTC, specifically MARKET_DEPTH_REQUEST. My question is about DTC. Does DTC relay data to which Sierra Chart is connected? Example being Sierra Chart is getting data from IQFeed/IB/Rithmic, does DTC translate and send those data event through its protocol? If so, I could simply subscribe to DTC and let any data SC received be piped into my application.

https://www.dtcprotocol.org/

Exactly. You can use Sierra Chart as a DTC server.

https://www.sierrachart.com/index.php?page=doc/DTCServer.php

Follow me on Twitter Reply With Quote
  #8 (permalink)
 
Jasonnator's Avatar
 Jasonnator 
Denver, Colorado United States
 
Experience: Intermediate
Platform: NT8 + Custom
Broker: NT Brokerage, Kinetick, IQFeed, Interactive Brokers
Trading: ES
Posts: 159 since Dec 2014
Thanks Given: 40
Thanks Received: 166

I spoke with someone at TradeStation today and getting L2 data out of their platform is possible via their web API. However, to get API access, I was informed an account with at least 50k must be opened. That makes developing a TradeStation plugin or app cost prohibitive if that is in fact the case

Can anyone else confirm or shed light on this?

Any Jedi masters out there offloading full order book data from TradeStation?

Started this thread Reply With Quote




Last Updated on March 1, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts