Jump to content

DOGE Coin Trading Script. Kann das funzen?


BTCKonfekt
 Share

Recommended Posts

Mir war gerade mal langweilig, also habe ich Quick & Dirty nen PHP-Script gebaut welches DOGE für 116 ankauft und 117 verkauft. 
Kann das funzen? 
 

include 'poloniex.class.php';
$poloniex = new poloniex("#KEY#", "#SECRET#");
$data=$poloniex->get_open_orders("btc_doge");

if(isset($data['0']['type'])){
	echo 'wait for '.$data['0']['type'];
}
else{
	$balance=$poloniex->get_balances();
	if($balance['DOGE']>0){
		$poloniex->sell("btc_doge", "0.00000117", $balance['DOGE']);
		echo'sell';
	}
	elseif($balance['BTC']>"0.00000117"){
	$buy=round(($balance['BTC']/0.00000116), 8, PHP_ROUND_HALF_DOWN);
		$poloniex->buy("btc_doge", "0.00000116", $buy);
		echo'buy';
	}
}
echo'<br><small>'.date("H:i:s",time()).'</small>';
  • Love it 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.