Completed

convert RUBY function to VB.NET

Need this RUBY code converted into a VB.NET program:

I can provide the username/password.

Deliverables are the VB.NET source code so I can maintain/modify the code and an executable that I can test.

require "uri"

require "http"

require "eventmachine"

require "websocket-client-simple"

# Request auth token

api_username = "API_USERNAME"

api_password = "API_PASSWORD"

auth_url = "[url removed, login to view]"

token = HTTP.basic_auth(:user => api_username, :pass => api_password)

.get(auth_url)

.body

[url removed, login to view] do

# Connect to Intrinio's WebSocket

socket_url = [url removed, login to view]("wss://[url removed, login to view]{token}")

ws = WebSocket::Client::[url removed, login to view](socket_url)

# Connect to a channel to listen for prices

[url removed, login to view] :open do

message = {

topic: "iex:securities:AAPL",

event: "phx_join",

payload: {},

ref: "1"

}

[url removed, login to view](message.to_json)

end

# Parse prices from incoming messages

[url removed, login to view] :message do |msg|

message = [url removed, login to view]([url removed, login to view])

if message["event"] == "quote"

quote = message["payload"]

puts "== QUOTE ==== "

puts "TYPE: #{quote["type"]}"

puts "TICKER: #{quote["ticker"]}"

puts "PRICE: #{quote["price"]}"

puts "SIZE: #{quote["size"]}"

puts "============= "

else

puts msg

end

end

[url removed, login to view] :close do |e|

puts e

exit 1

end

[url removed, login to view] :error do |e|

puts e

end

end

Skills: Ruby, VB.NET

See more: vb net resize function, vb net add function metadata, covert vb net php function, convert vb vb net vb net2008, convert vb net vb, convert vb6 net vb net, ado net vb net acess, add access database vb net vb pdf, 2checkout integration asp net vb, net call function dll, function php convert flv mp3, function module convert xls file xml format sap, net asc function, php function find convert address link, net image function

About the Employer:
( 21 reviews ) Scottsdale, United States

Project ID: #12847951

Awarded to:

nzeemin

Hello. I'm not a Ruby programmer, but the code looks clear for me. I have experience on .net platform for years. So I can do it for you.

$100 USD in 3 days
(0 Reviews)
0.0

2 freelancers are bidding on average $128 for this job

marslanmushtaq

Hey there! Welcome to Bitzage Technologies! Hope you are doing well. This is Asad, I have worked on similar projects to what you are looking for, and I am confident I can exceed your expectations. Why do I say that? More

$155 USD in 3 days
(1 Review)
0.0