add buy btcoin function

* buy btc with state='0'