Guide

DCA (Dollar Cost Averaging) API Integration Documentation

Overview

The OpenOcean Socket Data Push service provides real-time event streaming via Socket.IO over WebSocket transport.

This service allows clients to subscribe to user-specific data streams using a wallet address. Once subscribed, the server pushes live updates automatically.

This document explains how to connect, subscribe, handle events, and implement best practices for production usage.

API Base Information

Base Endpoint

https://open-api.openocean.finance/socket

Custom Path

The service uses a custom Socket.IO path. Make sure the path option is configured correctly.

/v1/socket

Transport Protocol

Only WebSocket transport is recommended:

transports: ['websocket']

Example (Node.js)

Socket Event Data

  • To receive real-time updates, emit a subscribe event with your wallet address

  • All real-time messages are delivered via the data event

  • event_type: dca_filled,limitorder_filled

Example Data Payload:

Support

For technical support or questions about the API:

Last updated