jr-common-micro 1.0.3 → 1.0.5
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.
- package/package.json +5 -4
- package/proto/micro/v1/coin/analytics_messages.proto +373 -0
- package/proto/micro/v1/coin/coin_messages.proto +126 -0
- package/proto/micro/v1/coin/coin_websocket_messages.proto +86 -0
- package/proto/micro/v1/coin/data_general_messages.proto +72 -0
- package/proto/micro/v1/coin/data_microservice_messages.proto +53 -0
- package/proto/micro/v1/coin/etf_messages.proto +125 -0
- package/proto/micro/v1/coin/long_short_ratio_messages.proto +56 -0
- package/proto/micro/v1/coin/rsi_messages.proto +45 -0
- package/proto/micro/v1/coin/services.proto +109 -0
- package/proto/micro/v1/coin/token_unlocks_messages.proto +51 -0
- package/proto/micro/v1/data/daily_market_data_messages.proto +23 -0
- package/proto/micro/v1/data/dominance_messages.proto +42 -0
- package/proto/micro/v1/data/exchanges_messages.proto +158 -0
- package/proto/micro/v1/data/funding_rate_messages.proto +33 -0
- package/proto/micro/v1/data/global_stats_messages.proto +19 -0
- package/proto/micro/v1/data/homepage_messages.proto +44 -0
- package/proto/micro/v1/data/inflow_outflow_messages.proto +84 -0
- package/proto/micro/v1/data/liquidation_heat_map_m2_messages.proto +52 -0
- package/proto/micro/v1/data/liquidation_v1_messages.proto +40 -0
- package/proto/micro/v1/data/mvrvz_score_messages.proto +13 -0
- package/proto/micro/v1/data/puell_multiple_messages.proto +18 -0
- package/proto/micro/v1/data/puppeteer_messages.proto +29 -0
- package/proto/micro/v1/data/rainbow_messages.proto +14 -0
- package/proto/micro/v1/data/rsi_list_messages.proto +27 -0
- package/proto/micro/v1/data/scrape_assets_messages.proto +25 -0
- package/proto/micro/v1/data/scrape_treasuries_messages.proto +44 -0
- package/proto/micro/v1/data/services.proto +115 -0
- package/proto/micro/v1/data/token_unlocks.proto +65 -0
- package/proto/micro/v1/data/two_hundred_week_moving_average_messages.proto +18 -0
- package/proto/micro/v1/data/two_year_ma_multipler_messages.proto +20 -0
- package/proto/micro/v1/education/education_messages.proto +294 -0
- package/proto/micro/v1/education/services.proto +94 -0
- package/proto/micro/v1/general.proto +114 -0
- package/proto/micro/v1/media/media_messages.proto +108 -0
- package/proto/micro/v1/media/services.proto +22 -0
- package/proto/micro/v1/news/app_version_message.proto +35 -0
- package/proto/micro/v1/news/blog_messages.proto +110 -0
- package/proto/micro/v1/news/calendar_messages.proto +46 -0
- package/proto/micro/v1/news/economic_calendar_messages.proto +28 -0
- package/proto/micro/v1/news/jr_blog_messages.proto +216 -0
- package/proto/micro/v1/news/news_messages.proto +193 -0
- package/proto/micro/v1/news/services.proto +148 -0
- package/proto/micro/v1/news/sundown_messages.proto +61 -0
- package/proto/micro/v1/notification/mail_messages.proto +40 -0
- package/proto/micro/v1/notification/notification_messages.proto +198 -0
- package/proto/micro/v1/notification/services.proto +35 -0
- package/proto/micro/v1/portfolio/portfolio_coin_messages.proto +22 -0
- package/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages.proto +43 -0
- package/proto/micro/v1/portfolio/portfolio_messages.proto +187 -0
- package/proto/micro/v1/portfolio/services.proto +37 -0
- package/proto/micro/v1/puppeteer/puppeteer_messages.proto +0 -0
- package/proto/micro/v1/puppeteer/services.proto +27 -0
- package/proto/micro/v1/user/auth_messages.proto +91 -0
- package/proto/micro/v1/user/authorization_messages.proto +58 -0
- package/proto/micro/v1/user/services.proto +86 -0
- package/proto/micro/v1/user/site_settings_messages.proto +19 -0
- package/proto/micro/v1/user/user_messages.proto +228 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.coin;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message GetAllCoinsDbResponse {
|
|
8
|
+
ResponseStatus status = 1;
|
|
9
|
+
repeated AllCoinsDbDto data = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message GetCoinMarketCapRequest {
|
|
13
|
+
string symbol= 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetCoinMarketCapResponse {
|
|
17
|
+
ResponseStatus status = 1;
|
|
18
|
+
string coinmarketcap_id = 2;
|
|
19
|
+
string name = 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
message AllCoinsDbDto {
|
|
24
|
+
string id = 1;
|
|
25
|
+
string symbol = 2;
|
|
26
|
+
string name = 3;
|
|
27
|
+
string sequence_no = 4;
|
|
28
|
+
string status = 5;
|
|
29
|
+
string coingecko_id = 6;
|
|
30
|
+
string coinglass_spot_id = 7;
|
|
31
|
+
string coinglass_futures_id = 8;
|
|
32
|
+
string coinmarketcap_id = 9;
|
|
33
|
+
string sequence_no_cmc = 10;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
message GetWithoutAboutCoinsResponse {
|
|
38
|
+
ResponseStatus status = 1;
|
|
39
|
+
repeated WithoutAboutCoinsDbDto data = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message WithoutAboutCoinsDbDto {
|
|
43
|
+
string id = 1;
|
|
44
|
+
string symbol = 2;
|
|
45
|
+
string name = 3;
|
|
46
|
+
string sequence_no = 4;
|
|
47
|
+
string status = 5;
|
|
48
|
+
string coingecko_id = 6;
|
|
49
|
+
string coinglass_spot_id = 7;
|
|
50
|
+
string coinglass_futures_id = 8;
|
|
51
|
+
string coinmarketcap_id = 9;
|
|
52
|
+
string sequence_no_cmc = 10;
|
|
53
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.coin;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message EtfOverviewDto {
|
|
8
|
+
string rank = 1;
|
|
9
|
+
string ticker = 2;
|
|
10
|
+
string etf_name = 3;
|
|
11
|
+
string price = 4;
|
|
12
|
+
string price_change = 5;
|
|
13
|
+
string price_change_percent = 6;
|
|
14
|
+
string volume_usd = 7;
|
|
15
|
+
string volume = 8;
|
|
16
|
+
string turnover_rate = 9;
|
|
17
|
+
string shares_outstanding = 10;
|
|
18
|
+
string aum = 11;
|
|
19
|
+
string market_cap = 12;
|
|
20
|
+
string expense_ratio = 13;
|
|
21
|
+
string type = 14;
|
|
22
|
+
//
|
|
23
|
+
string coin_holding = 15;
|
|
24
|
+
string premium_discount = 16;
|
|
25
|
+
string holding_coin_change_percent_1d = 17;
|
|
26
|
+
string holding_coin_change_percent_7d = 18;
|
|
27
|
+
string nav = 19;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message EtfOverviewResponse {
|
|
31
|
+
ResponseStatus status = 1;
|
|
32
|
+
repeated EtfOverviewDto data = 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
//////
|
|
37
|
+
message HeatmapDataDto {
|
|
38
|
+
string ticker = 1;
|
|
39
|
+
string value = 2;
|
|
40
|
+
string value_percent = 3;
|
|
41
|
+
string value_change_percent = 4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message EtfHeatmapResponse {
|
|
45
|
+
ResponseStatus status = 1;
|
|
46
|
+
repeated HeatmapDataDto holding = 2;
|
|
47
|
+
repeated HeatmapDataDto price = 3;
|
|
48
|
+
repeated HeatmapDataDto volume = 4;
|
|
49
|
+
repeated HeatmapDataDto turnover = 5;
|
|
50
|
+
repeated HeatmapDataDto shares = 6;
|
|
51
|
+
repeated HeatmapDataDto aum = 7;
|
|
52
|
+
repeated HeatmapDataDto market_cap = 8;
|
|
53
|
+
}
|
|
54
|
+
////////
|
|
55
|
+
|
|
56
|
+
message EtfInflowRequest {
|
|
57
|
+
string coin = 1; //bitcoin
|
|
58
|
+
string ticker = 2; // GBTC
|
|
59
|
+
string type = 3; // inflow/aum ..
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message InflowDto {
|
|
63
|
+
repeated TickerAndValueDto data = 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message TickerAndValueDto {
|
|
67
|
+
string ticker = 1;
|
|
68
|
+
repeated InflowValueDto data = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message InflowValueDto {
|
|
72
|
+
string value = 1;
|
|
73
|
+
string date = 2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message EtfInflowResponse {
|
|
77
|
+
ResponseStatus status = 1;
|
|
78
|
+
repeated InflowValueDto coin_price = 2;
|
|
79
|
+
string coin_price_last = 3;
|
|
80
|
+
repeated string ticker_list = 4;
|
|
81
|
+
TickerAndValueDto data = 5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
//////
|
|
85
|
+
//ONLY INFLOW
|
|
86
|
+
|
|
87
|
+
message EtfOnlyInflowResponse {
|
|
88
|
+
ResponseStatus status = 1;
|
|
89
|
+
OnlyInflowDto data = 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message OnlyInflowDto {
|
|
93
|
+
repeated InflowDailyDto daily = 1;
|
|
94
|
+
repeated OnlyInflowValueDto total = 2;
|
|
95
|
+
repeated OnlyInflowValueDto totalWithoutLast10Days = 3;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message InflowDailyDto {
|
|
99
|
+
string date = 1;
|
|
100
|
+
repeated OnlyInflowValueDto data = 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message OnlyInflowValueDto {
|
|
104
|
+
string ticker = 1;
|
|
105
|
+
string value = 2;
|
|
106
|
+
string value_coin = 3;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//////
|
|
110
|
+
|
|
111
|
+
message PremiumDiscountResponse {
|
|
112
|
+
ResponseStatus status = 1;
|
|
113
|
+
repeated PremiumDiscountDto data = 2;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message PremiumDiscountDto {
|
|
117
|
+
string ticker = 1;
|
|
118
|
+
repeated PremiumDiscountValueDto data = 2;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message PremiumDiscountValueDto {
|
|
122
|
+
string date = 1;
|
|
123
|
+
string discount = 2;
|
|
124
|
+
string market_price = 3;
|
|
125
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.coin;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message LongShortRatioItem {
|
|
8
|
+
string exchange = 1;
|
|
9
|
+
float long_rate = 2;
|
|
10
|
+
float short_rate = 3;
|
|
11
|
+
string long_volume = 4;
|
|
12
|
+
string short_volume = 5;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message LongShortRatioDto { repeated LongShortRatioItem items = 1; }
|
|
16
|
+
|
|
17
|
+
message LongShortRatioRequest {
|
|
18
|
+
string symbol = 1;
|
|
19
|
+
IntervalEnum interval = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message LongShortRatioResponse {
|
|
23
|
+
ResponseStatus status = 1;
|
|
24
|
+
LongShortRatioDto data = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
///////////////
|
|
28
|
+
message LongShortRatiosRequest { string symbol = 1; }
|
|
29
|
+
|
|
30
|
+
message MarketDto {
|
|
31
|
+
string longVol15m = 1;
|
|
32
|
+
string shortVol15m = 2;
|
|
33
|
+
string longVol1h = 3;
|
|
34
|
+
string shortVol1h = 4;
|
|
35
|
+
string longVol4h = 5;
|
|
36
|
+
string shortVol4h = 6;
|
|
37
|
+
string longVol12h = 7;
|
|
38
|
+
string shortVol12h = 8;
|
|
39
|
+
string longVol24h = 9;
|
|
40
|
+
string shortVol24h = 10;
|
|
41
|
+
string ls15m = 11;
|
|
42
|
+
string ls1h = 12;
|
|
43
|
+
string ls4h = 13;
|
|
44
|
+
string ls12h = 14;
|
|
45
|
+
string ls24h = 15;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message LongShortRatiosDto {
|
|
49
|
+
string exchange = 1;
|
|
50
|
+
map<string, MarketDto> data = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message LongShortRatiosResponse {
|
|
54
|
+
ResponseStatus status = 1;
|
|
55
|
+
LongShortRatiosDto data = 2;
|
|
56
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.coin;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message RsiStatsItem {
|
|
8
|
+
string symbol = 1;
|
|
9
|
+
float rsi = 2;
|
|
10
|
+
float change = 3;
|
|
11
|
+
float price = 4;
|
|
12
|
+
string volume = 5;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message RsiStatsDto { repeated RsiStatsItem items = 1; }
|
|
16
|
+
|
|
17
|
+
message RsiStatsRequest { IntervalEnum interval = 1; }
|
|
18
|
+
|
|
19
|
+
message RsiStatsResponse {
|
|
20
|
+
ResponseStatus status = 1;
|
|
21
|
+
RsiStatsDto data = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message RsiPaginationDto {
|
|
25
|
+
string id = 1;
|
|
26
|
+
string name = 2;
|
|
27
|
+
string symbol = 3;
|
|
28
|
+
uint32 rank = 4;
|
|
29
|
+
float price = 5;
|
|
30
|
+
float price_change_24h = 6;
|
|
31
|
+
float price_change_7d = 7;
|
|
32
|
+
float rsi_15m = 8;
|
|
33
|
+
float rsi_1h = 9;
|
|
34
|
+
float rsi_4h = 10;
|
|
35
|
+
float rsi_12h = 11;
|
|
36
|
+
float rsi_24h = 12;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message RsiPaginationResponseData { repeated RsiPaginationDto items = 1; }
|
|
40
|
+
|
|
41
|
+
message RsiPaginationResponse {
|
|
42
|
+
ResponseStatus status = 1;
|
|
43
|
+
PaginationMetaResult pagination = 2;
|
|
44
|
+
RsiPaginationResponseData data = 3;
|
|
45
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.coin;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/coin/coin_messages.proto";
|
|
7
|
+
import "micro/v1/coin/token_unlocks_messages.proto";
|
|
8
|
+
import "micro/v1/coin/analytics_messages.proto";
|
|
9
|
+
import "micro/v1/coin/long_short_ratio_messages.proto";
|
|
10
|
+
import "micro/v1/coin/rsi_messages.proto";
|
|
11
|
+
import "micro/v1/coin/etf_messages.proto";
|
|
12
|
+
import "micro/v1/coin/data_general_messages.proto";
|
|
13
|
+
import "micro/v1/coin/data_microservice_messages.proto";
|
|
14
|
+
import "micro/v1/coin/coin_websocket_messages.proto";
|
|
15
|
+
|
|
16
|
+
service PCoinService {
|
|
17
|
+
rpc Read(ByIdRequest) returns(stream CoinSingleResponse) {}
|
|
18
|
+
rpc ReadWithCoinGeckoId(ByIdRequest) returns(stream CoinSingleResponseWithCoinGeckoId) {}
|
|
19
|
+
rpc Paginate(PaginateRequest) returns(stream CoinPaginationResponse) {}
|
|
20
|
+
rpc PaginateFiltered(PaginateRequest) returns(stream CoinPaginationResponse) {}
|
|
21
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream CoinPaginationResponse) {}
|
|
22
|
+
rpc AddFavoriteCoin(ByIdRequest) returns(stream EmptyResponse) {}
|
|
23
|
+
rpc SaveCoinPriceAlert(SaveCoinPriceAlertRequest) returns(stream EmptyResponse) {}
|
|
24
|
+
rpc GetFavoriteCoins(PaginateRequestCurrency) returns(stream GetFavoriteCoinsResponse) {}
|
|
25
|
+
rpc IsFavoriteCoin(IsFavoriteCoinRequest) returns(stream IsFavoriteCoinResponse) {}
|
|
26
|
+
rpc GetCoinPriceAlerts(EmptyRequest) returns(stream CoinPriceAlertPaginationResponse) {}
|
|
27
|
+
rpc RemoveFavoriteCoin(ByIdRequest) returns(stream EmptyResponse) {}
|
|
28
|
+
rpc RemoveCoinPriceAlert(ByIdRequest) returns(stream EmptyResponse) {}
|
|
29
|
+
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
service PCLiveCoinService {
|
|
33
|
+
rpc getCoinLiveData(LiveCoinRequest) returns(stream LiveCoinResponse) {}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
service PChartService {
|
|
37
|
+
rpc GetFearGreedIndex(EmptyRequest) returns(stream GetFearGreedIndexResponse) {}
|
|
38
|
+
rpc GetFearGreedHistory(GetFearGreedHistoryRequest) returns(stream GetFearGreedHistoryResponse) {}
|
|
39
|
+
rpc LongShortRatios(LongShortRatiosRequest) returns(stream LongShortRatiosResponse) {}
|
|
40
|
+
rpc LongShortRatio(LongShortRatioRequest) returns(stream LongShortRatioResponse) {}
|
|
41
|
+
rpc RsiStats(RsiStatsRequest) returns(stream RsiStatsResponse) {}
|
|
42
|
+
rpc RsiPagination(PaginateRequest) returns(stream RsiPaginationResponse) {}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
service PCoinDataService {
|
|
46
|
+
rpc ExchangesAssetsTransparency(EmptyRequest) returns(stream ExchangesAssetsTransparencyResponse) {}
|
|
47
|
+
rpc CoinExchangeBalance(ByIdRequest) returns(stream CoinExchangeBalanceResponse) {}
|
|
48
|
+
rpc GetCoinBalance(CoinBalanceRequest) returns(stream CoinExchangeBalanceFlowResponse) {}
|
|
49
|
+
rpc GetCoinFlow(ByIdRequest) returns(stream CoinExchangeBalanceFlowResponse) {}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
service PEtfService { // INSIDE DATA
|
|
53
|
+
rpc GetEtfOverview(ByIdRequest) returns(stream EtfOverviewResponse) {}
|
|
54
|
+
rpc GetEtfHeatmap(ByIdRequest) returns(stream EtfHeatmapResponse) {}
|
|
55
|
+
rpc GetEtfInflow(EtfInflowRequest) returns(stream EtfInflowResponse) {}
|
|
56
|
+
rpc GetEtfPremiumDiscount(ByIdRequest) returns(stream PremiumDiscountResponse) {}
|
|
57
|
+
rpc GetEtfOnlyInflow(ByIdRequest) returns(stream EtfOnlyInflowResponse) {}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
service PTokenUnlocksService {
|
|
61
|
+
rpc StoreFunction(EmptyRequest) returns(stream TokenUnlocksStoreFunctionResponse) {}
|
|
62
|
+
rpc Paginate(PaginateRequest) returns(stream TokenUnlocksPaginationResponse) {}
|
|
63
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream TokenUnlocksPaginationResponse) {}
|
|
64
|
+
rpc Read(ByIdRequest) returns(stream TokenUnlocksResponse) {}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
service PAnalyticsService {
|
|
68
|
+
rpc Currencies(PaginateRequest) returns(stream AnalyticsCurrenciesResponse) {}
|
|
69
|
+
rpc Highlights(EmptyRequest) returns(stream AnalyticsHighlightsResponse) {}
|
|
70
|
+
rpc Chains(PaginateRequest) returns(stream AnalyticsChainsResponse) {}
|
|
71
|
+
rpc Categories(PaginateRequest) returns(stream AnalyticsCategoriesResponse) {}
|
|
72
|
+
rpc GlobalData(EmptyRequest) returns(stream BlockchainGlobalDataResponse) {}
|
|
73
|
+
rpc Exchanges(ByIdRequest) returns(stream AnalyticsExchangeResponse) {}
|
|
74
|
+
rpc CoinWeeklyData(ByIdRequest) returns(stream AnalyticsCoinWeeklyDataResponse) {}
|
|
75
|
+
rpc CurrenciesByCategory(CurrenciesByCategoryRequest) returns(stream CurrenciesByCategoryResponse) {}
|
|
76
|
+
rpc CurrenciesByChain(CurrenciesByChainRequest) returns(stream CurrenciesByChainResponse) {}
|
|
77
|
+
rpc NavbarData(EmptyRequest) returns(stream NavbarDataResponse) {}
|
|
78
|
+
rpc CurrenciesNew(PaginateRequest) returns(stream CurrenciesNewResponse) {}
|
|
79
|
+
rpc CurrenciesNewsChanges(CurrenciesNewsChangeRequest) returns(stream CurrenciesNewsChangeResponse) {}
|
|
80
|
+
rpc PaginateCurrency(PaginateRequestCurrency) returns(stream CurrenciesNewResponse) {}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// ---> Admin <---
|
|
84
|
+
|
|
85
|
+
service PCoinAdminService {
|
|
86
|
+
rpc Read(ByIdRequest) returns(stream CoinSingleResponse) {}
|
|
87
|
+
rpc Store(CoinAdminStoreRequest) returns(stream CoinSingleResponse) {}
|
|
88
|
+
rpc Update(CoinAdminUpdateRequest) returns(stream CoinSingleResponse) {}
|
|
89
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
90
|
+
rpc Paginate(PaginateRequest) returns(stream CoinPaginationResponse) {}
|
|
91
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream CoinPaginationResponse) {}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
service PCoinCronService {
|
|
95
|
+
rpc RunCron(EmptyRequest) returns(stream EmptyResponse) {}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
service PDataMicroservice {
|
|
99
|
+
rpc GetAllCoinsDb(EmptyRequest) returns(stream GetAllCoinsDbResponse) {}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
service PDataMarketCapService {
|
|
103
|
+
rpc GetCoinMarketCap(GetCoinMarketCapRequest) returns(stream GetCoinMarketCapResponse) {}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
service PPuppeteerMicroservice {
|
|
107
|
+
rpc GetAllCoinsDb(EmptyRequest) returns(stream GetAllCoinsDbResponse) {}
|
|
108
|
+
rpc GetWithoutAboutCoins(EmptyRequest) returns(stream GetWithoutAboutCoinsResponse) {}
|
|
109
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.coin;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message Allocation {
|
|
8
|
+
map<string, string> data = 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message UnlockProgressData {
|
|
12
|
+
repeated string data = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message UnlockProgress {
|
|
16
|
+
map<string, UnlockProgressData> data = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
message TokenUnlocksDto {
|
|
21
|
+
string id = 1;
|
|
22
|
+
string symbol = 2;
|
|
23
|
+
string date = 3;
|
|
24
|
+
string price = 4;
|
|
25
|
+
string price_change = 5;
|
|
26
|
+
string total_unlocked_percentage = 6;
|
|
27
|
+
string emission_price = 7;
|
|
28
|
+
string emission_price_change = 8;
|
|
29
|
+
string price_token = 9;
|
|
30
|
+
string price_change_daily = 10;
|
|
31
|
+
string market_cap = 11;
|
|
32
|
+
string circulating_supply = 12;
|
|
33
|
+
repeated Allocation allocations = 13;
|
|
34
|
+
repeated UnlockProgress unlock_progress = 14;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message TokenUnlocksResponse {
|
|
38
|
+
ResponseStatus status = 1;
|
|
39
|
+
TokenUnlocksDto data = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message TokenUnlocksPaginationResponse {
|
|
43
|
+
ResponseStatus status = 1;
|
|
44
|
+
PaginationMetaResult pagination = 2;
|
|
45
|
+
repeated TokenUnlocksDto data = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message TokenUnlocksStoreFunctionResponse {
|
|
49
|
+
ResponseStatus status = 1;
|
|
50
|
+
repeated string coins = 2;
|
|
51
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.data;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message DailyMarketDataDto {
|
|
8
|
+
string symbol = 1;
|
|
9
|
+
string name = 2;
|
|
10
|
+
string status = 3;
|
|
11
|
+
string coinmarketcap_id = 4;
|
|
12
|
+
string coin_rank = 5;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message DailyMarketDataResponse {
|
|
16
|
+
ResponseStatus status = 1;
|
|
17
|
+
repeated DailyMarketDataDto data = 2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message DailyMarketDataRequest {
|
|
21
|
+
string symbol = 1;
|
|
22
|
+
string coin_rank = 2;
|
|
23
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.data;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message DominanceDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string symbol = 2;
|
|
10
|
+
string coinmarketcap_id = 3;
|
|
11
|
+
string coingecko_id = 4;
|
|
12
|
+
string name = 5;
|
|
13
|
+
string dominance_value = 6;
|
|
14
|
+
string change_1day = 7;
|
|
15
|
+
string change_7days = 8;
|
|
16
|
+
string change_1month = 9;
|
|
17
|
+
string change_6months = 10;
|
|
18
|
+
string change_1year = 11;
|
|
19
|
+
string change_5years = 12;
|
|
20
|
+
string date = 13;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message DominanceResponse {
|
|
24
|
+
ResponseStatus status = 1;
|
|
25
|
+
repeated DominanceDto data = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message DominanceHistoryDto {
|
|
29
|
+
string id = 1;
|
|
30
|
+
string dominance_value = 2;
|
|
31
|
+
string date = 3;
|
|
32
|
+
string dominance_id = 4;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message DominanceHistoryResponse {
|
|
36
|
+
ResponseStatus status = 1;
|
|
37
|
+
repeated DominanceHistoryDto data = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message DominanceHistoryRequest {
|
|
41
|
+
string dominance_id = 1;
|
|
42
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.data;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message CryptoExchangesDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string url_id = 2;
|
|
10
|
+
string coingecko_id = 3;
|
|
11
|
+
string exchange_url = 4;
|
|
12
|
+
string type = 5;
|
|
13
|
+
string rank = 6;
|
|
14
|
+
string icon = 7;
|
|
15
|
+
string name = 8;
|
|
16
|
+
string trust_score = 9;
|
|
17
|
+
string volume_24h_normalized = 10;
|
|
18
|
+
string volume_24h = 11;
|
|
19
|
+
string monthly_visits = 12;
|
|
20
|
+
string graph_url = 13;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message CryptoExchangesResponse {
|
|
24
|
+
ResponseStatus status = 1;
|
|
25
|
+
PaginationMetaResult pagination = 2;
|
|
26
|
+
repeated CryptoExchangesDto data = 3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message DecentralizedExchangesDto {
|
|
30
|
+
string id = 1;
|
|
31
|
+
string url_id = 2;
|
|
32
|
+
string coingecko_id = 3;
|
|
33
|
+
string exchange_url = 4;
|
|
34
|
+
string type = 5;
|
|
35
|
+
string rank = 6;
|
|
36
|
+
string icon = 7;
|
|
37
|
+
string name = 8;
|
|
38
|
+
string volume_24h = 9;
|
|
39
|
+
string market_share_by_volume = 10;
|
|
40
|
+
string coins_and_pairs = 11;
|
|
41
|
+
string monthly_visits = 12;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message DecentralizedExchangesResponse {
|
|
45
|
+
ResponseStatus status = 1;
|
|
46
|
+
PaginationMetaResult pagination = 2;
|
|
47
|
+
repeated DecentralizedExchangesDto data = 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message AnalyticsExchangeCoinsDto {
|
|
51
|
+
string icon = 1;
|
|
52
|
+
string exchange_name = 2;
|
|
53
|
+
string exchange_id = 3;
|
|
54
|
+
string base_ticker = 4;
|
|
55
|
+
string target_ticker = 5;
|
|
56
|
+
string base_ticker_id = 6;
|
|
57
|
+
string target_ticker_id = 7;
|
|
58
|
+
string coin_pairs = 8;
|
|
59
|
+
string volume_24h = 9;
|
|
60
|
+
string price = 10;
|
|
61
|
+
string depth_plus_2 = 11;
|
|
62
|
+
string depth_minus_2 = 12;
|
|
63
|
+
string trade_url = 13;
|
|
64
|
+
string trust_score = 14;
|
|
65
|
+
string spread = 15;
|
|
66
|
+
string exchange_type = 16;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message AnalyticsExchangeCoinsResponse {
|
|
70
|
+
ResponseStatus status = 1;
|
|
71
|
+
PaginationMetaResult pagination = 2;
|
|
72
|
+
repeated AnalyticsExchangeCoinsDto data = 3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message ExchangeCoinsDto {
|
|
76
|
+
string icon = 1;
|
|
77
|
+
string exchange_name = 2;
|
|
78
|
+
string exchange_id = 3;
|
|
79
|
+
string base_ticker = 4;
|
|
80
|
+
string target_ticker = 5;
|
|
81
|
+
string base_ticker_id = 6;
|
|
82
|
+
string target_ticker_id = 7;
|
|
83
|
+
string coin_pairs = 8;
|
|
84
|
+
string volume_24h = 9;
|
|
85
|
+
string price = 10;
|
|
86
|
+
string depth_plus_2 = 11;
|
|
87
|
+
string depth_minus_2 = 12;
|
|
88
|
+
string trade_url = 13;
|
|
89
|
+
string trust_score = 14;
|
|
90
|
+
string spread = 15;
|
|
91
|
+
string exchange_type = 16;
|
|
92
|
+
string updated_at = 17;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message ExchangeCoinsResponse {
|
|
96
|
+
ResponseStatus status = 1;
|
|
97
|
+
PaginationMetaResult pagination = 2;
|
|
98
|
+
repeated ExchangeCoinsDto data = 3;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message TitleDto {
|
|
102
|
+
map<string, string> data = 1;
|
|
103
|
+
}
|
|
104
|
+
message AboutDto {
|
|
105
|
+
map<string, string> data = 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
enum ExchangeType {
|
|
109
|
+
CRYPTO = 0;
|
|
110
|
+
DECENTRALIZED = 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message CryptoExchangeDetailsDto {
|
|
114
|
+
string id = 1;
|
|
115
|
+
string url_id = 2;
|
|
116
|
+
string coingecko_id = 3;
|
|
117
|
+
string name = 4;
|
|
118
|
+
string symbol = 5;
|
|
119
|
+
string rank = 6;
|
|
120
|
+
string updated_at = 7;
|
|
121
|
+
string type = 8;
|
|
122
|
+
// DETAILS TABLE
|
|
123
|
+
repeated TitleDto title = 9;
|
|
124
|
+
repeated AboutDto about = 10;
|
|
125
|
+
string trust_score = 11;
|
|
126
|
+
string volume_24h = 12;
|
|
127
|
+
string volume_24h_normalized = 13;
|
|
128
|
+
string monthly_visits = 14;
|
|
129
|
+
string graph_url = 15;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message CryptoExchangeDetailsResponse {
|
|
133
|
+
ResponseStatus status = 1;
|
|
134
|
+
CryptoExchangeDetailsDto data = 2;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message DecentralizedExchangeDetailsDto {
|
|
138
|
+
string id = 1;
|
|
139
|
+
string url_id = 2;
|
|
140
|
+
string coingecko_id = 3;
|
|
141
|
+
string name = 4;
|
|
142
|
+
string symbol = 5;
|
|
143
|
+
string rank = 6;
|
|
144
|
+
string updated_at = 7;
|
|
145
|
+
string type = 8;
|
|
146
|
+
// DETAILS TABLE
|
|
147
|
+
repeated TitleDto title = 9;
|
|
148
|
+
repeated AboutDto about = 10;
|
|
149
|
+
string volume_24h = 11;
|
|
150
|
+
string market_share_by_volume = 12;
|
|
151
|
+
string coins_and_pairs = 13;
|
|
152
|
+
string most_traded_pairs = 14;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message DecentralizedExchangeDetailsResponse {
|
|
156
|
+
ResponseStatus status = 1;
|
|
157
|
+
DecentralizedExchangeDetailsDto data = 2;
|
|
158
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.data;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message FundingRateTableResponse {
|
|
8
|
+
ResponseStatus status = 1;
|
|
9
|
+
FundingRateTableDto data = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message FundingRateTableDto {
|
|
13
|
+
message FundingRateEntry {
|
|
14
|
+
string exchange = 1;
|
|
15
|
+
string funding_rate = 2;
|
|
16
|
+
string predicted_rate = 3;
|
|
17
|
+
string open_interest = 4;
|
|
18
|
+
string open_interest_amount = 5;
|
|
19
|
+
string oi_change_percent_24h = 6;
|
|
20
|
+
string price = 7;
|
|
21
|
+
string coinmarketcap_id = 8;
|
|
22
|
+
string id = 9;
|
|
23
|
+
}
|
|
24
|
+
message FundingRate {
|
|
25
|
+
repeated FundingRateEntry data = 1;
|
|
26
|
+
}
|
|
27
|
+
map<string, FundingRate> usdt = 1;
|
|
28
|
+
map<string, FundingRate> usdc = 2;
|
|
29
|
+
map<string, FundingRate> usd = 3;
|
|
30
|
+
map<string, FundingRate> total = 4;
|
|
31
|
+
string next_funding_time = 5;
|
|
32
|
+
}
|
|
33
|
+
|