Demo entry 6349623

d

   

Submitted by anonymous on Feb 23, 2017 at 17:48
Language: Python 3. Code size: 284 Bytes.

AMZN = get_pricing("AMZN", start_date="2007-1-1", end_date="2017-1-18", fields="price")
GS = get_pricing("GS", start_date="2007-1-1", end_date="2017-1-18", fields="price")
AMZN_ret = AMZN.pct_change()[1:]
GS_ret = GS.pct_change()[1:]
print(AMZN_ret.head(3))
print(GS_ret.head(3))

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).