Bitcoin Forum
November 03, 2024, 07:47:40 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 »  All
  Print  
Author Topic: Open source trading bot?  (Read 12484 times)
imperi (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 101


View Profile
July 11, 2011, 07:07:46 PM
 #1

I was just thinking this would be a cool idea to make. It would be in Python. I might do this, if just for fun.
jostmey
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile WWW
July 11, 2011, 07:13:02 PM
 #2

I like the idea. Depending on the options and features that you would put into the bot, it could act to stabilize the currency.

Search Bitcoin
Discover the bitcoin economy
DamienBlack
Jr. Member
*
Offline Offline

Activity: 56
Merit: 1


View Profile
July 11, 2011, 07:14:27 PM
 #3

I like the idea. Depending on the options and features that you would put into the bot, it could act to stabilize the currency.

Most likely, many people using a similar bot would destabilize it. If all the bots think "sell" or "buy" at once, the swings just get bigger.
angelo95
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 11, 2011, 07:17:38 PM
 #4

Bot have to be custom made or are useless.
kookiekrak
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
July 11, 2011, 07:22:07 PM
 #5

the trading platform could be opensource, then people would just write their own automated trading bots

FREE 100 GME if you post your Cryptsy TradeKey on the official GameCoinTalk forums

http://www.gamecointalk.org/index.php?topic=7.msg9#new
DamienBlack
Jr. Member
*
Offline Offline

Activity: 56
Merit: 1


View Profile
July 11, 2011, 07:22:48 PM
 #6

Bot have to be custom made or are useless.

What makes you say that? As I understand it, many wall street bots use the same formulas. And if the open source package was very customizable it could be tailored to your needs. I don't see the rational behind such a blanket statement.
imperi (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 101


View Profile
July 11, 2011, 07:28:23 PM
 #7

Ok, I'm definitely going to work on this. If someone could make a brief list of simple features to start with, that would be helpful. It will start out as pure CLI. Eventually I think it would be cool to tweak different custom options and have mock visual graphs of what would happen if enabled, with the trade data that took place.

imperi (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 101


View Profile
July 11, 2011, 07:32:59 PM
 #8

Ok, I'm definitely going to work on this. If someone could make a brief list of simple features to start with, that would be helpful. It will start out as pure CLI. Eventually I think it would be cool to tweak different custom options and have mock visual graphs of what would happen if enabled, with the trade data that took place.



THere is already a php library for mtgox trading.... maybe might make more sense to write in in cli php?  Or are you more comfortable with python?

Python is better, I'm going to stick with it. The "php library" for Mtgox is a PHP page that is rendered by the server into plain text or JSON. It isn't PHP code, I believe.
imperi (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 101


View Profile
July 11, 2011, 07:39:06 PM
 #9

Ok, I'm definitely going to work on this. If someone could make a brief list of simple features to start with, that would be helpful. It will start out as pure CLI. Eventually I think it would be cool to tweak different custom options and have mock visual graphs of what would happen if enabled, with the trade data that took place.



THere is already a php library for mtgox trading.... maybe might make more sense to write in in cli php?  Or are you more comfortable with python?

Python is better, I'm going to stick with it. The "php library" for Mtgox is a PHP page that is rendered by the server into plain text or JSON. It isn't PHP code, I believe.

was referring to this:

https://github.com/mikegogulski/bitcoin-php/blob/master/src/bitcoin.inc

I am going to make it from scratch. That PHP code doesn't do much except access the Mtgox API.
gnaget
Full Member
***
Offline Offline

Activity: 154
Merit: 102


View Profile
July 11, 2011, 07:40:29 PM
 #10

Please do this, if it catches on, I'll have a blast writing a counter bot to take advantage of the predictable buying and selling patterns Smiley
angelo95
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 11, 2011, 07:45:36 PM
 #11

Bot have to be custom made or are useless.

What makes you say that? As I understand it, many wall street bots use the same formulas. And if the open source package was very customizable it could be tailored to your needs. I don't see the rational behind such a blanket statement.

Because the bot programming itself is part of the strategy. If everyone uses the same bot, everyone uses the same algos with just some tuned parameters...
Guys at Wallstreet don't use the same autotraders, they pay IT guys to develop tailor made strategies with quants.
kookiekrak
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
July 11, 2011, 08:02:15 PM
 #12

salaries for automated trading programmers are like 100k-300k

what i've seen is a platform that interfaces with exchanges, created in either c++ or java. then people can write trading bots in c++ or java and execute them on the platform.

look into stock or forex AT platforms.


FREE 100 GME if you post your Cryptsy TradeKey on the official GameCoinTalk forums

http://www.gamecointalk.org/index.php?topic=7.msg9#new
imperi (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 101


View Profile
July 11, 2011, 08:13:14 PM
 #13

I will keep you guys posted.
SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
July 11, 2011, 08:17:30 PM
 #14

I'd definitely like to see such a bot in place.
imperi (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 101


View Profile
July 11, 2011, 08:20:07 PM
 #15

I'm thinking of making it so you can define lots of custom rules.

Like "If X indicator is above this, then do Y". Or "wait until time > Saturday morning, then execute this different behavior".

So you tell the Bot how you want it to act, and you can also simulate it on past market data. Everyone has different amounts to invest and different levels of risk, and they might have beliefs of where the price will go that are not just pure mathematics, so one algorithm wouldn't fit all.
SgtSpike
Legendary
*
Offline Offline

Activity: 1400
Merit: 1005



View Profile
July 11, 2011, 08:23:16 PM
 #16

I'm thinking of making it so you can define lots of custom rules.

Like "If X indicator is above this, then do Y". Or "wait until time > Saturday morning, then execute this different behavior".

So you tell the Bot how you want it to act, and you can also simulate it on past market data. Everyone has different amounts to invest and different levels of risk, and they might have beliefs of where the price will go that are not just pure mathematics, so one algorithm wouldn't fit all.
Absolutely.  1 algorithm would just mean that whichever bot was able to initiate the trade first wins.  It might even come down to ping times to MtGox/Tradehill.  Customizable algorithms, with NO defaults, would be the best route to go.
Gareth Nelson
Hero Member
*****
Offline Offline

Activity: 721
Merit: 503


View Profile
July 11, 2011, 08:34:42 PM
 #17

I'm a huge believer in free software myself, but this is a bad idea.
Yes, a general toolkit library would be useful (and they exist already - see the python mtgox modules on github), but a generic autotrader bot would not be profitable once it reaches a certain mass, and while people could modify it, in practice most won't.

Much better would be a good framework combining the mtgox+tradehill+whatever API with a selection of statistical and machine learning algorithms and then not defining ANY strategies.
Olomana
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
July 11, 2011, 09:57:14 PM
 #18

I was working on a trading bot before the Mt. Gox disaster.  My biggest problem was error handling and recovery... timeouts, partial fills, etc.  If you do a toolkit, that would be the most valuable part.

The Mt. Gox API, the trading algorithm... relatively easy compared to error handling.

(Since Mt. Gox came back online, prices have been relatively flat and my algorithm doesn't make many trades, so I haven't resumed work on the bot.)
angelo95
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 12, 2011, 07:10:52 AM
 #19

the trading algorithm... relatively easy
my algorithm doesn't make many trades

Actually the algo IS the hardest past in a bot. It took me three hours to code the bot and 2 months to create the algo.
bitfreak!
Legendary
*
Offline Offline

Activity: 1536
Merit: 1000


electronic [r]evolution


View Profile WWW
July 12, 2011, 07:40:05 AM
 #20

the trading algorithm... relatively easy
my algorithm doesn't make many trades

Actually the algo IS the hardest past in a bot. It took me three hours to code the bot and 2 months to create the algo.
Yes, but error handling would be fairly hard too. I can see what Olomana was getting at.

edit: I have actually wanted to create a trading bot a while now, but if I did it would be one of the only projects I don't release as open source (for several reasons). The way I wanted to do it is develop some PHP scripts which are actually controlled (triggered) by a desktop application (in Delphi 7) which also allows you to heavily tweak the configuration of the bot, display important graphs, and all sorts of other nifty features.

XCN: CYsvPpb2YuyAib5ay9GJXU8j3nwohbttTz | BTC: 18MWPVJA9mFLPFT3zht5twuNQmZBDzHoWF
Cryptonite - 1st mini-blockchain altcoin | BitShop - digital shop script
Web Developer - PHP, SQL, JS, AJAX, JSON, XML, RSS, HTML, CSS
Pages: [1] 2 3 4 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!