### Example JSON Response for Balance Source: https://developer.wallbit.io/docs/quickstart This is an example of the JSON response you can expect when successfully fetching your checking account balance. ```json { "data": [ { "currency": "USD", "balance": 1000.50 } ] } ``` -------------------------------- ### Authentication Example Source: https://developer.wallbit.io/docs/api-reference/introduction All API endpoints require authentication using an API Key. Include your API key in the X-API-Key header with every request. ```APIDOC ## GET /api/public/v1/balance/checking ### Description Query checking and investment account balances. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/balance/checking ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Fetch Checking Account Balance with cURL Source: https://developer.wallbit.io/docs/quickstart Use this cURL command to make a GET request to fetch your checking account balance. Replace `your_api_key_here` with your actual API key. ```bash curl -X GET "https://api.wallbit.io/api/public/v1/balance/checking" \ -H "X-API-Key: your_api_key_here" ``` -------------------------------- ### Fetch Checking Account Balance with Node.js Source: https://developer.wallbit.io/docs/quickstart Make a GET request to fetch your checking account balance using Node.js and the Fetch API. Ensure your WALLBIT_API_KEY is set in your environment variables. ```javascript const response = await fetch('https://api.wallbit.io/api/public/v1/balance/checking', { headers: { 'X-API-Key': process.env.WALLBIT_API_KEY } }); const { data } = await response.json(); console.log('Balances:', data); ``` -------------------------------- ### Get Stocks Portfolio Source: https://developer.wallbit.io/docs/llms.txt Returns the list of assets (stocks) that the user holds in their investment account, including the number of shares for each position and the available USD balance in the investment account. Only assets with a positive balance are returned. ```APIDOC ## GET /balance/stocks ### Description Retrieves the user's stock holdings and available USD balance in the investment account. ### Method GET ### Endpoint /balance/stocks ### Response #### Success Response (200) - **data** (object) - Contains the stock portfolio details. - **portfolio** (array) - List of stock positions. - **symbol** (string) - The stock symbol. - **shares** (number) - The number of shares held. - **available_usd_balance** (number) - The available USD balance in the investment account. ### Response Example ```json { "data": { "portfolio": [ { "symbol": "AAPL", "shares": 10 }, { "symbol": "MSFT", "shares": 5 } ], "available_usd_balance": 5000.00 } } ``` ``` -------------------------------- ### Account Details Source: https://developer.wallbit.io/docs/api-reference/introduction Get bank account details for deposits ```APIDOC ## GET /api/public/v1/account-details/get ### Description Get bank account details for deposits. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/account-details/get ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Get Fee Configuration Source: https://developer.wallbit.io/docs/llms.txt Returns the fee setting row for the requested fee type and the authenticated user's current investment subscription tier (or the default tier when no subscription applies). Requires the `read` permission on the API key. Response is wrapped in `data` like other public API resources; when no matching… ```APIDOC ## GET /fees ### Description Retrieves the fee configuration for a specific fee type and the user's subscription tier. ### Method GET ### Endpoint /fees ### Parameters #### Query Parameters - **fee_type** (string) - Required - The type of fee to retrieve (e.g., `TRADING_FEE`, `WITHDRAWAL_FEE`). ### Response #### Success Response (200) - **data** (object) - Contains the fee configuration details. - **fee_type** (string) - The type of fee. - **rate** (number) - The fee rate. - **tier** (string) - The subscription tier the fee applies to. ### Response Example ```json { "data": { "fee_type": "TRADING_FEE", "rate": 0.001, "tier": "PREMIUM" } } ``` ``` -------------------------------- ### Get Robo Advisor Balance Source: https://developer.wallbit.io/docs/llms.txt Returns the list of Robo Advisor and Chest portfolios for the authenticated user, including total balance, asset allocation, performance metrics (gains/losses), individual positions, and market data. Only portfolios with an assigned risk profile, balance greater than 0, or pending transactions are r… ```APIDOC ## GET /roboadvisor/balance ### Description Retrieves balance and performance details for Robo Advisor and Chest portfolios. ### Method GET ### Endpoint /roboadvisor/balance ### Response #### Success Response (200) - **data** (array) - A list of portfolio objects. - **portfolio_name** (string) - The name of the portfolio. - **type** (string) - The type of portfolio (e.g., `ROBO_ADVISOR`, `CHEST`). - **total_balance** (number) - The total balance of the portfolio. - **asset_allocation** (object) - Breakdown of assets by type. - **performance** (object) - Performance metrics (e.g., gains, losses). - **positions** (array) - List of individual asset positions within the portfolio. ### Response Example ```json { "data": [ { "portfolio_name": "Growth Portfolio", "type": "ROBO_ADVISOR", "total_balance": 15000.50, "asset_allocation": {"stocks": 0.7, "bonds": 0.3}, "performance": {"gain_loss_percent": 0.05}, "positions": [{"symbol": "SPY", "quantity": 10}] }, { "portfolio_name": "Income Chest", "type": "CHEST", "total_balance": 5000.00, "asset_allocation": {"cash": 1.0}, "performance": {"gain_loss_percent": 0.01}, "positions": [] } ] } ``` ``` -------------------------------- ### Get Asset Source: https://developer.wallbit.io/docs/llms.txt Returns detailed information about a specific asset (stock/security) identified by its symbol. Includes data such as current price, sector, market capitalization, description, CEO information, dividends, and the categories it belongs to. ```APIDOC ## GET /assets/{symbol} ### Description Retrieves detailed information for a specific asset using its symbol. ### Method GET ### Endpoint /assets/{symbol} ### Parameters #### Path Parameters - **symbol** (string) - Required - The stock symbol of the asset (e.g., AAPL). ### Response #### Success Response (200) - **data** (object) - Contains detailed information about the asset. - **symbol** (string) - The stock symbol. - **name** (string) - The name of the company. - **price** (number) - The current price of the asset. - **sector** (string) - The sector the asset belongs to. - **market_cap** (number) - The market capitalization. - **description** (string) - A description of the asset. - **ceo** (string) - The CEO of the company. - **dividends** (number) - Dividend information. - **categories** (array) - A list of categories the asset belongs to. ### Response Example ```json { "data": { "symbol": "AAPL", "name": "Apple Inc.", "price": 170.50, "sector": "Technology", "market_cap": 2800000000000, "description": "Apple Inc. is an American multinational technology company.", "ceo": "Tim Cook", "dividends": 0.96, "categories": ["Technology", "Consumer Electronics"] } } ``` ``` -------------------------------- ### Get Checking Balance Source: https://developer.wallbit.io/docs/llms.txt Returns the available balances in the user's checking (DEFAULT) account for the authenticated user, including all currencies available in this account. Only currencies with a positive balance are returned. ```APIDOC ## GET /balance/checking ### Description Retrieves the available balances in the user's default checking account. ### Method GET ### Endpoint /balance/checking ### Response #### Success Response (200) - **data** (object) - An object where keys are currency codes and values are the available balances. ### Response Example ```json { "data": { "USD": 1500.75, "EUR": 300.50 } } ``` ``` -------------------------------- ### Get Account Details Source: https://developer.wallbit.io/docs/llms.txt Returns the user's bank account details according to the specified country and currency. The details vary depending on the country and may include ACH account information (US), SEPA (EU), or local bank accounts. Currently only US and EU are supported in the public API. ```APIDOC ## GET /account-details ### Description Returns the user's bank account details for a specified country and currency. ### Method GET ### Endpoint /account-details ### Parameters #### Query Parameters - **country** (string) - Required - The country for which to retrieve account details (e.g., US, EU). - **currency** (string) - Required - The currency for which to retrieve account details (e.g., USD, EUR). ### Response #### Success Response (200) - **data** (object) - Contains the bank account details. - **account_number** (string) - The bank account number. - **routing_number** (string) - The routing number (if applicable). - **iban** (string) - The IBAN (if applicable). - **bic** (string) - The BIC/SWIFT code (if applicable). ### Response Example ```json { "data": { "account_number": "1234567890", "routing_number": "021000021", "iban": "DE89370400440532013000", "bic": "COBADEFFXXX" } } ``` ``` -------------------------------- ### Get Exchange Rate Source: https://developer.wallbit.io/docs/llms.txt Returns the stored exchange rate for the given `source_currency` and `dest_currency` from the `exchange_rates` table. Requires the `read` permission on the API key. Both parameters must be valid currency codes in Wallbit. If both codes are identical, the response returns a rate of `1.0` with `update… ```APIDOC ## GET /rates ### Description Retrieves the exchange rate between two specified currencies. ### Method GET ### Endpoint /rates ### Parameters #### Query Parameters - **source_currency** (string) - Required - The source currency code (e.g., `USD`). - **dest_currency** (string) - Required - The destination currency code (e.g., `EUR`). ### Response #### Success Response (200) - **data** (object) - Contains the exchange rate information. - **source_currency** (string) - The source currency. - **dest_currency** (string) - The destination currency. - **rate** (number) - The exchange rate. - **last_updated** (string) - The timestamp when the rate was last updated. ### Response Example ```json { "data": { "source_currency": "USD", "dest_currency": "EUR", "rate": 0.92, "last_updated": "2023-10-27T10:00:00Z" } } ``` ``` -------------------------------- ### Fetch Checking Account Balance with Python Source: https://developer.wallbit.io/docs/quickstart Use Python's requests library to fetch your checking account balance. Your WALLBIT_API_KEY should be available as an environment variable. ```python import requests import os response = requests.get( 'https://api.wallbit.io/api/public/v1/balance/checking', headers={'X-API-Key': os.environ['WALLBIT_API_KEY']} ) data = response.json()['data'] print('Balances:', data) ``` -------------------------------- ### Fetch Checking Account Balance with cURL (Environment Variable) Source: https://developer.wallbit.io/docs/quickstart This cURL command fetches your checking account balance using an API key stored in the `$WALLBIT_API_KEY` environment variable. ```bash curl -X GET "https://api.wallbit.io/api/public/v1/balance/checking" \ -H "X-API-Key: $WALLBIT_API_KEY" ``` -------------------------------- ### Robo Advisor Source: https://developer.wallbit.io/docs/api-reference/introduction Chests portfolios, deposits, and withdrawals ```APIDOC ## GET /api/public/v1/roboadvisor/balance ### Description Chests portfolios, deposits, and withdrawals. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/roboadvisor/balance ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Assets Source: https://developer.wallbit.io/docs/api-reference/introduction Browse available stocks and ETFs ```APIDOC ## GET /api/public/v1/assets/list ### Description Browse available stocks and ETFs. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/assets/list ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Wallets Source: https://developer.wallbit.io/docs/api-reference/introduction Retrieve crypto wallet addresses ```APIDOC ## GET /api/public/v1/wallets/get ### Description Retrieve crypto wallet addresses. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/wallets/get ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Operations Source: https://developer.wallbit.io/docs/api-reference/introduction Move funds between checking and investment accounts ```APIDOC ## POST /api/public/v1/operations/internal ### Description Move funds between checking and investment accounts. ### Method POST ### Endpoint https://api.wallbit.io/api/public/v1/operations/internal ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Cards Source: https://developer.wallbit.io/docs/api-reference/introduction List cards and update card status ```APIDOC ## GET /api/public/v1/cards/list ### Description List cards and update card status. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/cards/list ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### List Assets Source: https://developer.wallbit.io/docs/llms.txt Returns a paginated list of assets (stocks/securities) available for trading. You can filter by category and search by symbol, name, or keywords. Results are ordered by priority, market cap, and ID. ```APIDOC ## GET /assets ### Description Retrieves a paginated list of available assets for trading, with options to filter and search. ### Method GET ### Endpoint /assets ### Parameters #### Query Parameters - **category** (string) - Optional - Filter assets by category. - **search** (string) - Optional - Search by symbol, name, or keywords. - **page** (integer) - Optional - The page number for pagination. Defaults to 1. - **limit** (integer) - Optional - The number of assets per page. Defaults to 20. ### Response #### Success Response (200) - **data** (array) - A list of assets. - **symbol** (string) - The stock symbol. - **name** (string) - The name of the company. - **price** (number) - The current price of the asset. - **category** (string) - The category the asset belongs to. ### Response Example ```json { "data": [ { "symbol": "AAPL", "name": "Apple Inc.", "price": 170.50, "category": "Technology" }, { "symbol": "MSFT", "name": "Microsoft Corporation", "price": 280.75, "category": "Technology" } ] } ``` ``` -------------------------------- ### Rates Source: https://developer.wallbit.io/docs/api-reference/introduction Fiat exchange rates between currency pairs ```APIDOC ## GET /api/public/v1/rates/get ### Description Fiat exchange rates between currency pairs. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/rates/get ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Trades Source: https://developer.wallbit.io/docs/api-reference/introduction Execute buy and sell orders for stocks ```APIDOC ## POST /api/public/v1/trades/create ### Description Execute buy and sell orders for stocks. ### Method POST ### Endpoint https://api.wallbit.io/api/public/v1/trades/create ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Internal Operation Source: https://developer.wallbit.io/docs/llms.txt Allows moving funds between the checking (DEFAULT) account and the investment (INVESTMENT) account. Deposit: moves funds from DEFAULT to INVESTMENT to invest. Withdrawal: moves funds from INVESTMENT to DEFAULT to use the money. Requires complete investment KYC. ```APIDOC ## POST /operations/internal ### Description Facilitates fund transfers between the checking and investment accounts. ### Method POST ### Endpoint /operations/internal ### Parameters #### Request Body - **operation_type** (string) - Required - The type of operation (`DEPOSIT` or `WITHDRAWAL`). - **amount** (number) - Required - The amount of funds to transfer. - **currency** (string) - Required - The currency of the funds to transfer (e.g., `USD`). ### Request Example ```json { "operation_type": "DEPOSIT", "amount": 1000, "currency": "USD" } ``` ### Response #### Success Response (200) - **message** (string) - Confirmation message of the operation. - **transaction_id** (string) - The unique identifier for the transaction. ### Response Example ```json { "message": "Funds deposited to investment account successfully.", "transaction_id": "txn_xyz789" } ``` ``` -------------------------------- ### List Cards Source: https://developer.wallbit.io/docs/llms.txt Returns the cards of the authenticated user that are either active (`ACTIVE`) or suspended (`SUSPENDED`). ```APIDOC ## GET /cards ### Description Retrieves a list of the authenticated user's active or suspended cards. ### Method GET ### Endpoint /cards ### Response #### Success Response (200) - **data** (array) - A list of card objects. - **card_id** (string) - The unique identifier for the card. - **status** (string) - The current status of the card (e.g., `ACTIVE`, `SUSPENDED`). - **last_four** (string) - The last four digits of the card number. ### Response Example ```json { "data": [ { "card_id": "card_123abc", "status": "ACTIVE", "last_four": "1234" }, { "card_id": "card_456def", "status": "SUSPENDED", "last_four": "5678" } ] } ``` ``` -------------------------------- ### Transactions Source: https://developer.wallbit.io/docs/api-reference/introduction View transaction history with filters ```APIDOC ## GET /api/public/v1/transactions/list ### Description View transaction history with filters. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/transactions/list ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Fees Source: https://developer.wallbit.io/docs/api-reference/introduction Stock trading fees by subscription tier ```APIDOC ## GET /api/public/v1/fees/get ### Description Stock trading fees by subscription tier. ### Method GET ### Endpoint https://api.wallbit.io/api/public/v1/fees/get ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### API Key Source: https://developer.wallbit.io/docs/api-reference/introduction Revoke the current API key ```APIDOC ## POST /api/public/v1/api-key/revoke ### Description Revoke the current API key. ### Method POST ### Endpoint https://api.wallbit.io/api/public/v1/api-key/revoke ### Headers - **X-API-Key** (string) - Required - Your API key ``` -------------------------------- ### Revoke API Key Source: https://developer.wallbit.io/docs/llms.txt Permanently revokes the API key sent in the X-API-Key header. After revocation, that key cannot be used again. Does not require the `read` or `trade` scopes—any valid key may revoke itself. ```APIDOC ## POST /api-key/revoke ### Description Permanently revokes the API key provided in the request header. ### Method POST ### Endpoint /api-key/revoke ### Parameters #### Headers - **X-API-Key** (string) - Required - The API key to revoke. ### Response #### Success Response (200) - **message** (string) - Confirmation message indicating the API key has been revoked. ### Response Example ```json { "message": "API key revoked successfully." } ``` ``` -------------------------------- ### Update Card Status Source: https://developer.wallbit.io/docs/llms.txt Allows changing the status of a user's card authenticated via API Key. `SUSPENDED` blocks the card and `ACTIVE` unblocks it. ```APIDOC ## PUT /cards/update-status ### Description Updates the status of a user's card to either `ACTIVE` or `SUSPENDED`. ### Method PUT ### Endpoint /cards/update-status ### Parameters #### Request Body - **card_id** (string) - Required - The unique identifier for the card. - **status** (string) - Required - The new status for the card (`ACTIVE` or `SUSPENDED`). ### Request Example ```json { "card_id": "card_123abc", "status": "SUSPENDED" } ``` ### Response #### Success Response (200) - **message** (string) - Confirmation message indicating the card status has been updated. ### Response Example ```json { "message": "Card status updated successfully." } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.