Tag Archives: Bitmex

Lessons learned about CCXT Python package for 3 largest crypto exchanges Bitmex binance OKex

Lessons learned about CCXT Python package for 3 largest crypto exchanges Bitmex Binance OKex

Please be advised

Using CCXT with a recent script I sourced to download generically from various exchanges is powerful. I have thought come across some severe limitations in the process.

  1. Binance appears to be the most reliable since you have the widest selection of timeframes you can use. Also, you can download up to 1000 rows into a comma separated value file as well.
  2. Both Bitmex and OKEx offer some form downloading limit of 500 which really messes up my analytical Python script. When downloading, you can only seem to have a limit of 400 to just under 500. This seems to work only work for lower time frames like 1 or 5 minutes. As the timeframe selection is very limited compared to Binance.

I am unsure of other crypto currency exchanges what limitations offer but I will stick with Binance for now as the only exchange of interest. It seems that the others offer much lower daily volume which means slower fills due to lower liquidity.  Also the other exchanges have weird download exceptions which also means the charting will not work as well.


Further note about Bitfinix

I just execute 5 request no different than Binance, Bitfinex starts thinking it is being attacked where it responds:

ccxt.base.errors.DDoSProtection: bitfinex {“error”:”ERR_RATE_LIMIT”}

Pretty pathetic architecture if you ask me.

In summary, it just seems that Binance works out of box for both downloading and charting.


Update: Which Bitcoin crypto currency bot project? Gekko vs ccxt vs Tribeca vs Blackbird


NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Demo to download hundreds of crypto currency pairs via CCXT Python package from Binance Bitmex



The advantages

This has a huge benefit if you are into building scanners for crypto currency. Also, remember I did not fund any of these exchanges but always remember to be on guard with your data with exchanges you may not trust. This will help in my automated head and shoulders demo I will have tomorrow night. Get details below.

Video here:


Demo to download hundreds of crypto currency pairs via CCXT Python package from Binance Bitmex OKEx exchanges

Get the original script here

Questions and Answers on automated head and shoulders with CCXT Python crypto currency

Here are the links and questions/comments including my popular automated head and shoulders




Sample questions

Questions and Answers

I would like to do algo trading in india for nse exchange using zerodha kite connect api, is it possible to do using jstock, as i see only analysis is done but to buy or sell

in an automated way for nse exchanges is it possible or can you recommend some opensource software for this algo trading, i am a good programmer can do coding in

any language.



More here



Automated head and shoulders webinar on tomorrow night


Details here

Hi there,

You are invited to a Zoom webinar.
When: May 23, 2018 7:00 AM Eastern Time (US and Canada)
Topic: Automated head and shoulders webinar demo

Please click the link below to join the webinar:

Or iPhone one-tap :
US: +16465588656,,255491924# or +16699006833,,255491924#
Or Telephone:
Dial(for higher quality, dial a number based on your current location):
US: +1 646 558 8656 or +1 669 900 6833
Webinar ID: 255 491 924
International numbers available: https://zoom.us/u/fnY7djwr

Automated head and shoulders indicator webinar for May 23 at 7 PM EDT

Demo of automated head and shoulders with XRB BTC hourly crypto currency data from Binance

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

More suggested Bitcoin exchanges: Bitmex highest volume 

More suggested Bitcoin exchanges: Bitmex highest volume

From a newsletter follower for my email below

I was thinking about your HFT and the quant group as I looked into Bitmex.com as an exchange.  It has the highest volume, therefore the thickest liquidity that is essential for HFT.  You should see the order books… they flash like strobes, vs. the more sluggish ones you see on BitTrex and Poloniex.  They are also very tech savvy and have a great API.  They also trade futures and you can do margin trading, so short and long positions are available, and with leverage.  If you had the right platform and algo, this would be the site to turn it loose and make serious money.

Here was the email:

As you know, I have been studying high-frequency trading for a very long time. I even read one article where one person invested $10,000 into thousand five and got a return of over $1 billion in the last year. This is all due to HFT. I will not lie to you that this is complicated programming but is very beneficial for anyone interested. Just always think of Renaissance Technology as the lead influence. I posted a variety of CppCon videos that are beneficial for those interested within my Facebook programming group.


There is one article found on LinkedIn


There’s another article with those helpful videos


As I reported earlier, I found ways to get the most volatile currency pairs for Algo/Automated trading. Could you imagine if you were able to weight all the potential positions for optimal return? Would it not be great if you could measure expected average return or even expected trading ratios? This would be great to set up your next trading session. With the magic of quant, I found a Python script that enables you to do this on a very frequent intraday level. If you ask me, you could set up all your trading positions with weighting and potential sizing all trading sessions in an automated way.


Let me show you the benefits of this through this video


Imagine if I was to able to walk you through the source code, it would be a huge benefit as part of your automated trading tools. Very few retail traders ever think of these important steps which keep you not only in the game but also optimizes your trading potential.


As another benefit for all my Quant Analytics members, I will be providing this exclusive ‘sneak peek’ of the source code in Python. It will only be up for 24 hours in the next few days. Keep your eyes peeled for that as this will be the only time I’ll ever show this. Again, this will be part of my secret sauce tools that I plan to use when I launch my live automated trading. Once again, I will never ever show this ever again to nobody.


If you’re serious about your automated trading, you will not want to miss out on this exclusive video preview.


I will be also offering a one time live ‘question and answer’ session live this Monday Oct 23 at 7pm. This will not be recorded either and again will only be available for all my Quant Analytics members. As a result, there will be no playback for this as it is purely for questions you may have after this video shows up early in the week.


These are two private events that I plan to hold for my members who take their trading very seriously. If this all works out, I would even say could change your life as it could with mine.


How many more times do I have to tell you you may want to join this exclusive Quant Analytic membership.


Here are all the benefits


Join now for immediate benefit


From my Quant Analytic Lite members, here is the latest news that I posted.


You can also register here for my daily analysis for free


Thanks for reading

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!