¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

2FA on temporary gateway instances


 

Currently, I run the IB Gateway in the cloud for algo trading. When the algorithm wants to make a trade, it fires up a gateway instance and executes the trade, then closes. Is there a way to keep the 2FA function being needed only once per week (like Sundays)? Or, since I re-login every time the instance is fired up, does that require a new 2FA? I am guessing that's the case, otherwise 2FA would be less secure.

I am hoping there is a way to retain the 2FA for the next instance. Else, I will have to keep an instance running.

Thanks.


 

¿ªÔÆÌåÓý

Sorry, no chance. Just not the way things work, I¡¯m afraid.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of Bennie
Sent: 05 December 2022 18:31
To: [email protected]
Subject: [ibc] 2FA on temporary gateway instances

?

Currently, I run the IB Gateway in the cloud for algo trading. When the algorithm wants to make a trade, it fires up a gateway instance and executes the trade, then closes. Is there a way to keep the 2FA function being needed only once per week (like Sundays)? Or, since I re-login every time the instance is fired up, does that require a new 2FA? I am guessing that's the case, otherwise 2FA would be less secure.

I am hoping there is a way to retain the 2FA for the next instance. Else, I will have to keep an instance running.

Thanks.


 

Dump JVM to persistent disk, mount the disk on the new VM instance, then re-launch gateway.

This has worked well for me, only need to spin up a server only when the trade is needed.