dominiktraxl/pykrakenapi

Add standart order not openning orders

Closed this issue · 2 comments

Hi,

I 've no problem with using other private endpoints (get_account_balance, get_closed_orders)
So I'm sure API keys are valid. However I couldn't open any single order with using add_standard_order. I tried both market and limit executions. I don't receive any error message but I don't get txid also.
api=krakenex.API(key=data_set["key"], secret=data_set["secret"]) k=KrakenAPI(api) result_order_limit=k.add_standard_order(pair="XETHXXBT", type="sell", ordertype="limit", price="0.02100",volume="0.02") print(result_order_limit)

{'descr': {'order': 'sell 0.02000000 ETHXBT @ limit 0.02100'}}

I also checked my api keys on kraken api page they valid and have permission to open position.

You have to set the argument validate=False in add_standard_order in order to execute the command.

Thank you dominik. It works.