aggregate_trade_iter (symbol, start_str=None, last_id=None) [source] ¶. Iterate over aggregate trade data from (start_time or last_id) to the end of the history so far. If start_time is specified, start with the first trade after start_time. Warning: Binance does not export your complete trading history via API or CSV. You can find the current data gaps here. Most importantly, Binance does not provide Margin Trades as Profit/Loss, which makes it currently impossible for any crypto software to calculate correct gains and taxes for Binance Margin Trades.