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.

Bitmex Request Expired

See original GitHub issue
  • OS: Win 10
  • Programming Language version: 1.38.65
  • CCXT version: 1.38.65

I have tried numerous things but under windows I fail to read https://testnet.bitmex.com/api/v1/instrument/activeAndIndices with the below error which would make me think that I have a clock sync issue even though my time drift is 4ms from NTP. This works fine under WSL just not in Windows. Just seeing if you got any other ideas to try?

Thanks

{"message":"bitmex {\"error\":{\"message\":\"This request has expired - `expires` is in the past. Current time: 1606861816\",\"name\":\"HTTPError\"}}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bigcountry-scavcommented, Dec 2, 2020

Yeah I have it already set to sync every 15 minutes I found an issue in code though so this is resolved now thanks.

0reactions
kroitorcommented, Dec 2, 2020

@bigcountry-scav you have to make sure that it is in sync with UTC:

I have overwritten my ntp server forced w32time sync also have tried tools like network time.

Just enabling the time sync in windows settings is not enough, check this issue: https://github.com/ccxt/ccxt/issues/936#issuecomment-353774479

Let us know if that does not help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"This request has expired" error #202 - BitMEX/api-connectors
The error indicates your "expires" field is set in the past, which would most likely be the result of a difference in time...
Read more >
API Keys Usage - BitMEX
api-expires : A UNIX timestamp after which the request is no longer valid. This is to prevent replay attacks. UNIX timestamps are in...
Read more >
REST API Message Format - BitMEX
All responses are application/json. ... Withdrawal ban expires at [Date]; Withdrawals currently disabled, please contact Customer Support ...
Read more >
Updates to Error Codes and Messages When Requesting a ...
The BitMEX API has updated its error codes and messages for accounts that have withdrawal suspensions or bans in place.
Read more >
WebSocket API - BitMEX
BitMEX API usage requires an API Key. Permanent API Keys can be locked to IP address ranges and revoked at will without compromising...
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