/* Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms * and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */ using System.Runtime.InteropServices; namespace IBApi { /** * @class HistoricalTick * @brief The historical tick's description. Used when requesting historical tick data with whatToShow = MIDPOINT * @sa EClient, EWrapper */ [ComVisible(true)] public class HistoricalTick { public HistoricalTick() { } public HistoricalTick(long time, double price, decimal size) { Time = time; Price = price; Size = size; } /** * @brief The UNIX timestamp of the historical tick */ public long Time { [return: MarshalAs(UnmanagedType.I8)] get; [param: MarshalAs(UnmanagedType.I8)] private set; } /** * @brief The historical tick price */ public double Price { get; private set; } /** * @brief The historical tick size */ public decimal Size { [return: MarshalAs(UnmanagedType.I8)] get; [param: MarshalAs(UnmanagedType.I8)] private set; } } }