Hi greentea,
The problem is: how shall the software recognize that it is a referral commission if you sell coins that are not there?
Referral commissions are not provided through the CSV or the API. They must be entered manually. You can find the information at:
https://www.binance.com/invite.html If you enter these inputs as "Gift", the software will also not calculate a gain on a sale.
I hope it helps.