Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 19:45:15 +0000



Post From: Get Value from Object without Reference

[2023-07-21 10:14:04]
Bartezz - Posts: 18
Hi Team,

i try to get Value from Object, store it to variable to use this value later, but if the Value of object is changed, then the value of this variable is changing as well (also all older Messelogs).
How can i get Value from this Object without any changing?

Here is my Code

          s_MarketDepthEntry DepthEntryBid;
          s_MarketDepthEntry DepthEntryAsk;
          sc.GetBidMarketDepthEntryAtLevel(DepthEntryBid, 0);
          sc.GetAskMarketDepthEntryAtLevel(DepthEntryAsk, 0);
          
          Last_Bid_Limit_Size = DepthEntryBid.Quantity;
          Last_Ask_Limit_Size = DepthEntryAsk.Quantity;

Regards