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.

Комментарии • 103

  • @parttimelarry
    @parttimelarry  10 месяцев назад

    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

  • @ericervin2513
    @ericervin2513 3 года назад +28

    Minute 12:45 like a magician, in 3 minutes voila! He builds a webpage that pulls in live crypto prices. Beautiful.

  • @luismario2
    @luismario2 2 года назад +3

    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!

  • @yeonhunryu8327
    @yeonhunryu8327 Год назад +1

    It was my first time to write html codes but was so easy. Your video was super straightfoward!

  • @SKJ7
    @SKJ7 2 года назад +2

    Highly appreciate you making this, thank you!

  • @dukap8669
    @dukap8669 3 года назад +3

    Your series is incredibly useful thank you bro

  • @JoaoSantos-iz1vq
    @JoaoSantos-iz1vq 3 года назад +7

    This is great! Thank you very much!!

  • @freddiekhambata2506
    @freddiekhambata2506 3 года назад +2

    I was just searching for it bro and you just came in

  • @MegaGrac777
    @MegaGrac777 2 года назад +2

    This is incredible, thank you

  • @NiteshMagan
    @NiteshMagan 3 года назад +1

    You make it look so easy ! Thank you !

  • @nvalet
    @nvalet 2 года назад +2

    Thank you for this tutorials!

  • @rmajdodin
    @rmajdodin 2 года назад +2

    This video is full of usefull tips. Thank you very much!

  • @7NiteN
    @7NiteN 6 месяцев назад

    Thank you for your content!! Extremely helpful.

  • @georgejnrb
    @georgejnrb 2 года назад +2

    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

  • @tomng7558
    @tomng7558 2 года назад +2

    love your tutorial. Thank you Larry.

  • @WillFalcon
    @WillFalcon 2 года назад

    Aloha Larry, thank you for your beautiful tutorial. What software do u use on mac to edit all the stuff?

  • @meyo2458
    @meyo2458 3 года назад

    Would I be able to stream btc futures data by changing the symbol or would I have to use a different websocket?
    Great video!

  • @elschilling
    @elschilling 3 года назад +1

    Thank you so much!!!

  • @sobiesky2275
    @sobiesky2275 3 года назад +1

    great video, thanks! 🙏

  • @himalyasahota2010
    @himalyasahota2010 3 года назад +1

    Dudeeee, you are a wizard!!!! Thank you so much for this, much Love :)

  • @nikhilmishra3030
    @nikhilmishra3030 3 года назад +1

    great stuff. subscribed.

  • @MrErolyucel
    @MrErolyucel 3 года назад +1

    You are the one Larry.

  • @muratbozkurt8605
    @muratbozkurt8605 3 года назад +1

    thanks for everything

  • @relaxingmusicsounds8459
    @relaxingmusicsounds8459 3 года назад +2

    Very good tutorial
    how we can add the last price into a variable and put it in a table ?

  • @martahackerman1007
    @martahackerman1007 3 года назад +2

    Thanks a lot, the Tutorial is gret! Is it possible to do the same, but in Django?

  • @roastedgarlic82
    @roastedgarlic82 3 года назад

    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.

  • @seongjinnam1501
    @seongjinnam1501 2 месяца назад

    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.

  • @_matis_
    @_matis_ 3 года назад +1

    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

  • @szathmaridonat5213
    @szathmaridonat5213 Год назад +1

    Hey, amazing content bro! :D Does websocket mean that it is trading 24/7?

  • @MANOJ-fz4ku
    @MANOJ-fz4ku 2 года назад +1

    Sir, can you suggest 2-3 api that give live streaming forex data second by second.?

  • @deepfuchsia7204
    @deepfuchsia7204 2 года назад +1

    No need to capture the data, you can download historical data from binance if you want to test some strategies.

  • @xusiha4946
    @xusiha4946 2 года назад

    Hi. Thanks for sharing.
    How would I do if I want to get only my trade data?

  • @nihonkeizaishinbun2254
    @nihonkeizaishinbun2254 3 года назад +2

    Tee command is not working, do you have a solution ?

  • @Yernarito
    @Yernarito 2 года назад

    Yo awesome video!
    But how U made that beautify?
    And can I do use it in Atom?

  • @sdk9573
    @sdk9573 2 года назад

    How do you save the dataset? I am struggling with that aspect.

  • @amisaban
    @amisaban 2 года назад

    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

  • @qudizzle1
    @qudizzle1 2 года назад

    Nice entry on your BTC buy

  • @tronganhnguyenthanh1157
    @tronganhnguyenthanh1157 Месяц назад

    Can we use the web socket api directly or we have to build on our own ?

  • @konjman2
    @konjman2 3 года назад

    Hi nice content! is possible to integrate that with a chart pattern detection?

  • @OPPACHblu_channel
    @OPPACHblu_channel Год назад

    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

  • @Crypthoughts
    @Crypthoughts 2 года назад

    Hi! Does the Binance API also have real time price for the P2P Market?

  • @TheSebascasta
    @TheSebascasta 2 года назад

    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?

  • @fachriakbar6880
    @fachriakbar6880 2 года назад

    larry can i ask something, i got this error: read ECONNRESE when i run wscat. can you help me?

  • @juank46983
    @juank46983 2 года назад

    Nice video!.
    Did you do a same video but in Python ?... (Get Live Cryptocurrency Prices with Python - API binance)

  • @Apostle_Fishing
    @Apostle_Fishing Год назад

    Great video but now alpaca has the beta 3 and im struggling ot figure out a way aroudnd it.

  • @rythom7522
    @rythom7522 2 года назад

    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

  • @muratisler9954
    @muratisler9954 3 года назад

    very nice videos, 0.75X to catch :)

  • @oguzhancart7590
    @oguzhancart7590 2 года назад

    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?

  • @user-tm2bm7bk4u
    @user-tm2bm7bk4u 3 года назад

    Hey man, great video. Can you make provide some info about how to use the binance testnet??

  • @marcosnovelli6717
    @marcosnovelli6717 2 года назад +2

    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

  • @user-vh2yl1fs7w
    @user-vh2yl1fs7w 3 года назад

    비록 영어는 잘 못하지만 다 알아 들었다 설명 잘하네

  • @gokhanfidan4636
    @gokhanfidan4636 2 года назад

    how can i get this realtime btc price data with python code into a variable ?

  • @moali173
    @moali173 2 года назад

    Is it possible to build a trading bot with okex platform

  • @bakarkhaniii
    @bakarkhaniii 2 года назад

    how can we stop this stream. if our condition is met then how can we exit from the stream??

  • @filip3278
    @filip3278 3 года назад +6

    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.

    • @Penta_Penguin_237
      @Penta_Penguin_237 3 года назад +1

      Lovely! Thank you very much!

    • @Penta_Penguin_237
      @Penta_Penguin_237 3 года назад

      just remember to take away also the | symbol cause it will be raplaced by the > symbol

  • @santiagomeneses2027
    @santiagomeneses2027 3 года назад

    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?

  • @MetinSevindik
    @MetinSevindik Год назад

    Hello. This is so helpfull. Thank you. How can i get future candle data? Please help me :)

  • @johnvoidman6616
    @johnvoidman6616 2 года назад

    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.

    • @pilotcass5977
      @pilotcass5977 2 года назад

      I am running across the same issue and can't seem to figure it out. Have you had any luck since??

  • @aes0p895
    @aes0p895 3 года назад +1

    fek ya you're a gd genius

  • @mahdisecurity1700
    @mahdisecurity1700 3 года назад

    hi stream multiple symbol .thank you very much .god willing

  • @rachitgupta2336
    @rachitgupta2336 3 года назад

    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 ?

    • @parttimelarry
      @parttimelarry  3 года назад +4

      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.

    • @rachitgupta2336
      @rachitgupta2336 3 года назад +3

      @@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

    • @parttimelarry
      @parttimelarry  3 года назад +5

      @@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

    • @rachitgupta2336
      @rachitgupta2336 3 года назад +3

      @@parttimelarry Many Thanks, and thanks for being a very humble guy, 😊

  • @DguluD
    @DguluD Год назад

    can anybody tell me why i can't install wscat? I've tried so many times

  • @ahtapotnecmi2702
    @ahtapotnecmi2702 3 года назад +3

    BTC was 9000 Dollars....

  • @SurinderSingh-mr9ey
    @SurinderSingh-mr9ey 2 года назад

    hOW CAN WE SUBSCRIBE BINANCE FUTURES PRICE STREAM??? PLEASE HELP

  • @allergictobs9751
    @allergictobs9751 2 года назад

    How to stop the ws.run_forever() command?

    • @parttimelarry
      @parttimelarry  2 года назад +1

      There is a reason it's called run forever :)

  • @Johnson-lz8hi
    @Johnson-lz8hi Год назад

    are those data real time?

  • @susnigdh
    @susnigdh 3 года назад

    tee not working please help

    • @Fansuri85
      @Fansuri85 3 года назад +2

      can use " >> textfile.txt " instead of " | tee textfile.txt "

  • @motocompiler
    @motocompiler 2 года назад