How can I buy crypto with Binance API programmatically

I am not looking forward to trade but just to buy crypto and hold then withdraw crypto as fiat