Skip to main content
GET
/
v1
/
spot
/
volatility
Get volatility for all assets
curl --request GET \
  --url https://joyride.exchange/api/v1/spot/volatility
import requests

url = "https://joyride.exchange/api/v1/spot/volatility"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://joyride.exchange/api/v1/spot/volatility', 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://joyride.exchange/api/v1/spot/volatility",
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://joyride.exchange/api/v1/spot/volatility"

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://joyride.exchange/api/v1/spot/volatility")
.asString();
require 'uri'
require 'net/http'

url = URI("https://joyride.exchange/api/v1/spot/volatility")

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
[
  {
    "currency": "SOL",
    "volatility": 0.85,
    "calculated_at": "2023-11-07T05:31:56Z",
    "lookback_period": "30d",
    "method": "close_to_close"
  }
]

Response

200 - application/json

Volatility data

currency
string
required
Example:

"SOL"

volatility
number
required
Example:

0.85

calculated_at
string<date-time>
required
lookback_period
string
required
Example:

"30d"

method
string
required
Example:

"close_to_close"