connection code to websocket using vb.net
Dear Admin,
I am only need data from tick history for my application, and I am using vb.net but seem that no sample code for connection to your websocket and api code to get tick history with vb.net
anyone can help me with the code, thanks for your assitance before.
Regards,
dhewa
Comments
Hello @dhewa. You just need to send the correct query using some VB.Net websocket connection. For example using WebSocket4Net you can do this.
`Public Class Form1
End Class`
Regards
hello @tarja
well note for your code, i wll try and revert to you soon, thanks as always..
regards,
HI @tarja...and how we get the string of message from websocket,that we can to manipulate the JSON data..ex: we request websocket.send("{"""tick""":""R_100""}") and get the result in message from websocket.
Hello, i'm developing vb.net application and i use the same come but i have a problem even if the command connect give me result ok, when i send data i got always you must send data only if websocket is open...
Could you help me:?
All websocket connections need an application ID - you can register here:
https://developers.binary.com/applications/
and then pass the ID from the new application as the app_id parameter:
wss://ws.binaryws.com/websockets/v3?app_id=XXX
Please see https://developers.binary.com/guide/ for more details.
@termi_80 in your code you are sending
send
just afteropen
callit should be inside this sub
or inside this
if you want to chain
Hi guys im new to coding and want to learn how to create my own trading strategy and buttons with VB,Net so i used this code but its not working for me im trying to get the tick chart into some form to analyse the charts and build a frame around it i also want to open trades please advice. i got this till now
Public Class Form1
End Class
@tarja please create example connection code to websocket using vb.net 2010 support with TLS version 1.2
thanks
@mudrixs see this stack overflow question and answer https://stackoverflow.com/questions/42817334/ssl-tls-1-2-channel-creation-vb-net-https-webrequest