To create an API key use following steps:
- Log in into account on https://www.bitmex.com/
- Go to "Account & Security" in the upper right menu.
- Open "API Keys" section.
- Enter a name for your key, select "Order" in "Key Permissions".
- Enter your 2FA code, if required, and click on the "Create API Key" button.
- Done! ID is your API key public part; the secret is the private part.