How to cancel open orders on a DEX with the CLI?

Hi,
I have a wallet that I can access via the CLI (I have GUI issues with it) so have transferred all assets from it to a new wallet address.

The problem is the old wallet still has some open orders on a DEX which would need settling if the orders complete.

How can I cancel the open orders and then settle the funds back to my wallet via the CLI?

Thanks!

Each exchange has it’s own protocol for how to interact with it, so you won’t be able to use the Solana CLI by itself. The DEX you are using would have to offer a CLI, or else provide provide an SDK ( like many do ) so that you can perform the actions you need to programmatically from, for instance, a Node.js program running on your machine.

You could see if the project has an SDK on GitHub maybe? What DEX are you using?