I can’t get deals sequentially moving into the past, although the same code with the after argument works great for getting the history of candles, here’s a screenshot of the answer
long? new_time = null;
for (int i = 0; i < 3; i++)
{
var trade_11 = api.GetOrderArchive(OkexInstrumentType.Swap, after: new_time, limit: 3);
Show_Mess("call-1 " + trade_11.Data.ToArray().Length + " time gets - " + new_time);
foreach (var item in trade_11.Data)
{
var unix_time = item.CreateTime.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds;
new_time = (long?)unix_time;
Show_Mess(Convert.ToString(item.FillTime + " | " + unix_time + " | " + new_time)); // gets string line textBox form
}
}
I can’t get deals sequentially moving into the past, although the same code with the after argument works great for getting the history of candles, here’s a screenshot of the answer![Screenshot_1](https://user-images.githubusercontent.com/78805200/206921267-53adc5fa-6776-44e6-9e99-47f668bbc266.png)