Skip to main content

403: Multiple IP Addresses

  • Last updated
  • View as Markdown
Automatic Resolution

If your account is blocked, you do not need to contact support. The block ends 5 minutes after your IP address changed. Requests from the blocked address do not extend it, so waiting 5 minutes from the first 403 is always enough. Then resume with a single device or IP address.

During the block, you can continue making requests from the authorized IP address, the one named in authorizedIP.

If you encounter an issue where your account is temporarily blocked due to accessing the API from multiple devices, follow these steps to resolve it. For background on why this restriction exists, see the Single IP Address Policy.

Problem​

Your account is blocked because it was accessed from multiple IP addresses in a pattern that suggests simultaneous device usage. While changing IP addresses is permitted, a request from another address within 5 minutes of that change — the previous address or a new one — indicates multiple active devices, which is against our policy.

When this occurs, you'll receive an error response that includes detailed information to help you identify the source of the conflict:

{
"s": "error",
"errmsg": "Access denied. Only one device is permitted. Your IP address has changed, and your account is temporarily blocked for security reasons. Please wait 5 minutes before trying again.",
"authorizedIP": "107.178.202.2",
"blockedIP": "44.116.21.32",
"troubleshootingGuide": "https://www.marketdata.app/docs/api/troubleshooting/multiple-ip-addresses"
}

The error response includes:

  • The IP address your account is authorized to use right now (authorizedIP)
  • The IP address of the rejected request (blockedIP)

You can use these IP addresses to:

  1. Identify which devices or services are making the conflicting requests.
  2. Check if the IPs match known ISPs, VPNs, cloud services, or other servers you're using.
  3. Compare with your network configuration to determine if load balancing, round-robin outgoing requests, or failover is causing the issue.

How It Works​

When you access the API:

  • The IP address you connect from is recorded.
  • If you connect from IP address A, then switch to IP address B, that's permitted, and B is authorized immediately.
  • For the next 5 minutes, a request from any address other than B — A, or a new address C — triggers an automatic temporary block and is rejected with a 403.
  • During the block, you can continue making requests from B.
  • The 5 minutes run from the switch to B. Requests made during them, from B or from a blocked address, do not extend them.
  • Five minutes after the switch, the block ends and any single address can be used again.
  • There is no minimum gap between requests from the same address.

Common Scenarios​

  1. VPN Usage: If you connect to a VPN, then disconnect, your IP address may change back and forth rapidly. This can happen if you frequently switch between a VPN and your regular network.

  2. Wi-Fi Network Changes: Switching between different Wi-Fi networks in a short period can result in different IP addresses being used within a single five minute period.

  3. Load Balancing: Servers making outgoing requests might use multiple IP addresses, especially if they are part of a load-balanced setup, round-robin configuration, or if they use multiple network interfaces.

  4. Proxy Usage: Using proxies or rotating proxies can cause your requests to appear from different IP addresses even if you are using the same device.

  5. Cloud Functions: Cloud services like Amazon Web Services, Google Cloud, or Azure may send requests from ephemeral instances that change IP addresses frequently.

  6. Google Apps Script: Using UrlFetch in Google Apps Script can result in requests coming from different IP addresses simultaneously, as Google's infrastructure will rotate requests through various servers.

Solution​

  1. Wait for 5 Minutes: The block is temporary. It ends 5 minutes after the IP change that started it, so waiting 5 minutes from the first 403 is always enough. To keep it from starting again, stop API access from every device except one.

  2. Use a Single Active Device: While you can change devices or IP addresses:

    • Make sure to completely stop API access from your previous device before switching.
    • Do not switch devices more than once every 5 minutes.
    • Do not attempt to connect using multiple devices.
  3. For Cloud Systems: If you're running cloud systems that make API calls:

    • Use a single cloud instance to make API calls.
    • Ensure old instances are fully terminated before starting new ones.
    • Purchase a dedicated IP address for your cloud instance if it will be starting and stopping more than once every 5 minutes.
  4. Serverless Functions Are Not Supported (Lambda, Google Cloud Functions, Google Apps Script, etc.): Your subscription is licensed to run on a single device. Serverless platforms execute your code across a pool of ephemeral instances with rotating outbound IP addresses, which inherently bypasses the single-device licensing terms. For this reason, serverless functions are not compatible with the API and are not a supported deployment model. Run your workload on a single, persistent device or instance with a stable IP address instead.

  5. Multiple Environments (Development, Staging, Production): If you're running more than one environment that calls the API at the same time using the same token, you will hit this block. Sharing the token across environments is also a token-sharing violation under the Single IP Address Policy.

    Compliant options:

    • Serialize: run only one environment at a time. For most testing and A/B workflows, running scenarios sequentially is sufficient.
    • Use the no-auth demo symbols in development: stock and option endpoints accept AAPL (and any AAPL option contract, e.g. AAPL271217C00250000) with no token at all. Development and integration tests that exercise the API surface — request shape, response parsing, error handling — can use these symbols without ever touching your account. See Authentication › Demo The API With No Authentication. Note that no-auth requests return historical data only.
    • Commercial Plan: if your use case genuinely requires simultaneous parallel data across multiple environments (not testing), the Commercial Plan has no IP limit, so you can call the API from as many servers and IP addresses as your product needs.

Important Note​

The system is designed to detect patterns of simultaneous access, not just IP changes. While you are permitted to change devices, attempting to maintain multiple active connections from different computers violates the Single IP Address Policy and may result in suspension, even when the computers share a single IP address.

For further assistance, please contact our support team.