Exchanges
Working with Exchange Integrations in Afina
The "Exchanges" section is the central hub of Afina exchange access. It is the place where every exchange API key, withdrawal flow, and balance probe finds a home. Users get a smooth experience to plug in exchange credentials, pull a list of available currencies, trigger withdrawals, check transaction status, and build financial workflows right inside scripts. Furthermore, the section offers reliable management of API keys, secret keys, passphrases, permission scopes, and the integration data attached to each exchange.
Once the credentials are loaded into the system, the section presents the entire integration on display. The best part is the convenience: a user can monitor each exchange status, locate any specific account in seconds with the matching label, and trigger probes across many integrations in a single click.
Using an Exchange in Scripts

Benefits of Exchange Integrations
- A wide list of integration types is available in the "Exchanges" section for every business need.
- Users can configure each exchange through proper API key and secret key fields.
- Downstream automation scenarios easily reach into a balance through the integration reference.
- The section supports both single exchange links and full multi-exchange pipelines at any moment.
- Any user can have a smooth experience while building financial flows with a unique configuration.
Once the credentials are saved, the freshly-built integration joins the rest of the entries under "Exchanges". From this point, a user can run scripts against the exchange, edit related settings, attach the link to a pipeline, mark older keys for cleanup, link the right credential to a workflow, and send the integration into automation tasks. Thus, every newly-saved exchange becomes immediately operational.
Building Exchange Workflows
A wide list of reasons exists to use the exchange feature in Afina. To start with, it offers brilliant speed for batch withdrawals. Then a user can shift focus to the reliability with already-prepared API keys. The feature is totally effective for setting up a working environment, deploying a large batch of accounts at once, or restoring a known good integration after a system change.
Furthermore, the "Check" button at the top of each integration row provides uninterrupted access to credential validation. A user picks the exchange flavor and points at the API key field. The platform takes care of the rest.
Moreover, the exchange feature supports a connected automation flow. So, a user can pull a balance straight from the integration whenever it is needed. After the script wraps, the imported result settles into the variable store and becomes immediately ready for launching, configuration, and use inside scripts.
API Key Security
Different security scenarios are available for various business needs. Users can drop a key one at a time, or rotate a stack of credentials whenever the catalog changes. For routine cleanup, a user revokes the matching key inside the exchange dashboard and updates the corresponding value in Afina. The bulk option is located inside the global variables list at the top of the "Settings" section.
Before a credential rotation clicks through, a user should check that the targeted key is no longer wired into an active job, a script, or a workflow that is currently running. The reason is simple: a rotation operation pulls related script references, tasks, integration history, and work history along with the key. Thus, an unintended rotation may bring extra losses.
On the other hand, removal is not always the right move. Many users prefer to keep an older key around, shift its scope, swap its allowed IP, or switch the credential to a fresh exchange account. The positive part is that the key simply sits on the bench for a while without any data being permanently lost.
States, Messages, and Stored Credentials
Each integration in Afina can carry an extensive load of credential data. The data is exactly what scripts and automation jobs reach into during execution. Some examples are API keys, secret keys, passphrases, permission scopes, allowed IPs, and any other parameter that should look different from one exchange to the next.
The best part of this functionality is reusability. One credential can be used everywhere with consistent results. Each script plugs in its own value whenever the call reaches the exchange step. Instead of cloning the credential per script, a user simply prepares the variable correctly. Thus, automation becomes more flexible.
Furthermore, Afina offers two flavors of credential storage: standard global keys and encrypted values. Encrypted values are reserved for sensitive material that should not sit around in plain text. Examples include API keys, secret keys, passphrases, and any other confidential value a user wants to keep secure.
Both kinds of credentials reach scripts through a global-variable construct. The feature is impeccable for keeping a hundred scripts wired to the same exchange in one shot. It is not limited here. Users can also pair the variable with planned rotation windows, or stash a snapshot of the integration state before any major change is applied.