Hi
Using my application I opened a position in SPXW call. My application uses CSV storage, so it should have been stored. If I open my application the existing position does not get loaded. I have attached a console application that loads and connects using the storage my own application created. I have included the csv store in the zip file. It is in the bin/debug/data directory. Please look at the store. Did the position save to the store? If so, why does it not load? I also included the connector log in the bin/debug/logs directory.
Regards
Kommentare (5)
Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen
Hi
Is this problem related to not including this code:
in the application that must save the position? What does this code do?
_entityRegistry.DelayAction.DefaultGroup.WaitFlush(true);
Please use the following lines in your code:
After modification your sample with sent csv storage should display following output:
_connector_NewPortfolio:DU775642 _connector_NewPosition:DU775642-SPXW 171215C02580000@CBOE _connector_PositionChanged:DU775642-SPXW 171215C02580000@CBOE _connector_NewPosition:DU775642-SPXW 171215C02580000@ALL _connector_PositionChanged:DU775642-SPXW 171215C02580000@ALL _connector_NewPortfolio:DU229525 _connector_NewPosition:DU229525-AAPL@NASDAQ _connector_PositionChanged:DU229525-AAPL@NASDAQ
Portfolio - is only money position. To get position for security you should to use Position class instead.
Hi
This will give me the position in the position collection of the _connector. But I need the mytrade loaded into the mytrade collection so that I can access the original user order id. Currently the mytrade collection does not load. How do I get it to load
Regards
Thank you for more details. The answer was provided my colleague by email.