Mobula provides WSS support for retrieving OHLCV data for any asset.
apiKey
: your Mobula API key (you can get one here)address
: the address of the pool you want to get OHLCV data forchainId
: details hereperiod
: the period of the OHLCV data you want to get (1s, 1min, 5min, 15min, 1h, 4h, 1d, 1w, 1M)subscriptionId (optional)
: A unique ID for your WebSocket connection. If not provided, it is automatically generated by the server.subscriptionTracking (optional, default: false)
: Set this to true to include the subscriptionId and additional connection details in the response logs. Helpful for debugging and managing multiple active streams.