| 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&password=USER_PASSWORD&type[]=EVENT_TYPE_ID1 &type[]=EVENT_TYPE_ID2&impact[]=IMPACT_STRING1&impact[]=IMPACT_STRING2&gmt=HOURS
"csv=1" is must parameter
"date" is optional parameter (NOW date by default)
Examples: START_DATE_IN_FORMAT_YEARMONTHDAY = 2070425
START_DATE_IN_FORMAT_YEARMONTHDAY = 2070405
"calendar" is must parameter
Examples: ID_OF_CALENDAR1 = 1
ID_OF_CALENDAR1 = 103
"user" and "password" 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&password=test&type[]=1&impact[]=low&gmt=1
http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070303&calendar[]=1&user=test&password=test&impact[]=low&gmt=1
http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070315&calendar[]=1&user=test&password=test&gmt=1
http://calendar.forex-tsd.com/calendar.php?csv=1&date=20070315&calendar[]=1&user=test&password=test
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
|
|