API keys can be configured with specific access levels to suit user requirements:
- View – Read-only access; cannot request trades or quotes.
- Trade – Enables live trade execution, trade history access, and balance inquiries.
To generate an API key:
Navigate to the API Keys section of the dashboard.
Click Create API Key and assign the required access scopes.
Configure the following parameters:
- Nickname – A unique identifier for the API key.
- Scopes – Defines the level of API access:
- View – Read-only access to account data.
- Trade – Enables trading and order management.
- Allowed IP Addresses – Restricts API key usage to specified IPs (leave blank for unrestricted access).
- To revoke an API key, go to the API Keys section of the OpenFX account (GUI) and select Delete next to the key. Once revoked, the key and any associated JWTs will be rendered invalid.
- To temporarily disable a key, toggle the Status button next to the key ‘off’ from the API Keys section. This prevents access without revocation. The key can be reactivated at any time by toggling the Status button ‘on’.