apiThumb

1.0.0

admin

06/May/2019 07:46:33 AM UTC

PUBLISHED

Production and Sandbox Endpoints

Production and Sandbox URLs:
ws://api.darwinex.com/quotewebsocket/1.0.0
ws://api.darwinex.com/quotewebsocket/

Description

Websocket connection for providing Product Quotes. Once connected to the websocket it is possible to subscribe or unsubscribe to product quotes. To subscribe send a request { "op": "subscribe", "productNames" : [ <productNames> ] }. To unsubscribe: { "op": "unsubscribe", "productNames" : [ <productNames> ] }. The format of the messages will be {"op": "pq", "productName": <productName>, "quote": <newQuote>, "timestamp": <epochTimestamp> }. Additional info can be found in the docs.

Comments

No comments yet

Name Summary
Product Quotes WebSocket subscription walkthrough Description of the possible requests available in the WebSocket API. View Content