Example #1
0
        private void btnGetDealsList_Click(object sender, EventArgs e)
        {
            var msgFactory = new OpenApiMessagesFactory();
            //    var msg = msgFactory.CreateDealsListRequest(_accountID, 1526342400, 1540000000000);
            var startDate = new DateTimeOffset(DateTime.Now.AddDays(-7));
            var now       = new DateTimeOffset(DateTime.Now);
            var msg       = msgFactory.CreateDealsListRequest(_accountID, startDate.ToUnixTimeMilliseconds(), now.ToUnixTimeMilliseconds());

            Transmit(msg);
        }