Binance currently does not provide the spent BNB for lottery tickets via API.
The winning tickets distribution coin is imported as "Income".
You can either add the BNB investment as "Spend" or
replace the "Income" transaction type of the ticket coins with "Trade" and add the BNB amount for the "Sell" part.
Click here, to see how to edit transactions.
Both options have different tax implications.