Title: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: 2weiX on July 27, 2012, 11:58:34 AM i need a very simple intersango bot, preferrably on php basis which i can run from my webserver.
this is what it needs to do in my own little pseudocode. Quote variables $tradeable_amount // desired size at orderbook depth $btc_in_account // number of btc in account $percentage // which percentage of all btc in account should each order be $midspread // the calculated midspread $mintrade //minimum order size calculate_the_spread (this is to disregard the little bitty orders that influence the order book) take the bid price at which the cumulated amount of bid sizes exceeds $tradeable_amount take the ask price at which the cumulated amount of ask sizes exceeds $tradeable_amount $midspread = (bid+ask)/2 sell calculate_the_spread; if $btc_in_account < $mintrade then $ordersize = $btc_in_account else $ordersize = roundup(3rd decimal;$btc_in_account*$percentage/100) place_order($ordersize;$midspread) exit script; check_account are there bitcoins in the account? yes -> sell; no -> if there are any orders present, cancel_all_orders then exit script; main check_account; Title: Re: very simple .php based intersango bot needed Post by: BCB on July 27, 2012, 12:15:37 PM What would you like it to do?
Title: Re: very simple .php based intersango bot needed Post by: 2weiX on July 27, 2012, 02:54:15 PM thinking about it, it should support mtgox (€ only) too.
it should be in a php file that i can call via cron every x minutes. simple algo:
think that should be doable for a reasonable amount of BTC. any takers?[/list] Title: Re: very simple .php based intersango bot needed Post by: 2weiX on July 28, 2012, 08:27:27 PM already have someone working on it.
how much would you want for your bot and what are the features? Title: Re: very simple .php based intersango bot needed Post by: unclemantis on July 29, 2012, 02:02:44 AM Does it NEED to be in PHP? I can build one in Ruby for 200 BTC
Title: Re: very simple .php based intersango bot needed Post by: TECSHARE on July 29, 2012, 03:27:26 PM Does it NEED to be in PHP? I can build one in Ruby for 200 BTC Sure you just don't want a car instead? Title: Re: very simple .php based intersango bot needed Post by: 2weiX on July 31, 2012, 12:21:10 PM okay, one member of the forums is working on this and almost has it finished, but if you want to go ahead and send me your ideas, that's cool - if you send me a working php script then the 5 BTC bounty is yours.
this has no influence on the reward fow user gweedo, who is already nearly done. I want to call this script via cron to sell my BTC if I should need to. This is what it should do, this pseudocode SHOULD be understandeable, please post general questions in this thread. Quote variables $tradeable_amount // desired size at orderbook depth $btc_in_account // number of btc in account $percentage // which percentage of all btc in account should each order be $midspread // the calculated midspread $mintrade //minimum order size calculate_the_spread (this is to disregard the little bitty orders that influence the order book) take the bid price at which a cumulated amount of bid size exceeds $tradeable_amount take the ask price at which a cumulated amount of ask size exceeds $tradeable_amount $midspread = (bid+ask)/2 sell calculate_the_spread; if $btc_in_account < $mintrade then $ordersize = $btc_in_account else $ordersize = roundup(3rd decimal;$btc_in_account*$percentage/100) place_order($ordersize;$midspread) exit script; check_account are there bitcoins in the account? yes -> sell; no -> if there are any orders present, cancel_all_orders then exit script; main check_account; Title: Re: very simple .php based intersango bot needed Post by: 2weiX on August 02, 2012, 04:39:53 PM ...
Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: drudgeboat on August 02, 2012, 10:30:19 PM are you still looking for people? I thought you said you had a guy working on it already and was almost done?
Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: 2weiX on August 03, 2012, 02:50:46 PM yes....
the one member i have workin on it seems very confident he will be able to deliver by monday. i do, however, still accept submissions. the first (other than the member workin on it) to submit a working (!) bot for both sites receives a bounty. bounty is 5 BTC. Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: 2weiX on August 03, 2012, 05:14:24 PM so it turns out that one member quit because i obviously didnt make it clear enough what i wanted and how i want it.
so, any takers? i will provide ftp access to my server so you can test it. i will also provide you with my API credentials (with the necessary permissions and very few BTC) so you can make sure it really does what it should. the tricky point was the spread calculation, it seems. Quote so say you go to http://bitcoin.clarkmoody.com/ and you look at the column "sum" i want the bot to use the bid order as bid side of the spread where "sum > x" Code: X = 20 Code: X = 30 since this is the price where I can trade X bitcoins. Code: X = 50 the intersango code Code: <?php the mtgox code Code: <?php the api-settings code Code: <?php Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: 2weiX on August 03, 2012, 05:23:13 PM also tipped the member 4 BTC for his troubles.
Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: mr_gant on August 06, 2012, 06:57:52 AM bounty is 5 BTC. Software for bounty is a great way to get low quality software from inexperienced devs who can't do any better. Not the greatest idea for automated financial software. Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: 2weiX on August 06, 2012, 01:54:20 PM while that is true, i laid out what i want in pseudocode pretty clearly and i also tried to make clear exactly how i want the spread to be calculated.
the last couple of things (including two programming tasks) i had made for bounties worked out pretty well. the biggest problem is members with a limited understanding of the english language just diving head-in and doing *something* instead of asking first. i dont want a moneymaking monster... i just need to sell close to VWAP, shouldnt be too hard. Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: mattmcegg on April 18, 2013, 05:46:42 PM this code is no longer working for me, but it was for a long time... is anyone else using the API with this code?
did gox make changes to their API to prevent DDOS/HFT? Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: BCB on April 18, 2013, 08:38:35 PM change the end point to data.mtgox.com/api
Title: Re: [BOUNTY] simple .php sell-bot for mtgox and intersango Post by: mattmcegg on April 22, 2013, 04:53:53 PM change the end point to data.mtgox.com/api YES that fixes it thanks! |