yfrake.config   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 55
dl 0
loc 87
rs 10
c 0
b 0
f 0
wmc 0
1
# ================================================================================== #
2
#   __init__.py - This file is part of the yfrake package.                           #
3
# ================================================================================== #
4
#                                                                                    #
5
#   MIT License                                                                      #
6
#                                                                                    #
7
#   Copyright (c) 2022 Mattias Aabmets                                               #
8
#                                                                                    #
9
#   Permission is hereby granted, free of charge, to any person obtaining a copy     #
10
#   of this software and associated documentation files (the "Software"), to deal    #
11
#   in the Software without restriction, including without limitation the rights     #
12
#   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell        #
13
#   copies of the Software, and to permit persons to whom the Software is            #
14
#   furnished to do so, subject to the following conditions:                         #
15
#                                                                                    #
16
#   The above copyright notice and this permission notice shall be included in all   #
17
#   copies or substantial portions of the Software.                                  #
18
#                                                                                    #
19
#   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR       #
20
#   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,         #
21
#   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE      #
22
#   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER           #
23
#   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,    #
24
#   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE    #
25
#   SOFTWARE.                                                                        #
26
#                                                                                    #
27
# ================================================================================== #
28
config_file_name = 'yfrake_settings.ini'
29
valid_config = {
30
    'client': {
31
        'limit':     int(),
32
        'timeout':   int()
33
    },
34
    'server': {
35
        'host':      str(),
36
        'port':      int(),
37
        'backlog':   int()
38
    },
39
    'cache_size': {
40
        'max_entries':      int(),
41
        'max_entry_size':   int(),
42
        'max_memory':       int()
43
    },
44
    'cache_ttl_groups': {
45
        'override':    bool(),
46
        'short_ttl':   int(),
47
        'long_ttl':    int()
48
    },
49
    'cache_ttl_short': {
50
        'historical_prices':   int(),
51
        'detailed_summary':    int(),
52
        'financials':          int(),
53
        'insights':            int(),
54
        'key_statistics':      int(),
55
        'market_summary':      int(),
56
        'news':                int(),
57
        'options':             int(),
58
        'price_overview':      int(),
59
        'quotes_overview':     int(),
60
        'trending_symbols':    int()
61
    },
62
    'cache_ttl_long': {
63
        'balance_statements':      int(),
64
        'calendar_events':         int(),
65
        'cashflow_statements':     int(),
66
        'company_overview':        int(),
67
        'currencies':              int(),
68
        'earnings':                int(),
69
        'earnings_history':        int(),
70
        'earnings_trend':          int(),
71
        'esg_chart':               int(),
72
        'esg_scores':              int(),
73
        'fund_ownership':          int(),
74
        'income_statements':       int(),
75
        'insider_holders':         int(),
76
        'insider_transactions':    int(),
77
        'institution_ownership':   int(),
78
        'major_holders':           int(),
79
        'purchase_activity':       int(),
80
        'quote_type':              int(),
81
        'ratings_history':         int(),
82
        'recommendation_trend':    int(),
83
        'recommendations':         int(),
84
        'sec_filings':             int(),
85
        'shares_outstanding':      int(),
86
        'validate_symbols':        int()
87
    }
88
}
89