API Documentation Terra Classic
The TFM DEX aggregator API can be found under the following URL:
The API consists of the following endpoints:
Contract address of the token to sell, e.g. uusd
Contract address of the token to buy, e.g. uluna
Amount of the token to sell, set in minimal divisible units, e.g. 1.00 UST set as 1000000, and 13.45 Luna set as 13450000
Optional parameter to limit the search of the best route within a given exchange. For example, input of "astroport" will only search on Astroport, while "astroport, terraswap" will search on both Astroport and Terraswap. The default setting is to search on all the DEX's if no value is passed.