List all orders
curl --request GET \
--url https://app.crown-brlv.com/api/v1/accounts/{account-id}/ordersimport requests
url = "https://app.crown-brlv.com/api/v1/accounts/{account-id}/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v1/accounts/{account-id}/orders', 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://app.crown-brlv.com/api/v1/accounts/{account-id}/orders",
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://app.crown-brlv.com/api/v1/accounts/{account-id}/orders"
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://app.crown-brlv.com/api/v1/accounts/{account-id}/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v1/accounts/{account-id}/orders")
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{
"orders": [
{
"base-rate": "1.0000",
"state-updated-at": "2024-01-15T10:30:00Z",
"effective-rate": "0.9950",
"state": "created",
"target-asset": "eth-base/brlv",
"id": "660e8400-e29b-41d4-a716-446655440001",
"quote-id": "550e8400-e29b-41d4-a716-446655440000",
"source-asset": "fiat/brl",
"source-amount": "100.50",
"created-at": "2024-01-15T10:30:00Z",
"target-amount": "99.75",
"qr-code-base64": "<string>",
"fee-amount": "0.50",
"expiration": "2024-01-15T10:30:00Z",
"fee-asset": "fiat/brl",
"brcode": "00020101021226890014br.gov.bcb.pix..."
}
]
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}Orders
List Orders
Retrieves a list of all orders for the authenticated user
GET
/
api
/
v1
/
accounts
/
{account-id}
/
orders
List all orders
curl --request GET \
--url https://app.crown-brlv.com/api/v1/accounts/{account-id}/ordersimport requests
url = "https://app.crown-brlv.com/api/v1/accounts/{account-id}/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.crown-brlv.com/api/v1/accounts/{account-id}/orders', 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://app.crown-brlv.com/api/v1/accounts/{account-id}/orders",
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://app.crown-brlv.com/api/v1/accounts/{account-id}/orders"
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://app.crown-brlv.com/api/v1/accounts/{account-id}/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.crown-brlv.com/api/v1/accounts/{account-id}/orders")
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{
"orders": [
{
"base-rate": "1.0000",
"state-updated-at": "2024-01-15T10:30:00Z",
"effective-rate": "0.9950",
"state": "created",
"target-asset": "eth-base/brlv",
"id": "660e8400-e29b-41d4-a716-446655440001",
"quote-id": "550e8400-e29b-41d4-a716-446655440000",
"source-asset": "fiat/brl",
"source-amount": "100.50",
"created-at": "2024-01-15T10:30:00Z",
"target-amount": "99.75",
"qr-code-base64": "<string>",
"fee-amount": "0.50",
"expiration": "2024-01-15T10:30:00Z",
"fee-asset": "fiat/brl",
"brcode": "00020101021226890014br.gov.bcb.pix..."
}
]
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}⌘I