{"exchanges": [{"id": 2,"name": "Kyber","enabled": true,"iconUrl": "https:\/\/s3.amazonaws.com\/totle-dex-icons\/Kyber.png"},{"id": 4,"name": "Bancor","enabled": true,"iconUrl": "https:\/\/s3.amazonaws.com\/totle-dex-icons\/Bancor.png"},{//...}],"success": true}
Parameter Response | Description |
exchanges | The list of exchanges on which Totle trades |
id | The ID of the exchange |
name | The common name of the exchange |
enabled | Whether the |
iconURL | URL of the source for exchange's icon |
curl --request GET \--url https://api.totle.com/exchanges
var request = require("request");var options = {method: 'GET', url: 'https://api.totle.com/exchanges'};request(options, function (error, response, body) {if (error) throw new Error(error);console.log(body);});
require 'uri'require 'net/http'require 'openssl'url = URI("https://api.totle.com/exchanges")http = Net::HTTP.new(url.host, url.port)http.use_ssl = truehttp.verify_mode = OpenSSL::SSL::VERIFY_NONErequest = Net::HTTP::Get.new(url)response = http.request(request)puts response.read_body
var data = null;var xhr = new XMLHttpRequest();xhr.addEventListener("readystatechange", function () {if (this.readyState === this.DONE) {console.log(this.responseText);}});xhr.open("GET", "https://api.totle.com/exchanges");xhr.send(data);
import requestsurl = "https://api.totle.com/exchanges"response = requests.request("GET", url)print(response.text)