BTCMarkets / API

API
119 stars 30 forks source link

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

Open kelvinkelvinchan opened 6 years ago

kelvinkelvinchan commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

@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