That's a feature - you may call it bug - of the Genesis system. Every pending order reduces your Buying Power as if it were executed. So the BP check is done at order entry time, not at order execution time.
I have experienced a similar problem. My goal actually is to write a Java JNI library that interfaces to the GTAPIB. Problem are the call backs. Tried to create a dummy capture window within the interfacing dll whose messaging loop runs on a separate Java thread. Used that windows HWND for...
I have experienced the same connection problems. I have a rather fast line and no problems within the Laser Application. But the with the API I get Quote disconnects/connects very often. Must be a problem at Genesis. I have not seen this problem before. Must be new within the last few weeks...