Algorithmischer Handel für .NET und Python✦86+ Konnektoren · Börsen · Broker · Krypto✦S#.Designer · Backtest · optimieren · live gehen✦Eine Community von 31,445+ Tradern und Entwicklern✦Algorithmischer Handel für .NET und Python✦86+ Konnektoren · Börsen · Broker · Krypto✦S#.Designer · Backtest · optimieren · live gehen✦Eine Community von 31,445+ Tradern und Entwicklern✦
How do I get Orders collection on connector populated with my open orders after connecting the connector? (i.e. if I have open orders on application startup and want to access them through Orders collection)
Regards
Kommentare (5)
Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen
The request sends automatically while connected. The trigger IConnector.NewOrder should be fired every time when new row occur in TWS. The same will be for own trades.
All order's info can be downloaded from 2 sources. 1 - from brokerage connection (in your case TWS). 2 - from local storage. TWS keep filled orders for 1 day so you will get necessary orders after restart automatically.
And what about MyTrades collection? Is it also filled after restart automatically? I.e if I have open trades in TWS and then start S# will MyTrades be filled automatically?
The same with orders - automatically. Connector ask destination source for orders and my trades. If the source (TWS) send it - you will get it in your strategy.
Wir verwenden Cookies, um die beste Erfahrung auf unserer Website zu gewährleisten. Durch die weitere Nutzung unserer Seite stimmen Sie der Verwendung von Cookies zu.
Kommentare (5)
Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen
Hello, Johan
The request sends automatically while connected. The trigger IConnector.NewOrder should be fired every time when new row occur in TWS. The same will be for own trades.
Hi
Thank you, but what about the case where I:
How does Orders collection on connector get populated after restart?
Regards
All order's info can be downloaded from 2 sources. 1 - from brokerage connection (in your case TWS). 2 - from local storage. TWS keep filled orders for 1 day so you will get necessary orders after restart automatically.
If you prefer to keep orders history more that 1 day we recommend to use our storage - http://doc.stocksharp.com/html/7a8a9518-6270-4cfe-a829-fa6c40e5fabd.htm
Hi
And what about MyTrades collection? Is it also filled after restart automatically? I.e if I have open trades in TWS and then start S# will MyTrades be filled automatically?
Regards
The same with orders - automatically. Connector ask destination source for orders and my trades. If the source (TWS) send it - you will get it in your strategy.