n0mad01 / node.bittrex.api

No longer maintained
MIT License
183 stars 187 forks source link

Pre-establish websocket for buy order in future. #74

Open waheedshahani opened 6 years ago

waheedshahani commented 6 years ago

Hi, This sounds great library. I have stupid question. FYI I am quite new to websockets.

Q 1. My goal is to pre-establish websocket at time T and at time T+X in future(after an hour may be) send buy order on that socket. Will this work or I am not getting websocket concept at all?

Q2. I assume at time T websocket will exchange SSL Handshake as well, will this SSL Handshake happen again at time T+X?

moltar commented 6 years ago

You can pre-establish the websocket, but it doesn't work for orders. It only providers a read-only, real time feed of data.

But to answer your question, you won't need to handshake if you keep the WS open.