List a long-crypto series' periods (the `Past` disclosure)
curl --request GET \
--url https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periodsimport requests
url = "https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods', 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://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods",
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://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods"
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://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods")
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{
"periods": [
{
"slug": "<string>",
"key": "<string>",
"label": "<string>",
"startAt": "<string>",
"state": "live"
}
],
"hasMore": true
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}crypto-long-series
List a long-crypto series' periods (the `Past` disclosure)
Pages a series’ periods. state defaults to past — the endpoint’s reason to exist — with upcoming/all present only for symmetry with /crypto-series/:id/windows. No live bucket: a period’s live instance is already carried inline on the event payload as cryptoLongSeries.period, a single row, not a page. Any query parameter other than state, limit, offset, from and to is 400 invalid_request (RND-4282). An id containing a NUL character is 400 invalid_request (RND-4281).
GET
/
api
/
crypto-long-series
/
{id}
/
periods
List a long-crypto series' periods (the `Past` disclosure)
curl --request GET \
--url https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periodsimport requests
url = "https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods', 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://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods",
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://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods"
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://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/crypto-long-series/{id}/periods")
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{
"periods": [
{
"slug": "<string>",
"key": "<string>",
"label": "<string>",
"startAt": "<string>",
"state": "live"
}
],
"hasMore": true
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 400,
"error": {
"code": "bad_request",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Query Parameters
0-based offset, 0..10000; above that 400 invalid_offset (error.details.max is 10000; RND-4282, RND-5490). A page whose offset + limit is above 10000 answers hasMore: false even when more rows follow (the next offset would be refused): narrow from / to to reach them.
Required range:
0 <= x <= 10000