Algovibes
Algovibes
  • Видео 222
  • Просмотров 5 318 856
How To Pull Live OPTION Prices with Python using the Binance API
In this video we are going to pull option metrics from the Binance Websocket API. In specific we pull the whole option chain for Bitcoin including all expiries, strike prices as well as pulling the greeks (delta, gamma, Vega,...) for a specific option (defined expiry/strike).
Let me know if that kind of content is interesting for you by dropping a like, comment and share - helps a lot. Thanks!
Check out my website here:
www.pythonforfinance.info
Get access to the Notebooks as well as support the channel by becoming a member here:
Get the Notebook/Source code by becoming a Tier-3 Channel member:
ruclips.net/channel/UC87aeHqMrlR6ED0w2SVi5nwjoin
I recommend to watch my Option mini series here:
rucli...
Просмотров: 1 256

Видео

Advanced Portfolio Analysis using Numerical Optimization Algorithms
Просмотров 3,2 тыс.Месяц назад
In this video I am going over implementing advanced Portfolio Analysis using Numerical Optimization Algorithms. Use-case here is constructing the Efficient Frontier of the Dow Jones Industrial Average. (30 assets). I am recapping the previous (iterative) approach, going over the optimization conditions such as constraints and bounds and then coding the optimization in Python. There are a ton of...
How To Price Options with Python (P.II) Puts and Put-Call-Parity
Просмотров 2 тыс.Месяц назад
In this video i am going over put options, moneyness of put options and how they work in terms of payout. I am also covering the important topic of absence of arbitrage due to the Put-Call-Parity. After going over the basics I am covering coding a simple Put option price calculator in Python as well as showcase the Put-Call-Parity of a Call and Put option. Let me know if that topic is relevant/...
I got DESTROYED by a Cambridge Modern Portfolio Theory Test - Can you do better?
Просмотров 1,3 тыс.Месяц назад
I am just kidding in the title, these are pretty good questions in the field of Modern Portfolio Theory - I had a ton of fun and hope you have as well :-) Let me know how much you have solved below! Check out my comprehensive Python for Finance course here: www.pythonforfinance.info Cambridge test/credits: www.cambridge.org/ve/files/3813/7943/0724/Ch3Quiz.pdf Support the channel before its too ...
Option Basics and How To Price Options with Python
Просмотров 5 тыс.2 месяца назад
In this video i am going over the basics of what is an option, how it works and what Moneyness (in the money, at the money, out of the money) means. After going over the basics I am covering coding a simple Call option price calculator in Python. Let me know if that topic is relevant/interesting for you, there is way way more to cover! (e.g. calculating implied vol, problems with put options, o...
Tradingbot Simulation in Python [Beginner friendly]
Просмотров 3,3 тыс.2 месяца назад
In this vid I am going over constructing a Tradingbot simulation in Python. The idea is to pull the live data (bitcoin realtime price) via websocket and apply a simple logic to the data stream. Therefore I am setting an initial price and timestamp reference which is being updated every n seconds/minutes. My website: www.pythonforfinance.info Get the Notebook/Source code by becoming a Tier-3 Cha...
Trading Strategy implemented in Python based on ST momentum and TSL
Просмотров 9 тыс.3 месяца назад
This video is showing a Trading Strategy on Cryptocurrencies in specific Bitcoin and ETH leveraging short term momentum and trailing stop losses showing interesting results including trading fees. The video goes over explaining the strategy and building and backtesting it step by step. My website: www.pythonforfinance.info Get the Notebook/Source code by becoming a Tier-3 Channel member: ruclip...
Cryptocurrency Market REALTIME Tracking Dashboard [2024 SPECIAL MUST WATCH]
Просмотров 4,4 тыс.3 месяца назад
Happy new year all! 🧨 Go make this possible! :)) Check out my website here: www.pythonforfinance.info Get the Notebook/Source code by becoming a Tier-3 Channel member: ruclips.net/channel/UC87aeHqMrlR6ED0w2SVi5nwjoin Disclaimer: This video is not an investment advice and is for informational and educational purposes only. #Python #crypto #dataanalytics
REALTIME pull and analyze over 450 Coins with Python [SUPER SIMPLE & EFFICIENT]
Просмотров 9 тыс.4 месяца назад
In this video we are pulling realtime ALL tradeable cryptocurrency prices using the Binance websocket API, do some data manipulations and store it in a live updating csv file. Afterwards we are doing some Data Analysis on the live data. If you enjoyed hit like, comment and share please. Thank you :-) Check out my website here: www.pythonforfinance.info Get the Notebook/Source code by becoming a...
Backtesting Rayner Teos 26,210% Turtle Trading Strategy in Python
Просмотров 8 тыс.4 месяца назад
In this video we are testing the Enhanced Turtle Trading Strategy presented by Rayner Teo in Python. Check out my website here: www.pythonforfinance.info Get the Notebook/Source code by becoming a Tier-3 Channel member: ruclips.net/channel/UC87aeHqMrlR6ED0w2SVi5nwjoin Rayners video: ruclips.net/video/HnNBOReTb8g/видео.html Disclaimer: This video is not an investment advice and is for informatio...
I asked ChatGPT for a WINNING TRADING Strategy - and BACKTESTED it in Python.
Просмотров 6 тыс.4 месяца назад
In this video I am going over a Trading recommendation from Chat-GPT when asking it to provide me an Algorithmic Trading Strategy. I am going over coding it in Python and we are also taking a look at the results to see if the recommended trading strategy was feasible. The strategy in a nutshell is a RSI / Bollinger Band mean-reversion strategy on Bitcoin and the 1-hour timeframe. Let me know if...
Simple Trading Strategy on Bitcoin with Python FULL walkthrough
Просмотров 8 тыс.5 месяцев назад
This video is an in depth Python tutorial and discussion around a very simple short term momentum/reversal Trading strategy on Bitcoin in 2023. We are doing the full chain of setting up the strategy by pulling the data via the Binance API, do the right data manipulations and calculations, generating the signals using an iterative approach, playaround with some parameter tuning and discuss downs...
How to pull REALTIME Cryptocurrency Prices with Python [FOR FREE] using the Binance API
Просмотров 16 тыс.5 месяцев назад
In this video we are pulling realtime cryptocurrency prices (Bitcoin, Ethereum,...) using the Binance websocket API. As I did it in the previous video using a certain library which is not free anymore I thought its a value add to provide you a way free of charge. Hit like, comment and share please. Thank you :-) Check out my website here: www.pythonforfinance.info Get the Notebook/Source code b...
I Built a Website with ZERO Web Development Skills
Просмотров 1,9 тыс.5 месяцев назад
LIFE update from me, briefly sharing my process of building my own website. Check out the website here: pythonforfinance.info Thanks for watching and looking forward to see you in the next videos :-)
How to Track the WHOLE LIVE Cryptomarket 📊 with Python 👨🏾‍💻
Просмотров 6 тыс.7 месяцев назад
In this video (series) we are screening the whole crypto market LIVE with the goal of tracking cryptocurrency coin real time movements using a live price data stream from the Binance API. Leave a like, comment and share to support me and make future content possible. Thanks! Check out my 9 hour Python for Finance in depth course here: www.udemy.com/course/python-for-finance-and-data-science/?re...
TRACK THE WHOLE CRYPTOMARKET WITH PYTHON [must watch]
Просмотров 5 тыс.8 месяцев назад
TRACK THE WHOLE CRYPTOMARKET WITH PYTHON [must watch]
Mastering Crypto Data Analysis: Uncover Top Movers with Live Price Data!
Просмотров 3,2 тыс.8 месяцев назад
Mastering Crypto Data Analysis: Uncover Top Movers with Live Price Data!
How To Calculate and Analyze HISTORICAL Correlations in Python?
Просмотров 3,3 тыс.9 месяцев назад
How To Calculate and Analyze HISTORICAL Correlations in Python?
Data Science in Finance Community Challenge: Building a Profitable Trading Bot
Просмотров 3,6 тыс.9 месяцев назад
Data Science in Finance Community Challenge: Building a Profitable Trading Bot
How To Build a Live Trading Bot with Python & the Binance API
Просмотров 19 тыс.9 месяцев назад
How To Build a Live Trading Bot with Python & the Binance API
Does a Momentum Trading Strategy generate Alpha? Part II
Просмотров 4,3 тыс.10 месяцев назад
Does a Momentum Trading Strategy generate Alpha? Part II
How to get the Alpha (& Beta) of a Trading Strategy with Python? Part I
Просмотров 4,2 тыс.10 месяцев назад
How to get the Alpha (& Beta) of a Trading Strategy with Python? Part I
The Truth YOU don't WANT to hear but NEED to hear 🙉
Просмотров 3,8 тыс.10 месяцев назад
The Truth YOU don't WANT to hear but NEED to hear 🙉
My comprehensive Python for Finance and Data Science course is OUT NOW!
Просмотров 390 тыс.10 месяцев назад
My comprehensive Python for Finance and Data Science course is OUT NOW!
Interactive INVESTMENT PORTFOLIO ANALYSIS with Python and Streamlit
Просмотров 7 тыс.10 месяцев назад
Interactive INVESTMENT PORTFOLIO ANALYSIS with Python and Streamlit
Intraday Cryptocurrency Trading Strategy with Python and Binance
Просмотров 12 тыс.11 месяцев назад
Intraday Cryptocurrency Trading Strategy with Python and Binance
How to Build a TRADING STRATEGY with Python? [Momentum - FULL GUIDE] P.II
Просмотров 5 тыс.11 месяцев назад
How to Build a TRADING STRATEGY with Python? [Momentum - FULL GUIDE] P.II
How to Build a TRADING STRATEGY with Python? [Momentum - FULL GUIDE] P.I
Просмотров 8 тыс.11 месяцев назад
How to Build a TRADING STRATEGY with Python? [Momentum - FULL GUIDE] P.I
Why learning Data Visualization WITH Python has become POINTLESS [as ChatGPT is taking over]
Просмотров 4,5 тыс.11 месяцев назад
Why learning Data Visualization WITH Python has become POINTLESS [as ChatGPT is taking over]
REVERSAL Trading Strategy on the S&P500 with Python
Просмотров 57 тыс.11 месяцев назад
REVERSAL Trading Strategy on the S&P500 with Python

Комментарии

  • @aryalsubsc
    @aryalsubsc Час назад

    I have local database table with Symbol, Date, Open, High, Low, Close, Volume columns. getOHLCfromDB(symbol, startdate, enddate) is the fuction which will extract OHLC data. I would like handler to work on extracted dataframe df. Is there possibilities to analysis for my local data.

  • @iubslacker9841
    @iubslacker9841 День назад

    Hello Algovibes, Great Video, I have tried print('Symbol: '+symbol) print(output.get_analysis().indicators["close"]) for multiple closing price, which works. I wonder if there is any way that I can put the output in dataframe so I could download as csv file in better looking. Like Symbol is first column and Close price is in second column. Now the out put is row by row. Thank you

  • @neelbhikadiya
    @neelbhikadiya 2 дня назад

    can i fetch bnf option data?

  • @joebucket1471
    @joebucket1471 5 дней назад

    Which IDE are you using ?

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

      Hi mate, using Jupyter here. Cheers

  • @joebucket1471
    @joebucket1471 5 дней назад

    Which IDE are you using ?

  • @mmorpe
    @mmorpe 6 дней назад

    @Algovibes - lovely videos. 💝 BTW, I have tried to use Monte Carlo Simulation using GBM for five Indian stocks (ADANI) - ADANIENT.NS ADANIGREEN.NS ADANIPORTS.NS ADANIPOWER.NS ATGL.NS . Using your vector method I was getting VaR for the portfolio of stocks purchased on daily basis of INR 326.43 (used 5 years historical data, should it matter if it is not 1 year?). Using Monte Carlo Method for combined portfolio after 10000 simulations and using start_price as sum of each of the stock price on last day, I am getting VaR INR 1901, which is more realistic. Can you please do the same exercise in your video using Monte Carlo method?

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

      Interesting suggestion, thx!

  • @ilyassnajem8712
    @ilyassnajem8712 6 дней назад

    Loved your video mate! Thank you

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

      Thank you mate, much appreciated!

  • @jean-francoislebroch9171
    @jean-francoislebroch9171 6 дней назад

    Options for crypto are fun but not to the point, please make a video about a strategy betting on the rise of oil and the necessary option to hedge it

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

      Interesting one, thx!

  • @jean-francoislebroch9171
    @jean-francoislebroch9171 6 дней назад

    You and Dutch algotrading are the neatest. Thanks a lot

  • @alexjulius69
    @alexjulius69 6 дней назад

    This is way too OP, normally you have to pay hundreds of dollars a month for an API, but you get all this VALUABLE data for free, insane.

  • @noiseforthealgorithm4668
    @noiseforthealgorithm4668 7 дней назад

    i'm completely new to algo trading and coding. Can you test an intraday strategy on Backtrader?

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

      Hi mate, already did on one of my videos. Be sure to check out the ones in the Python for Finance playlist. Cheers!

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

      @@Algovibes ok thanks!

  • @beliebigerusername
    @beliebigerusername 7 дней назад

    why do i get different output, when i use the same code and same symbol (eurusd, 2015-01-01) ? without adding buydate= pd.to_datetime("1900-01-01") if doesnt even work

  • @aaisyhere
    @aaisyhere 8 дней назад

    Thanks so much for the tutorial. Could you please also suggest how to integrate a customized indicator and get results from it using "Trading-ta".

  • @upsenloyn
    @upsenloyn 8 дней назад

    Hey great video, I have been watching your videos for a long time and this is my first time commenting I wanted ask if it's possible to add things like stop loss and take profit etc

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

      Thank you mate! Appreciate your long term support and you leaving a comment. I did stuff like that in previous videos but I keep your suggestion in mind. Until then be invited to check out the vids in both the Python for Finance and cryptobot playlist. Cheers!

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

      @@Algovibes can please send me the link of that video?

  • @ApexlCapital
    @ApexlCapital 8 дней назад

    now we have to pay licensce for it yes other wise it wont work

    • @Algovibes
      @Algovibes 8 дней назад

      hi mate, already provided an alternative free in a follow up video! Be sure to check that out :-)

    • @ApexlCapital
      @ApexlCapital 7 дней назад

      @@Algovibes sorry bro. thanks a lot man. du bist der beste .......

  • @birenbharat
    @birenbharat 8 дней назад

    Bro, just copy and pasted from official doc.

    • @Algovibes
      @Algovibes 8 дней назад

      Exactly, that's my source as clearly stated in the description. I did a follow up video going over a strategy so be sure to check that out! Cheers

  • @SuperLuckyLad
    @SuperLuckyLad 9 дней назад

    Isn't this just because somebody wrote these lines of code and put them on the internet in the first place ... then chatGPT comes along and plagiarises / trains on them and it's "cleverness" is how it repackages information from the net as if it had "done" it , itself?

  • @tomsetberg4746
    @tomsetberg4746 9 дней назад

    Maybe it does it without my seeing it but when you split the data between train and test, shouldn't you continue to train the model as each day passes? Maybe that is just too time consuming to put into the video.

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

    Can you share the code?

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

      Even better! You can become a member, support the channel and get code access. Check the video description for a link 😊

  • @newbiebyte4377
    @newbiebyte4377 12 дней назад

    can you make a video about short squeeze calculation ?

  • @kallalahaythem5802
    @kallalahaythem5802 12 дней назад

    In c++ this monte carlo simulation can be performed at compile time

  • @swapniln3444
    @swapniln3444 13 дней назад

    Any live trading video. That would be great

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

      Apparently not enough demand for option topics unfortunately

  • @santievangelio4251
    @santievangelio4251 13 дней назад

    Very good as always. Thanks a lot

  • @SweetMusical
    @SweetMusical 13 дней назад

    Thank you for sharing amazing knowledge video

    • @Algovibes
      @Algovibes 13 дней назад

      Thanks for watching mate! Appreciate it :-)

  • @xRaido87
    @xRaido87 13 дней назад

    Source code?

    • @Algovibes
      @Algovibes 13 дней назад

      Hi mate, check the description. In a nutshell: You can support the channel while getting access to the source code - so it's a win win :-) Looking forward to welcome you as a member!

  • @mikepeace9271
    @mikepeace9271 13 дней назад

    Thanks 😊

  • @jean-francoislebroch9171
    @jean-francoislebroch9171 13 дней назад

    Great 😊

  • @user-co6ku3bo2w
    @user-co6ku3bo2w 13 дней назад

    Will there be video of how to trade option with Python includes backtesting? Thanks.

    • @Algovibes
      @Algovibes 13 дней назад

      Considering the quite unexpected very low engagement on the video probably not. Thanks for watching mate, appreciate it!

  • @dongyoblee2668
    @dongyoblee2668 14 дней назад

    Don't use the library it's a trash just use numpy and build your own

  • @roastedsalsa8880
    @roastedsalsa8880 14 дней назад

    When I try to run the code on the line: if buyprice>=df.iloc[row+k].Low: I get an error: single positional indexer is out-of-bounds Is this a typo on my end somewhere?

    • @roastedsalsa8880
      @roastedsalsa8880 14 дней назад

      If I add some if's to prevent the Index Error the profits data at 23:22 looks the same, but if I change the ticker or the start date it differs from what you have. For example if I change the date like you did for the table at 24:02, the numbers become different. Did you change some additional settings in between these runs or is there a typo or something in the code that I use?

    • @beliebigerusername
      @beliebigerusername 8 дней назад

      i suppose he will not answer to an old video. here here. had the same indexer-errors. and when using BTC-USD from 2015-01-01 i get different results... strange

  • @LorenDanielleNascimento
    @LorenDanielleNascimento 18 дней назад

    Is this code working nowadays? I`m asking because at line 11, python print the message: True, and I had no de data base from selected criptos...

    • @Algovibes
      @Algovibes 13 дней назад

      It is working indeed! Maybe double check your code again. Otherwise try to describe your problem as detailed as possible so other people can help out. Thx!

  • @kawabiker2655
    @kawabiker2655 19 дней назад

    wieder ein grossartiges video. über w_mvp = np.dot(Sinv, one) / np.dot(one.T, np.dot(Sinv, one)) lassen sich bequem die weights des minimum variance portfolios erhalten, wobei one ein einservektor und Sinv die Inverse der Kovarianzmatrix sind. dann kann man bei diesem Punkt starten und nur den oberen ast (die eigentliche ef) zeichnen. danke sehr.

    • @Algovibes
      @Algovibes 16 дней назад

      Danke mein Lieber!

  • @mohababdellatif2878
    @mohababdellatif2878 20 дней назад

    great job here

  • @creamCheese89
    @creamCheese89 21 день назад

    this is an opportunity to think about.... i hope i can develop this, thank you and respect from philippines!

    • @Algovibes
      @Algovibes 16 дней назад

      Awesome mate, best greetings to Philippines. Definitely a country I missed out on until now!

  • @CienciadeDatosChile
    @CienciadeDatosChile 21 день назад

    Spyder is the best of data science? Greetings from Chile

    • @Algovibes
      @Algovibes 13 дней назад

      From a viewpoint of today I would say: No. But it's quite a catchy title so I am keeping it as it is 😛

    • @CienciadeDatosChile
      @CienciadeDatosChile 12 дней назад

      @@Algovibes so what IDE is the best? Thanks

  • @harshkapila1207
    @harshkapila1207 21 день назад

    Can we use above strategy to short for one month also after looking for losers of last 12 months

    • @Algovibes
      @Algovibes 13 дней назад

      The original academic paper was indeed doing exactly that (WML portfolio -> Winner minus Losers). So go ahead and give it a shot!

  • @matthew2531
    @matthew2531 22 дня назад

    My friend fractal must have as a repetition that is independent of time... Do you remember how fractals were found in The BELL companies telephone lines? Entire branches of telephone cables failed in the same order regardless of the amount of power Voltage, Amperage, or the Frequency or Amplitudes which that power conducted at.

    • @Algovibes
      @Algovibes 16 дней назад

      Interesting one!

  • @Maximus18.6
    @Maximus18.6 22 дня назад

    Great video , however, do not use Bitcoin as an example. This digital coin is influenced only by speculation, there is nothing worth on it. Thanks again

  • @vvHax
    @vvHax 23 дня назад

    Awesome video, keep it up

  • @mailchioccia7280
    @mailchioccia7280 23 дня назад

    Is it possible to use one of those strategies for live trading with binance api?

  • @itsmeyourdad3021
    @itsmeyourdad3021 23 дня назад

    Hey, I ran this, in april 2024, and it says it is performing at a return level of 7.02, as opposed to the S&P500s 2.5 growth. Is this accurate, or have I made a mistake? Thanks

  • @aarondelarosa3146
    @aarondelarosa3146 26 дней назад

    It's incomplete. Where's the last plot?

  • @raphaelarguello5020
    @raphaelarguello5020 27 дней назад

    Great content, thanks for your work! I am struggling with the size of the position for the backtesting. I am trying to risk 1% of the available cash per position so I enter the sl and size = 0.01. However, the risk is completely off and it only risk 0.014% And in your code, you don't enter any size, do you know how much is risked per trade? Would you maybe have a solution please? Thanks for your help!

  • @JohnSparks-oe8im
    @JohnSparks-oe8im 27 дней назад

    Thanks for your very clear videos about python and trading. But... I replicated your code but the function to remove the prices before the add date and after the remove date doesn't work. For instance, the ticker CZR is there from the beginning of 2015-01-02 and SBNY has prices all the way to 2023-05-19. Any way to reconcile this? Thanks.

  • @JohnnyQuestFishing
    @JohnnyQuestFishing 27 дней назад

    Thank you so much for this video. It really gets me started quickly on Backtrader. I have a couple of strategies I wanted to plug in, but did not want to put them in the cloud because I am going to sell them later. Again, thanks for the Backtrader intro.

    • @Algovibes
      @Algovibes 16 дней назад

      Very welcome mate, thanks for dropping a comment!

  • @It56667
    @It56667 28 дней назад

    Is the next video availible?

    • @Algovibes
      @Algovibes 16 дней назад

      nope, wasn't getting enough traction so I dropped the series

  • @timothyalgera
    @timothyalgera 29 дней назад

    Great video. helped me a lot in developing my own engine. I did find one bug in the code: "end = str(pd.to_datetime(start) + MonthEnd(0))" gives you the date with time at 00:00:00. Binance however sees 00:00:00 as the start of the day, not the end. When you enter a last date in binance such as 2024-04-04 00:00:00, you will get all data up to that point, resulting in a full day of data missing. fix would be this: end = str(str((pd.Timestamp(start) + pd.offsets.MonthEnd(0)).date()) + " 23:59:59")

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

    kod ile yazdığım rsi ile sitedeki rsi uyuşmuyor

    • @Algovibes
      @Algovibes 16 дней назад

      Translator doesn't provide any meaningful. Can you try on formulating it in English? much appreciated ,thx!

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

    Loved your videos, subscribed and now addicted to them. It would have been great to also have considered GBM in your video. May be in future videos.