Find Jobs
Hire Freelancers

help me to get websocket data

$250-750 USD

Closed
Posted about 3 years ago

$250-750 USD

Paid on delivery
i am trying to get a proper websocket feed from an exchange , i can get 20 lvl deep data but it is not enough for me ,a doc shows method for bigger level guide but i couldnt figure it out. Plz help me to get a feed for 150 lvls this is doc url: --[login to view URL] this is my code: const WebSocket = require('ws') const pako = require('pako'); let huobbidsorderBooks = [] let huobasksorderBooks = [] let koinA = ['ankrusdt'] ws = new WebSocket('wss://[login to view URL]'); [login to view URL] = () => { [login to view URL]((coinz) => { [login to view URL]([login to view URL]({ "sub": "market." + coinz + ".mbp.150", "id": "id1" })); [login to view URL]([login to view URL]({ "req": "market." + coinz + ".mbp.150", "id": "id2" })); }); } [login to view URL]('message', function(data) { data = [login to view URL](data, { to: 'string' }); let msg = [login to view URL](data); try { let Pair = [login to view URL]('.')[1] let pairz = [login to view URL](0, -4) huobbidsorderBooks[Pair] = [login to view URL] huobasksorderBooks[Pair] = [login to view URL] // [login to view URL](huobbidsorderBooks['ankrusdt']) [login to view URL](msg) } catch (error) { [login to view URL](error) } }); all you need to do is make this msg to turn usable one array that have price and size info like this: [ [ 0.193509, 1554.47 ], [ 0.193508, 8999.47 ], [ 0.193277, 4001.49 ], [ 0.193273, 516.62 ], [ 0.193272, 3099.58 ], [ 0.193271, 14589.41 ], [ 0.193269, 753.84 ], [ 0.193265, 4540 ], [ 0.193264, 5375.71 ], [ 0.193263, 2261.52 ], [ 0.193226, 754.31 ], [ 0.193222, 754.3 ], [ 0.193216, 1900 ], [ 0.193195, 615.83 ], [ 0.193192, 5372.54 ], [ 0.193189, 5376.75 ], [ 0.193181, 13000 ], [ 0.193173, 1508.66 ], [ 0.193168, 754.31 ], [ 0.193157, 18814.71 ] ..... // total 150 levels (lines) ] right now you can have this with sending "sub": "market." + coinz + ".mbp.refresh.20", this line change but it only give 20 lines and that s not enough for me 100 or 150 prorably fits for me your whole job is explained here budget is 100 usd
Project ID: 29901905

About the project

3 proposals
Remote project
Active 3 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
3 freelancers are bidding on average $350 USD for this job
User Avatar
Hi $100 for project I am a full stack developer over 6 years for website and so I can help you with my skills please contact me and discuss more thanks
$250 USD in 1 day
5.0 (3 reviews)
3.4
3.4
User Avatar
Hello, dear. I can do your job perfectly, as I am a Node JS expert. I have great experience with NodeJS/Express, MongoDB and mysql. As well as I have strong knowledge of Frontend such as ReactJS, Vue JS , Angular for 4+years. Please contact me to discuss. I can build you great project very quickly. I wish your best luck in everything you do. Best regards.
$300 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of TURKEY
adana, Turkey
4.6
19
Payment method verified
Member since Mar 25, 2011

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.