List of deals
Getting a list of deals
To get a list of deals, there is the ISecurity.GetTrades (...) method. It has two implementations:
GetTrades (int barNum) - Get a list of deals by candle number.
GetTrades (int firstBarIndex, int lastBarIndex) - Get a list of deals by several candles.
In both cases, the methods return a list of ITrade objects.
Interface ITrade | |
Date | date and time |
TradeNo | Trade number |
Direction | Trade direction (Buy, Sell) |
Price | Price |
Quantity | Quantity |
OpenInterest | Open interest |
Example, we get the last 5 deals and print them to the log:
The information from TSLab completely matches the data from the terminal.
Last updated