jr-common-micro 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/package.json +5 -4
  2. package/proto/micro/v1/coin/analytics_messages.proto +373 -0
  3. package/proto/micro/v1/coin/coin_messages.proto +126 -0
  4. package/proto/micro/v1/coin/coin_websocket_messages.proto +86 -0
  5. package/proto/micro/v1/coin/data_general_messages.proto +72 -0
  6. package/proto/micro/v1/coin/data_microservice_messages.proto +53 -0
  7. package/proto/micro/v1/coin/etf_messages.proto +125 -0
  8. package/proto/micro/v1/coin/long_short_ratio_messages.proto +56 -0
  9. package/proto/micro/v1/coin/rsi_messages.proto +45 -0
  10. package/proto/micro/v1/coin/services.proto +109 -0
  11. package/proto/micro/v1/coin/token_unlocks_messages.proto +51 -0
  12. package/proto/micro/v1/data/daily_market_data_messages.proto +23 -0
  13. package/proto/micro/v1/data/dominance_messages.proto +42 -0
  14. package/proto/micro/v1/data/exchanges_messages.proto +158 -0
  15. package/proto/micro/v1/data/funding_rate_messages.proto +33 -0
  16. package/proto/micro/v1/data/global_stats_messages.proto +19 -0
  17. package/proto/micro/v1/data/homepage_messages.proto +44 -0
  18. package/proto/micro/v1/data/inflow_outflow_messages.proto +84 -0
  19. package/proto/micro/v1/data/liquidation_heat_map_m2_messages.proto +52 -0
  20. package/proto/micro/v1/data/liquidation_v1_messages.proto +40 -0
  21. package/proto/micro/v1/data/mvrvz_score_messages.proto +13 -0
  22. package/proto/micro/v1/data/puell_multiple_messages.proto +18 -0
  23. package/proto/micro/v1/data/puppeteer_messages.proto +29 -0
  24. package/proto/micro/v1/data/rainbow_messages.proto +14 -0
  25. package/proto/micro/v1/data/rsi_list_messages.proto +27 -0
  26. package/proto/micro/v1/data/scrape_assets_messages.proto +25 -0
  27. package/proto/micro/v1/data/scrape_treasuries_messages.proto +44 -0
  28. package/proto/micro/v1/data/services.proto +115 -0
  29. package/proto/micro/v1/data/token_unlocks.proto +65 -0
  30. package/proto/micro/v1/data/two_hundred_week_moving_average_messages.proto +18 -0
  31. package/proto/micro/v1/data/two_year_ma_multipler_messages.proto +20 -0
  32. package/proto/micro/v1/education/education_messages.proto +294 -0
  33. package/proto/micro/v1/education/services.proto +94 -0
  34. package/proto/micro/v1/general.proto +114 -0
  35. package/proto/micro/v1/media/media_messages.proto +108 -0
  36. package/proto/micro/v1/media/services.proto +22 -0
  37. package/proto/micro/v1/news/app_version_message.proto +35 -0
  38. package/proto/micro/v1/news/blog_messages.proto +110 -0
  39. package/proto/micro/v1/news/calendar_messages.proto +46 -0
  40. package/proto/micro/v1/news/economic_calendar_messages.proto +28 -0
  41. package/proto/micro/v1/news/jr_blog_messages.proto +216 -0
  42. package/proto/micro/v1/news/news_messages.proto +193 -0
  43. package/proto/micro/v1/news/services.proto +148 -0
  44. package/proto/micro/v1/news/sundown_messages.proto +61 -0
  45. package/proto/micro/v1/notification/mail_messages.proto +40 -0
  46. package/proto/micro/v1/notification/notification_messages.proto +198 -0
  47. package/proto/micro/v1/notification/services.proto +35 -0
  48. package/proto/micro/v1/portfolio/portfolio_coin_messages.proto +22 -0
  49. package/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages.proto +43 -0
  50. package/proto/micro/v1/portfolio/portfolio_messages.proto +187 -0
  51. package/proto/micro/v1/portfolio/services.proto +37 -0
  52. package/proto/micro/v1/puppeteer/puppeteer_messages.proto +0 -0
  53. package/proto/micro/v1/puppeteer/services.proto +27 -0
  54. package/proto/micro/v1/user/auth_messages.proto +91 -0
  55. package/proto/micro/v1/user/authorization_messages.proto +58 -0
  56. package/proto/micro/v1/user/services.proto +86 -0
  57. package/proto/micro/v1/user/site_settings_messages.proto +19 -0
  58. package/proto/micro/v1/user/user_messages.proto +228 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -8,9 +8,10 @@
8
8
  "type": "commonjs",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
- "files": [
12
- "dist"
13
- ],
11
+ "files": [
12
+ "dist",
13
+ "proto"
14
+ ],
14
15
  "packageManager": "yarn@1.22.22",
15
16
  "dependencies": {
16
17
  "@bufbuild/buf": "1.31.0",
@@ -0,0 +1,373 @@
1
+
2
+ syntax = "proto3";
3
+
4
+ package micro.v1.coin;
5
+
6
+ import "micro/v1/general.proto";
7
+
8
+ //// Coins
9
+
10
+ message CoinDetailDto {
11
+ message AllTimePrice {
12
+ string price = 1;
13
+ string date = 2;
14
+ double percentage_change = 3;
15
+ }
16
+
17
+ message Range {
18
+ string low = 1;
19
+ string high = 2;
20
+ }
21
+
22
+ message UrlItem {
23
+ string name = 1;
24
+ string url = 2;
25
+ }
26
+
27
+ message Links {
28
+ string website = 1;
29
+ string whitepaper = 2;
30
+ repeated UrlItem explorers = 3;
31
+ repeated UrlItem wallets = 4;
32
+ repeated UrlItem community = 5;
33
+ repeated UrlItem source_code = 6;
34
+ repeated UrlItem search_on = 7;
35
+ string api_id = 8;
36
+ }
37
+
38
+ message Categories {
39
+ string name = 1;
40
+ string url = 2;
41
+ }
42
+
43
+ message Converter {
44
+ string base_currency = 1;
45
+ string quote_currency = 2;
46
+ uint32 base_amount = 3;
47
+ double quote_amount = 4;
48
+ }
49
+
50
+ string id = 1;
51
+ string name = 2;
52
+ string symbol = 3;
53
+ uint32 rank = 4;
54
+ string price = 5;
55
+ string price_change_percentage24h = 6;
56
+ string price_change_percentage1h = 7;
57
+ string price_change_percentage7d = 8;
58
+ string price_change_percentage14d = 9;
59
+ string price_change_percentage30d = 10;
60
+ string price_change_percentage1y = 11;
61
+ string market_cap = 12;
62
+ string fully_diluted_valuation = 13;
63
+ string trading_volume24h = 14;
64
+ string circulating_supply = 15;
65
+ string total_supply = 16;
66
+ string max_supply = 17;
67
+ AllTimePrice all_time_high = 18;
68
+ AllTimePrice all_time_low = 19;
69
+ Range range24h = 20;
70
+ Range range7d = 21;
71
+ Links links = 22;
72
+ repeated Categories categories = 23;
73
+ Converter converter = 24;
74
+ repeated string exchanges = 25;
75
+ string api_id = 26;
76
+
77
+
78
+ map<string, CategoriesArr> categories_json = 29;
79
+ string chart_image = 30;
80
+ map<string, string> name_json = 31;
81
+ optional string coingecko_id = 32;
82
+ optional string coinglass_spot_id = 33;
83
+ optional string coinglass_futures_id = 34;
84
+ optional string coinmarketcap_id = 35;
85
+ repeated Title title = 36;
86
+ repeated About about = 37;
87
+ Info info = 38;
88
+ }
89
+
90
+ message Info {
91
+ repeated string website = 1;
92
+ repeated string twitter = 2;
93
+ repeated string message_board = 3;
94
+ repeated string chat = 4;
95
+ repeated string facebook = 5;
96
+ repeated string explorer = 6;
97
+ repeated string reddit = 7;
98
+ repeated string technical_doc = 8;
99
+ repeated string announcement = 9;
100
+ repeated string source_code = 10;
101
+ repeated Contract contract = 11;
102
+ }
103
+
104
+ message Contract {
105
+ string cmc_id = 1;
106
+ string name = 2;
107
+ string address = 3;
108
+ }
109
+
110
+ message Title {
111
+ map<string, string> data = 1;
112
+ }
113
+
114
+ message About {
115
+ map<string, string> data = 1;
116
+ }
117
+
118
+ message CategoriesArr {
119
+ repeated string data = 1;
120
+ }
121
+
122
+ message AnalyticsCurrencyItem {
123
+ string symbol = 1;
124
+ string name = 2;
125
+ string price = 3;
126
+ float rate_1h = 4;
127
+ float rate_24h = 5;
128
+ float rate_7d = 6;
129
+ string volume_24h = 7;
130
+ string market_cap = 8;
131
+
132
+ // svg, base64 image content or url
133
+ string chart_image = 9;
134
+ }
135
+
136
+
137
+
138
+ message AnalyticsCurrenciesResponseData { repeated CoinDetailDto items = 1; }
139
+
140
+ message AnalyticsCurrenciesResponse {
141
+ ResponseStatus status = 1;
142
+ PaginationMetaResult pagination = 2;
143
+ AnalyticsCurrenciesResponseData data = 3;
144
+ }
145
+
146
+
147
+
148
+
149
+
150
+ /*
151
+ Coin, chain and category have almost same properties. Because of that we don't need
152
+ additional message types for each them all. Highlight is different, because of that
153
+ we created necessary types for it.
154
+ */
155
+
156
+ //// Chains
157
+
158
+ message CurrenciesByChainResponseData{
159
+ ChainDto chain = 1;
160
+ repeated CoinDetailDto items = 2;
161
+ }
162
+
163
+ message CurrenciesByChainResponse{
164
+ ResponseStatus status = 1;
165
+ PaginationMetaResult pagination = 2;
166
+ CurrenciesByChainResponseData data = 3;
167
+ }
168
+
169
+ message ChainDto {
170
+ string id = 1;
171
+ string name = 2;
172
+ string symbol = 3;
173
+ string protocols = 4;
174
+ string change1d = 5;
175
+ string change7d = 6;
176
+ string change30d = 7;
177
+ string tvl = 8;
178
+ string mcap = 9;
179
+ string mcap_tvl = 10;
180
+ int32 sequence_no = 11;
181
+ string coingecko_id = 12;
182
+ }
183
+ message AnalyticsChainsResponseData { repeated ChainDto items = 1; }
184
+ message AnalyticsChainsResponse {
185
+ ResponseStatus status = 1;
186
+ PaginationMetaResult pagination = 2;
187
+ AnalyticsChainsResponseData data = 3;
188
+ }
189
+
190
+ //// Categories
191
+
192
+ message CurrenciesByCategoryResponseData {CoinDetailDto category = 1; repeated CoinDetailDto items = 2; }
193
+
194
+ message CurrenciesByCategoryResponse{
195
+ ResponseStatus status = 1;
196
+ PaginationMetaResult pagination = 2;
197
+ CurrenciesByCategoryResponseData data = 3;
198
+ }
199
+
200
+ message AnalyticsCategoriesResponse {
201
+ ResponseStatus status = 1;
202
+ PaginationMetaResult pagination = 2;
203
+ AnalyticsCurrenciesResponseData data = 3;
204
+ }
205
+
206
+ //// Blockchain Global Data
207
+
208
+ message BlockchainGlobalDataResponseData {
209
+ string volume = 1;
210
+ string market_cap = 2;
211
+ string open_interest = 3;
212
+ string liquidation_24 = 4;
213
+ string longshort_24 = 5;
214
+ float market_cap_change = 6;
215
+ }
216
+
217
+ message BlockchainGlobalDataResponse {
218
+ ResponseStatus status = 1;
219
+ BlockchainGlobalDataResponseData data = 2;
220
+ }
221
+
222
+ //// Highlights
223
+
224
+ enum AnalyticsHighlightTypeEnum {
225
+ trending_coins = 0; //
226
+ top_gainers = 1; //
227
+ top_losers = 2; //
228
+ new_coins = 3; //
229
+ most_viewed = 4; //
230
+ highest_volume = 5; //
231
+ price_change = 6; //
232
+ most_voted = 7; //
233
+ upcoming_coins = 8; //
234
+ }
235
+
236
+ message HighlightsItem {
237
+ string symbol = 1;
238
+ string name = 2;
239
+ float change = 3;
240
+ float price = 4;
241
+ string volume = 5;
242
+ }
243
+
244
+ message AnalyticsHighlightsDto {
245
+ AnalyticsHighlightTypeEnum type = 1;
246
+ repeated HighlightsItem items = 2;
247
+ }
248
+
249
+ message AnalyticsHighlightsResponseData { repeated AnalyticsHighlightsDto items = 1; }
250
+
251
+ message AnalyticsHighlightsResponse {
252
+ ResponseStatus status = 1;
253
+ PaginationMetaResult pagination = 2;
254
+ AnalyticsHighlightsResponseData data = 3;
255
+ }
256
+
257
+ message AnalyticsExchangeDto {
258
+ string id = 1;
259
+ string exchange_name = 2;
260
+ string exchange_score = 3;
261
+ string coin = 4;
262
+ string price = 5;
263
+ string volume = 6;
264
+ string target = 7;
265
+ }
266
+
267
+ message AnalyticsExchangeResponse {
268
+ ResponseStatus status = 1;
269
+ repeated AnalyticsExchangeDto data = 2;
270
+ }
271
+
272
+ message CoinWeeklyDataDto {
273
+ string id = 1;
274
+ string symbol = 2;
275
+ string name = 3;
276
+ string change_24h_usd = 4;
277
+ string change_24h_try = 5;
278
+ string change_24h_usd_percent = 6;
279
+ string change_24h_try_percent = 7;
280
+ string market_cap_change_24h = 8;
281
+ string market_cap_change_24h_percent = 9;
282
+ repeated string weekly_data = 10;
283
+ repeated string daily_data = 11;
284
+ }
285
+
286
+ message AnalyticsCoinWeeklyDataResponse {
287
+ ResponseStatus status = 1;
288
+ CoinWeeklyDataDto data = 2;
289
+ }
290
+
291
+ message NavbarDataDto {
292
+ string id = 1;
293
+ string volume = 2;
294
+ string volume_percent = 3;
295
+ string oi = 4;
296
+ string oi_percent = 5;
297
+ string liquidation = 6;
298
+ string liquidation_percent = 7;
299
+ string long_short = 8;
300
+ }
301
+
302
+ message NavbarDataResponse {
303
+ ResponseStatus status = 1;
304
+ NavbarDataDto data = 2;
305
+ }
306
+
307
+ message CurrenciesByCategoryRequest {
308
+ string id = 1;
309
+ PaginateRequest pagination = 2;
310
+ }
311
+
312
+ message CurrenciesByChainRequest {
313
+ string id = 1;
314
+ PaginateRequest pagination = 2;
315
+ }
316
+
317
+ message CurrenciesNewDto {
318
+ string id = 1;
319
+ string symbol = 2;
320
+ string name = 3;
321
+ string chart_image = 4;
322
+ string market_cap = 5;
323
+ string price = 6;
324
+ string price_change_percentage1h = 7;
325
+ string price_change_percentage24h = 8;
326
+ string price_change_percentage7d = 9;
327
+ string trading_volume24h = 10;
328
+ int32 rank = 11;
329
+ string coingecko_id = 12;
330
+ string coinmarketcap_id = 13;
331
+ string coinglass_spot_id = 14;
332
+ string coinglass_futures_id = 15;
333
+ }
334
+
335
+ message CurrenciesNewResponse {
336
+ ResponseStatus status = 1;
337
+ PaginationMetaResult pagination = 2;
338
+ repeated CurrenciesNewDto data = 3;
339
+ }
340
+
341
+ message CurrenciesNewsChangeDto {
342
+ string symbol = 1;
343
+ string change = 2;
344
+ }
345
+
346
+ message CurrenciesNewsChangeRequestData {
347
+ string symbol= 1;
348
+ }
349
+
350
+ message CurrenciesNewsChangeRequest {
351
+ repeated CurrenciesNewsChangeRequestData data = 1;
352
+ }
353
+
354
+ message CurrenciesNewsChangeResponse {
355
+ ResponseStatus status = 1;
356
+ repeated CurrenciesNewsChangeDto data = 2;
357
+ }
358
+
359
+ message PaginateRequestCurrency {
360
+ int32 page = 1;
361
+ int32 per_page = 2;
362
+ optional int32 draw = 3;
363
+ repeated Filter filters = 4;
364
+ repeated Sort sort = 5;
365
+ repeated string columns = 6;
366
+ optional string fulltextSearch = 7;
367
+ optional string searchByMarketCap = 8;
368
+ optional string searchBy24hrChange = 9;
369
+ optional string searchByPrice = 10;
370
+ optional bool first100 = 11;
371
+ optional bool first300 = 12;
372
+ optional bool optimization = 13;
373
+ }
@@ -0,0 +1,126 @@
1
+ syntax = "proto3";
2
+
3
+ package micro.v1.coin;
4
+
5
+ import "micro/v1/general.proto";
6
+
7
+ message CoinDto {
8
+ string id = 1;
9
+
10
+ string symbol = 2;
11
+ string name = 3;
12
+
13
+ string created_at = 4;
14
+ optional string updated_at = 5;
15
+ }
16
+
17
+ message FavoriteCoinDto {
18
+ string id = 1;
19
+ string symbol = 2;
20
+ string name = 3;
21
+ string market_cap = 4;
22
+ string price = 5;
23
+ string price_change_percentage1h = 6;
24
+ string price_change_percentage24h = 7;
25
+ string price_change_percentage7d = 8;
26
+ string trading_volume24h = 9;
27
+ int32 rank = 10;
28
+ string coingecko_id = 11;
29
+ string coinmarketcap_id = 12;
30
+ string coinglass_spot_id = 13;
31
+ string coinglass_futures_id = 14;
32
+ string created_at = 15;
33
+ optional string updated_at = 16;
34
+ }
35
+
36
+ message GetFavoriteCoinsResponse {
37
+ ResponseStatus status = 1;
38
+ PaginationMetaResult pagination = 2;
39
+ repeated FavoriteCoinDto data = 3;
40
+ }
41
+
42
+ message IsFavoriteCoinRequest {
43
+ string coinmarketcap_id = 1;
44
+ }
45
+
46
+ message IsFavoriteCoinResponse {
47
+ string message = 1;
48
+ bool is_favorite = 2;
49
+ }
50
+
51
+ message CoinPriceAlertDto {
52
+ string id = 1;
53
+ string symbol = 2;
54
+ string name = 3;
55
+ string price = 4;
56
+ }
57
+
58
+ message SaveCoinPriceAlertRequest {
59
+ string coinId = 1;
60
+ string price = 2;
61
+ }
62
+
63
+
64
+ message CoinDtoWithCoinGeckoId {
65
+ string id = 1;
66
+ string symbol = 2;
67
+ string name = 3;
68
+ string coingeckoId = 4;
69
+ }
70
+
71
+ message CoinStoreRequest {
72
+ string symbol = 1;
73
+ string name = 2;
74
+ }
75
+
76
+ message CoinSingleResponse {
77
+ ResponseStatus status = 1;
78
+ CoinDto data = 2;
79
+ }
80
+
81
+ message CoinSingleResponseWithCoinGeckoId {
82
+ ResponseStatus status = 1;
83
+ CoinDtoWithCoinGeckoId data = 2;
84
+ }
85
+
86
+ message CoinPaginationResponse {
87
+ ResponseStatus status = 1;
88
+ PaginationMetaResult pagination = 2;
89
+ repeated CoinDto data = 3;
90
+ }
91
+
92
+ message CoinPriceAlertPaginationResponse {
93
+ ResponseStatus status = 1;
94
+ PaginationMetaResult pagination = 2;
95
+ repeated CoinPriceAlertDto data = 3;
96
+ }
97
+
98
+ message CoinAdminUpdateRequest {
99
+ string id = 1;
100
+ string symbol = 2;
101
+ string name = 3;
102
+ }
103
+
104
+ message CoinAdminStoreRequest {
105
+ string symbol = 1;
106
+ string name = 2;
107
+ }
108
+
109
+ message GetFearGreedIndexResponse { map<string, string> data = 1; }
110
+
111
+ message GetFearGreedHistoryRequest {
112
+ optional string start_date = 1;
113
+ optional string end_date = 2;
114
+ optional int32 limit = 3;
115
+ }
116
+
117
+ message FearGreedHistoryItem {
118
+ string btc = 1;
119
+ string eth = 2;
120
+ string timestamp = 3;
121
+ }
122
+
123
+ message GetFearGreedHistoryResponse {
124
+ ResponseStatus status = 1;
125
+ repeated FearGreedHistoryItem data = 2;
126
+ }
@@ -0,0 +1,86 @@
1
+ syntax = "proto3";
2
+ package micro.v1.coin;
3
+ import "micro/v1/general.proto";
4
+
5
+
6
+ message LiveCoinRequest {
7
+ string symbol = 1;
8
+ }
9
+
10
+ message LiveCoinResponse {
11
+ CoinData data = 1;
12
+ ResponseStatus status = 2;
13
+ }
14
+
15
+ message CoinMarketCapValues {
16
+ string symbol = 1;
17
+ double market_cap = 2;
18
+ double price = 3;
19
+ double price_change_percentage1h = 4;
20
+ double price_change_percentage24h = 5;
21
+ double price_change_percentage7d = 6;
22
+ double trading_volume24h = 7;
23
+ }
24
+
25
+ message CoinData {
26
+ CoinLiveData coinLiveData = 1;
27
+ }
28
+
29
+ message CoinWebsocketValues {
30
+ string symbol = 1;
31
+ double price = 2;
32
+ double percentage = 3;
33
+ double change = 4;
34
+ double high = 5;
35
+ double low = 6;
36
+ double timestamp = 7;
37
+ string websocketType = 8;
38
+ }
39
+
40
+ message CoinGeckoValues {
41
+ string symbol = 1;
42
+ string name = 2;
43
+ string image = 3;
44
+ double current_price = 4;
45
+ double market_cap = 5;
46
+ int32 market_cap_rank = 6;
47
+ double fully_diluted_valuation = 7;
48
+ double total_volume = 8;
49
+ double high_24h = 9;
50
+ double low_24h = 10;
51
+ double price_change_24h = 11;
52
+ double price_change_percentage_24h = 12;
53
+ double market_cap_change_24h = 13;
54
+ double market_cap_change_percentage_24h = 14;
55
+ }
56
+
57
+
58
+ message CoinLiveData {
59
+ string id = 1;
60
+ string symbol = 2;
61
+ double price = 3;
62
+ double percentage = 4;
63
+ double change = 5;
64
+ double high = 6;
65
+ double low = 7;
66
+ double timestamp = 8;
67
+ string websocketType = 9;
68
+ double market_cap = 10;
69
+ double price_change_percentage1h = 11;
70
+ double price_change_percentage24h = 12;
71
+ double price_change_percentage7d = 13;
72
+ double trading_volume24h = 14;
73
+ string name = 15;
74
+ string image = 16;
75
+ int32 market_cap_rank = 17;
76
+ double fully_diluted_valuation = 18;
77
+ double market_cap_change_24h = 19;
78
+ double market_cap_change_percentage_24h = 20;
79
+ string coinmarketcap_id = 21;
80
+ string coingecko_id = 22;
81
+ }
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,72 @@
1
+ syntax = "proto3";
2
+
3
+ package micro.v1.coin;
4
+
5
+ import "micro/v1/general.proto";
6
+
7
+ message ExchangesAssetsTransparencyDto {
8
+ string id = 1;
9
+ string ranking = 2;
10
+ string icon = 3;
11
+ string exchanges = 4;
12
+ string assets = 5;
13
+ string cleanAssets = 6;
14
+ string inflows24h = 7;
15
+ string inflows7d = 8;
16
+ string inflows1m = 9;
17
+ string spotVolume = 10;
18
+ string oi24h = 11;
19
+ string avgLeverage = 12;
20
+ }
21
+
22
+ message ExchangesAssetsTransparencyResponse {
23
+ ResponseStatus status = 1;
24
+ repeated ExchangesAssetsTransparencyDto data = 2;
25
+ }
26
+
27
+
28
+ ///////// BITCOIN EXCHANGE BALANCE TABLE
29
+
30
+ message CoinExchangeBalanceResponse {
31
+ ResponseStatus status = 1;
32
+ repeated CoinExchangeDto data = 2;
33
+ }
34
+
35
+ message CoinExchangeDto {
36
+ string id = 1;
37
+ string ranking = 2;
38
+ string icon = 3;
39
+ string exchanges = 4;
40
+ string balance = 5;
41
+ string change24h = 6;
42
+ string change7d = 7;
43
+ string change30d = 8;
44
+ string symbol = 9;
45
+ }
46
+
47
+
48
+ /// BALANCE FLOW
49
+ message CoinBalanceRequest {
50
+ string symbol = 1;
51
+ string exchange = 2;
52
+ }
53
+
54
+ message CoinExchangeBalanceFlowResponse {
55
+ ResponseStatus status = 1;
56
+ CoinBalanceDto data = 2;
57
+ }
58
+
59
+ message CoinBalanceDto {
60
+ string name = 1;
61
+ string symbol = 2;
62
+ repeated CoinBalanceDataDto data = 3;
63
+ }
64
+
65
+ message CoinBalanceDataDto {
66
+ string date = 1;
67
+ string price = 2;
68
+ string value = 3; // balance & flow
69
+ }
70
+
71
+ //////////////
72
+