Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeggex.com authored Mar 4, 2024
1 parent 9724d45 commit 6789b61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hummingbot/connector/exchange/xeggex/xeggex_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
import random
import string
import time
from collections import OrderedDict
from typing import Any, Dict
from urllib.parse import urlencode
Expand Down Expand Up @@ -63,7 +62,7 @@ def generate_ws_authentication_message(self, request: WSRequest = None, ) -> Dic
return payload

def header_for_authentication(self, data: str) -> Dict[str, str]:
timestamp = int(time.time() * 1000)
timestamp = int(self.time_provider.time() * 1e4)
message_to_sign = f"{self.api_key}{data}{timestamp}"
signature = self._generate_signature(message_to_sign)
return {"X-API-KEY": self.api_key,
Expand Down

0 comments on commit 6789b61

Please sign in to comment.