...
To use the Spanish Exchange with the API you need to create an Application Key for your Spanish Exchange account by following the process outlined via https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/Application + Keys
Once you have created an App Key, you will need to login the API using the Spanish Exchange endpoint which is as follows:
Non-interactive Login
Interactive Login - Desktop Application
Interactive Login - API Endpoint
...