Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Last Price and size function
Collapse
X
-
Pobo,
MarketData() is what you use to grab data. If you want to get last you just change that 1 parameter to 0.
double MarketData(string instrument, int type)
Gets the most recent price for the specified instrument and data type. 0 = last, 1 = bid, 2 = ask. You must first call the SubscribeMarketData() function prior to calling this function.
-
Last Price and size function
Hi
I am able to use the MarketData function and get correct prices but am unable to obtain the last price and size using the COM Interface with VB.
gobjNinjaClient.MarketData("6E 06-09", 1) - works
gobjNinjaClient.Last("6E 06-09", dblPrice, intSize) - does not work
Please does anyone know what I am doing wrong?
Thanks
PoboTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
18 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
120 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
174 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
92 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
134 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Leave a comment: