API Reference
prices/history
Returns the 20 most recent price history posted for the fund requested, either by specifying the id or code parameter.
- URL:
- http://mutualtracker.com/prices/history.format
- Formats:
- xml, json
- HTTP Method(s):
- GET
- Parameters:
-
-
id. Optional. Specifies the ID or code of the fund for
whom to return the price history.
- Example: http://mutualtracker.com/prices/history/12.json or http://mutualtracker.com/prices/history/PITTIKAL.json.
-
since. Optional. Returns only prices later than the specified date. Must be in ISO8601 format.
- Example: http://mutualtracker.com/prices/history/since:2009-08-11.json
-
until. Optional. Returns only prices before than the specified date. Must be in ISO8601 format.
- Example: http://mutualtracker.com/prices/history/until:2007-12-07.json
-
count. Optional. Specifies the number of prices to retrieve. May not be greater than 200.
- Example: http://mutualtracker.com/prices/history/count:50.json
-
id. Optional. Specifies the ID or code of the fund for
whom to return the price history.
- Response:
-
XML example (truncated):
<?xml version="1.0" encoding="UTF-8" ?><prices><price><id>13932</id><date>2009-11-05</date><nav>0.2724</nav><fund><id>9</id><code>PDSF</code><name>Public Dividend Select Fund</name></fund></price>… truncated …</prices>
- Usage examples
-
cURL:
curl http://mutualtracker.com/prices/history/PDSF/until:2009-05-22/count:5.xml