Ticker - Tickers
curl --request GET \
--url https://api.ripio.com/trade/ticker \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>'import requests
url = "https://api.ripio.com/trade/ticker"
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>'
}
};
fetch('https://api.ripio.com/trade/ticker', 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.ripio.com/trade/ticker",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$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.ripio.com/trade/ticker"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
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.ripio.com/trade/ticker")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/ticker")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
response = http.request(request)
puts response.read_body{
"data": [
{
"ask": 250000.15,
"base_code": "BTC",
"base_id": "9A5E2EF4-9547-418A-8EC6-C6EADBB8B32F",
"bid": 240000.15,
"date": "2017-10-20T00:00:00.000Z",
"first": 245000.15,
"high": 250000.15,
"is_frozen": false,
"last": 245000.15,
"low": 200000.15,
"pair": "BTC_BRL",
"price_change_percent_24h": "-12",
"quote_code": "BRL",
"quote_id": "48898138-8623-4555-9468-B1A1505A9352",
"quote_volume": 150.1,
"trades_quantity": 123,
"volume": 123.12345678
},
{
"ask": 15600.12,
"base_code": "ETH",
"base_id": "13A4B83B-E74F-425C-BC0A-03A9C0F29FAD",
"bid": 15400.12,
"date": "2017-10-20T00:00:00.000Z",
"first": 15999.15,
"high": 15999.12,
"is_frozen": false,
"last": 15500.12,
"low": 15000.12,
"pair": "ETH_BRL",
"price_change_percent_24h": "-12",
"quote_id": "48898138-8623-4555-9468-B1A1505A9352",
"quote_code": "BRL",
"quote_volume": 180.1,
"trades_quantity": 123,
"volume": 123.12345678
}
],
"error_code": null,
"message": null
}Ticker
Tickers
Returns a 24 hour window statistics for all pairs.
Authorization
- Requires a valid API key.
- Required API-key permission(s):
- General Data (Read)
GET
/
trade
/
ticker
Ticker - Tickers
curl --request GET \
--url https://api.ripio.com/trade/ticker \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>'import requests
url = "https://api.ripio.com/trade/ticker"
headers = {
"authorization": "<authorization>",
"signature": "<signature>",
"timestamp": "<timestamp>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
authorization: '<authorization>',
signature: '<signature>',
timestamp: '<timestamp>'
}
};
fetch('https://api.ripio.com/trade/ticker', 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.ripio.com/trade/ticker",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"authorization: <authorization>",
"signature: <signature>",
"timestamp: <timestamp>"
],
]);
$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.ripio.com/trade/ticker"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("signature", "<signature>")
req.Header.Add("timestamp", "<timestamp>")
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.ripio.com/trade/ticker")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/ticker")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["authorization"] = '<authorization>'
request["signature"] = '<signature>'
request["timestamp"] = '<timestamp>'
response = http.request(request)
puts response.read_body{
"data": [
{
"ask": 250000.15,
"base_code": "BTC",
"base_id": "9A5E2EF4-9547-418A-8EC6-C6EADBB8B32F",
"bid": 240000.15,
"date": "2017-10-20T00:00:00.000Z",
"first": 245000.15,
"high": 250000.15,
"is_frozen": false,
"last": 245000.15,
"low": 200000.15,
"pair": "BTC_BRL",
"price_change_percent_24h": "-12",
"quote_code": "BRL",
"quote_id": "48898138-8623-4555-9468-B1A1505A9352",
"quote_volume": 150.1,
"trades_quantity": 123,
"volume": 123.12345678
},
{
"ask": 15600.12,
"base_code": "ETH",
"base_id": "13A4B83B-E74F-425C-BC0A-03A9C0F29FAD",
"bid": 15400.12,
"date": "2017-10-20T00:00:00.000Z",
"first": 15999.15,
"high": 15999.12,
"is_frozen": false,
"last": 15500.12,
"low": 15000.12,
"pair": "ETH_BRL",
"price_change_percent_24h": "-12",
"quote_id": "48898138-8623-4555-9468-B1A1505A9352",
"quote_code": "BRL",
"quote_volume": 180.1,
"trades_quantity": 123,
"volume": 123.12345678
}
],
"error_code": null,
"message": null
}Headers
The API key as a string.
See the Generating Signature section for more details.
A timestamp in milliseconds. See the Timestamp Security section for more details.
An additional, non-required parameter, that you can send to specify the number of milliseconds after the timestamp for the request to be valid. See the Timestamp Security section for more details.
Response
200 - application/json
Ok
Show child attributes
Show child attributes
Example:
[
{
"ask": 250000.15,
"base_code": "BTC",
"base_id": "9A5E2EF4-9547-418A-8EC6-C6EADBB8B32F",
"bid": 240000.15,
"date": "2017-10-20T00:00:00.000Z",
"first": 245000.15,
"high": 250000.15,
"is_frozen": false,
"last": 245000.15,
"low": 200000.15,
"pair": "BTC_BRL",
"price_change_percent_24h": "-12",
"quote_code": "BRL",
"quote_id": "48898138-8623-4555-9468-B1A1505A9352",
"quote_volume": 150.1,
"trades_quantity": 123,
"volume": 123.12345678
},
{
"ask": 15600.12,
"base_code": "ETH",
"base_id": "13A4B83B-E74F-425C-BC0A-03A9C0F29FAD",
"bid": 15400.12,
"date": "2017-10-20T00:00:00.000Z",
"first": 15999.15,
"high": 15999.12,
"is_frozen": false,
"last": 15500.12,
"low": 15000.12,
"pair": "ETH_BRL",
"price_change_percent_24h": "-12",
"quote_id": "48898138-8623-4555-9468-B1A1505A9352",
"quote_code": "BRL",
"quote_volume": 180.1,
"trades_quantity": 123,
"volume": 123.12345678
}
]
Example:
null
Example:
null
⌘I