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

Cannot find documentation how to generate key and secret for target rubykube #65

Open
CarloMinds opened this issue Mar 8, 2019 · 7 comments

Comments

@CarloMinds
Copy link

Don't need to create jwt token for peatio api?
where i can create api key and secret for target?

@huuhait
Copy link

huuhait commented Mar 13, 2019

barong api key

@m-an
Copy link
Contributor

m-an commented Mar 20, 2019

Hello @top1st, please see in Barong docs: https://github.com/rubykube/barong/blob/master/docs/rest_api.md#post-7
with this key you can access both Pation and Barong APIs

@bitbd83
Copy link

bitbd83 commented Jun 7, 2019

Hello @top1st, please see in Barong docs: https://github.com/rubykube/barong/blob/master/docs/rest_api.md#post-7
with this key you can access both Pation and Barong APIs

after using correct API key and secret it shows : 401 unauthourized

@phuongdev89
Copy link

goto phpmyadmin, see your private key at oauth_access_tokens

@eliudrojas
Copy link

eliudrojas commented Sep 24, 2020

somebody has this error?
I checked debian date/time (server and client) and they have the same date/time

@response_body={"errors"=>["authz.nonce_expired"]}>

Arke use this code to generate nonce

nonce = Time.now.to_i.to_s

but when this endpoint is called /api/v2/peatio/market/orders
throws this error

@request_headers={"X-Auth-Apikey"=>"8859aef9589ed875", "X-Auth-Nonce"=>"1600958230", "X-Auth-Signature"=>"f5c1698ec5b7720032b3648ba280f0bbc35e18160bb55acfd2aee9f57785f5e5", "Content-Type"=>"application/json"} @ssl=#<Faraday::SSLOptions verify=true> @response=#<Faraday::Response:0x000055bffae65b30 ...> @response_headers={"Content-Length"=>"34", "Content-Type"=>"text/plain", "Date"=>"Thu, 24 Sep 2020 14:37:10 GMT", "Server"=>"envoy", "Connection"=>"close"} @status=401 @reason_phrase="Unauthorized" @response_body={"errors"=>["authz.nonce_expired"]}>>

I generate key and secret key using baseapp's profile page with no problem, Key and SecretKey are correct

Thanks

@CarloMinds
Copy link
Author

this repository is too old now. You need to customized code directly based on the endpoints version.

@eliudrojas
Copy link

Yep I know :(, I had to change nonce calculation.
Somebody have a newest version?
May shared using github?, I gonna submit my change, it could be nice for anybody.I know openware company has the lastest version, but I'm doing testing the library

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

6 participants