### Get Account Balances Source: https://www.bitstamp.net/api-psd2/index Retrieves an array of your fiat balances (EUR, USD, GBP). You can optionally filter by a specific currency. ```APIDOC ## GET /api-external/psd2/v1/account-balances/ ### Description Returns an array of your fiat balances (EUR, USD, GBP). ### Method GET ### Endpoint https://www.bitstamp.net/api-external/psd2/v1/account-balances/ ### Parameters #### Query Parameters - **currency** (string) - Optional - Filter by currency. Valid options: USD, EUR, GBP. ### Response #### Success Response (200) - **amount** (string) - Balance amount - **currency** (string) - Balance currency #### Response Example ```json [ { "amount": "1000.00", "currency": "EUR" }, { "amount": "500.50", "currency": "USD" } ] ``` #### Error Response - **code** (string) - Error code - **message** (string) - Error Message #### Error Response Example ```json { "code": "400", "message": "Invalid currency specified." } ``` ``` -------------------------------- ### GET /api-external/psd2/v1/transactions/ Source: https://www.bitstamp.net/api-psd2/index Retrieves a paginated list of fiat transactions. Supports filtering by currency, sorting, and time range. ```APIDOC ## GET /api-external/psd2/v1/transactions/ ### Description Returns a paginated array of your fiat transactions. Supports filtering by currency, sorting options, and time parameters. ### Method GET ### Endpoint https://www.bitstamp.net/api-external/psd2/v1/transactions/ ### Parameters #### Query Parameters - **currency** (string) - Optional - One of: USD, EUR, GBP. - **sort** (string) - Optional - Sorting order: 'asc' for ascending (default), 'desc' for descending. - **sinceTimestamp** (integer) - Optional - Show only transactions since this unix timestamp. - **offset** (integer) - Optional - Skip this many transactions before returning results (default: 0, maximum: 200000). - **sinceId** (integer) - Optional - Show only transactions from specified transaction ID. If used, 'limit' is set to 1000. - **limit** (integer) - Optional - Limit result to this many transactions (default: 100; maximum: 1000). ### Request Example ``` GET https://www.bitstamp.net/api-external/psd2/v1/transactions/?currency=USD&sort=desc&limit=100 ``` ### Response #### Success Response (200) - **transactions** (array) - A paginated array of transaction objects. - **transactionId** (string) - Transaction ID (not available for pending transactions). - **amount** (string) - Transaction amount. - **currency** (string) - Transaction currency. - **datetime** (string) - Transaction UTC datetime in ISO format. - **type** (string) - Transaction type (e.g., Deposit, Withdrawal, Buy asset). - **fee** (string) - Transaction fee, if applicable. - **amountReceived** (string) - Amount received (on buy orders only). - **currencyReceived** (string) - Received currency (on buy orders only). - **amountPaid** (string) - Amount paid (on sell orders only). - **currencyPaid** (string) - Paid currency (on sell orders only). - **iban** (string) - Withdrawal account (on withdrawals only). - **bic** (string) - Bank account BIC (on withdrawals only). - **nameAndSurname** (string) - Name of account owner (on withdrawals only). - **reference** (string) - Reference string (e.g., USERNAME-reference). - **valueDate** (string) - Withdrawal UTC value datetime in ISO format (on withdrawals only). #### Response Example (Success) ```json { "transactions": [ { "transactionId": "tx_12345abc", "amount": "-50.00", "currency": "EUR", "datetime": "2023-10-27T10:00:00Z", "type": "Withdrawal", "fee": "0.10", "iban": "DE89370400440532013000", "bic": "COBADEFFXXX", "nameAndSurname": "John Doe", "reference": "user123-ref", "valueDate": "2023-10-27T10:05:00Z" } ] } ``` #### Error Response (e.g., 400) - **code** (string) - Error code (e.g., API5003, Invalid offset). - **message** (string) - Error message describing the issue. #### Response Example (Error) ```json { "code": "API5003", "message": "Invalid Currency" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.