Comments (17)
If I'm getting it right, it seems to me the request didn't add the parameter:
https://api.kraken.com/0/private/AddOrder POST {'Content-type': 'application/x-www-form-urlencoded', 'API-Key': 'xxx', 'User-Agent': 'ccxt/1.1.83 (+https://github.com/kroitor/ccxt) Python/3.5.2', 'API-Sign': b'xxx'} volume=0.001&pair=XXRPXXBT&nonce=1501058177&ordertype=market&type=buy
from ccxt.
It works great.
Thanks for your great support and the immediate response.
I appreciate the whole project a lot!
Thanks and best greetings
Chris
from ccxt.
Yes, sure, don't know which language you're using, here's a sample in JS:
yourOtherParams = { 'trading_agreement': 'agree' }
kraken.createLimitSellOrder ('BTC/USD', 1, 3000, yourOtherParams)
It should be basically the same in Python and PHP
from ccxt.
Don't execute that code, or it might place an unwanted order, it's for reference :) Please report if it doesn't help you.
from ccxt.
A longer syntax to do the same:
yourOtherParams = { 'trading_agreement': 'agree' }
kraken.createOrder ('BTC/USD', 'limit', 'sell', 1, 3000, yourOtherParams)
from ccxt.
I'm using python and tried this:
yourOtherParams = {'trading_agreement':'agree'}
erg = kraken.create_market_buy_order('XRP/BTC', 0.001, yourOtherParams )
and still got:
{'error': ['EOrder:Trading agreement required']}
from ccxt.
Nah, ignore my previous comments, I was totally incorrect. It may be an issue with your account or your API keys, can you try to create a new keypair to see if this problem persists? Also, you might need to click some checkboxes in your Kraken account to allow order placement with their API. If this problem persists with a new fresh keypair, and you don't see any means to solve it within their website, we would recommend contacting their support then, to see if there's an issue with your account. They could also tell you the exact reason for that.
upd: you should also check permissions for the keys on Kraken
from ccxt.
I would also be very thankful, if you report what they told you on the problem, so that other users would be less confused if they catch the same error.
from ccxt.
Thanks for your immediate support!
I found something on clikraken, they seem to have that agreement option implemented.
To me it seems that it is for first time api users on kraken instead of checkboxes on the website.
https://github.com/zertrin/clikraken/blob/master/src/clikraken/api/private/place_order.py
from ccxt.
From clikraken:
Well... they do it exactly the same way as I told you, but if it didn't work... then...
from ccxt.
Also, turn verbosity on, to check if that parameter gets passed in request body. Set kraken.verbose = True
on your instance prior to placing the order to see what it's sending to Kraken.
from ccxt.
That 'trading_agreement' parameter is undocumented, I'm sorry we can't do much about it, contacted their support to resolve this, standing by for their response.
from ccxt.
Ok, we will debug it now, and release a new patched version for this. Stand by, please, it may take an hour for testing.
from ccxt.
We found a bug with this, now testing and uploading the fix. It should be available in new release 1.1.85 in 30-40 minutes. Thanks for your patience!
from ccxt.
Ok, this is fixed now in version 1.1.85. Please update the library package and try your previous code to see if the problem is gone (add that 'trading_agreement':'agree'
parameter to your order). It would be very helpful if you report back on this. Thank you!
from ccxt.
Thanks for your involvement!
from ccxt.
Though this issue is already fixed in ccxt, here's an update, this is what Kraken replied:
Emily (Kraken Support) Jul 27, 13:05 PDT
Hi,
This is an issue with your API permissions.
Please try to navigate to the Trade-tab using the web interface, and then to the
New Order page and then select Advanced there. You should be prompted with a trading
agreement you have to accept. Once you have accepted this agreement you should
not be prompted with this message.
I hope this has answered your question, if not please feel free to respond and this
ticket will be reopened.
Emily W.
Kraken Client Engagement
from ccxt.
Related Issues (20)
- coinbasepro webproxy not working HOT 3
- coinbase: n = string[0] if isinstance(string[0], int) else ord(string[0]), IndexError: index out of range HOT 3
- exchange.fetchConvertTradeHistory: "KeyError: 'currency'" on binance HOT 8
- BingX handle_balance() keyError, called in watch_orders() HOT 2
- okx {"msg":"Request header OK-ACCESS-PASSPHRASE incorrect.","code":"50105"} HOT 5
- Migration to version 4 HOT 1
- Silent crash in CS console app HOT 10
- Coinmarketcap ccxt example code fails HOT 1
- Binance Websocket Position updates not working HOT 1
- BingX | Edit TakeProfit (or StopLoss) on an position that is already open and has a takeProfit on it.
- BingX | edit_order, i need help HOT 6
- exchange.fetchConvertTradeHistory - error when output has no longer traded tokens - on binance HOT 3
- exchange.fetchConvertTradeHistory - no data if the period is longer than about half a year - on binance HOT 5
- Wrong channel for Watch MyTrades. C# HOT 6
- Internal errors are not visible in my code. C# HOT 5
- bybit fetchBalance not returning any balances HOT 2
- EditOrder behavior for Bitget. C# HOT 4
- Wrong calculations for orders. C# HOT 7
- Get all symbols which currently active on exchange HOT 2
- KUCOIN create stop limit doesnt work properly HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccxt.