How to connect Zipline API with AWS s3 buckets for real data feed ?
DEV
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
- Operating System: (MacOS High Sierra)
- Python Version:
3.5 - How did you install Zipline: (
conda)
Now that you know a little about me, let me tell you about the issue I am having:
Description of Issue
- I am working on to provide backtesting capability for our clients. This needs Zipline API integration with our product which contains all of its trade data in AWS S3 data lake. I am not able to find a way to connect with AWS S3 data lake to get this real data feed from S3 and perform backtesting logic on it.
- I was able to run few POCs using ingestion of quantopian-quandl & custom data (.csv ) but not able to connect with our AWS S3 buckets to provide back testing capability for our clients.
Please suggest on this urgently.
Sincerely, rsingh11
I'm not sure whether I fully understand your question, but Zipline is expecting a local file path [1]. If you provide a URL or in this specific case, a S3 bucket URL, it just can't handle it. Maybe you should write a simple script to download your bucket before feeding it to be ingested [2].
I want to integrate Zipline in our Zeppelin notebook( running on an AWS EC2 instance) to enable backtesting capability. Our data sits in S3 bucket which needs to be analysed using backtesting algorithm.
Please suggest a way to do that.
On Fri, 22 Feb 2019 at 4:33 AM, Willian Paixao [email protected] wrote:
I'm not sure whether I fully understand your question, but Zipline is expecting a local file path [1] http://www.zipline.io/bundles.html#ingesting-data-from-csv-files. If you provide a URL or in this specific case, a S3 bucket URL, it just can't handle it. Maybe you should write a simple script to download your bucket before feeding it to be ingested [2] https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quantopian/zipline/issues/2423#issuecomment-466334393, or mute the thread https://github.com/notifications/unsubscribe-auth/AauxWoqHT6MLDL0EiVaXqMTK5RMggBq1ks5vP7l-gaJpZM4a7Z6g .
@rameshwarsingh11 did you read my comment?
Thanks @willianpaixao . I know Zipline can't directly read data from S3. I will try your suggestions. Can you confirm which kind of data formats zipline api can understand for backtesting processing on a data set ?