-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arbitrage strategies dex <---> cex #504
Comments
we can leverage some of the existing code from external feeds for the CEXs that has already been written. specifically the ccxt part and dealing with the prefix, e.g. OPEN.BTC instead of just BTC. Async has already been implemented for fetching market data. With ccxt we can leverage the private API to handle trades directly on the CEXs. there is also a list of exchanges which are ccxt certified. https://github.com/ccxt/ccxt For some APIs, websockets would be more efficient but not all CEXs have these; some are still REST. |
Ah didnt know about https://github.com/ccxt/ccxt awesome ! |
CEX-DEX Arbitrage feature specification google doc: https://docs.google.com/document/d/1-9kPRdOnbc_fd4A4lntLLJMX3rhrcOih7QYqu_FrG6I
So limit orders can be calculated to be placed in such a way that they in-fact take orders off the book? If there is a limit order currently on the books to sell 1btc for 100kbts, and DEXBot deems this a profitable opportunity, DEXBot can use its knowledge of the CEX orderbook to place a limit order at the exact same price as the opposite limit order alread on the book. Thus the trade will fill. I assume the risk is in the fact that placing a limit order that matches to an existing opposing limit order is that this process takes longer to execute than placing a proper market order. |
LIST OF CCXT SUPPORTED EXCHANGES THAT LIST BTS TRADING PAIRS AND HAVE WEBSOCKET API CoinTiger https://coinmarketcap.com/exchanges/cointiger/ CoinTiger is of particular importance because it lists bitCNY, and arbitrage between CT and the DEX on bitCNY markets would be very helpful for the health of bitCNY, Bitshares’ flagship product.
ZB https://coinmarketcap.com/exchanges/zb-com/ Poloniex https://coinmarketcap.com/exchanges/poloniex/ Gate.io https://coinmarketcap.com/exchanges/gate-io/ EXX https://coinmarketcap.com/exchanges/exx/ |
To implement arbitrage strategies dexbot-wide, we need to make a common middleware (hope this is a correct term) which will serve as intermediate between strategy and particular CEX API. So we're not reimplementing strategy for every new exchange.
Strategy —-> middleware —--> bittrex / coinbase / binance / etc
The text was updated successfully, but these errors were encountered: