Overview
Simple ARB bot that is ready to run out of the box - no coding required for users to download and use it.
The ARB bot in it's initial form would not move / manage funds beyond alerting the user if any one of the wallet balances go below or above a specified range.
The user would configure their minimum acceptable margin with a combination of two factors - percentage of ticket size and in absolute terms on the received currency.
The user would start it, and as the bot successfully trades it would keep the user updated with emails and alert them when funds need to be manually managed.
The bot should support being run against ANX.HK and one or both of MTGOX and BITSTAMP
Specs
- ANX.HK and BITSTAMP
- BTC and USD
- User configures trade size in BTC
- Bot checks (ideally using quote) at (configurable) periodic interval if there is a positive margin between buying BTC on one exchange, or selling on the other
- If the potential margin is > (a configurable percentage of the usd order size) + (a configurable received USD absolute amount) the appropriate buy/sell order is placed on each exchange
- The orders should be placed at the limit price that would be equivalent to the minimum acceptable margin based on the above parameters. This should help reduce the frequency of situations where one side fails to execute.
- After a configurable execution pause, the BOT checks the status of the orders - if the trades have fully executed, no action needs to be taken. If neither order has executed both should be cancelled, with a (recursive) check to ensure the cancellations were successful. If the trades were partially executed, a reverse trade at market for the created exposure should be executed on the most appropriate exchange to close the open position.
- Rinse, repeat
- The user should be alerted via email or another mechanism if any balance (USD or BTC) falls below or rises above a preconfigured amount
- Trades should be stopped if any balance falls below a configurable "halt" parameter
- The profit or loss for actual executions should be recorded so the user can clearly see the strategy outcomes
- apache 2 or another liberal open source license
Desirable
- The app should be a web app, written in a cross platform language, with authentication and https configured
- The app should keep track of it's own order identifiers so the user can have other orders and strategies running in their account without confusing the bot
Next
Firm up the specs by discussion on this thread, get a feel for a fair bounty and who is interested in participating, go.