Skip to content

Updated Event

Summary

The event at which the market depth gets updated

Signature

1
public abstract event Action Updated;

Declaring Type

cAlgo.API.MarketDepth

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 MarketDepth _marketDepth;
 protected override void Initialize()
 {
     _marketDepth = MarketData.GetMarketDepth(Symbol);
     // subscribe to event Updated
     _marketDepth.Updated += MarketDepthUpdated;
 }
 // user defined function MarketDepthUpdated
 void MarketDepthUpdated()
 {
     // Do something
 }

Last update: December 5, 2022

Comments