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.

BitMart 'X-BM-SIGN' Error 30005

See original GitHub issue

Dear Kroitor,

Please could you advise on this error?

I get request authentication signing errors for BitMart with two sets recently created API keys only, on two new accounts. The same application (same code) has been running successfully on BitMart with over 10 other sets of API keys for many months.

Account balances are fetched successfully, which suggests that the keys are valid, but trade operations such as cancellation throw a SIGN error (30005), below.

There are some ideas proposed on the BitMart API repo.

Environment

  • OS: Both Mac OS 10.15.4 & Windows Server 2019 Datacentre
  • Programming Language version: Python 3.9
  • CCXT version: 1.76.65 (latest)

Set-up

        self.ccxt = self.exchange_class({
            'apiKey': config['apiKey'],
            'secret': config['secret'],
            'uid': config['uid'],
            'options': {
                'defaultType': os.getenv('INSTRUMENT'),
            },
            'enableRateLimit': True,
        })
        self.ccxt.load_markets()

Example Code

    try:
        result = self.ccxt.cancel_order(order.exchange_id, order.symbol)
    except Exception as e:
        logger.warning(f'id {order.exchange_id} cancellation FAILED... ({e})')
        assess_connection(exchange, e)

Output Error

id 2482643 cancellation FAILED...  (bitmart {"message":"Header X-BM-SIGN is wrong","code":30005,"trace":"ac973398-xxxx-yyyy-ab1b-578da2e583c6","data":{}})

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SpenTappycommented, Mar 23, 2022

I made them show me a screenshot of the key and turns out they were not supplying the correct data for uid (BitMart memo). This has been a waste of our time and yours, I apologise, we had given clear instructions regarding the API key. Assume it is the same for the second key. Thanks for your time. PS do you have a sales guy we can speak to about CCXT Pro, interested to explore if/how it could be useful.

0reactions
kroitorcommented, Mar 23, 2022

@SpenTappy thx for reporting back!

PS do you have a sales guy we can speak to about CCXT Pro, interested to explore if/how it could be useful.

I’d recommend starting from here:

If you have any remaining questions after that, please, welcome to our discord chat: https://discord.gg/ccxt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error 30005: Create File Failed With 32 'couldn't start the game'
'Error 3005: Create File Failed with 32' error is displayed when a user tries to launch a game that is protected by Easy...
Read more >
[PC] How to Resolve Easy Anti-Cheat Errors - Fatshark Support
Error Code: 30005 (CreateService Failed with 1072.) · Press the Windows key · Type 'msconfig' and select 'System Configuration' · On the 'General' ......
Read more >
Error code 30005 (createfile failed with 32) : r/BTW - Reddit
Can't start the game, keep getting this message. Turned my antivirus off, reinstalled the game, ran Easyanticheat as administrator, ...
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