This shows the steps needed to create an API key and secret on Bitmex.
using your account information.
then click on API / API key management.
set key permissions to ORDER, enter your 2FA details, then click on Create API Key.
until you have copied the API key and secret.