Geoblocking
The Context API enforces geographic restrictions on mainnet only. Orders submitted from blocked countries will be rejected.
Testnet has no geographic restrictions. All countries can access the testnet API without limitation. The restrictions described on this page apply exclusively to mainnet.
Blocked countries (mainnet)
The following countries are blocked from placing orders on mainnet. API requests originating from these locations will be rejected with a 403 Forbidden response.
| Country | ISO code |
|---|
| United States of America | US |
| United Kingdom | GB |
| France | FR |
| Singapore | SG |
| Poland | PL |
| Thailand | TH |
| Belgium | BE |
| Taiwan | TW |
How it works
When you submit an order to the mainnet API, your request’s IP address is checked against a geographic database. If your IP resolves to a blocked country, the request is rejected before reaching the order matching engine.
This applies to:
- All
POST /orders endpoints (single, bulk, cancel-replace)
- Any endpoint that results in a new position being opened
Using a VPN or proxy to circumvent geographic restrictions is a violation of the Context Terms of Service.
Error response
Requests blocked due to geographic restrictions return:
{
"message": "Orders from your region are not permitted",
"code": "GEOBLOCKED"
}
Testnet vs mainnet
| Testnet | Mainnet |
|---|
| Geoblocking | None | Enforced |
| Blocked countries | — | US, GB, FR, SG, PL, TH, BE, TW |
Developers in blocked regions can use testnet without restriction for building and testing integrations.