QuantConnect / Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
https://lean.io
Apache License 2.0
9.43k stars 3.2k forks source link

Bybit Integrated Support #5898

Closed RowanHarley closed 9 months ago

RowanHarley commented 3 years ago

I've noticed that while Binance, Okex and Bitfinex all have support with Lean, there seems to be nothing for Bybit. Is this in the pipeline, or would integration with Bybit at this stage prove too difficult a task? I would be more than happy to help integrate it once it's nothing too difficult.

jaredbroad commented 3 years ago

Hey Rowan,

We'd welcome contributions and are working to make brokerage submissions easier. We're also offering guidance and 1-1 chat to contributors while they work through the integrations. It is roughly 80 hours of work to a robust well-documented API. If you're willing to commit 3-4 weekends we'd be happy to coach you through it!

To start; fork this repo and start implementing all of the "not implemented()" exceptions for the test suite to the ByBit API, https://github.com/QuantConnect/Lean.Brokerages.Template

Thanks Jared

arodus commented 1 year ago

Hi @jaredbroad, I would also be interested in the ByBit Brokerage and started working on it. Is there any more complete documentation than the one in the doc https://www.quantconnect.com/tutorials/open-source/brokerage-development-guide?

From what I've seen so far it also seems that not only the brokerage needs to be created but multiple changes in the core need to be made, for example adding the symbols and market hours or is there another way to do that from the brokerage?

Any help or additional doc from your side would be appreciated.

wayneadams commented 1 year ago

@arodus , did you pick this up?

glaiveVII commented 1 year ago

any updates @arodus ?

symbion6 commented 1 year ago

Is there any news on this? Bybit is currently the #5 crypto exchange by volume. It's growing fast and I'm pretty sure there are more Bybit traders that would flock to QuantConnect when it's available to trade with.

Currently, the lack of this makes me move to another trading engine. That's pretty sad. Especially considering that I read in one of your support tickets that it takes about 80 hours to make it work.

Same goes for KuCoin.

Kraken is nice to have, but fee-wise, Bybit and KuCoin are great to have integrated.

Please make an effort to stay ahead of the game for crypto traders.

arodus commented 1 year ago

Hi folks, I've put this project aside until Bybit stabilizes its API and provides the features required. When I first started working on this project they just released the preview of v3 and now we're at v5 🙈 But since it seems it's now the time I picked up this project again recently and finished major parts of the integration. There is some more work to do but I think it's possible to test it soon. I'd highly appreciate it if you could help testing and provide early feedback.

Until then it would be helpful to know what are the most important products in bybit for you:

symbion6 commented 1 year ago

That's great news. I'm mainly interested in the USDT perpetual contracts, the "linear" category in the v5 api.

jaredbroad commented 11 months ago
Martin-Molinero commented 10 months ago
Martin-Molinero commented 9 months ago

Bybit is now available both in the QC cloud and through the CLI. We've implemented crypto margin & cash spot trading, USDT perpetual futures. Pending:

Special thanks to @arodus for his contributions

jaredbroad commented 9 months ago

Thank you @arodus 🙏 Huge contribution