Find Jobs
Hire Freelancers

convert RUBY function to VB.NET

$30-250 USD

In Progress
Posted over 7 years ago

$30-250 USD

Paid on delivery
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 = "[login to view URL]" token = HTTP.basic_auth(:user => api_username, :pass => api_password) .get(auth_url) .body [login to view URL] do # Connect to Intrinio's WebSocket socket_url = [login to view URL]("wss://[login to view URL]{token}") ws = WebSocket::Client::[login to view URL](socket_url) # Connect to a channel to listen for prices [login to view URL] :open do message = { topic: "iex:securities:AAPL", event: "phx_join", payload: {}, ref: "1" } [login to view URL](message.to_json) end # Parse prices from incoming messages [login to view URL] :message do |msg| message = [login to view URL]([login to view URL]) 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 [login to view URL] :close do |e| puts e exit 1 end [login to view URL] :error do |e| puts e end end
Project ID: 12847951

About the project

1 proposal
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
Henderson, United States
4.8
21
Payment method verified
Member since Aug 9, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.