Question

How do I add my API keys to Sandwich?

Answer

Creating an API key file and loading your keys is done via the Keys menu.

You need to create a Key File BEFORE you can load any API keys. This Key File is encrypted and specific to Sandwich and where your API keys are saved to.

YOU CANNOT LOAD API KEYS BEFORE THIS KEY FILE IS CREATED.

To create a Key File, follow these steps:

1. Keys / Manage Keys / Key File / New

2. Select the folder where you want to save the Key File.

3. Name the file.

4. Click on the "Save" button.

We also highly recommend that you lock this API key file to your computer and add a secure password.

You can add API keys in three ways:

  • Keys / Manage Keys / Add Key
  • Keys / Add Key
  • Loaded Accounts / From Selection Dialog / Add Key

To add a new key, follow these steps:

1. Select the exchange from the drop-down menu.

2. Indicate whether it's a Live or Testnet account.

3. Create an account name for identification on Sandwich that will be specific to Sandwich only.

4. Enter the API key provided by the exchange.

5. Enter the secret or private key associated with the API key, whichever is applicable.

6. If applicable, enter the passphrase associated with the API key.

7. Click on the Validate button to confirm the input. If the input is valid, click on the Add Key button to add the key.

If the message returns as "Invalid" and your API key is within its expiry date, make sure you have done the following:

  • Selected the correct exchange from the dropdown menu
  • Indicated the correct exchange type (Live or Testnet)
  • Entered the correct passphrase (if applicable)
  • Validated all the information to ensure its accuracy