IP Not Whitelisted Error in Delta Exchange API Even After Adding IP

Hi,

I’m getting the following error when trying to connect to the Delta Exchange API:
{'error': {'code': 'ip_not_whitelisted_for_api_key', 'context': {'client_ip': 'xx.xx.xx.xx'}}, 'success': False}

I have already added my IP address in the API key settings, but I still get this error.

Has anyone faced a similar issue? How can I fix this?

Thanks for your help!

  • Check Both IPv4 and IPv6: Your network may assign both IPv4 and IPv6 addresses. Ensure that you’ve identified and whitelisted both. You can determine your current IP addresses using online services like WhatIsMyIPAddress.
  • Access API Key Management: Log in to your Delta Exchange account, navigate to the profile icon, and select “API Keys.”
  • Edit Whitelisted IPs: Ensure that both your IPv4 and IPv6 addresses are added to the whitelist. If your network’s IP addresses change frequently, consider updating the whitelist accordingly.
  • Match API Key to Environment: Confirm that you’re using the appropriate API key for the environment (e.g., live or testnet) you’re accessing. Using a testnet API key on the live environment, or vice versa, can lead to authentication errors.
  • Verify Permissions: Ensure that the API key has the necessary permissions for the actions you’re attempting, such as trading or data access. Permissions can be configured during the API key creation process.
  • Static vs. Dynamic IPs: If your Internet Service Provider (ISP) assigns dynamic IP addresses that change periodically, you may need to update your whitelisted IPs regularly. Alternatively, consider using a Virtual Private Network (VPN) or a static IP service to maintain a consistent IP address.

paste following in command prompt and get ip from there >>

nslookup myip.opendns.com resolver1.opendns.com