Exchanges
Retrieve information about exchanges connected to Totle.
get
https://api.totle.com
/exchanges
/exchanges
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 swap endpoint can return trades that will settle on that exchange
iconURL
URL of the source for exchange's icon
cURL
Node
Ruby
JavaScript
Python
1
curl --request GET \
2
--url https://api.totle.com/exchanges
Copied!
1
var request = require("request");
2
3
var options = {method: 'GET', url: 'https://api.totle.com/exchanges'};
4
5
request(options, function (error, response, body) {
6
if (error) throw new Error(error);
7
8
console.log(body);
9
});
Copied!
1
require 'uri'
2
require 'net/http'
3
require 'openssl'
4
5
url = URI("https://api.totle.com/exchanges")
6
7
http = Net::HTTP.new(url.host, url.port)
8
http.use_ssl = true
9
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
10
11
request = Net::HTTP::Get.new(url)
12
13
response = http.request(request)
14
puts response.read_body
Copied!
1
var data = null;
2
3
var xhr = new XMLHttpRequest();
4
5
xhr.addEventListener("readystatechange", function () {
6
if (this.readyState === this.DONE) {
7
console.log(this.responseText);
8
}
9
});
10
11
xhr.open("GET", "https://api.totle.com/exchanges");
12
13
xhr.send(data);
Copied!
1
import requests
2
3
url = "https://api.totle.com/exchanges"
4
5
response = requests.request("GET", url)
6
7
print(response.text)
Copied!
Last modified 1yr ago
Copy link