All URIs are relative to https://api.fireblocks.io/v1
| Method | HTTP request | Description |
|---|---|---|
| disconnect_connected_account | DELETE /connected_accounts/{accountId} | Disconnect connected account |
| get_connected_account | GET /connected_accounts/{accountId} | Get connected account |
| get_connected_account_balances | GET /connected_accounts/{accountId}/balances | Get balances for an account |
| get_connected_account_rates | GET /connected_accounts/{accountId}/rates | Get exchange rates for an account |
| get_connected_account_trading_pairs | GET /connected_accounts/{accountId}/manifest/capabilities/trading/pairs | Get supported trading pairs for an account |
| get_connected_accounts | GET /connected_accounts | Get connected accounts |
| rename_connected_account | POST /connected_accounts/{accountId}/rename | Rename Connected Account |
disconnect_connected_account(account_id)
Disconnect connected account
Disconnect a connected account by ID.
Note:
- This endpoint is currently in beta and might be subject to changes.
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
account_id = 'account_id_example' # str | The ID of the account to disconnect.
try:
# Disconnect connected account
fireblocks.connected_accounts_beta.disconnect_connected_account(account_id).result()
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->disconnect_connected_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | The ID of the account to disconnect. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Account disconnected successfully | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectedSingleAccountResponse get_connected_account(account_id)
Get connected account
Retrieve detailed information about a specific connected account by ID.
Note: This endpoint is currently in beta and might be subject to changes.
from fireblocks.models.connected_single_account_response import ConnectedSingleAccountResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
account_id = 'account_id_example' # str | The ID of the account to fetch.
try:
# Get connected account
api_response = fireblocks.connected_accounts_beta.get_connected_account(account_id).result()
print("The response of ConnectedAccountsBetaApi->get_connected_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->get_connected_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | The ID of the account to fetch. |
ConnectedSingleAccountResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account response | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectedAccountBalancesResponse get_connected_account_balances(account_id, page_size=page_size, page_cursor=page_cursor)
Get balances for an account
Retrieve current asset balances for a specific connected account as a flat list (one row per assetId, balanceType).
Note: This endpoint is currently in beta and might be subject to changes.
from fireblocks.models.connected_account_balances_response import ConnectedAccountBalancesResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
account_id = 'account_id_example' # str | The ID of the account to fetch balances for.
page_size = 56 # int | Page size for pagination. (optional)
page_cursor = 'page_cursor_example' # str | Page cursor for pagination. (optional)
try:
# Get balances for an account
api_response = fireblocks.connected_accounts_beta.get_connected_account_balances(account_id, page_size=page_size, page_cursor=page_cursor).result()
print("The response of ConnectedAccountsBetaApi->get_connected_account_balances:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->get_connected_account_balances: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | The ID of the account to fetch balances for. | |
| page_size | int | Page size for pagination. | [optional] |
| page_cursor | str | Page cursor for pagination. | [optional] |
ConnectedAccountBalancesResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account balances response | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectedAccountRateResponse get_connected_account_rates(account_id, base_asset_id, quote_asset_id)
Get exchange rates for an account
Retrieve current exchange rates for converting between specific assets in a connected account.
Note: This endpoint is currently in beta and might be subject to changes.
from fireblocks.models.connected_account_rate_response import ConnectedAccountRateResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
account_id = 'account_id_example' # str | The ID of the account to fetch rates for.
base_asset_id = 'base_asset_id_example' # str | The ID of the asset to fetch rates for.
quote_asset_id = 'quote_asset_id_example' # str | The ID of the asset to get the rates nominally.
try:
# Get exchange rates for an account
api_response = fireblocks.connected_accounts_beta.get_connected_account_rates(account_id, base_asset_id, quote_asset_id).result()
print("The response of ConnectedAccountsBetaApi->get_connected_account_rates:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->get_connected_account_rates: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | The ID of the account to fetch rates for. | |
| base_asset_id | str | The ID of the asset to fetch rates for. | |
| quote_asset_id | str | The ID of the asset to get the rates nominally. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Rates response | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectedAccountTradingPairsResponse get_connected_account_trading_pairs(account_id, page_size=page_size, page_cursor=page_cursor)
Get supported trading pairs for an account
Retrieve all asset trading pairs supported by a specific connected account, including the pair type (quote, market, onOffRamp).
Note: This endpoint is currently in beta and might be subject to changes.
from fireblocks.models.connected_account_trading_pairs_response import ConnectedAccountTradingPairsResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
account_id = 'account_id_example' # str | The ID of the account to fetch supported pairs for.
page_size = 100 # int | Page size for pagination. (optional) (default to 100)
page_cursor = 'page_cursor_example' # str | Page cursor for pagination. (optional)
try:
# Get supported trading pairs for an account
api_response = fireblocks.connected_accounts_beta.get_connected_account_trading_pairs(account_id, page_size=page_size, page_cursor=page_cursor).result()
print("The response of ConnectedAccountsBetaApi->get_connected_account_trading_pairs:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->get_connected_account_trading_pairs: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | The ID of the account to fetch supported pairs for. | |
| page_size | int | Page size for pagination. | [optional] [default to 100] |
| page_cursor | str | Page cursor for pagination. | [optional] |
ConnectedAccountTradingPairsResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Supported pairs response | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectedAccountsResponse get_connected_accounts(main_accounts=main_accounts, page_size=page_size, page_cursor=page_cursor)
Get connected accounts
Returns all connected accounts.
Note: This endpoint is currently in beta and might be subject to changes.
from fireblocks.models.connected_accounts_response import ConnectedAccountsResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
main_accounts = False # bool | Whether to include only main accounts in the response. (optional) (default to False)
page_size = 56 # int | Page size for pagination. (optional)
page_cursor = 'page_cursor_example' # str | Page cursor for pagination. (optional)
try:
# Get connected accounts
api_response = fireblocks.connected_accounts_beta.get_connected_accounts(main_accounts=main_accounts, page_size=page_size, page_cursor=page_cursor).result()
print("The response of ConnectedAccountsBetaApi->get_connected_accounts:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->get_connected_accounts: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| main_accounts | bool | Whether to include only main accounts in the response. | [optional] [default to False] |
| page_size | int | Page size for pagination. | [optional] |
| page_cursor | str | Page cursor for pagination. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Get accounts response | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RenameConnectedAccountResponse rename_connected_account(account_id, rename_connected_account_request, idempotency_key=idempotency_key)
Rename Connected Account
Rename a connected account by account ID.
Note: This endpoint is currently in beta and might be subject to changes.
from fireblocks.models.rename_connected_account_request import RenameConnectedAccountRequest
from fireblocks.models.rename_connected_account_response import RenameConnectedAccountResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
account_id = 'account_id_example' # str | The unique identifier of the connected account
rename_connected_account_request = fireblocks.RenameConnectedAccountRequest() # RenameConnectedAccountRequest |
idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
try:
# Rename Connected Account
api_response = fireblocks.connected_accounts_beta.rename_connected_account(account_id, rename_connected_account_request, idempotency_key=idempotency_key).result()
print("The response of ConnectedAccountsBetaApi->rename_connected_account:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ConnectedAccountsBetaApi->rename_connected_account: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | str | The unique identifier of the connected account | |
| rename_connected_account_request | RenameConnectedAccountRequest | ||
| idempotency_key | str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] |
RenameConnectedAccountResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully renamed connected account. | * X-Request-ID - |
| 400 | Bad request. Missing tenantId, accountId, or accountName. | - |
| 401 | Unauthorized. Missing / invalid JWT token in Authorization header. | - |
| 403 | Failed to rename connected account. | - |
| 404 | Connected account not found | - |
| 409 | Conflict. Account name is already in use by another account. | - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]