User - Statement
curl --request GET \
--url https://api.ripio.com/trade/user/statement \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>'import requests
url = "https://api.ripio.com/trade/user/statement"
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/user/statement', 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/user/statement",
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/user/statement"
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/user/statement")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/user/statement")
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": {
"statement": [
{
"amount": -0.00000476,
"after_balance": 8605.31353851,
"currency": "BTC",
"date": "2022-01-27T18:16:10.557Z",
"operation": "Buy Maker Fee",
"operation_id": "3f7d8c29-4b1e-4f9a-b8e2-1c6a9d0e5f23"
},
{
"amount": 0.00119048,
"after_balance": 8605.31354327,
"currency": "BTC",
"date": "2022-01-27T18:16:10.557Z",
"operation": "Buy",
"operation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
],
"pagination": {
"current_page": 1,
"registers_count": 21,
"total_pages": 1,
"page_size": 100
}
},
"error_code": null,
"message": null
}User
Statement
Lists the user’s statement.
Authorization
- Requires a valid API key.
- Required API-key permission(s):
- Statement (Read)
GET
/
trade
/
user
/
statement
User - Statement
curl --request GET \
--url https://api.ripio.com/trade/user/statement \
--header 'authorization: <authorization>' \
--header 'signature: <signature>' \
--header 'timestamp: <timestamp>'import requests
url = "https://api.ripio.com/trade/user/statement"
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/user/statement', 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/user/statement",
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/user/statement"
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/user/statement")
.header("authorization", "<authorization>")
.header("signature", "<signature>")
.header("timestamp", "<timestamp>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/user/statement")
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": {
"statement": [
{
"amount": -0.00000476,
"after_balance": 8605.31353851,
"currency": "BTC",
"date": "2022-01-27T18:16:10.557Z",
"operation": "Buy Maker Fee",
"operation_id": "3f7d8c29-4b1e-4f9a-b8e2-1c6a9d0e5f23"
},
{
"amount": 0.00119048,
"after_balance": 8605.31354327,
"currency": "BTC",
"date": "2022-01-27T18:16:10.557Z",
"operation": "Buy",
"operation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
],
"pagination": {
"current_page": 1,
"registers_count": 21,
"total_pages": 1,
"page_size": 100
}
},
"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.
Query Parameters
Start of datetime range (ISO-8601 format, default is 6 months ago, minimum is 2017-10-01)
Example:
"2020-01-01T03:00:00.000Z"
Final datetime filter in ISO-8601 format (the interval between the initial and final datetime shouldn't be greater than 6 months)
Example:
"2020-01-03T02:59:59.000Z"
Number of records per page
Example:
100
Page number for pagination
Example:
3
Filter by operation id