Gate.io API script to convert all tokens to ETH and withdraw

Job ID: 33235695

Budget: $250 – $750 USD

Hi, I need an expert in the Gate.io API.

Needs to be able to code a script that fetches all tokens, open orders, futures, margin, everything on the account and closes every active trade and converts it all to ETH and then withdraws it to an address of my choosing. All this using an API key v4 of Gate.io.
Related categories: Node.js Blockchain Ethereum API BitMEX API