Get Tickers
curl --request GET \
--url https://api.cnt.ekiden.fi/api/v1/market/tickersimport requests
url = "https://api.cnt.ekiden.fi/api/v1/market/tickers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cnt.ekiden.fi/api/v1/market/tickers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cnt.ekiden.fi/api/v1/market/tickers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cnt.ekiden.fi/api/v1/market/tickers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cnt.ekiden.fi/api/v1/market/tickers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cnt.ekiden.fi/api/v1/market/tickers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"list": [
{
"addr": "<string>",
"best_ask_price": "<string>",
"best_ask_size": "<string>",
"best_bid_price": "<string>",
"best_bid_size": "<string>",
"funding_rate": "<string>",
"high_price_24h": "<string>",
"index_price": "<string>",
"last_price": "<string>",
"low_price_24h": "<string>",
"mark_price": "<string>",
"next_funding_time": "1672531200000",
"open_interest": "<string>",
"open_interest_value": "<string>",
"prev_price_1h": "<string>",
"prev_price_24h": "<string>",
"symbol": "BTC-USDCx",
"turnover_24h": "<string>",
"volume_24h": "<string>"
}
]
}Market
Get Tickers
Query for the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours.
GET
/
api
/
v1
/
market
/
tickers
Get Tickers
curl --request GET \
--url https://api.cnt.ekiden.fi/api/v1/market/tickersimport requests
url = "https://api.cnt.ekiden.fi/api/v1/market/tickers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cnt.ekiden.fi/api/v1/market/tickers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cnt.ekiden.fi/api/v1/market/tickers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cnt.ekiden.fi/api/v1/market/tickers"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cnt.ekiden.fi/api/v1/market/tickers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cnt.ekiden.fi/api/v1/market/tickers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"list": [
{
"addr": "<string>",
"best_ask_price": "<string>",
"best_ask_size": "<string>",
"best_bid_price": "<string>",
"best_bid_size": "<string>",
"funding_rate": "<string>",
"high_price_24h": "<string>",
"index_price": "<string>",
"last_price": "<string>",
"low_price_24h": "<string>",
"mark_price": "<string>",
"next_funding_time": "1672531200000",
"open_interest": "<string>",
"open_interest_value": "<string>",
"prev_price_1h": "<string>",
"prev_price_24h": "<string>",
"symbol": "BTC-USDCx",
"turnover_24h": "<string>",
"volume_24h": "<string>"
}
]
}⌘I