market-maker-bot icon indicating copy to clipboard operation
market-maker-bot copied to clipboard

Support multiple exchanges

Open xVETTEx opened this issue 5 years ago • 12 comments

If there is plans to add support to more exchanges than Binance, I think it would be good idea to use CCXT api to access exchanges instead of direct api. This would make it very easy to add support to other exchanges. What do you think about using CCXT?

Also I'm interested to make implementation about this.

xVETTEx avatar Feb 12 '20 13:02 xVETTEx

If there is plans to add support to more exchanges than Binance

Yes, there is.

I think it would be good idea to use CCXT api to access exchanges instead of direct api. This would make it very easy to add support to other exchanges. What do you think about using CCXT?

I did consider it when doing the initial implementation, but for some reason chose not to go that route. Can't remember the specific reason - let me look into CCXT again and come back to you.

Also I'm interested to make implementation about this.

The focus right now is to get the main exchange agnostic business logic rock solid and then add more exchanges. I'll create several issues in the coming days if you're interest in contributing.

Thanks again for getting this discussion started.

erkarl avatar Feb 12 '20 14:02 erkarl

Very good point @xVETTEx ! Let's check if https://github.com/ccxt/ccxt/blob/master/js/binance.js supports everything we need from Binance and if so, it shouldn't be an issue switching. @erkarl

The focus right now is to get the main exchange agnostic business logic rock solid and then add more exchanges. I'll create several issues in the coming days if you're interest in contributing.

Agreed.

kilrau avatar Feb 12 '20 17:02 kilrau

If we decide to go this route I'd consider making xud CCXT compatible first: https://github.com/ExchangeUnion/xud/issues/707

erkarl avatar Feb 12 '20 18:02 erkarl

If we decide to go this route I'd consider making xud CCXT compatible first: ExchangeUnion/xud#707

Why so? I believe this is independent and making arby use ccxt now will save us a lot of work going forward. (PS: Binance is among the officially "ccxt certified" exchanges: https://ccxt.readthedocs.io/en/latest/exchanges.html)

Why not let @xVETTEx give it a shot, while we take care of the business logic?

kilrau avatar Feb 28 '20 12:02 kilrau

https://github.com/ExchangeUnion/xud/issues/707 only applies to the use case: traders using some existing trading terminals to connect to xud for trading. It's something we definitely want to support in future, but limiting anything in regards to arby.

kilrau avatar Feb 28 '20 13:02 kilrau

Why so? I believe this is independent and making arby use ccxt now will save us a lot of work going forward. (PS: Binance is among the officially "ccxt certified" exchanges: https://ccxt.readthedocs.io/en/latest/exchanges.html)

Arby's codebase wise it would be cleaner/better if all the existing exchanges used CCXT. If adding CCXT to xud is not something we want to do in the near future then we can also make it happen with xud being the special snowflake and the rest of the exchanges using CCXT.

erkarl avatar Mar 02 '20 14:03 erkarl

@xVETTEx are you still up for this task?

erkarl avatar Mar 02 '20 14:03 erkarl

@erkarl yes, I'll first add xud to ccxt, then create PR for this.

xVETTEx avatar Mar 03 '20 21:03 xVETTEx

Sorry for the confusion @xVETTEx , we want to prio this CCXT issue here.

Making arby natively use ccxt to connect to exchanges immediately gives us compatibility with our 3 most wanted exchanges (which are ccxt certifified on top):

  1. Binance
  2. Bitfinex
  3. Kraken

kilrau avatar Mar 04 '20 10:03 kilrau

Alright, so the first step is to convert existing arby Binance code to use CCXT. Sounds good @xVETTEx?

erkarl avatar Mar 04 '20 13:03 erkarl

Do we have a status update here?

kilrau avatar May 26 '20 09:05 kilrau

I am a bit blocked by my lack of understanding of how Arby works. If xVETTEx returns and is interested perhaps he would be interested, or if it would be a simple task for Karl, then that might be more efficient. Otherwise I will keep at it.

hatmer avatar May 26 '20 10:05 hatmer