Skip to main content
POST
/
v1
/
jettons
/
price
/
change
getPriceChangeList
curl --request POST \
  --url https://api.dyor.io/v1/jettons/price/change \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": [
    "<string>"
  ],
  "currency": "ton"
}
'
import requests

url = "https://api.dyor.io/v1/jettons/price/change"

payload = {
"address": ["<string>"],
"currency": "ton"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({address: ['<string>'], currency: 'ton'})
};

fetch('https://api.dyor.io/v1/jettons/price/change', 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.dyor.io/v1/jettons/price/change",
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([
'address' => [
'<string>'
],
'currency' => 'ton'
]),
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;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.dyor.io/v1/jettons/price/change"

payload := strings.NewReader("{\n \"address\": [\n \"<string>\"\n ],\n \"currency\": \"ton\"\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))

}
HttpResponse<String> response = Unirest.post("https://api.dyor.io/v1/jettons/price/change")
.header("Content-Type", "application/json")
.body("{\n \"address\": [\n \"<string>\"\n ],\n \"currency\": \"ton\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.dyor.io/v1/jettons/price/change")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": [\n \"<string>\"\n ],\n \"currency\": \"ton\"\n}"

response = http.request(request)
puts response.read_body
{
  "items": [
    {
      "address": "<string>",
      "changes": {
        "min15": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        },
        "hour": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        },
        "hour6": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        },
        "hour12": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        },
        "day": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        },
        "week": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        },
        "month": {
          "changePercent": 146.1,
          "previous": {
            "value": "1000500000",
            "decimals": 9
          },
          "current": {
            "value": "1000500000",
            "decimals": 9
          },
          "calculatedAt": "2023-11-07T05:31:56Z"
        }
      }
    }
  ],
  "addressBook": {}
}
{
"code": 3,
"message": "invalid value",
"details": []
}
{
"code": 5,
"message": "not found",
"details": []
}
{
"code": 8,
"message": "too many requests",
"details": []
}
{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}

Body

application/json
address
string[]

List of jetton addresses Example: EQCQZpelevHNsbw5IUtwSa4Cs8kqWww0KsYeDri9kwS18eCz Max count: 100

currency
enum<string>
default:ton
Available options:
ton,
usd,
eur,
gbp,
jpy,
byn,
ves,
rub,
uah,
kzt,
krw,
ils,
idr,
aed,
gel,
twd,
try,
hkd,
inr,
cad,
amd,
aud,
pln,
cop,
brl,
chf,
mxn,
ars,
sgd,
sar,
mdl,
ron,
sek,
azn,
rsd,
nok,
myr,
bgn,
egp,
gtq,
clp,
nzd,
bdt,
kgs,
thb,
uzs,
uyu,
vnd,
ugx,
kes,
zar,
etb,
ngn,
lkr

Response

A successful response.

items
object[]
addressBook
Address book · object

Possible aliases for all raw addresses in response