Hi,
I have access to data on Asian stocks locally on my computer. Is there a way for me to use it in quantopian?
Best regards,
Pravin
Hi,
I have access to data on Asian stocks locally on my computer. Is there a way for me to use it in quantopian?
Best regards,
Pravin
Hello Pravin,
In the Q research platform, there is local_csv():
local_csv()
If you want to work with your own data in our environment, you can upload a csv to your data directory and load the file with local_csv. By default, local_csv returns a DataFrame with the data from the loaded file.
You can customize the resulting DataFrame by passing the following parameters:
Automatically convert strings to security objects by indicating a symbol_column
Automatically parse dates as Datetime object by indicating a date_column
Specify what timezone to use with timezone
Use the date column as the index with use_date_column_as_index
local_csv?
Signature: local_csv(path, symbol_column=None, date_column=None, use_date_column_as_index=True, timezone='UTC', symbol_reference_date=None, **read_csv_kwargs)
Docstring:
Load a CSV from the /data directory.
:param path:
Path of file to load, relative to /data.
:param symbol_column:
Column containing strings to convert to Security objects.
:param date_column:
Column to parse as Datetime. Ignored if `parse_dates` is passed as
an additional keyword argument.
:param use_date_column_as_index:
If True and date_column is supplied, set it as the frame index.
:param timezone:
Interpret date_column as this timezone.
:param read_csv_kwargs:
Extra parameters to forward to pandas.read_csv.
:returns:
DataFrame with data from the loaded file.
:rtype:
pandas.DataFrame
File: /home/qexec/src/qexec_repo/qexec/research/api.py
Type: function
For the browser-based backtester, you can use fetcher (see the help docs). And of course you can always just copy-and-paste data into the IDE (I've never seen a limit on the number of lines of code, for example).
You can also use Fetcher to import the CSV into your algorithm: https://www.quantopian.com/help#overview-fetcher
Here's a sample algo: https://www.quantopian.com/help#sample-csv-1
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.