Binance API Tutorial (Part 2) - Real-Time Crypto Price Data over Websockets
HTML-код
- Опубликовано: 19 июн 2020
- Like the video? Support my content by checking out Interactive Brokers using the link below:
www.interactivebrokers.com/mk...
Buy Me a Coffee: buymeacoffee.com/parttimelarry
Twitter: / parttimelarry
Website: hackingthemarkets.com
Source Code: github.com/hackingthemarkets
In this video, we retrieve bitcoin price data over Websockets in 2 ways. First, we use wscat to receive the information from the command line and save the price data to a file. Second, we use JavaScript to receive the information in a web browser.
Like the video? Support my content by checking out Interactive Brokers using the link below:
www.interactivebrokers.com/mkt/?src=ptlPY1&url=%2Fen%2Findex.php%3Ff%3D1338
how to get data of btcusdt perpetual
Minute 12:45 like a magician, in 3 minutes voila! He builds a webpage that pulls in live crypto prices. Beautiful.
Wow, amazing video! I'm so thankful because it was well explained and was so easy!
I was trying to do in Python using the API keys and I couldn't do it because my clock wasn't sincronized with Binance servers but in Javascript was so easy and worked excellent. Thanks!
It was my first time to write html codes but was so easy. Your video was super straightfoward!
Highly appreciate you making this, thank you!
Your series is incredibly useful thank you bro
This is great! Thank you very much!!
I was just searching for it bro and you just came in
This is incredible, thank you
You make it look so easy ! Thank you !
Thank you for this tutorials!
This video is full of usefull tips. Thank you very much!
Thank you for your content!! Extremely helpful.
Hey Larry great job, there's hardly any videos like this on RUclips. Quick question, how do I get the long short ratio data? Thanks again
love your tutorial. Thank you Larry.
Aloha Larry, thank you for your beautiful tutorial. What software do u use on mac to edit all the stuff?
Would I be able to stream btc futures data by changing the symbol or would I have to use a different websocket?
Great video!
Thank you so much!!!
great video, thanks! 🙏
Dudeeee, you are a wizard!!!! Thank you so much for this, much Love :)
great stuff. subscribed.
You are the one Larry.
thanks for everything
Very good tutorial
how we can add the last price into a variable and put it in a table ?
Thanks a lot, the Tutorial is gret! Is it possible to do the same, but in Django?
Is there any way you'd be willing to do the same type of tutorial video on Binance Smart Chain tokens? Possibly using Quicknode or Getblock or ANKR? Maybe, search for BSC token using token address and display real-time price data for that token, as well as plot candlesticks charts. Would like to be able to reach out to you directly to ask you a few questions.
thanks for good tutorial! Could you do additional tutorials about combining thread and websocket, like one thread getting data from binance, another processing data, another entering position based on the process? When processing data, I thought I have to access accumulated data as well as realtime data so that I could find a spike signal. So I thought I would need to organize whole data into pandas dataframe. But without dataframe, can we calculate the difference of close prices? Could you show how to do it? Thanks again.
Sorry for my noob question,i am learning python and i have never touched js before.Could this all be done in python?I am getting a bit confused.Thank you
Hey, amazing content bro! :D Does websocket mean that it is trading 24/7?
Sir, can you suggest 2-3 api that give live streaming forex data second by second.?
No need to capture the data, you can download historical data from binance if you want to test some strategies.
Hi. Thanks for sharing.
How would I do if I want to get only my trade data?
Tee command is not working, do you have a solution ?
Yo awesome video!
But how U made that beautify?
And can I do use it in Atom?
How do you save the dataset? I am struggling with that aspect.
hi, i tried to copy your code but the "onmessage" is not yellow but blue as the binanceSocket. and so the "console" is blue as well. any idea why? i review the code and its axcactly as you wrote it
thanks
Nice entry on your BTC buy
Can we use the web socket api directly or we have to build on our own ?
Hi nice content! is possible to integrate that with a chart pattern detection?
how to edit multiple lines with Prettier extension , in my case i only can to format one line of a code, for other lines Prettier show syntax error
Hi! Does the Binance API also have real time price for the P2P Market?
i installed the wscat package but it wont work in my spyder environment, is still avilable in the cmd when i use the wscat command, any ideas on how to integrate it?
larry can i ask something, i got this error: read ECONNRESE when i run wscat. can you help me?
Nice video!.
Did you do a same video but in Python ?... (Get Live Cryptocurrency Prices with Python - API binance)
Great video but now alpaca has the beta 3 and im struggling ot figure out a way aroudnd it.
How Can We Do so That the Price Is Updating and Be on one specific Location instead of keeping the old records and moving left
very nice videos, 0.75X to catch :)
Hi buddy. I'm trying to reflect the data coming from the socket to the screen with Flutter. Can you help me? Does anyone know how I can display the data coming from the Flutter socket to the screen?
Hey man, great video. Can you make provide some info about how to use the binance testnet??
Hello, I was wondering if there is an alternative to 'tee' for windows since I've noticed that it does not exist on Windows OS
am having the same problem too
비록 영어는 잘 못하지만 다 알아 들었다 설명 잘하네
how can i get this realtime btc price data with python code into a variable ?
Is it possible to build a trading bot with okex platform
how can we stop this stream. if our condition is met then how can we exit from the stream??
The tee Command is not working on windows and you should instead use "> file.txt && type file.txt" it will generate a new file with the name file and write in it.
Lovely! Thank you very much!
just remember to take away also the | symbol cause it will be raplaced by the > symbol
tengo una pregunta. segun la documentacion de binance el servidor web socket solo esta habilitado para 24 H, luego de que pase este tiempo que se puede hacer para que se reconecte de forma automatica?
un bucle te solociona el problema
@@Favoritos11113 lo pongo en un while 1?
Hello. This is so helpfull. Thank you. How can i get future candle data? Please help me :)
Very nice video. There's a problem happened to me. When I finished the very end of code and launched it didn't write data in the webpage it kept writing "undefined" instead.
I am running across the same issue and can't seem to figure it out. Have you had any luck since??
fek ya you're a gd genius
hi stream multiple symbol .thank you very much .god willing
hi , why we need a web page to do this, we can just run this internally, on the backend, whats the benefit of putting up a web application ?
I used it to show real-time charts on the web. You don't need to do make a web app, but it's what the tutorial series is about. There is a command line bot app in another video that is just plain python and web sockets. Each tutorial is a bit different.
@@parttimelarry thanks for the reply, very few RUclipsrs reply this fast , very generous of you, i already have some ideas and being the python developer, i dont wanna go the web route, thats why, its a great series to start from, thanks again
@@rachitgupta2336 The video linked below has been pretty popular lately and is Python and websockets only -- it is not a good strategy, but sets up a structure where it is easy to plug in your own strategy: ruclips.net/video/GdlFhF6gjKo/видео.html
@@parttimelarry Many Thanks, and thanks for being a very humble guy, 😊
can anybody tell me why i can't install wscat? I've tried so many times
BTC was 9000 Dollars....
hOW CAN WE SUBSCRIBE BINANCE FUTURES PRICE STREAM??? PLEASE HELP
How to stop the ws.run_forever() command?
There is a reason it's called run forever :)
are those data real time?
tee not working please help
can use " >> textfile.txt " instead of " | tee textfile.txt "