Timestamps for Trades
-
- Posts: 43
- Joined: Mon Feb 08, 2021 5:37 pm
- Been thanked: 1 time
Timestamps for Trades
I am implementing the TradeDataListener and the HistoricalDataListener to get a list of all the trades that have happened. TradeInfo does not provide the actual timestamp of the trade that took place. How do I obtain the actual time of the trades? I've not been able to glean this from any of the api documentation or sample code. Thank you.
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Timestamps for Trades
Hi,
implement TimeListener and store the t value (nanoseconds) in a variable. Read the variable value when onTrade method is triggered.
implement TimeListener and store the t value (nanoseconds) in a variable. Read the variable value when onTrade method is triggered.
-
- Posts: 43
- Joined: Mon Feb 08, 2021 5:37 pm
- Been thanked: 1 time