bot: add wait_order_succeed()

Add wait_order_succeed() function to make sure we won't place order twice.

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
bot: fix order_count after cancel_market_orders()

the order_count should be 0 after cancel market orders.

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
bot: show current buy price

update and show current buy price every tick

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
bot: fix datetime format

2014-m-24 08:14:29, the month part is wrong, fixed it.

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
bot: add timestamp to the current price message

add timestamp while showing current price message

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
bot: add log funtion

add new function to log every transaction
and add log_filename variable in config.php

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>
bot: the log function forgot to log the trade message

the log function only log the status message and
forgot to log the trade message
fixed now

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>