List connected exchange accounts
Returns a list of the connected exchange accounts in your workspace. Endpoint Permission: Admin, Non-Signing Admin.
GET
/
exchange_accounts
/
paged
TypeScript
const response: Promise<FireblocksResponse<GetPagedExchangeAccountsResponse>> = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);CompletableFuture<ApiResponse<GetPagedExchangeAccountsResponse>> response = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before, after);response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit, before, after);curl --request GET \
--url https://api.fireblocks.io/v1/exchange_accounts/pagedconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/exchange_accounts/paged', 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.fireblocks.io/v1/exchange_accounts/paged",
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://api.fireblocks.io/v1/exchange_accounts/paged"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/exchange_accounts/paged")
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{
"exchanges": [
{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"assets": [
{
"id": "<string>",
"balance": "<string>",
"lockedAmount": "<string>",
"total": "<string>",
"available": "<string>",
"credit": "<string>",
"assetId": "2306088f-97ed-4293-8d28-8ab627f272d7",
"providerSymbol": "BTC",
"assetSymbol": "BTC",
"assetLegacyId": "BTC"
}
],
"success": true,
"tradingAccounts": [
{
"type": "<string>",
"name": "<string>",
"assets": [
{
"id": "<string>",
"balance": "<string>",
"lockedAmount": "<string>",
"total": "<string>",
"available": "<string>",
"credit": "<string>",
"assetId": "2306088f-97ed-4293-8d28-8ab627f272d7",
"providerSymbol": "BTC",
"assetSymbol": "BTC",
"assetLegacyId": "BTC"
}
]
}
],
"isSubaccount": true,
"mainAccountId": "<string>"
}
],
"paging": {
"after": "<string>",
"before": "<string>"
},
"prevUrl": "<string>",
"nextUrl": "<string>"
}{
"message": "<string>",
"code": 123
}Was this page helpful?
Previous
List external walletsGets a list of external wallets under the workspace.
External Wallet is a whitelisted address of a wallet that belongs to your users/counterparties.
- You cannot see the balance of the external wallet.
- You cannot initiate transactions from an external wallet as the source via Fireblocks.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.
Next
⌘I
TypeScript
const response: Promise<FireblocksResponse<GetPagedExchangeAccountsResponse>> = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);CompletableFuture<ApiResponse<GetPagedExchangeAccountsResponse>> response = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before, after);response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit, before, after);curl --request GET \
--url https://api.fireblocks.io/v1/exchange_accounts/pagedconst options = {method: 'GET'};
fetch('https://api.fireblocks.io/v1/exchange_accounts/paged', 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.fireblocks.io/v1/exchange_accounts/paged",
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://api.fireblocks.io/v1/exchange_accounts/paged"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.fireblocks.io/v1/exchange_accounts/paged")
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{
"exchanges": [
{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"assets": [
{
"id": "<string>",
"balance": "<string>",
"lockedAmount": "<string>",
"total": "<string>",
"available": "<string>",
"credit": "<string>",
"assetId": "2306088f-97ed-4293-8d28-8ab627f272d7",
"providerSymbol": "BTC",
"assetSymbol": "BTC",
"assetLegacyId": "BTC"
}
],
"success": true,
"tradingAccounts": [
{
"type": "<string>",
"name": "<string>",
"assets": [
{
"id": "<string>",
"balance": "<string>",
"lockedAmount": "<string>",
"total": "<string>",
"available": "<string>",
"credit": "<string>",
"assetId": "2306088f-97ed-4293-8d28-8ab627f272d7",
"providerSymbol": "BTC",
"assetSymbol": "BTC",
"assetLegacyId": "BTC"
}
]
}
],
"isSubaccount": true,
"mainAccountId": "<string>"
}
],
"paging": {
"after": "<string>",
"before": "<string>"
},
"prevUrl": "<string>",
"nextUrl": "<string>"
}{
"message": "<string>",
"code": 123
}