-
Notifications
You must be signed in to change notification settings - Fork 11
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
Problem with InfoAPI from example file 'DarwinAPIClassesExample.py' #3
Comments
I have also tried to follow the suggestions on the similar topic closed on 14 Sept. 2020 but the problem still remains |
Hi @manugirla , just created a pull request with the issue about renewing the access token solved. Hope they accept the merge soon. If not, DM me and I'll explain you how to fix it. Regards! |
Thank you very much for the effort!
Regards,
Manuel Girlanda.
Il giorno ven 19 ago 2022 alle 15:34 marticastany ***@***.***>
ha scritto:
… Hi @manugirla <https://github.com/manugirla> , just created a pull
request with the issue about renewing the access token solved. Hope they
accept the merge soon. If not, DM me and I'll explain you how to fix it.
Regards!
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXM27TQU2I6M5AMW3VV7X43VZ6EOTANCNFSM5MO7HC2Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I had the same issue. Could some share how to fix it? @marticastany `df = darwinexInfo.Get_Historical_Quotes(["THA"]) [DECORATOR] - The expiration time has NOT reached yet > Continue... |
Hi everyone, Thanks for leaving the note, this error can be fixed using version 2.1: https://api.darwinex.com/store/apis/info?name=DarwinInfoAPI&version=2.1&provider=admin . |
THANKS. IT WORKS! |
Good morning, I'm trying the example downloaded from https://github.com/darwinex/darwinexapis/tree/master/darwinexapis/EXAMPLE_SCRIPTS, named 'DarwinAPIClassesExample.py'.
I'm facing the following problem:
**[INIT] - Creating AUTH creds...
[INIT] - Access token will be created again at 1642757397.0541043 UNIX timestamp
[DarwinInfoAPI] Getting first 50 DARWINs..
[DECORATOR] - The expiration time has NOT reached yet > Continue...
**** FULL URL ENDPOINT **: https://api.darwinex.com/darwininfo/2.0/products?status=ACTIVE&page=0&per_page=50
<Response [403]>
{"fault":{"code":900908,"message":"Resource forbidden ","description":"Access failure for API: /darwininfo/2.0, version: 2.0 status: (900908) - Resource forbidden "}}
In particular, I'm trying this slice of code:
darwinUniverse = darwinexInfo.Get_DARWIN_Universe(_status='ACTIVE', _iterate=True, _perPage=50)
pprint.pprint(darwinUniverse)
I have provided the authorization tokens newly created from https://www.darwinex.com/data/darwin-api, but the problem remains.
AUTH_CREDS = {'access_token': 'a5d75de1-7212-3427-a29a-2f38be8cd8e0',
'consumer_key': 'GgkHUcgExTgcJ_rAlpar2Ziki9Ia',
'consumer_secret': 'XJvbUKZWLsTruqxSPxRdfsmQSF8a',
'refresh_token': '6aa3cd7c-b3de-3819-93b5-3f47f428e1f6'}
Could you please help me?
Thank you for the continuous support and regards,
Manuel Girlanda.
The text was updated successfully, but these errors were encountered: