Get Current Price
AI-generatedSummary
Fetches the current price for a trading pair from the Bitcoin API service by sending a GET request to /prices/current at https://bitcoin-api.net/api/v1.
Inputs
- symbol (required) — Trading pair symbol sent as the
symbolquery string parameter, e.g. btcusdt (default: btcusdt). - requestOptions — Optional request settings: Batching (items per batch, default 50, and interval between batches in ms, default 1000), Ignore SSL Issues, Proxy URL, and Timeout in ms (default 10000).
Output shape
The JSON response from the Bitcoin API /prices/current endpoint for the requested symbol, returned as the node's output item(s).
The exact response fields aren't defined in the node source; they come from the API. Requires the bitcoinApiApi credential. Declarative routing is used, so there is no custom error handling beyond n8n's default.
Examples
Example 1: Get the current BTC/USDT price on a schedule to log or alert on it.
Operation: Get Current Price; Symbol: btcusdt; trigger with a Schedule node.
Example 2: Look up the price of a different pair.
Symbol: ethusdt (or an expression such as {{$json.pair}} from an upstream node).