Why not use a cryptocurrency trading bot instead? Like
GunbotThen after having that software, ask for the API keys and Secret to prevent from withdrawal. It's easier especially if you only need a few trades to do it. You can customize it to whatever strategy you need, and it would help you make it easier.
It's an assurance for the user/client that you won't be able to run away with the money.