Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Authentication error when creating order and retrieving order history #74

Open
kelvinkelvinchan opened this issue Dec 11, 2017 · 3 comments

Comments

@kelvinkelvinchan
Copy link

I am using the sample code provided in "api-client-python" and tried to create an order with
client.order_create('AUD','BTC','1000000000000','10000000','Bid','Limit','1')
client.order_history('AUD', 'BTC', '10', 'null')

However I keep getting the authentication error (error code 1).

I am unsure what should be put under "client request id" and the "since" variable.

My computer is connected to the NTP and I can retrieve market data such as the orderbook so I think the public and private keys are fine.

Thank you!

@limx0
Copy link

limx0 commented Dec 13, 2017

@kelvinkelvinchan can I recommend taking a look at my python wrapper https://github.com/limx0/btcmarkets

All of the http end points are implemented and tested

@keiranharris
Copy link

@limx0 - mate that is truly awesome. I was beating my head up against a wall for a day trying to get the authenticated API code to work. Taking a peek at your code got me over the line. Muchas gracias.

@justin-ngin
Copy link
Contributor

@kelvinkelvinchan ,

Are you still having issues with the sample python client? Please do double check that your keys match your account page exactly. The market data endpoints are public and do not require authentication, and you would get a valid response even if your keys are incorrect.

Thanks,
Justin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants