-
Notifications
You must be signed in to change notification settings - Fork 7
/
class-diagram.puml
175 lines (157 loc) · 3.5 KB
/
class-diagram.puml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
@startuml UML DIAGRAM
Controller *-right- Model
Controller *-left- View
Controller *-- Coin
Model *-- Config
Model *-right- Exchange
Title: UML DIAGRAM Cryptocurrency-historical-data-downloader
class Controller {
+model: object
+view: object
+cancel: boolean
-__clicked_exc: object
-__clicked_coin: object
+start_app()
+listen_window()
+check_avaliable_coins()
+download_historical_data()
+update_historical_data()
+collect_user_input(): dict
+remove_coin_from_exchange()
+add_new_coin_to_exchange()
+set_clicked_coin()
+set_clicked_exchange()
+get_new_save_folder(): string
+change_save_path()
+show_exchange_info()
+set_coins_of_exchange(): list
-__date_error() : boolean
-__input_error(): boolean
-__time_blocks(): list
-__download()
}
class Model {
-__exc_list: list
-__sys: object
sys(): string
exc_list(): string
read_coins_data(): list,list
add_coin()
delete_coin()
save_downloaded_data()
}
class View {
-__displayed_mgs: string
start_window()
pop_up_folder(): string
update_folder()
display_msg()
display_defined_msg()
display_err()
display_exc_info()
update_coin_tbl()
set_resolution()
-__check_repeating_msg()
}
abstract class Exchange {
-__coins: List
coins(): list
possess_coin()
abandon_coin()
name(): string
website(): string
api_website(): string
max_API_requests(): int
db_columns(): list
common_info(): string
resolution(): tuple
err_msg(): string
api_key(): string
secret_key(): string
provide_available_coins(): string
download_hist_data(): list
correct_downloaded_data(): list
}
Exchange <|-- Bitpanda
Exchange <|-- CoinbasePro
Exchange <|-- Bitfinex
Exchange <|-- Exmo
Exchange <|-- Kraken
class Config {
- __config: object
platform(): string
save_path(): string
start_date(): string
start_hour(): string
change_save_path()
-__check_config_file()
-__create_config_file()
-__write_config_file()
}
class Coin {
name: string
quote: string
base: string
start_date: Date
end_date: Date
frequency: int
last_update: Data
file_name: string
+__str__(): string
}
class Bitpanda {
name: string
website: string
api_website:string
max_API_requests: integer
api_key:string
secret_key: string
provide_available_coins(): string
download_hist_data(): List
correct_downloaded_data(): List
}
class Exmo {
name: string
website: string
api_website:string
max_API_requests: integer
api_key:string
secret_key: string
provide_available_coins(): string
download_hist_data(): List
correct_downloaded_data(): List
}
class CoinbasePro {
name: string
website: string
api_website:string
max_API_requests: integer
api_key:string
secret_key: string
provide_available_coins(): string
download_hist_data(): List
correct_downloaded_data(): List
}
class Kraken {
name: string
website: string
api_website:string
max_API_requests: integer
api_key:string
secret_key: string
provide_available_coins(): string
download_hist_data(): List
correct_downloaded_data(): List
}
class Bitfinex {
name: string
website: string
api_website:string
max_API_requests: integer
api_key:string
secret_key: string
provide_available_coins(): string
download_hist_data(): List
correct_downloaded_data(): List
}
@enduml