We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am using close option with parameter $this->volume = .001; $price = 1092.09; $stop_loss = $price+10; $take_profit = $price-10; $param = [ 'pair'=>$this->pair, 'type'=>'sell', 'ordertype'=>'stop-loss', 'price'=>$price, 'volume'=>$this->volume, 'leverage'=>'2:1', 'take-profit'=>$take_profit 'close' => array( 'ordertype' => 'stop-loss-profit', 'price' => '#.3%', // stop loss price (relative percentage delta) 'price2' => '#10' // take profit price (relative delta) ) ];
$res = $this->kraken->QueryPrivate('AddOrder', $param);
But always I am getting "invalid ordertype-close" . Can anyone help me where I am doing wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am using close option with parameter
$this->volume = .001;
$price = 1092.09;
$stop_loss = $price+10;
$take_profit = $price-10;
$param = [
'pair'=>$this->pair,
'type'=>'sell',
'ordertype'=>'stop-loss',
'price'=>$price,
'volume'=>$this->volume,
'leverage'=>'2:1',
'take-profit'=>$take_profit
'close' => array(
'ordertype' => 'stop-loss-profit',
'price' => '#.3%', // stop loss price (relative percentage delta)
'price2' => '#10' // take profit price (relative delta)
)
];
But always I am getting "invalid ordertype-close" . Can anyone help me where I am doing wrong?
The text was updated successfully, but these errors were encountered: