API & WebSocket
The N17 platform provides a variety of full-featured trading web application programming interfaces (APIs), covering key trading functions, while providing familiar entry points for different trading styles and user types. Users can use either of these APIs to gain read access to public market data, and use the private API to gain private read access to accounts.
The N17 platform develops public and private WebSockets, which makes the data exchange between the client and the server easier, allowing the server to actively push data to the client. In the WebSocket API, the browser and the server only need to complete a handshake, and a persistent connection can be created directly between the two, and two-way data transmission can be performed. The WebSocket API consists of two URLs:
WebSocket URL: Used by clients to connect to the API and allow clients to send messages and receive notifications.
Connection URL: Send a message back to the client (requires a Connection ID to send to a specific client).
Users can use the WebSocket API to receive push notifications, including any updates on public order books and private accounts. The WebSocket API developed by the N17 platform supports various functions such as security verification, order entry, execution report, market data query, and customer data subscription.
Last updated