Create Orders NET Report
curl --request POST \
--url https://api.copper.co/platform/reports/orders/net \
--header 'Content-Type: application/json' \
--data '
{
"terminatedAtFrom": "<string>",
"terminatedAtTo": "<string>",
"orderTypes": [],
"portfolioIds": [
"<string>"
],
"portfolioTypes": []
}
'import requests
url = "https://api.copper.co/platform/reports/orders/net"
payload = {
"terminatedAtFrom": "<string>",
"terminatedAtTo": "<string>",
"orderTypes": [],
"portfolioIds": ["<string>"],
"portfolioTypes": []
}
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({
terminatedAtFrom: '<string>',
terminatedAtTo: '<string>',
orderTypes: [],
portfolioIds: ['<string>'],
portfolioTypes: []
})
};
fetch('https://api.copper.co/platform/reports/orders/net', 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.copper.co/platform/reports/orders/net",
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([
'terminatedAtFrom' => '<string>',
'terminatedAtTo' => '<string>',
'orderTypes' => [
],
'portfolioIds' => [
'<string>'
],
'portfolioTypes' => [
]
]),
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.copper.co/platform/reports/orders/net"
payload := strings.NewReader("{\n \"terminatedAtFrom\": \"<string>\",\n \"terminatedAtTo\": \"<string>\",\n \"orderTypes\": [],\n \"portfolioIds\": [\n \"<string>\"\n ],\n \"portfolioTypes\": []\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.copper.co/platform/reports/orders/net")
.header("Content-Type", "application/json")
.body("{\n \"terminatedAtFrom\": \"<string>\",\n \"terminatedAtTo\": \"<string>\",\n \"orderTypes\": [],\n \"portfolioIds\": [\n \"<string>\"\n ],\n \"portfolioTypes\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copper.co/platform/reports/orders/net")
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 \"terminatedAtFrom\": \"<string>\",\n \"terminatedAtTo\": \"<string>\",\n \"orderTypes\": [],\n \"portfolioIds\": [\n \"<string>\"\n ],\n \"portfolioTypes\": []\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}reports
Create Orders NET Report
POST
/
reports
/
orders
/
net
Create Orders NET Report
curl --request POST \
--url https://api.copper.co/platform/reports/orders/net \
--header 'Content-Type: application/json' \
--data '
{
"terminatedAtFrom": "<string>",
"terminatedAtTo": "<string>",
"orderTypes": [],
"portfolioIds": [
"<string>"
],
"portfolioTypes": []
}
'import requests
url = "https://api.copper.co/platform/reports/orders/net"
payload = {
"terminatedAtFrom": "<string>",
"terminatedAtTo": "<string>",
"orderTypes": [],
"portfolioIds": ["<string>"],
"portfolioTypes": []
}
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({
terminatedAtFrom: '<string>',
terminatedAtTo: '<string>',
orderTypes: [],
portfolioIds: ['<string>'],
portfolioTypes: []
})
};
fetch('https://api.copper.co/platform/reports/orders/net', 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.copper.co/platform/reports/orders/net",
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([
'terminatedAtFrom' => '<string>',
'terminatedAtTo' => '<string>',
'orderTypes' => [
],
'portfolioIds' => [
'<string>'
],
'portfolioTypes' => [
]
]),
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.copper.co/platform/reports/orders/net"
payload := strings.NewReader("{\n \"terminatedAtFrom\": \"<string>\",\n \"terminatedAtTo\": \"<string>\",\n \"orderTypes\": [],\n \"portfolioIds\": [\n \"<string>\"\n ],\n \"portfolioTypes\": []\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.copper.co/platform/reports/orders/net")
.header("Content-Type", "application/json")
.body("{\n \"terminatedAtFrom\": \"<string>\",\n \"terminatedAtTo\": \"<string>\",\n \"orderTypes\": [],\n \"portfolioIds\": [\n \"<string>\"\n ],\n \"portfolioTypes\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copper.co/platform/reports/orders/net")
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 \"terminatedAtFrom\": \"<string>\",\n \"terminatedAtTo\": \"<string>\",\n \"orderTypes\": [],\n \"portfolioIds\": [\n \"<string>\"\n ],\n \"portfolioTypes\": []\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Body
application/json
Group of orders to be included in the report. See details
Available options:
transfers, orders, transactions, trading Timestamp in milliseconds of when orders were terminated from
Timestamp in milliseconds of when orders were terminated to
List of order types for the report. See details
Available options:
sell, buy, deposit, withdraw, multi-withdraw, wallet-message, retrieved-deposit, earn-reward, earn-shared-reward, claim-shared-reward, cross-chain-deposit, cross-chain-withdraw Example:
"buy,sell"
List of portfolio ids for the report
Example:
"portfolioId1,portfolioId2"
List of portfolio types for the report. See details
Available options:
custody, trading-vault, trading, external, clearloop Example:
"custody,external"
Response
OK
The response is of type object.
Was this page helpful?
⌘I