python-ctapi icon indicating copy to clipboard operation
python-ctapi copied to clipboard

Issue with nonce calculation

Open spmcelrath opened this issue 2 years ago • 0 comments

The current nonce calculation in the api_query method takes the current time in seconds via time.time() and multiplies it by 10. Using this unorthodox nonce value makes it difficult to use a single cointracking API key outside of this library, where more standard nonces are used (current UNIX time in seconds or milliseconds). https://github.com/tehtbl/python-ctapi/blob/7d085a51c57bda842015470b1644e5bccadce788/ctapi/ctapi.py#L101

spmcelrath avatar Oct 31 '22 14:10 spmcelrath