The amount of level2 data is like 600+ rows. Is it possible to limit that return? Tweaking the List doesn't do anything.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Limit level 2 data in API...
Collapse
X
-
Hello funk10101,
The sample that you are working with already has some logic to help keep the list limited to what the data provider is offering so beyond that there would not be any way to control how many datapoints are sent from the provider. You could select specific elements from the list if you are trying to references certain datapoints instead of looping over the whole list.
-
I just want to grab the totals for 30 rows. I've done this in the MyEventHandler, setting "this.MaxRows":
Can you see an issue with this?Code:for (int i = 0; i < this.bidRows.Count; i++) { if (i < this.MaxRows) this.bidTotal += this.bidRows[i].Volume;[/B] } for (int i = 0; i < this.askRows.Count; i++) { if (i < this.MaxRows) this.askTotal += this.askRows[i].Volume;[/B] }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
15 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
42 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment