Click here to Login





                                                   Convert Numeric To Date

  0

0
ymlee
2018-04-26 08:42:38


I received EOD pricing in json format
But the date was store as numeric
How to convert it to date in downloader's pre script?

{"Data":[[3.76,3.77,3.71,3.73],[3.75,3.8,3.72,3.8]],
"Date":[43212,43213]}



QuantShare
2018-04-27 03:43:23

  0

Hi,

If you want to learn how to parse json data, you can check this downloader (pre script)
https://www.quantshare.com/item-1765-daily-historical-data-alphavantage

Regarding the date, you need to contact the data provider and tell them what this number means. Maybe it is the number of days since a reference date.



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
BSE historical data by date
Days To Next Date
Number of Days to a Specific Date
Convert Seconds to Trading Bars
Vary the Start Date of a Trading System Simulation

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to remove non-active securities
How to create a screen
How to plot the relative performance of several stocks/indices
How to adjust a stock for splits

Related Forum Threads
How to read date and get quote of next day.
ASCII IMPORT -HOW CANCWE DELETE DATA FOR A WRONG DATE
How do I change the date format?
Is there a Go to Date option?
How do you sort simulations by the date that the simulation was r...

Blog Posts
How to use date components in your trading rules
4 Links to Download Free Historical Stock Prices Data by Date
A vector-based language
QuantShare Programming Language Tutorial
Custom Indicator: Relative Strength









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.