Bitcoin Forum

Bitcoin => Project Development => Topic started by: MrCrank on August 11, 2017, 03:27:02 AM



Title: How to create trading bot?
Post by: MrCrank on August 11, 2017, 03:27:02 AM
Hello,

I want try create my own trading bot for poloniex or bittrex exchange.
Where can I learn and read about this theme?
Can I make it from local pc?



Title: Re: How to create trading bot?
Post by: pooya87 on August 11, 2017, 04:22:58 AM
first thing you need to know is programming!
have you ever done any coding? what language do you use?
based on that you can start from some API wrappers or open source bots to get started.

the second thing is to know trading itself.
have you ever done trading? are you familiar with the analysis and have a plan?
based on that you will know what to code. because a programmer is practically a translator who is translating what you want to do into "computer language"


Title: Re: How to create trading bot?
Post by: MrCrank on August 11, 2017, 07:02:09 AM
first thing you need to know is programming!
have you ever done any coding? what language do you use?
based on that you can start from some API wrappers or open source bots to get started.

the second thing is to know trading itself.
have you ever done trading? are you familiar with the analysis and have a plan?
based on that you will know what to code. because a programmer is practically a translator who is translating what you want to do into "computer language"

Yes, I have experience coding JavaScript, PHP, JSON.
Also I trading on bittrex and poloniex and have own strategy.
But I do not know how to start


Title: Re: How to create trading bot?
Post by: s2 on August 11, 2017, 11:27:55 AM
Set up a node server on your machine or a host run on google compute or AWS.

Next code up a bot in node.js.

There are some already around that you can use as a basis...  I can't vouch for the quality or security of them but they may be enough for what you're after or at least start you in the right direction.

https://github.com/askmike/gekko


Typically they'll ask for API access token to the exchange you're interested in supporting (like Bitstamp/Kraken/etc...).

From there you can now write/modify a buy/sell strategy script.


Please share your results though, I've yet to see a script actually make money reliably ;)


Title: Re: How to create trading bot?
Post by: blockchaingo on August 11, 2017, 11:31:57 AM
Both Poloniex and Bittrex have examples of simple apps using their API - you should start with that.


Title: Re: How to create trading bot?
Post by: MrCrank on August 11, 2017, 07:35:16 PM
Set up a node server on your machine or a host run on google compute or AWS.

Next code up a bot in node.js.

There are some already around that you can use as a basis...  I can't vouch for the quality or security of them but they may be enough for what you're after or at least start you in the right direction.

https://github.com/askmike/gekko


Typically they'll ask for API access token to the exchange you're interested in supporting (like Bitstamp/Kraken/etc...).

From there you can now write/modify a buy/sell strategy script.


Please share your results though, I've yet to see a script actually make money reliably ;)


Thanks for answer, but I need learn node.js now..
I'm beginner node.js coder.
Do you expert of node.js?
If i will be have questions and ask you about node.js.
Thanks


Title: Re: How to create trading bot?
Post by: Pursuer on August 12, 2017, 04:03:19 AM
since you said you are new to programming in node.js and new to bots and API and related stuff then it is best to start from an existing code. it can be a full bot like what the other user suggested or it can be usage of API wrappers for different exchanges to see how they do it and make the API calls.

you can always use GitHub to find them. I am not familiar with difference between Java, JavaScript and Node.js so here is two links:
JavaScript codes: https://github.com/search?l=JavaScript&q=bitcoin+trading+bot&type=Repositories&utf8=%E2%9C%93
Java codes: https://github.com/search?l=Java&q=bitcoin+trading+bot&type=Repositories&utf8=%E2%9C%93


Title: Re: How to create trading bot?
Post by: s2 on August 30, 2017, 08:15:41 AM
Happy to lend a hand on any node.js questions but tbh the best part of the language is it's relatively easy compared to most.

Node.js is essentially just javascript like you find in a browser, only the key part is you run it on your PC or server side.

The real power of it though is you get to stand on the shoulders of giants once you learn how to use the npm (node package manager).

You can install other people's libraries really easily and now with just a few lines of code you can access things like exchange APIs, send emails/txt messages, etc..

Hardest part to learn about node.js is if you're used to other languages and understanding how the scope works.  Sounds scarier than it is though, generally it's a lovely to use yet powerful language.


Title: Re: How to create trading bot?
Post by: Maymun_lavigne on August 30, 2017, 09:14:10 AM
Do you want to make a both trading for exchange cryptocurrency ?
Do you want to make app for Windows , iOS  or Android ? If you finish make a app please update I want to try it.


Title: Re: How to create trading bot?
Post by: nmaryrai on August 30, 2017, 04:06:06 PM
You just type digoogle "poloniex or bittrex exchange" then what is concerned with both systems will appear and then you select the link, of course related to the theme above,
Of course can, to make can use Local PC, with the condition of RAM and VGA enough.
RAM and VGA is very helpful to open some programs that will be used, Thanks.


Title: Re: How to create trading bot?
Post by: klaaas on August 30, 2017, 08:31:44 PM
Maybe this post can help you further. Building a Simple Alt Coin Trading Bot tutorial (https://bitcointalk.org/index.php?topic=2003723.msg19949226#msg19949226)


Title: Re: How to create trading bot?
Post by: spiker777 on August 30, 2017, 09:00:30 PM
Hello,

I want try create my own trading bot for poloniex or bittrex exchange.
Where can I learn and read about this theme?
Can I make it from local pc?



Better to do it from any hosting or better vps. Just code in a PHP script which will trade on those sites via API calls with your own logic.

That's all  :) Not very difficult at all... I have done a bot for kraken. I can help with the basics, anything more than that you'll need to pay a dedicated developer.


Title: Re: How to create trading bot?
Post by: ValyLupy on August 30, 2017, 09:00:58 PM
my own advice for trading bot: dont use a trading bot


Title: Re: How to create trading bot?
Post by: CryptoDanny on August 31, 2017, 01:52:53 AM
I would love to see a bot take advantage of price corrections. Every time I've seen a huge run in price, it is always corrected about halfway down (number off the top of my head).

For example, NEO (formally ANS). I bought in at $12, and in the past week or two we've seen it make a huge leap to $50. Today, it's at $34 which is the correction. While watching the graph hit $50, I knew I should have sold and waited for this current price to buy again. In fact, I've seen this happen to every single coin that I've ever held. It makes that initial jump, then the price corrects. If a bot could be coded to watch for a new ATH (all time high), and then sell when it has dropped 5% under that ATH (this is when people tend to panic and sell of everything, which causes the bigger drop) I believe it would be very profitable. Then if the bot were to wait a few days for the price to stabilize, and buy in again it would maximize the traders profits!


Title: Re: How to create trading bot?
Post by: mackenzied on August 31, 2017, 06:00:23 AM
Bot trading only works according to what it was programmed. So, in order for it to function correctly, you need to be an experienced trading expert. Because your experience is the key to its success. This is a rather specialized problem, I still have not enough ability to do. good luck!


Title: Re: How to create trading bot?
Post by: MrCrank on August 31, 2017, 07:28:35 AM
Better to do it from any hosting or better vps. Just code in PHP script which will trade on those sites via API calls with your own logic.

Thats all  :) Not very difficult... I have done bot for kraken.

I use VPS too.

How you call your php script?
Do you use CRON or exist better app?

please post your code here if this not secret :)


Title: Re: How to create trading bot?
Post by: genesis.vision on August 31, 2017, 09:27:44 AM
Each major platform (Bitfinex, OKCoin, Bittrex etc.) has API that issues you a token after you sign up. Pass that parameter to each request, then you can freely trade via API. However, if you plan to do an HFT arbitraging, be warned that it is too late - huge Bitcoin tx fees make it obsolete.


Title: Re: How to create trading bot?
Post by: alerdenisov on August 31, 2017, 10:24:46 AM
First of all I should to decide which strategy was in basement of bot.

Right now I could to choice few ways: algorithmic and neural network. In google you will find a lot of information, but I suggest to look at next open source projects (especially on their Issues, because a lot of discussions)

https://github.com/askmike/gekko
https://github.com/owocki/pytrader
https://github.com/michaelgrosner/tribeca
https://github.com/carlos8f/zenbot


Title: Re: How to create trading bot?
Post by: llzzyy234 on August 31, 2017, 04:22:56 PM
First of all, you need to know programming.
Then, you can go through those trading site to see if they provide any API for developer using.
Here is the API provided by bittrex: https://bittrex.com/home/api


Title: Re: How to create trading bot?
Post by: MrCrank on September 01, 2017, 04:54:47 AM
First of all, you need to know programming.
Then, you can go through those trading site to see if they provide any API for developer using.
Here is the API provided by bittrex: https://bittrex.com/home/api

Please read all messages here.
I have posted about my knowledge and skill.
Do you have experience of creating bot?


Title: Re: How to create trading bot?
Post by: crynvestor on September 01, 2017, 06:25:56 AM
What do you want to do exactly? I have some experience


Title: Re: How to create trading bot?
Post by: xcbtrader on September 01, 2017, 08:26:46 AM
Hello,

I want try create my own trading bot for poloniex or bittrex exchange.
Where can I learn and read about this theme?
Can I make it from local pc?



https://github.com/xcbtrader/pobot (https://github.com/xcbtrader/pobot)


Title: Re: How to create trading bot?
Post by: osmanadak on September 01, 2017, 11:26:11 AM
First of all, you need to know programming.
Then, you can go through those trading site to see if they provide any API for developer using.
Here is the API provided by bittrex: https://bittrex.com/home/api

Please read all messages here.
I have posted about my knowledge and skill.
Do you have experience of creating bot?


Hi friend. If you interested you can have a look at my topic. My bot is PHP based and all opensource.
https://bitcointalk.org/index.php?topic=2128032.0


Title: Re: How to create trading bot?
Post by: newguy05 on September 01, 2017, 11:47:33 AM
I would love to see a bot take advantage of price corrections. Every time I've seen a huge run in price, it is always corrected about halfway down (number off the top of my head).

For example, NEO (formally ANS). I bought in at $12, and in the past week or two we've seen it make a huge leap to $50. Today, it's at $34 which is the correction. While watching the graph hit $50, I knew I should have sold and waited for this current price to buy again. In fact, I've seen this happen to every single coin that I've ever held. It makes that initial jump, then the price corrects. If a bot could be coded to watch for a new ATH (all time high), and then sell when it has dropped 5% under that ATH (this is when people tend to panic and sell of everything, which causes the bigger drop) I believe it would be very profitable. Then if the bot were to wait a few days for the price to stabilize, and buy in again it would maximize the traders profits!
This is the basics of the assets world. Every asset born, develop, stabilize and downward. The point is to predict each movement before it happens and this is not easy for sure.


Title: Re: How to create trading bot?
Post by: dmotor on December 27, 2017, 12:13:11 PM
I absolutely agree. First thing is programming, doesn’t matter would you run on local machine or on cloud based. You have to connect to the trading server through API and fetch the information. But this options isn’t the best one, as wvery platform has its own limitations (from 5 to 15 minutes). And the exchange rate might be terrible for you. I’ve found this article also
http://merehead.com/blog/how-create-cryptocurrency-trading-bot-exchange-platform/ (http://merehead.com/blog/how-create-cryptocurrency-trading-bot-exchange-platform/)


Title: Re: How to create trading bot?
Post by: hercules006 on December 27, 2017, 03:16:08 PM
Like AI? You must be brilliant? Wont that be so costly to make? I mean why not use app or platform offering kinda like that.. like farst network? Hahahah


Title: Re: How to create trading bot?
Post by: sorin5311 on March 05, 2018, 03:23:30 PM
Hi , i am also interested in building my own trading bot in PHP .

What's the best hosting service  ?