How To Build a SIMPLE Cryptocurrency LIVE Trading Bot with Python [2023 -BEST approach]

Поделиться
HTML-код
  • Опубликовано: 3 май 2024
  • Thanks for watching :-)
    This video is showing the best way to construct a Python Trading bot to implement calculation based trading logic on very granular past data. It is processing real time data within a live data stream, implements a simple Trading Strategy and keeps track of buying and selling orders.
    Taking this approach you can implement any kind of trading logic be it Technical indicators, Machine Learning, Support & Resistance or whatever you think gives you an edge.
    Get the Notebook/Source code by becoming a Tier-3 Channel member:
    / @algovibes
    Hit like and comment for Part II. I am excited for that!
    Be invited to check out my other videos in the Cryptobot and Python for Finance playlists.
    Binance Websocket API:
    github.com/binance-us/binance...
    Websocket client:
    pypi.org/project/websocket-cl...
    Disclaimer: This video is for educational and/or entertainment purposes only. Cryptocurrencies and automated trading bears high level of risks. Strategies are over simplified examples.
    00:00 - 02:09 Trading Bot Infrastructure / DISCLAIMER!
    02:09 - 05:25 Live data stream setup
    05:25 - 09:48 Data processing/manipulations
    09:48 - 13:52 Calculations
    13:52 - 15:25 Trading Logic
    15:25 - 17:09 Orders
    17:09 - 18:57 Let's run it!
    18:57 - 19:26 UP NEXT
    #Python #Tradingbot #Crypto #binance

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

  • @petsandpaws8906
    @petsandpaws8906 Год назад +9

    Great video once again!
    Cant wait for the 2nd part.
    Would be great to see an actual profitable trading strategy in working with the Binance API.
    Thats exactly what Im trying to achieve! ❤

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

    Thank you. Can't wait for the next part. 👍

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

      Welcome mate, thanks a lot for watching!

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

    I love watching your videos! Very educational and entertaining! Cheers from Seattle

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

      Thanks a ton, very happy to read. Just been in the states :-) Greeting back to the emerald city.

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

    the best teacher ever! i bought your course as a big thank you even though i watched basically all your videos already. would love to support u any way i can

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

      Thanks buddy 💓 you do by leaving a comment :) thank you

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

    another excellent video, thanks

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

    Very thank's Algo! i'm so Vibe from your reserching :0)

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

      My pleasure 😛Thanks for your comment!

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

    Thank you for another interesting video.looking forward to next one and hopefully will be able to integrate this logic with my broker 😀

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

      Thanks a ton for watching anil!

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

    Men, I love your voice. And you are my pandas teacher! Thank you very very much for your videos. They are just a masterpiece!

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

      Now that's an awesome compliment 😁 Thank you!

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

    great video

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

    Luv u sir 💝

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

    Hi, can you do a video on how to check open orders and trail SLs, etc. I am trying to code the bot for fibonacci video, however, I am stuck on this point.

  • @philipacovington
    @philipacovington Год назад +4

    It would be interesting to see how you would go about resampling your dataframe in 1 minutes increments to get the OHLC of that minute based on the timestamps.

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

      why would u need to resampling this kind of data if you can request 1m kline api and get those values every minute or more frequently? unless u wanna see a solution logic of this task

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

      @@OPPACHblu_channel That is fine if your api makes 1m kline data available. I was interested in a solution if the api I am using does not.

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

      @@philipacovingtonWhich kind of frequency your data coming then?

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

      @OPPACHbIu Сhannel if you get 1min interval data only, you will have to take a blind action on next 1 min candle (because you dont have shorter interval to take action live). Something like buy at the open price or whatever price on the next 1 min candle.
      If you can 1 min and 1 sec data, you can do indicating 1 min interval, and take action in 1 sec interval like buy at this exact price or buy as soon as the price reaches a point within the current 1 min candle.
      One is future and the other is current

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

    erster xD bester Algotrading Channel weiter so und vielen Dank !

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

      Vielen Dank mein bester!

  • @rodrigoandrade1098
    @rodrigoandrade1098 11 месяцев назад +1

    Can you tell which interface that is? i'm tired of my basic python IDE and this looks amazing. Also, would be great to develop in the same environment used in the video. Thanks in advance!

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

      Hi buddy, that's just Jupyter Notebook.

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

    Is there any way to read the Index or Future data ?

  • @YoungIron_gaming_World
    @YoungIron_gaming_World 2 месяца назад +1

    great video but in don't get it about that json do you need to download that and how than

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

      Can you give me a timestamp on that? quite some time I did that vid. Happy to go into details if anything is unclear

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

      @@Algovibes it was around 4:50

  • @christosck
    @christosck 10 месяцев назад +1

    First off, big thanks for your content, it's great stuff !!
    Now, I think it would be worth exploring how the stream of data can be used to implement startegies on different timeframes. We obviously do not want to wait until we accumulate enough data from the stream.
    To be honest I recently launched my own strategies using hourly data. It was easier not to use websockets, but now as I launch more and more iterations I am coming across the limits on repeated queries to binance :(( ..
    I imagine we would take a snapshot and then continue appending to that, or at least that's what I would do. I am not sure if that is the best or most efficient method. What do you think??
    My alternative would be to just add delays to the current script's queries, but this is not really a solution, just a temporary patch up.

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

      Thanks for watching mate!
      Yes, working with a sequence where you are storing hourly data and update it with the livestream sounds like a good idea.

  • @user-od7ge8ms4v
    @user-od7ge8ms4v Год назад +1

    When will be ready the second part? And upload please to the drive

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

      Just released :-) Let me know what you think! Will update the Drive in the upcoming days.

    • @user-od7ge8ms4v
      @user-od7ge8ms4v Год назад

      @@Algovibes Ok I will write the code I have do a question an in the other video check it if you can

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

    Can you also make for metatrader 5?

  • @alekseipahhatajev3033
    @alekseipahhatajev3033 Месяц назад +1

    is it possible to set some sort of an interval? Like get data every 10 seconds instread of 1 second.

    • @Algovibes
      @Algovibes  Месяц назад +1

      Yes that’s possible! You can work with e.g. a sleep timer or catch only timestamps which are x seconds away from each other.

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

    Could you please make a video on how to create an automatic trading bot for a trading platform such as Interactive Broker?

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

      It will be easier to do a MT5 or MT4 platform bot which can be used by different brokers rather than deal with each broker separately.

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

      @@amothe83 whatever platform for us commers to trade stocks rather than Crypto. I thonk there are far too many videos on how to create bots to trade crypto rather than stocks

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

      Yeah that's actually on my list. Somewhen this year probably. Thanks a lot for the suggestion!

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

    as always backtesting with commision

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

      I am - with some exceptions - always backtesting with realistic commissions and in this case there is literally no commission. You can trade BTC without any trading fees on Binance. The bid-ask spread is another thing to consider which was clearly addressed in this video.

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

      @@Algovibes wow thank you for this info

  • @EthosDemerzel
    @EthosDemerzel Месяц назад +1

    I can't get the program to run; please, could you explain to me what could be happening?

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

      Hi mate, at which point (timestamp) do you struggle? And can you elaborate on your problem? Happy to help!

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

      @@Algovibes I can't connect to binance with websocket. Could you help me, please?

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

      @@Algovibes At the beginning, at minute 5, I can't connect to binance with websocket. Could you help me? Please

  • @user-od7ge8ms4v
    @user-od7ge8ms4v Год назад +1

    This strategy with live Data you must to convert it with futures please do a futures bot

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

      Thanks a ton for the suggestion!

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

    What IDE do you use??

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

      Jupyter Notebook here

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

      ​@@Algovibes Does this also work if I make this in one Python script? Or only in Jupyter-notebook?

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

    🙋‍♂🙋‍♂ :)

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

      Thanks for leaving a comment buddy

  • @ktecnology3123
    @ktecnology3123 10 месяцев назад +1

    The code pleez

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

      Hi buddy, please check the video description, you will find an instruction how to get access to the code there!

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

      @@Algovibes There is no link to the source code.

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

    Well done thank you sir
    I couldn’t find your email address in details can I have it sir?
    Because I want to discuss about something with you

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

      Just check the About page, there you will find my mail :-) Looking forward to it!

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

    interesting thanks for sharing. Can you please send your email address.

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

      Welcome buddy, it is in the About section of my channel. Looking forward to hear from you!

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

      Hey buddy..
      I can’t find any contact in the About section !