Skip to content
New issue

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

invalid ordertype-close coming always #9

Open
tech-lalaworld opened this issue Mar 6, 2018 · 0 comments
Open

invalid ordertype-close coming always #9

tech-lalaworld opened this issue Mar 6, 2018 · 0 comments

Comments

@tech-lalaworld
Copy link

tech-lalaworld commented Mar 6, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant