forked from quandl/quandl-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.py
33 lines (32 loc) · 2.34 KB
/
message.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class Message:
ERROR_ARGUMENTS_LIST_FORMAT = 'Your data set must be specified as a string that contains\
a Quandl code or as a tuple'
ERROR_AUTHTOKEN_NOT_SUPPORTED = 'The parameter authtoken is no longer supported. \
For more information please see \
https://github.com/quandl/quandl-python/blob/master/README.md'
ERROR_COLUMNS_DATA_NOT_MATCHED = 'The number of columns requested does not match \
the data returned.'
ERROR_COLUMN_INDEX_TYPE = 'The column index must be expressed as an integer for %s.'
ERROR_COLUMN_INDEX_LIST = '%s : column_index must be expressed as a list of \
integer indexes.'
ERROR_DATASET_FORMAT = 'Your dataset must either be specified as a string that contains a \
single Quandl code or an array of Quandl codes'
ERROR_DATASETS_CODE_MUST_IN_LIST = 'dataset codes must be specified in a list'
ERROR_FOLDER_ISSUE = 'The folder path specified is incorrect or you do not have \
permission to access to the folder. Check your settings and try again.'
ERROR_INVALID_DATABASE_CODE_FROMAT = 'Invalid format used for Quandl database code. \
The correct format is: `DATABASE_CODE/DATASET_CODE`'
ERROR_INVALID_DATASET = 'Invalid dataset. Your data set must be specified as a string that \
contains a Quandl code or as a tuple with multiple Quandl codes'
ERROR_REQUESTED_INDEX_OUT_OF_RANGE = '%s : The requested index %s is out of range. The \
minimum index is 1 and the maximum index is %s'
ERROR_REQUESTED_COLUMN_NOT_EXIST = 'Requested column index %s does not exist'
WARN_DATA_LIMIT_EXCEEDED = 'This call exceeds the amount of data that quandl.get_table() allows. \
Please use the following link in your browser, which will download the full results as \
a CSV file: https://www.quandl.com/api/v3/datatables/%s?qopts.export=true&api_key=%s. See \
our API documentation for more info: \
https://docs.quandl.com/docs/in-depth-usage-1#section-download-an-entire-table'
WARN_PAGE_LIMIT_EXCEEDED = 'To request more pages, please set paginate=true in your \
quandl.get_table() call. For more information see our documentation: \
https://github.com/quandl/quandl-python/blob/master/FOR_ANALYSTS.md#things-to-note'
WARN_PARAMS_NOT_SUPPORTED = '%s will no longer supported. Please use %s instead'