Title: Trading API's - Tell me your experiences Post by: SealTx on April 12, 2017, 10:50:01 PM I am wondering which trading platforms that have API's I should develop for.
Any other insights? Thanks in advance! -------------------------------------------- Here is my scratch pad: Volume by Exchange by Day by Trading Pair (https://coinmarketcap.com/exchanges/volume/24-hour/) Special Mentions
Notes: Polonix - nicest exchange layout Kraken - well made etherdelta.github.io - most amazing implementation\ cex.io - interesting api options Title: Re: Trading API's - Tell me your experiences Post by: Serpens66 on April 13, 2017, 02:24:45 AM Before thinking about developing anything for crypto trading, you should trade yourself.
It is important to know how everything works manually, before you try to automate anything. After that, you can answer most of your questions yourself ;) Only fee on crypto exchanges are trading fee (percentage fee for every trade) and deposit/withdrawal fee (always different from exchange to exchange and currency). There is no monthly or API fee. Altcoin exchanges I know (dont know many): Poloniex and Bittrex Nearly every crypto exchange offers at least REST API. An order is usually executed within miliseconds. But it could also take several seconds or timeout when exchange is under heavy load/DDOS or anything. Title: Re: Trading API's - Tell me your experiences Post by: SealTx on April 13, 2017, 03:41:11 PM Thanks @Serpens66, I know that it might not be wise to trade fast, first... but I am a programmer, and API's are sort of the way I interact best with anything ;).
...and thanks for your input on how most exchanges work. Title: Re: Trading API's - Tell me your experiences Post by: pooya87 on April 14, 2017, 04:12:57 AM poloniex has very nice options in their API, specially because they offer charts data (OHLC points) which makes the bots that much better and without needing the exchange. also they offer sockets which is a nice feature to get live data and don't have to update manually.
sadly i trade on bittrex and they don't have this two :) Presented here in order of "star power" from above link in April 2017 what is "star power" and why is your list sorted with the least knows sites on top?Title: Re: Trading API's - Tell me your experiences Post by: SealTx on April 14, 2017, 04:58:12 AM poloniex has very nice options in their API, specially because they offer charts data (OHLC points) which makes the bots that much better and without needing the exchange. also they offer sockets which is a nice feature to get live data and don't have to update manually. Yes, I really liked Polonix as well. Also Cex.io has sockets. what is "star power" and why is your list sorted with the least knows sites on top? Lol, I started with a list from here: https://www.cryptocompare.com/exchanges/#/crypto ...which explains the weird order. I do not know anything about these exchanges. This basically answers the popularity question (and possibly all my other questions indirectly): https://coinmarketcap.com/exchanges/volume/24-hour/ Title: Re: Trading API's - Tell me your experiences Post by: Serpens66 on April 14, 2017, 11:19:42 AM another side for exchanges, sorted by trading volume by default (you can change sorting):
https://exchangewar.info/ Better ignore any exchange that does not offer USD and or EUR (or altcointrading). And ignore Quoine. Poloniex socket does only support "Autobahn" at the moment. For me this autobahn stuff is too complicated, I use ws4py python module for websockets, but this does not work for poloniex =/ Title: Re: Trading API's - Tell me your experiences Post by: carap on April 14, 2017, 02:25:05 PM SealTx, I'm also a programmer and I spent some time speculating about volume per some custom period of time.
24h-Volume is not really practical, some strategies require details about hourly and 5-10-30min volumes. So, the only working method I came up with is by analyzing the trading history on a particular exchange. Like every minute you send a request to receive all the executed orders for the past minute and you sync them with some local database. Title: Re: Trading API's - Tell me your experiences Post by: SealTx on April 14, 2017, 06:25:05 PM SealTx, I'm also a programmer and I spent some time speculating about volume per some custom period of time. 24h-Volume is not really practical, some strategies require details about hourly and 5-10-30min volumes. So, the only working method I came up with is by analyzing the trading history on a particular exchange. Like every minute you send a request to receive all the executed orders for the past minute and you sync them with some local database. hahah... yes! I was just working on this. It seems to be a major lack, but also an easy number to get. I figured I could even sell subscriptions to a volume API or socket. I was just going to look at transactions per blockchain on the top 20 to 100 capitalized networks... but I am doing a little more research first. To be honest, I cannot believe this does not yet exist! edited to add: I guess a lot of the transactions never show up in the block chains if the exchange has sufficient liquidity in the various currencies... which is why you mentioned looking at exchange trading history and not transactions on the blockchains themselves? Title: Re: Trading API's - Tell me your experiences Post by: SealTx on April 14, 2017, 06:38:43 PM another side for exchanges, sorted by trading volume by default (you can change sorting): https://exchangewar.info/ Better ignore any exchange that does not offer USD and or EUR (or altcointrading). And ignore Quoine. Ah... this is fantastic. The addition of the fees is something I was really looking for. Poloniex socket does only support "Autobahn" at the moment. For me this autobahn stuff is too complicated, I use ws4py python module for websockets, but this does not work for poloniex =/ Hmmm... I really don't know either. Right now I am just trying to get my head around all that is currently available. Its staggering really. There must be a lot of money to be made... which makes it fun :) Title: Re: Trading API's - Tell me your experiences Post by: carap on April 16, 2017, 06:49:09 AM Quote hahah... yes! I was just working on this. It seems to be a major lack, but also an easy number to get. I figured I could even sell subscriptions to a volume API or socket. Not that easy, some exchanges simply ban you IP after you make more than some allowed number of request. Or they might cause you delays, during which you miss a lot of transactions with no chance to recover them.Quote I was just going to look at transactions per blockchain on the top 20 to 100 capitalized networks... but I am doing a little more research first. To be honest, I cannot believe this does not yet exist! Most of transactions will never be shown in any chain!edited to add: I guess a lot of the transactions never show up in the block chains if the exchange has sufficient liquidity in the various currencies... which is why you mentioned looking at exchange trading history and not transactions on the blockchains themselves? You are a programmer, think of an exchange as of separate arrays of balances (with separate cell for each currency) for each user and exchange itself. Executed order means that a value in some cell of an array of one user become smaller and another cell of an array of a different user become bigger. That happen thousands times every minute and there is absolutely no need to fix it in the public chain. New record in the official chain occurs only when someone withdraws funds from exchange to their wallet, or when someone transfers money to the exchange (in order to top-up his cell in the array of balances). Title: Re: Trading API's - Tell me your experiences Post by: BrewMaster on April 16, 2017, 04:12:52 PM SealTx, I'm also a programmer and I spent some time speculating about volume per some custom period of time. 24h-Volume is not really practical, some strategies require details about hourly and 5-10-30min volumes. So, the only working method I came up with is by analyzing the trading history on a particular exchange. Like every minute you send a request to receive all the executed orders for the past minute and you sync them with some local database. poloniex gives you 5, 15, 30min 2 hours and 1 day charts (OHLC point) and in that you can get the prices and their volume and that is enough for analysis, isn't it? Quote hahah... yes! I was just working on this. It seems to be a major lack, but also an easy number to get. I figured I could even sell subscriptions to a volume API or socket. Not that easy, some exchanges simply ban you IP after you make more than some allowed number of request. Or they might cause you delays, during which you miss a lot of transactions with no chance to recover them.and if you are a developer and use the API a lot you can always contact the exchange service and ask them to remove/improve your limitations. Title: Re: Trading API's - Tell me your experiences Post by: carap on April 17, 2017, 08:44:15 AM poloniex gives you 5, 15, 30min 2 hours and 1 day charts (OHLC point) and in that you can get the prices and their volume and that is enough for analysis, isn't it? Not at all for 2 reasons: 1. I prefer trading against fiat and for that reason poloniex is not my favorite exchange. 2. I want to automate my trades, and implementing some sort of graphical analysis over chart displayed by poloniex in the web browser is not a good start (not stable and quite resource consuming). that limit is not really that bad. it is there to prevent DDoS attacks or someone unknowingly making a huge amount of requests on an infinite loop :) Limits are for purpose, that's true. But, when you work politely, request public API like a ticker every 5-30 minutes and still, after some point your application stops working because the limits for unsuccessful retries has been exceeded - that doesn't look like measures against potential DDoS. I tried to contact support of that exchange (quite popular one) and my ticket (and reminding message) is still unanswered for already more than half a year! I already found my work around long time ago, but that required additional time and thinking...and if you are a developer and use the API a lot you can always contact the exchange service and ask them to remove/improve your limitations. Title: Re: Trading API's - Tell me your experiences Post by: arunka71 on April 18, 2017, 12:54:03 AM You want to do technical trading or arb?
What language do you want to use? Title: Re: Trading API's - Tell me your experiences Post by: SealTx on April 20, 2017, 07:56:01 PM @carap, thanks for your insight... very useful.
You want to do technical trading or arb? What language do you want to use? I was thinking technical since (to me) it is the easiest to automate. Language... any js based framework, I was going to use node, but not sure if there is a better option depending on the services involved. Title: Re: Trading API's - Tell me your experiences Post by: arunka71 on April 21, 2017, 07:09:46 PM Ok, JS is not my language of choice, but maybe we could collaborate on technical trading algorithms? I'd like to expand my collection of bots into this direction anyway.
Title: Re: Trading API's - Tell me your experiences Post by: SealTx on May 24, 2017, 05:10:57 AM @arunka71
Sorry, I bailed on this thread... In the mean time I built and ethereum miner and started trading crypto like crazy. I am still interested in writing some trading scripts. 1) what exchanges do you like? I now use BTC-e, Novaexchange, cryptopia and a few tiny ones (I have spent no time working with API's as I have been trying to learn everything...) 2) If not js, what do you like to program in? I have a heavy PHP background (Magento mostly). Title: Re: Trading API's - Tell me your experiences Post by: arunka71 on May 25, 2017, 01:45:15 AM Hi!
Almost forgot about this thread... :-[ I use mainky Java atm, but started some C(++) code and thinking about verilog. These days I implemented CryptoDao and tradeSatoshi, but I can't get any withdraw fees. Not sure, if these exchanges are a scam. Novaexchange is also on my list and btc-e was the first exchange I wrote code for. But know I think, this whole REST stuff is waaayyyy too slow. Want to write faster bots. Title: Re: Trading API's - Tell me your experiences Post by: SealTx on June 01, 2017, 06:00:11 AM I am writing my first analyzer against coinmarketcap.com right now. I realize this data is iffy / slow, but the coin market is so big that trading in a single exchange is impossible at the moment.
I am writing against the Novaexchange API as well. REST vs sockets (or native transactions): as far as I can tell, the algo's I want to write (my first, so forgive me if I am naive) will be fine with REST speeds. As a matter of fact I assume a lot of my trades will be across exchanges and require manual trading. I need the algo just to give me the tips I am looking for. C(++) / Verilog: Hahaha... what? Are you planning to implement this trading software within mining implementations or something? I mean, even writing in C seems like maybe you are expecting to execute trades on a system which syncs multiple blockchains in containers on the same server, or at least in the local network? If this is the case, you are definitely an order of magnitude above what I am doing. Sounds really cool, though! Title: Re: Trading API's - Tell me your experiences Post by: arunka71 on June 01, 2017, 12:20:28 PM Ok, you want to do technical trading. So REST speed might be fine for you. Also have to complete my nova implementation.
Title: Re: Trading API's - Tell me your experiences Post by: bigchief on September 15, 2017, 11:43:13 PM Quick question to this thread: would it be beneficial for the algo traders if there was a service that streamlined all the various exchanges into a single uniform API interface?
Is this something that developers and companies will be willing to pay for? Title: Re: Trading API's - Tell me your experiences Post by: arunka71 on September 17, 2017, 01:53:39 AM There are already some libs for this purpose?
Title: Re: Trading API's - Tell me your experiences Post by: huadaonan on September 18, 2017, 06:55:08 AM that's great .thanks a lot~
Title: Re: Trading API's - Tell me your experiences Post by: nezero on September 25, 2017, 10:28:21 AM Have you guys managed to get much history for a market from Nova?
Code: /remote/v2/market/orderhistory/<market>/ Doesn't appear to be very deep, with Bittrex I've managed to get a much better history. Just wandered if any had managed to so with Nova. |