Hi, my programmer and i have been having trouble sending market order to Genesis api. So far the only thing that works is if we bid on isld with a couple of cents higher than ask it works. And we do the reverse when selling. I'll post how he coded it, so can someone please comment on what he's doing wrong. We tried using Brut for Nasdaq and OESD for NYSE stocks when trying to send a market order. Here's the code for sending order to OESD and Brut.
********************************************
48682295 (5:55:59 PM): the code for filling initial ordering system is:
If Len(sStockSymb) > 3 Then
StockECN(f) = GTAPINet.GTSession.MMID_BRUT
Else
StockECN(f) = GTAPINet.GTSession.MMID_OESD
End If
********************************************
Here's the code for sending market orders to brut/oesd
===================
MyOrder(f) = New GTAPINet.GTSession.GTOrder32
StockTrading(f).InitOrder(MyOrder(f))
StockTrading(f).Ask(MyOrder(f), Abs(StockNumberOfShares(f)), 0, StockECN(f))
MyOrder(f).chPriceIndicator = "1"
MyOrder(f).m_bBrutAutoRoute = 1
StockTrading(f).PlaceOrder(MyOrder(f))
********************************************
48682295 (5:55:59 PM): the code for filling initial ordering system is:
If Len(sStockSymb) > 3 Then
StockECN(f) = GTAPINet.GTSession.MMID_BRUT
Else
StockECN(f) = GTAPINet.GTSession.MMID_OESD
End If
********************************************
Here's the code for sending market orders to brut/oesd
===================
MyOrder(f) = New GTAPINet.GTSession.GTOrder32
StockTrading(f).InitOrder(MyOrder(f))
StockTrading(f).Ask(MyOrder(f), Abs(StockNumberOfShares(f)), 0, StockECN(f))
MyOrder(f).chPriceIndicator = "1"
MyOrder(f).m_bBrutAutoRoute = 1
StockTrading(f).PlaceOrder(MyOrder(f))