Bitcoin Forum
May 02, 2024, 04:04:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Auction] MtGox open order automat  (Read 1123 times)
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 17, 2013, 08:00:22 AM
 #1

Hi,



Auction rules

Starting price: 0.01 BTC
Smallest price increment: 0.01 BTC
Auction ends with the counter above.
Winning bids are binding.
Escrow? Possible, if you need it, you arrange the deal and pay fees. Must be super trusted like JohnK. Mutual agreement on the guy is needed.
The winner gets nonexclusive copy of the tool.
No PM bids accepted for this auction.

If you are interested in modifications of this tool, do not post in this auction. This auction is only for the tool as described below. If you are interested in some modification of it, let me know in PM what would you need and include your offer in BTC too.

What is being sold?
For my own trading I have coded a tool in C#, I am using it daily, works well for me, so maybe someone would also find it handy. I will give you the source code so that you can be sure that the tool is what you expect and not something ugly that would steal your BTC. If you are interested I can give you the binary too, but this is not very smart idea unless you really trust me ...

This tool is for Windows and you run it like this:

Code:
btc.exe FILE

FILE is a simple TXT file that you create with your favorite text editor. It looks like this:

Code:
{
  "Action": "CancelOrders",
  "Count": "0",
  "BasePrice": "0",
  "BaseAmount": "0",
  "PriceFormula": "0",
  "AmountFormula": "0"
}

or like this:

Code:
{
  "Action": "Buy",
  "Count": "50",
  "BasePrice": "299.8400",
  "BaseAmount": "0.01",
  "PriceFormula": "[Price] - 0.9",
  "AmountFormula": "[Amount] + ([Counter] + 1) * 0.001"
}

or with Action set to "Sell", obviously. This is JSON format of input.

Now what it does. If action is "CancelOrders" it just cancel all your MtGox orders. It goes one by one and with a small delay between two requests, it sends cancel order request to MtGox. This is handy if you have more than 10 orders and need to cancel them. All other input parameters are ignored in case of "CancelOrder" action.

Much more interesting are "Buy" and "Sell" actions. In their case other parameters are useful too.

Count paramter is a number of orders you would like to create. I use 50-70 here, but this is entirely up on you. Could be 1, could be 100. I am not sure whether MtGox has any limit here, but up to 70 it is tested and works fine.

BasePrice is simply the price of the first order, for which you want to Buy/Sell BTC.

BaseAmount is the amount of BTC of the first order you want to Buy/Sell.

PriceFormula is how the price is changed with each order. So, if the BasePrice is 100 and you have your PriceFormule set to "[Price] - 1.00" then the first order's price will be 100, second will be 99, third 98 etc. You can use some variables here like [Price] and [Counter]. [Price] is simply the price of your last order. [Counter] goes from 1 up to the value of your Count parameter, incremented by 1 after placing an order.

Similarly AmountFormula is how your Amount is being changed. Here you can use variables [Amount] and [Counter].

It might be more clear to have an example. So let's try this. I create "config-buy-test.txt" and run "btc.exe config-buy-test.txt". The configuration file looks like this:

Code:
{
  "Action": "Buy",
  "Count": "5",
  "BasePrice": "100.00",
  "BaseAmount": "0.01",
  "PriceFormula": "[Price] - 0.50",
  "AmountFormula": "[Amount] + [Counter] * 5 * 0.001"
}

The result is here:



As you can see, we started on price 100 USD/BTC and amount 0.01 BTC. Then we altered your Price by formula

Price := [Price] - 0.5

so the second order has its price set to 99.5. The amount formula is

Amount := [Amount] + [Counter] * 5 * 0.001

which is after first order:

Amount := 0.01 + 1 * 5 * 0.001 = 0.015

Third order is Price := 99.5 - 0.5 = 99.0
and Amount := 0.015 + 2 * 5 * 0.001 = 0.015 + 0.01 = 0.025

and so on.
1714665865
Hero Member
*
Offline Offline

Posts: 1714665865

View Profile Personal Message (Offline)

Ignore
1714665865
Reply with quote  #2

1714665865
Report to moderator
1714665865
Hero Member
*
Offline Offline

Posts: 1714665865

View Profile Personal Message (Offline)

Ignore
1714665865
Reply with quote  #2

1714665865
Report to moderator
1714665865
Hero Member
*
Offline Offline

Posts: 1714665865

View Profile Personal Message (Offline)

Ignore
1714665865
Reply with quote  #2

1714665865
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714665865
Hero Member
*
Offline Offline

Posts: 1714665865

View Profile Personal Message (Offline)

Ignore
1714665865
Reply with quote  #2

1714665865
Report to moderator
1714665865
Hero Member
*
Offline Offline

Posts: 1714665865

View Profile Personal Message (Offline)

Ignore
1714665865
Reply with quote  #2

1714665865
Report to moderator
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 17, 2013, 08:09:34 AM
 #2

Just to make sure - you will not be allowed to sell the tool to other persons, you just get a license to use the tool for yourself. You will be allowed to modify the source code and add new features, but not to sell my code or its parts. Thanks for understanding.
ellet
Newbie
*
Offline Offline

Activity: 48
Merit: 0


View Profile
November 17, 2013, 08:28:42 AM
 #3

If I buy script , any updates available in the future ?
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 17, 2013, 08:36:05 AM
 #4

If I buy script , any updates available in the future ?

The tool is being sold as is. I use it for myself, that is its primary purpose of existence. I just thought that someone might be interested in this too, so that could make me some extra satoshis. I really can not guarantee you any additional coding work in the future for 0.01 BTC and similar amounts. It just works now. It would need update only if MtGox changes their API. I might be able to make that change for you in the future if that happens, but not free of charge.

What I can do, however, is to offer you updates in case it stops working within 30 days after purchase. If MtGox changes their API in 30 days from purchase, you will get update for free so that you can use the tool again. If I fail to give you that update within 14 days of your request, you get your money back. This is what I can offer.
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 19, 2013, 06:35:49 AM
 #5

Bumpity Smiley

With recent moves of the price, the tool made me another bunch of good bucks while my risk was kept minimal.
AMuppInTime
Donator
Sr. Member
*
Offline Offline

Activity: 290
Merit: 250



View Profile
November 19, 2013, 08:49:16 AM
 #6

.05
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 19, 2013, 03:05:11 PM
 #7

Thank you for your bid.
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 21, 2013, 06:25:35 AM
 #8

Less than 12 hours to go.  Smiley
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 21, 2013, 04:47:51 PM
 #9

countdown possibly broken, auction ends in 73 minutes
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 21, 2013, 07:08:14 PM
 #10

pierrejo is the winner. Thank you.
AMuppInTime
Donator
Sr. Member
*
Offline Offline

Activity: 290
Merit: 250



View Profile
November 21, 2013, 08:43:20 PM
 #11

pmt sent.
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 277
Merit: 254


View Profile
November 22, 2013, 07:18:03 AM
 #12

payment received, code sent
Pages: [1]
  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!