Use a Quandl connection to retrieve historical data for a security within the available date range for the specified security.
Create a Quandl connection using a Quandl API key.
c =
quandl with properties:
TimeOut: 100c is the quandl connection object with the
TimeOut property. The TimeOut property specifies
waiting for a maximum of 100 seconds to return historical data before canceling the
request.
Adjust the display format to display currency.
Retrieve historical data for the CHRIS/ASX_WM2 security within the
available date range for the security. This security provides historical future prices for
Eastern Australian Wheat Futures, Continuous Contract #2. The specified security indicates
the default periodicity (in this case, daily). d is a timetable with the
time in the first variable and the previous settlement price in the second variable.
Display the first few rows of historical prices.
ans =
8×1 timetable
Time PreviousSettlement
___________ __________________
28-Apr-2018 294.00
27-Apr-2018 294.00
26-Apr-2018 294.00
25-Apr-2018 287.00
24-Apr-2018 287.00
23-Apr-2018 289.50
21-Apr-2018 291.00
20-Apr-2018 291.00 Decide to buy or sell this contract based on the historical prices.