question

Upvotes
Accepted
1 0 0 0

API Web Page access and Tick History CFS Tuturial

Questions from client:

  1. Access to the API webpage (e.g. https://apidocs.refinitiv.com/Apps/ApiDocs) via browser always gets blocked (403). Is it expected?
  2. As I am trying to follow the CFS tutorial (https://developers.refinitiv.com/en/article-catalog/article/introduction-to-client-file-store--cfs----python#Token), the sample code snippet includes constants:
    1. TOKEN_FILE & SCOPE, could I know how to get it?
    2. CLIENT_ID & CLIENT_SECRET. How to get them as well? I am aware that there is an `App Key` on https://amers1-apps.platform.refinitiv.com/apps/appkeygenerator

And just to confirm that TOKEN_ENDPOINT is https://api.refinitive.com/auth/v1/token

#technologyrdp-api#productapp-keywebclient-file-store
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
78.6k 248 52 74

@daniel.zuliani

Thanks for reaching out to us.

The client must have the Refinitiv Data Platform credential to access that API docs.

1684720797138.png

The endpoint to get the token is https://api.refinitiv.com/auth/oauth2/v1/token.

Please refer to the Authorization - All about tokens tutorial for more information regarding RDP tokens.

Moreover, you need to verify if the client's account is the RDP's Version 1 Authentication or RDP's Version 2 Authentication. For more information, please refer to the Getting Started with Version 2 Authentication for Refinitiv Real-Time: Overview article.

I hope that this information is of help.


1684720797138.png (41.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
24.6k 54 17 14

Hello @daniel.zuliani

About the second question, the Python CFS article source code sends an authentication request to RDP and saves the RDP tokens to a file variable named TOKEN_FILE. You can get the complete application source code from the GitHub repository.

That logic is based on the RDP APIs Quickstart and Python tutorials source code, Python starter examples, you can download the examples from the RDP APIs download page. The RDP APIs Tutorial - Authorization in Python is also a good place to get started.

The CLIENT_SECRET is not being used in the RDP Version 1 authentication, you can just send a blank value to it.

CLIENT_SECRET = ""
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.