» Forex-Tsd Calendar :: CSV API

Calendars Options XML API RSS API CSV API Programmatic API

CSV API
  CSV API Details
There is 2 CSV sources:

1) CSV source of types (this chanel show ID of used types for specific calendar)
http://calendar.forex-tsd.com/type.php?csv=1&calendar=ID_OF_CALENDAR

Example of use: http://calendar.forex-tsd.com/type.php?csv=1&calendar=1

CSV row: type ID, type name, calendar ID

2) CSV source of events
http://calendar.forex-tsd.com/calendar.php?csv=1&date=START_DATE_IN_FORMAT_YEARMONTHDAY&calendar[]=ID_OF_CALENDAR1
&calendar[]=ID_OF_CALENDAR2&user=USER_LOGIN&key=USER_API_KEY&type[]=EVENT_TYPE_ID1
&type[]=EVENT_TYPE_ID2&impact[]=IMPACT_STRING1&impact[]=IMPACT_STRING2&gmt=HOURS

"csv=1" is mandatory parameter


"date" is optional parameter (NOW date by default)
Examples: START_DATE_IN_FORMAT_YEARMONTHDAY = 2070425
START_DATE_IN_FORMAT_YEARMONTHDAY = 2070405


"calendar" is mandatory parameter
Examples: ID_OF_CALENDAR1 = 1
ID_OF_CALENDAR1 = 103


"user" and "key" is optional parameters to see private events

"type" is optional parameter
Examples: EVENT_TYPE_ID1 = 189
EVENT_TYPE_ID2 = 103


"impact" is optional parameter
Examples: IMPACT_STRING = high
IMPACT_STRING = medium
IMPACT_STRING = low
IMPACT_STRING = actualpending
IMPACT_STRING = preliminaryrelease
IMPACT_STRING = revisedrelease
IMPACT_STRING = revision

"gmt" is optional parameter
Examples: HOURS = 5
HOURS = -12


Example of use: http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070313&calendar[]=1&user=test&key=4758gh467546&type[]=1&impact[]=low&gmt=1
http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070303&calendar[]=1&user=test&key=4758gh467546&impact[]=low&gmt=1
http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070315&calendar[]=1&user=test&key=4758gh467546&gmt=1
http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070315&calendar[]=1&user=test&key=4758gh467546
http://calendar.forex-tsd.com/calendar.php?csv=1&calendar[]=1



CSV row: event date, event name, event impact ID

event impact ID: 1 = high
2 = medium
3 = low
4 = actual pending
5 = preliminary release
6 = revised release
7 = revision