Home

Subscribe new fiat rates

POST
wss://btc-testnet.nownodes.io/wss/{api_key}

Calls the subscribeFiatRates method over a WebSocket connection.

Connection URL:

Copied!
wss://btc-testnet.nownodes.io/wss/{{api_key}}

Open the connection, then send the message below as a text frame.

Example:

Copied!
wscat -c 'wss://btc-testnet.nownodes.io/wss/YOUR_API_KEY'
> {"id":"23","method":"subscribeFiatRates","params":{"currency":"usd"}}

The subscription is accepted, but no rates are delivered, as fiat rates are not configured on testnet.

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.