Document Fetching Guidance
Environment Setup
Specification
Orbit will provide a folder under orbit-data-provider AWS S3 bucket.Orbit will provide an AWS S3 Key Pair for accessing the data under the prepared S3 folder.
With Your Case
In your case:
The AWS S3 folder will be: s3://orbit-data-provider/clients/jpmorgan/
Key Pair will be provided in separate file.
Way to fetch data
Specification
As the raw report data is really large, Orbit will only provide the report index in our client folder.After Client get the index, then clients can download the raw report as needed. The data is updated in real time and clients can use any SKD (like boto3 in Python) to fetch the data which client would like to use.
The SDK will leverage the Key Pair to get permissions for accessing the data.
Get data
Below screenshot is the sample data we delivered (The data will be delivered according to specific client requirements for real delivery).
Each file represents a report;
The name of the file is by CURRENT UTC TIME + REPORT ID, in this way can be easy to filter with aws SDK.
There is a presigned_url key in each report(each line) for downloading the raw report.
Clients can read the data in a programming way.
The code below is to use the boto3 SDK in Python.
⚠️ Please be notified that the expiration of presigned_url is typically 7 days. But you can also regenerate them again by using s3_path key in the index file. Below is the sample code.
Last updated