Курсы обмена к USDT
curl --request POST \
--url https://api.oblodai.com/v1/exchange-rate/list \
--header 'Content-Type: application/json' \
--data '
{
"currency_from": "ETH",
"currency_to": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/exchange-rate/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency_from' => 'ETH',
'currency_to' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({currency_from: 'ETH', currency_to: '<string>'})
};
fetch('https://api.oblodai.com/v1/exchange-rate/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/exchange-rate/list"
payload = {
"currency_from": "ETH",
"currency_to": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.oblodai.com/v1/exchange-rate/list"
payload := strings.NewReader("{\n \"currency_from\": \"ETH\",\n \"currency_to\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Курсы обмена к USDT
Список курсов. Необязательный currency_from фильтрует по исходной валюте.
POST
/
v1
/
exchange-rate
/
list
Курсы обмена к USDT
curl --request POST \
--url https://api.oblodai.com/v1/exchange-rate/list \
--header 'Content-Type: application/json' \
--data '
{
"currency_from": "ETH",
"currency_to": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oblodai.com/v1/exchange-rate/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'currency_from' => 'ETH',
'currency_to' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({currency_from: 'ETH', currency_to: '<string>'})
};
fetch('https://api.oblodai.com/v1/exchange-rate/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.oblodai.com/v1/exchange-rate/list"
payload = {
"currency_from": "ETH",
"currency_to": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.oblodai.com/v1/exchange-rate/list"
payload := strings.NewReader("{\n \"currency_from\": \"ETH\",\n \"currency_to\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}⌘I