Skip to content

Front End Function Requirements

Mark7124 edited this page Mar 23, 2017 · 17 revisions
Function Purpose Returns Example Output
getMarkets Returns a list of markets that data exists for. [
{
UID: number,
Name: string
}
]
[
{1500, 'FTSE 100'},
{1400, 'Dow Jones'},
{1232, 'Crude Oil'}
]
getTrendSources Returns a list of trend sources that data exists for. String[] [
'Facebook',
'Twitter'
]
getNewsSources Returns a list of news sources that data exists for. String[] [
'BBC News',
'Reuters'
]
getMarketData(UID: number, startDate: date, endDate: date) Returns a list of news sources that data exists for. String[] [
'BBC News',
'Reuters'
]
Dates should be strings of format 'dd/mm/yyyy'. UIDs for markets should begin with a 1, and should be tabulated here:
UID Market Name
... ...
UIDs for trend sources should begin with a 2 and should be tabulated here:
UID Trend Source
... ...
UIDs for article sources should begin with a 3, and should be tabulated here:
UID News Article Source
... ...

Clone this wiki locally