Giter Site home page Giter Site logo

EOrder:Trading agreement required about ccxt HOT 17 CLOSED

ccxt avatar ccxt commented on May 7, 2024
EOrder:Trading agreement required

from ccxt.

Comments (17)

chrniem avatar chrniem commented on May 7, 2024 1

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.

chrniem avatar chrniem commented on May 7, 2024 1

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

A longer syntax to do the same:

yourOtherParams = { 'trading_agreement': 'agree' }
kraken.createOrder ('BTC/USD', 'limit', 'sell', 1, 3000, yourOtherParams)

from ccxt.

chrniem avatar chrniem commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

chrniem avatar chrniem commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

From clikraken:

screen shot 2017-07-26 at 11 27 31

Well... they do it exactly the same way as I told you, but if it didn't work... then...

screen shot 2017-07-26 at 11 26 22

from ccxt.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

Thanks for your involvement!

from ccxt.

kroitor avatar kroitor commented on May 7, 2024

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

screen shot 2017-07-27 at 23 06 58

from ccxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.