This document details how to use our API system and provides examples for all requests. All methods could be used both via the clearnet link trocador.app or via the onion address. All methods are GET, and you just need to include your api_key or referral code to get responses from the server. Follow these steps to start using it:
This method returns all coins listed in our database, with their names, tickers, networks and minimum and maximum amounts. You can use this method to populate your database, and you must use these tickers and networks when creating transactions.
This method returns all data from the coins that have the specified name or ticker. In case multiple coins have the same ticker, the method returns a list with all of them. At least one ticker or name is mandatory.
This method returns all non-deleted trades from the partner on our database, or an specific transaction that has the ID provided on the request. This can be used to show the user the updated transaction status. This is only possible if the transaction data is still stored in our database. After 14 days, or on user request, transaction data is deleted to protect the user's privacy.
This method checks if a given address can be used with a certain coin. If you don't want to check every address there's no need to, since the system always performs this check before creating a transaction. This function returns True or False depending on if the provided address fits the given coin and network.
This method generates a list of rates from all providers and organizes them from best to worst rate. Along with the rates goes the KYC Score of each exchange, from A (no KYC) to D (may hold user's funds indefinitely until verification). This method returns a unique ID that you must use if you want to create a transaction.
This method creates a transaction with the provided ID, on the selected exchange and rate type. It returns the address from the provider exchange, where the user must send his coins in order to receive the requested amount.
Get all prepaid and giftcards available for sale. You can now generate income by selling USD and EUR Visa and Mastercard prepaid cards, which your users can load using any crypto of your/their choice. To get the complete list of available cards for sale, use this method.
Create an order to buy a prepaid card. We'll share 50% of our income with the partner that sells a card.
These are all possible swap statuses you will find when calling Trocador API system.