开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Purebasic and TWS


 

I'll be completely honest, if you find you stumble here, then it is very likely that your journey will be a hard one and you will likely waste time getting going when you should be working on something much more interesting.
Take one of the example code interfaces, and learn to read that language. It does not matter if it's c#, python or even java. All programming languages handle the same basic concepts you'll find you have transferable skills that map across. I would not be surprised if GPT or Replit couldn't generate the interface automatically. Honestly, learning new languages will save you a lot of time and provide you skills at the same time.?
If your attachment to Basic is because you have coded decision algorithms in that language, then perhaps you could drop the output to a database and simplify the execution side to simply running the positions according to what the DB says. Just an idea.
The reason I suggest all this is that if you go a direction that is traveled by you and you alone, then there will be no one here who can help you when the inevitable hiccups occur.

Best of luck,

M


On Thu, 5 Dec 2024 at 17:12, Tradiator via <yahoo=[email protected]> wrote:
I am sorry to be a bit stubborn but I prefer to start in Purebasic. Might change later eventually.
?
However I am struggling using the TWSlib.dll. I can connect to this lib but I am having problems to calling a function.
What I would like to know is if TWSlib is the best option or is it better to use the windows socket solution ?
I am not sure but it seems that the source code suppplied with TWS API of the other languages use the socket version ?
?
And I also have the impression that the socket version is more generic and makes the program independent of changes made by IB to TWSlib.
What do you think ?
?
Please help me, I really would like to start making TWSAPI calls and start working on the interesting part of the program.
?



--
+44 (0) 7528 551604?

Join [email protected] to automatically receive all group messages.