Real-Time API (WebSockets)
Last updated
Last updated
Criptan's Interactive API empowers you to establish a dynamic, two-way communication session between your client and our server. With this API, you can effortlessly send messages to the server and receive event-driven responses in real-time, eliminating the need for continuous polling.
To ensure secure access, authentication is achieved by sending the authorization token in the authorization
query string parameter.
In order to start receiving data in real-time from a specific topic.
Topics available are:
GENERAL
For general updates. Automatically subscribed when the connection is stablished.
OHLCV
Aggregated form of market data standing for Open, High, Low, Close and Volume. For all Criptan assets and for intervals of 1m, 5m, 15min, 1h, 4h, 1d, 1w, 2w.
TICKERS
A ticker is a report of the current market prices for an individual currency pair.
SERVER MESSAGES
subscriptionStatus
We've implemented a robust error handling system to ensure smooth interactions. Here are the possible error messages:
ZodError:
ResourceNotFound
InternalError
The Interactive API offers a seamless and secure way to engage in real-time communication with Criptan's servers. Whether you're subscribing to topics or managing errors, our API is designed to provide a smooth and efficient experience.