示例#1
0
 public long UpdatePosition( string ticker, long quantity )
 {
     IPosition pos = new Position();
     pos = pos.GetPosition( ticker );
     pos.Quantity += quantity;
     return pos.Quantity;
 }
示例#2
0
 public long GetQuantity( string ticker )
 {
     IPosition pos = new Position();
     pos = pos.GetPosition( ticker );
     return pos.Quantity;
 }