question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

okex authentication error in latest version

See original GitHub issue
  • OS: mac/ubuntu
  • Programming Language version: python 3.6.5
  • CCXT version: latest
  • Exchange: okex
  • Method:
okex = ccxt.okex({
    'apiKey': '',
    'secret': '',
})
result = okex.createMarketBuyOrder('ETH/USDT', 0.01, {'cost':3})

error:

Traceback (most recent call last):
  File "test-okex-rest.py", line 20, in <module>
    result = okex.createMarketBuyOrder('ETH/USDT', 0.01, {'cost':3})
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/base/exchange.py", line 1621, in create_market_buy_order
    return self.create_order(symbol, 'market', 'buy', amount, None, params)
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/okcoinusd.py", line 765, in create_order
    response = getattr(self, method)(self.extend(request, params))
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/base/exchange.py", line 433, in inner
    return entry(_self, **inner_kwargs)
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/base/exchange.py", line 462, in request
    return self.fetch2(path, api, method, params, headers, body)
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/base/exchange.py", line 458, in fetch2
    return self.fetch(request['url'], request['method'], request['headers'], request['body'])
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/base/exchange.py", line 562, in fetch
    self.handle_errors(response.status_code, response.reason, url, method, headers, http_response, json_response)
  File "/root/.pyenv/versions/test-okex/lib/python3.6/site-packages/ccxt/okcoinusd.py", line 1031, in handle_errors
    raise ExceptionClass(message)
ccxt.base.errors.AuthenticationError: okex {"result":false,"error_code":10007}

My app is using an older version ccxt==1.18.478 in production, which doesn’t have this problem. Hope you can look into this ASAP, I’d like to integrate with the latest version, which enables okex v3 api.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yurenjicommented, Jul 1, 2019

Thanks for the quick response! I can confirm the issue is fixed.

1reaction
kroitorcommented, Jul 1, 2019

@yurenji This issue with OKEX v1 createMarketBuyOrder is fixed in version 1.18.859+. It will arrive in 15 minutes as soon as the automatic build finishes. Let us know if you have any difficulties with it after updating to 1.18.859. We will be happy if you report back whether it did resolve the issue for you or not. Thanks for your involvement!

Read more comments on GitHub >

github_iconTop Results From Across the Web

system error login problem on android app : r/OKEx - Reddit
I just installed android app but cannot login. I get system error problem. any help is welcome.
Read more >
OKX Help Center | Customer service and helpdesk
Support center · Here to help you 24/7 · Self-services · FAQ · Announcements · Product documents · Latest news · Still need...
Read more >
Okex down today December, 2022? Okex.com not working for ...
Okex.com website down Today December, 2022? Can't log in? Real-time problems and outages - here you'll see what is going on.
Read more >
How to sign an OKEx API request? - Stack Overflow
The problem is that you are giving two different time values when calculating the values for OK-ACCESS-SIGN and OK-ACCESS-TIMESTAMP .
Read more >
OKX on Twitter: "SYSTEM UPGRADE : OKEx App Version is ...
OKEx App Version Update: Users that are still having difficulties with the app, please try uninstalling and redownloading the latest version of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found