Krypto-trading-bot icon indicating copy to clipboard operation
Krypto-trading-bot copied to clipboard

Discuss adding support for Decentrelised Exchange

Open captainreptile opened this issue 7 years ago • 15 comments

Greetings,

We all love our decentralized cryptos (not all cryptos are), but still risk them by sending to a centralized exchanges. To a one man show and one man hands - Who can anytime decide to stop withdrawals or close the bazar.

It could be pretty amazing if we add support for Decentralized exchanges https://openledger.io https://bisq.network https://beta.wavesplatform.com/create https://crypto-bridge.org/

Please share your general and technical thoughts on this

captainreptile avatar Jan 16 '18 15:01 captainreptile

Would love to, but the API implementations are all private, i believe

woshikie avatar Jan 16 '18 16:01 woshikie

yep the private key is in my hands; will consider soOn the addition of each of these exchanges

many thanks for the suggestion'''''

ctubio avatar Jan 16 '18 18:01 ctubio

From the list above i believe Bisq is the only 100% Decentralized as they combine the coolest tech: P2P Over Tor network,No server to DDOS And a wikipedia like Human Arbitrators. (Torrent left behind)

I was only afraid that there is no sort of API.. but there is some good news:

https://github.com/mrosseel/bisq-proposals/blob/api-proposal/http-api.adoc https://mrosseel.github.io/bisq-api-examples/ https://github.com/mrosseel/bisq-api https://bisq.community/t/announcing-the-trading-api/3424

As i understand Local Bisq application acts as server for the api.

Possible Downsides:

  • Tor can be slow
  • Bot might end up trading with only other trading bots or maybe non: Some orders require human action (like send money from bank or wallet). its up for the user to extend the api to automate the trade (like integrating bank api or ethereum wallet api)

captainreptile avatar Jan 17 '18 07:01 captainreptile

Is always cool when we have more choice to using more exchanges. For me is most necessary rules and factors to add new exchange:

  • low fees, and again LOW FEES!
  • fucking stable and adequate API (no comments)
  • trade volumes

All another isn't matter. Decentralised Exchange - yes it cool also.

donaldforest avatar Jan 24 '18 07:01 donaldforest

Bitshare , Openledger, crypto-bridge they use Graphene API ...the documentation for the API is found here : http://docs.bitshares.org/api/index.html ...as a matter of fact there is a working proposal for the creation of a simple trading bot with simple strategies to be integrated into the Dex.. the telegram group where those issues are discussed is here : https://t.me/BTSLiquidityBotWorkerProposal ...would be awesome if we can integrate the Dex into Krypto.

gabev avatar Jan 27 '18 09:01 gabev

https://www.altcoin.io/

donaldforest avatar Feb 13 '18 14:02 donaldforest

idex.market

tiimbo82 avatar Mar 16 '18 12:03 tiimbo82

cryptobridge - yes!

bitshares api, right?

bdbabiak avatar Apr 24 '18 01:04 bdbabiak

DDEX now available with the Hydro API.

Also, listed #2 in volume on ERC20 tokens (behind Bancor) as per Etherscan.io https://etherscan.io/stat/dextracker

ghost avatar May 30 '18 16:05 ghost

I was looking into https://stellar.org/, which appeared larger and more versatile to me than a couple others I briefly reviewed.

Since this task is both large and important, I think if we started making progress on this, we could work together to accomplish it, if people just contributed a little bit when they were able to. We could perhaps wrap the proprietary binary library with an open source one to accomplish this.

It would be helpful to agree on a DEX to start with. I guess it should be truly decentralized and provide for rapid computer-driven order placement and streamed orderbook updates. Can anybody verify that one of the DEX's meets this requirement? Can anybody think of any other requirements?

EDIT: here's the bitshares bot: https://github.com/Codaone/DEXBot

xloem avatar Apr 01 '19 11:04 xloem

let me see the apis of all suggested and i will try to implement one that have websockets; is long time since a new api is not added :D

ctubio avatar Apr 01 '19 11:04 ctubio

Crypto-Bridge, OpenLedger, EasyDEx and the rest for a total of 16 decentralized exchanges so far, are all using the BitShares API. Documentation here: BitShares Developer Portal- https://dev.bitshares.works/en/master/ . In term of speed , 3k+ tps, block time 1-3 sec, atomic swaps on chain..regarding DEXBot , is a pure market making ..as of right now we are in the process of refactoring the code for implementing async and speed up the bot...hope that helps

gabev avatar Apr 02 '19 02:04 gabev

hey @gabev, I was looking at bitshares, and I noticed there is a flat transaction fee for every order placed and every order canceled. This worries me a bit, because Krypto behaves such that it places and cancels orders very frequently. I'm worried the transaction fees could add up. Do you have any thoughts on that?

xloem avatar Apr 19 '19 21:04 xloem

@xloem Yes on Bitshares there's both a flat fee for placing an order and a trade fee. The trade fee depends on the asset, and is usually between 0% and 0.2%. The order placement fee is relatively small, and is returned if the order is cancelled. In my experience, $1 will keep me going for a year per strategy. We take the order fee's into account in DEXBot when calculating order placement - to prevent negative returns.

There's a good Python library for Bitshares (pip install bitshares), with key/wallet management. You can see how we use it in DEXBot. We are in the process of separating the code into separate engines for getting data and for placing orders. It's open source (MIT), so you can copy all you like.

The thing with any DEX is that ticks come in slowly. If you want high frequency trading, you probably need to integrate a P2P node into it in order to get pre-consensus data. On Bitshares ticks are 3s, on EOS 0.5s, and Ethereum based ones something like a minute (not sure).

MarkoPaasila avatar Apr 20 '19 17:04 MarkoPaasila

@MarkoPaasila thanks for the information that placement fees are refunded on cancel.

It looks like bitshares allows for high-frequency information via the set_pending_transaction_callback api call. This seems to send order notifications on the websocket as soon as they come in, before the block is confirmed.

xloem avatar Apr 21 '19 14:04 xloem