How To Build a Simple Cryptocurrency Trading Bot with Python and the Binance API

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

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

  • @goodyonsen77
    @goodyonsen77 2 года назад +9

    Thanks so much my friend !
    BTW, I'd love to join binance and reference you in whatever way possible but the binance is way over-strict in their acceptance of new customers. I mean, I turned myself into a darn monkey in front of the web cam, nodding, smiling, opening my mouth, holding the IDs and still got rejected. I tried my passport, drivers license, id... No... I think I just have to put my xrays showing my bones (MRI scan results might do better idk) to prove I have no intention to rob them.

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

    Just made my first dollar, time to hit the town! Love your vids man, especially how you update the simple stuff as you find different/better ways to do it. Learning a ton thanks to you and having fun building bigger scripts off your lessons. Stay beautiful!

    • @Algovibes
      @Algovibes  2 года назад +5

      Thank you very much Robert! Nice surname ;-)

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

      Hello robert, can you please share the script with me to know why mine isnt working?

  • @_eFe_666
    @_eFe_666 2 года назад +8

    Hi! great content as usual. For more views on your channel I would recommend a video on how to do backtesting in Python with the top indicator from tradingview (squeeze momentum ind from lazybear). Maybe even adding adx and ema200 to optimize the strat. Including leverage would be a plus! Keep up the great work. Cheers

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

      Thanks a lot man. Also thanks for your suggestion. Not sure if it's yielding more views tho :D But maybe worth to give it a shot.

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

    Danke!

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

      Danke für die monetäre Wertschätzung :-)

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

    dude, first of all Thank you for your time and effort and for sharing your knowledge.. Ive been learning python 3 for data analysis, ai, machine learning and obviously automated trading on API level.. As time progresses I would like to analyze vast amounts of data on crypto and other commodities to get a better understanding of the market psychology of any asset through data points gathered... and hopefully train my Ai to make more informative trades.. I am still a beginner in all of this.. But Ive subscribed to you, So I could learn more towards my medium term goals.. Thanks again for sharing, and please keep up!

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

      Thank you very much for your kind words mate :-) Really appreciate it!

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

    I guess next step would be is to visualize active trades and keep record of PNL using database. Going to scour your channel for that. Btw, the way you clarify every line and show the output is more clear than most teaching coding for a living.

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

      Thank you mate. That's great to read!

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

    man i am glad i got here on your channel. It is exactly what i was looking for!! thanks!

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

      Glad to have you on board. Thanks for watching!

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

    Great content !! Thanks for sharing such a great bot and for explaining in simple terms how it works. We need more traders and contributors like you ! I will look at the rest of the content in your channel, it looks fantastic.

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

      Thank you very much buddy. Happy to have you on board!

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

    Hi Algovibes , this framework is great , how can it be improved further , in a situation where the cloud service( I am using pythonanywhere) stops and restarts , the data held in the posframe is lost , so when they restart the bot after a few seconds, the bot forgets about the assets already held in the posframe, any solution to this? a situation where after a restart the bought checks the assets already in the posframe. Thanks for the great work

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

      Hi Kipkosgei, thanks a lot mate. Just use an external file like a csv. I have done that in another video. An alternative would be a sqlite database but I am not quite sure if it is compatible with python anywhere.

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

      @@Algovibes thank you sir

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

    Could a simpler trading bot be made where you enter in the first order and the bot goes off of that. Say the stock is at .0125 and you buy. Could you design the bot to simply sell if it goes to .0126? Then when it goes back down to 0.125 buy again? And if it doesn't reach that in an allocated amount of time, cancel the bot and wait for the user to initiate a trade again. And at a stop loss, the user has to re-initiate the trades. Rather than using indicatiors, databases, etc...

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

      Actually a very cool idea. Thanks a lot for your suggestion!

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

      @@Algovibes Did you make a video about it?

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

    Cool! I like that. I know this is a proof of concept, but there is room for improvement. Let me point out the most obvious. You need run the trade function only once per candle. In this case as the bot is trading based on the hourly timeframe, the trade function should run only once per hour. If it simply runs in an endless loop without a break, it would open positions on the first iteration and then on the further iterations do nothing except logging until the next candle. I do this even more optimized by subscribing to the chart data via WebSocket. When the exchange pushes a new candle to my bot, the trade funtion is triggered.

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

      Very good input. Thanks a lot! Yea, I am usually working with data streams from a websocket as well. Please check out some videos in the cryptobot playlist for that.

  • @axios-xu9gv
    @axios-xu9gv 2 года назад +1

    Thank you very much, but I would like to ask you if I am going to not open a simple one that if the % goes down that the first purchase action takes when it goes down 2% that I buy, for example, and if the price that I sell increases by 2%.
    And every few seconds or minutes thereafter you can execute the next buy order on that pair or other crypto pairs at the same time on Binance spot.
    So it takes time to go down or up, that process will be automatic, without indicators or anything, just adjusting the percentage of purchase and sales.

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

      Thanks for watching man,
      sorry but is this a question or a statement?

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

    Danke.
    Deine Videos sind immer interessant.
    Ich lerne fleißig.
    Ihre Studentin aus Deutschland

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

    Great video mate. thanks

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

      Thanks for watching mate :-)

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

    Hello :D great vid! If im not in the us, do I still put in USDT as the symbol names? or AUD?

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

      Thanks buddy :-) No, USDT is the common stable coin on binance to purchase the asset.

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

    Hi Algo, thanks for the great video!
    Is the posframe updated automatically in its notebook while the trader function runs in a separate notebook?
    How do we make the posframe reflect changes in quantity and position automatically while the bot is running?
    Thanks a ton for your help!

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

      Hi Jayditya, thanks alot for your comment!
      No it isn't. By taking an external source which is changed (csv, database). Hope that helps!
      I have actually videos where I am working with external sources. Be invited to check out my cryptobot playlist :-)

  • @ahmed-Alziyadi
    @ahmed-Alziyadi 2 года назад +3

    Amazing as usuall, i have some questions :
    1. What if we use a stop loss and take profit instead?
    2. Is it possible to trail the price after buying order with a profit presentage?
    3. How to let the bot just buy one coin of the list then try again after the selling is done?

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

      Good points! Thanks a lot for your input.

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

    Where are my comments ?? Twice deleted :(
    Here are they... again:
    Great!
    I've only been a fan for a few weeks, and you changed my whole outlook! Your clear and precise explanations, your ideas, and the way you implement them so easily in Python have shed a lot of light in the long dark tunnel where I have been for so long :-))))) So just: THANK YOU !!
    1. I keep all your buying strategies handy, and for selling I apply the following rule: SL at x% of my buy price, then a trailing stop at y%.
    2. I am looking for an algorithm on the Volume: DeltaVolume for 1m gives peak values ​​10, 100 (and sometimes more) higher just before a nice climb (example GALA tonight on 03.13.2022 from 0:30 to 2:45) ... you may have already covered this topic? What do you think ?
    3. Would it be possible to make a video with Binance Future? and adaptation of a lever for example when switching to BreakHeaven?
    4. I saw that you have a private channel... what are the possibilities and advantages of being a member?
    5. .... lots of things in your head with each new video ... so again THANK YOU THANK YOU THANK YOU ... and keep it up, you're on TOP :)

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

      Thank you so much mate. Also thanks for the suggestions! Being a channel member would mean having access to the notebooks shown in the videos and enables me to provide upcoming content:
      ruclips.net/user/Algovibesjoin

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

    Thank you for this great video
    Is it possible to use an already existing indicator as trigger for buy and sell orders ?
    Can you provide help if needed ?

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

      Thanks for watching mate. Be invited to explore the cryptobot playlist on my channel. I have some helpful videos on that.

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

    Hi, you tend to use the top 50 market cap coins in your symbol list. I use the full symbols available to trade. I wonder if using the best 50 performers may work better than market cap. That way each time it runs, it get new symbols and the best preforming ones. Great video, have really enjoyed playing about with this.

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

      Had a strange comment on this, linked to a fake WhatsApp number. Was dodgy and wanting me to join a get rich quick scam. The comment has now gone.

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

      Hi Lance, appreciate your comment!
      Yes I know, that's scamming bots. I am trying to moderate them as best as I can. Sorry for the inconveniences.

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

      @@Algovibes no drama. I am trialing using the top coins over the last 24 hours to see how that compares. I ,may then trial the bottom ones as well.

  • @DanielMartinez-hc1nw
    @DanielMartinez-hc1nw 2 года назад +1

    How did you create the CSV file? I never seen that program before. What are you using? I just see Local Host and that is all. Thank you again for teaching me how powerful Python is.

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

    Great video! But why use a csv and not a sqlite db to read and write from?

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

      Both is possible. But in this video I am not really using a csv but rather a dataframe which is continuously manipulated (please read the note in the description)

  • @spearfishing-tr
    @spearfishing-tr 2 года назад +1

    bro, the first for loop is not working and thus not selling

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

      did you check out the part with exception handling it?

    • @spearfishing-tr
      @spearfishing-tr 2 года назад

      ​@@AlgovibesI checked, but there is a balance problem error code: 2010 so I changed the market sell quantity settings as quoteOrderQty
      because it write so in the binance api documents but not tested

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

    Nice video! Please keep it up! I am currently learning on how to make a trading bot in python. Your video inspired me a lot!
    btw, I have difficulty on calculating the EMA. I want to use same EMA value as what binance shown.
    If I use the live data to calculate it, it takes really long time to let the bot's EMA converge to binance's EMA.
    Can you make a video on this? (calculating the indicator involving history and live data)

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

      Thanks a lot mate :-) Happy to read that.
      Also thanks for the suggestion.

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

    Great content.
    How can I run the code only in the old data? (Backtesting)

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

      Thanks man,
      backtested SMAs e.g. here:
      ruclips.net/video/vWVZxiaaTCs/видео.html

  • @سهرابعلیزاده-ش7ز
    @سهرابعلیزاده-ش7ز 2 года назад +1

    Amazing.
    Good job
    Thanks

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

    Hello, I have a problem, the program takes only my last instrument and only checks it, how to fix it?

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

    the loop doesnt save the updated data to csv, so the position and quantity doesnt change, but the rest works. any help?

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

      Sure! Where did you deviate from the shown code?

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

    Nice video and like your work, thanks for sharing.. It would be also nice to write the sell balance per coin back to the csv, this way you can keep track of profit / loss , and or re use the funds on the next buy signal to compound returns ( or losses :) )

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

    hello can you please tell what if i put a limit order in the bot is this order will show up in order book in the basic platform

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

      Yes, it will!

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

      ​@@Algovibes is there any way to not show up the limit order or any type of limit orders in order book in basic exchange platform

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

    Thanks Algo it is awesome like your others 💯

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

      Thank you my friend!

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

    after i build robot where you put robot vps where

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

      Could you elaborate on your question?

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

    Sure a stupid question, but I've been running this code for 4 days and it's not selling. I find that a little strange. Can you help why it does not sell ;/

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

      Did you make sure the code is running? Do a print statement or csv write to make sure the loop is consistently running would be my suggestion.

    • @spearfishing-tr
      @spearfishing-tr 2 года назад +1

      @@Algovibes the first for loop is not working, it should work as logic, i think the intake in the account is not visible because quantity and position are 0

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

    Great efforts. Thanks man

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

    Where is the websocket?

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

      Sorry, can you elaborate?

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

    Hello.I am not getting the print report after i run the loop. is that ok? thanks

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

      Can you elaborate?

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

      @@Algovibes Please don't ask me what i changed but now is running. I saw that a lot of bots are mising from google drive folder. are you gonna update them? thanks a lot. you' re the best

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

    How to set up stop losses

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

      Covered it e.g. here:
      ruclips.net/video/rc_Y6rdBqXM/видео.html
      But also in other videos in my cryptobot playlist. Be kindly invited to check them out.

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

    I've tried doing this, but for a different strategy. Will run this overnight and see how it goes. Thank you for sharing this! I've just learned python just to create a bot lol. Question tho, I'm just wondering, since our trigger is FMA > SMA, what if when we ran the code, we're at an all-time-high, then the bot would execute a trade, right? but then it dips and trigger our sell condition, wouldn't that be instantly a loss? Should I be too concerned with that? What is the best way to go about that? Just wait until I recover that initial loss through the succeeding trades?

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

      Hi Joshua,
      thx a lot for your comment.
      Sure, there are things which can and must be optimized. The exit e.g. could be improved as you rightly mentioned to avoid situations like that.

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

    Hi and thank you very much,
    but it is possible to short crypto on binance ?

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

      Thanks for watching man!
      It is:
      Via Options, Futures and UP/DOWN coins.

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

    Could you make a future trading bot, man?

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

      On my list but future trading is currently restricted in my country on Binance. But I will find another platform. Might take some months tho.

    •  2 года назад

      @@Algovibes I see many intrested in futures... why ? sorry I am totally newbie. thanks

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

    We can also make it
    For wallet trading?

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

      Good question. Didn't try yet.

  • @سهرابعلیزاده-ش7ز
    @سهرابعلیزاده-ش7ز 2 года назад +2

    Please write a trader bot base on kucoin websocket api
    Kucoin api gave Too Many Request error

  • @Kai-of9xl
    @Kai-of9xl 2 года назад +1

    Hi, great work again! I assume you are in Germany, so on Binance you can not trade with futurs, right? Do you have plans to bulid a bot that can also trade futures to make profits when the price is falling? In Germany this is possible from bybit for example.
    I have testet freqtrade as a platform for pyhton bots, which is great, but it also only trades coins, without leverage and no futures. Would be interesting to see a bot using these features!

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

      Yes, I do and you are right. The restrictions are limiting my possibilities but I am already looking for exchanges where I can implement a futures bot. Thanks a lot for you comment btw :-)

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

    thank you! very clearly explained!

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

      Thanks for watching and your comment!

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

    where can i get the code from

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

    how to capture entry price of future trade after place market order? plz

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

    Can i add technical indicators?

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

      Sure, you can add technical indicators in the applytechnicals function. Just need to need the conditions later on as well.
      BTW dat name =D

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

    Can I contact you for a programming task?

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

      Really depends. I am currently quite swamped but you can drop me a mail and I'll see what I can do.

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

    Thank you !!!

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

      Welcome :-) Thx a lot for watching.

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

    the tier two link just takes to the main page

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

      You are right! Thank you very much for this feedback. Don't know why that is, but I just fixed it.

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

      @@Algovibes plz recheck i think its still takes to the min page and there is only a subscribe option or maybe the update will take sometime to take affect

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

      @@Algovibes sorry... its working now, but i have noticed something; that it is location dependent, when i use vpn it starts working with some countries options

  • @johndoe-is2fw
    @johndoe-is2fw 2 года назад +1

    9:00 Sorting Data

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

    I would likt to build a live trading simulation for Binance. So unlike backtesting i would like to use live data to test an algorithm without actually having to spend money. Do you know how i could use the Binance API for that? Would that maybe qualify as a Idea idea for you? Would love to see that. Great Videos, you really show that it's not that hard to build your own trading bots!

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

      Hi mate,
      there are several possibilities to do that - yes.
      Making a paper trading bot, so instead of executing orders just store the current price somewhere (csv, DB). You could also take a look at the binance testnet.

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

      @@Algovibes The problem with the Testnet is that is only uses data from other testnet users right? I would expect the market to behave very differently from the real one. But i think i already found a solution. I basically request the orderbook of a pair and calculate the price i would get based on that orderbook regarding sells or buys.

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

    great! thanks again!

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

      Thanks a lot for watching mate :-)

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

    how to get this source code?

  • @raymondhenry4936
    @raymondhenry4936 2 года назад +4

    Love your videos, I’ve learned so much and plan to contribute very soon. Can you make a similar trading bot using DYDX?

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

      I agree 👍

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

    Great video

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

    Hi, thanks for the amazing video. I love your work since it points to teach crypto strategies but also programming activities. A simple suggestion, on my code i added a line after each operation in order to update the csv file on the local disk. In this way, in case of external stuff (eg shutdown the machine), the posframe file is already updated.
    The line of course is: posframe.to_csv('positioncheck', index = False)

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

      Thanks a lot mate. Did you check the description? 😛No worries if you didn't. I mentioned that there.

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

      @@Algovibes ops Sorry, i was too much excited for the video 😛 waiting for your next One!

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

      @@Algovibes ops Sorry, i was too much excited for the video 😛 waiting for your next One!

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

    im getting this error APIError(code=-1013): Filter failure: MIN_NOTIONAL

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

      Covered here:
      ruclips.net/video/FlL1X17sw8o/видео.html
      And actually in my newest video I am showing how you could get data like this (ccxt video).
      Hope that helps!

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

    hello Man,
    thank you for the great content and for making things way simple.
    i tried using the code but it doesnt run, actually the trader function doesnt enter the first for loop. dont know why? can you help me with that?

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

      Thanks mate, well can you elaborate on where you deviate from my approach and where the error is happening?

    • @spearfishing-tr
      @spearfishing-tr 2 года назад

      i have the same problem

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

      @@Algovibes hello and thanks for your care to reply :) Actually, the problem happens when there is an exception like the one you had on the video “ not enough funds” the for loop restarts from the beginning all over again till the coin that fired the exception.

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

    Thank you, very much, you made my day, currently i tested bots with a MA slope, i made some profits. If you have a better winning rate to the bots, i will apreciate! Or a discussion grup to be created as a suggestion, if not yet created

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

    Thank you very much for sharing your vast knowledge with everybody!
    I´m trying to do a similar script (using a CSV file) and I´d like to run it in the cloud 24/7, should I create a Windows VM in GPC?
    Thanks in advance!

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

      Welcome mate! :-)
      I have covered cloud deployment here, maybe something you can extract value from:
      ruclips.net/video/mDNIAkEZChg/видео.html

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

    Thanks a lot man ! I have a question: Do these two lines below serve the same purpose for reaching quantity value ? posframe.loc[posframe.Currency==curr, 'quantity'] /// posframe[posframe.Currency==coin].quantity.values[0]

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

      Welcome mate. Can you pass me timestamps where you are referring to? Thx a lot!

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

      @@Algovibes 19:17 first line is the first expression. Other one is near the bottom starts with " quantity = "

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

    Great videos. Can you make one python code based on Helkin Ashi

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

      Thank you :-)
      Got in already on my list, not quite sure when I will cover it tho.

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

    This is interesting.

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

      Happy to read! Be invited to check out my other stuff and let me know if you are looking for something specific!

  • @3rdpartylegends
    @3rdpartylegends 2 года назад +1

    Hey man could you make a bot on future trading?

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

      Currently restricted in my country. Maybe that changes or I will have to find a new exchange. Might take some time. Thx for your patience!

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

    Hey, that's a great video! I think it's possible to create some mock instead of real binance client and try this bot in "test mode", right ? Just run it for a month in some cloud and see the actual profit. Has anyone tried it ?

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

      Hey man, thanks a lot :-)
      I was actually considering to do a tutorial on that as well. Probably somewhen in the upcoming months.

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

    I didn't follow at all the video . I will have a look but You should have used OOP and and IDE for a trading bot...

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

      Agreee on production level but for presentation reasons: Where do you see the advantages? I want to keep the code as understandable as possible.

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

      @@Algovibes it's about taking good habits...jupyter is better for analysing data....and for trading bots : IDE and OOP.This is a fact even for a presentation , it should be done in a level production that's why TESTNET exists on Binance ...Good luck

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

    Thank you so much for the content. One question though. If we want to get a ticker for a certain coin, should we use a WebSocket or just (I'm trading in futures market) futures_klines(...) inside an infinite loop? I am asking cause a lot of times I have encountered a timeout exception that terminates my program and after a lot of research, I haven't found a clean solution around it so now I'm thinking to refactor most of my code (i'm using the second way).

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

      Thank you very much for watching and your comment. Whenever possible you should use a websocket. I am usually just showing concepts with api calls to showcase concepts but all the scripts I am running contain a websocket stream. I have already covered using websockets with different approaches in the cryptobot playlist.

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

      @@Algovibes Thank you again, your content is great and very informative. I'm still till today a little bit overwhelmed with this issue and I don't know when to use each practice websockets vs infinite loop. For instance, I made my first trading bot back then, before 7 months and I was fetching the data with the way of infinite loop containing future_klines (similar to what you do on an other video of yours. But later when you answered my comment you said I should use websockets whenever possible. Is this way of fetching kandlesticks (like you do on the video) bad practice or anything like that?
      (I'm doing intraday trading and basically im fetching data everysecond to see how the kandlestick goes thats why I'm asking)