Step-by-step guide to using the Binance API for Python beginners (REST & WebSockets)

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

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

  • @AnalyzingAlpha
    @AnalyzingAlpha  2 года назад +10

    Let me know what you think. Trying to get back in the swing of things. All feedback is appreciated!

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

      How do I setup a bot for the binance futures testnet. It keeps bringing Invalid API-key error.

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

      Wow! You are amazing, do you know how can I get the order book deeper in python? Because the api of binance only lets get 1000 prices. I hope I am well explained.

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

      I liked everything except the image quality. It's hard to read, even in fullscreen mode.

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

      This is very helpful thank you. do you know why get_all_tickers only returns 20 tickers? I would like to get all the coin symbols, but I don't know how.

    • @mo.downhill6760
      @mo.downhill6760 Месяц назад

      I"m getting Nothing after the first ticker test.

  • @MeerkatMatt
    @MeerkatMatt 3 дня назад

    awesome dude thank you! i been using AI etc to learn all this, but seeing someone do it on video and share their experience is super helpful too

  • @X_x_kingfisher_x_X
    @X_x_kingfisher_x_X 7 месяцев назад +1

    It took me one day, but worth it!!
    Super content!! Thanks!!

  • @testchannel4695
    @testchannel4695 3 месяца назад

    Amazing content, much better than the docs. It's actually the step you need in order to be able to navigate the docs... if you start reading the documentation only from scratch, you may go crazy on the way.

  • @user-mj7cm5xe6e
    @user-mj7cm5xe6e 20 дней назад

    Great video and nice English.

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

    Great video and it's covering all important aspects

  • @DominicJI
    @DominicJI 10 дней назад

    Hi, thank you so much. It's really helpful. But I was stuck in checking the account balance. When I type client.get_account(), it said Invalid API-key, IP, or permissions for action. I'm sure the ip is on the whitelist. Is there any advice on what happened.

  • @oldmemorieshub5360
    @oldmemorieshub5360 3 месяца назад

    Thank you, the tutorial is very informative

  • @serhiua
    @serhiua Год назад +2

    Thanks for the clear explanations!
    One question only - how to find the source of this tutorial?

  • @splendorwhite
    @splendorwhite Год назад +2

    The websocket stream will be shut down by the server after a while. When the server send a Ping, the client should send a Pong to keep the stream alive. But how can we do it with websockets?

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

    Thankyou very much, this helped alot...

  • @proud0utl0ud
    @proud0utl0ud Год назад +2

    Hi, important question, I'm stuck at the begginig after installing all necessary pips I get a 'False' feedback from the:
    import pandas as pd
    from dotenv import load_dotenv
    load_dotenv()
    What can I do to make it give 'True', before it gave me the traceback error that the module/s were missing but now they are all properly identified and I get False. i dont know what to do please help!
    Thanks!

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

      My entire API Project is in a unique folder in my system where I have the Jupyter-python Kernel and the dotenv.env file with my API_Keys. But somehow it still gives me false.

    • @Nobody-lw3wl
      @Nobody-lw3wl 6 месяцев назад

      same here, no solutions haha

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

    This is for spot market? What server could use to futures?

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

    Is it possible to constantly receive account status via websocket? Or just the crypto price?

  • @mkaz2497
    @mkaz2497 4 месяца назад

    A lot of API calls are requiring the timestamp.
    How do you provide the timestamp and where ?

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

    Fantastic video 🎉. Ty

  • @tekkitechnik-software-it-g4001
    @tekkitechnik-software-it-g4001 8 месяцев назад

    Thx for the video did you know if binance have a rest api for square. Also what i searching is a binance api to claim codes. any ideas i would really appreciate

  • @FilippoDePadova
    @FilippoDePadova 8 месяцев назад

    and whats about getting data from yourself trading bot data? some usefull api to read grid exchange and profit daily data?

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

    for the rsponse mentioned in 9:34, why do I get a very different result: "response [{'symbol': 'BTCUSD4', 'price': '22882.5400'}..."? What does BTCUSD4 stand for? I don't get it. I am using US url address.

  • @RammohanReddy-fp6re
    @RammohanReddy-fp6re 5 месяцев назад

    need help with binance Option chain for BTCUSD - in dataframe python

  • @ForwardEngineering
    @ForwardEngineering 11 месяцев назад

    Awesome video thank you very much for all of the knowledge. He would be logical to run this on something like a raspberry pie locally? Or should I just run it on Jupiter or some other platform?

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

    hi ! and thank you very much for this tutorial, could explain how you can get resistance and support since the API dont supply the 'full order book' but 'only' 5000 orders. ? THanks =)

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

      yeah I noticed that too it is not a full order book as you said really I don't know where I can get it

  • @mo.downhill6760
    @mo.downhill6760 Месяц назад

    info = client.get_account()
    print(info)
    gives me the following error:
    inanceAPIException: APIError(code=-2015): Invalid API-key, IP, or permissions for action.

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

    Nice tutorial and website. Can you please share how to properly handle the websocket stream going "dead" after some time (10 minutes to 2 hours - it just stops streaming). I would assume we need to respond to the Ping, - and I get the ping in the program, but what is the correct structure/call to respond with a "Pong"?

    • @ege-vm4xv
      @ege-vm4xv Год назад

      the 'websocket' library of python takes care of the ping-pong procedure, although it would be smart to call a 'connect' function from 'on_close' because Binance disconnects webscokets after 24 hours

  • @madam_im_adam
    @madam_im_adam 3 месяца назад

    Where are your videos on candlestick trading??

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

    how can you handle this nowas binance does not support us IP addresses??

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

    Thank you :)

  • @masoodibnyasin
    @masoodibnyasin 8 месяцев назад +1

    Please make video on how to withdraw crypto using api key.

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

    And nothing about pink-pong for Websocket connection....

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

    Is there anything easier then this?

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

    Thank you for the useful video, good content. When i executed load_dotenv(), i am getting output as 'False', let me know why is it? Is it that i should have an account in Binance and have api key and secret key to test it?

  • @MargaretBaker-n9d
    @MargaretBaker-n9d Месяц назад

    视频非常好! 我的OKX钱包里有USDT,并且我有恢复短语. ----------- 我该如何将它们转移到Binance?

  • @jamescaleb9676
    @jamescaleb9676 10 месяцев назад +4

    Typical programmer. Assumes the audience already knows literally everything being taught and just needs a quick reminder. Can’t learn anything from such people

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

    Can Websocket be used to place Orders in USDT-M perpetucal contrat ?